yashsingh1/xdaforums huggingface dataset:
[Android Software Development] Lens_flare:
seem to me you don't have CM's Paint.smali at android/graphics(or maybe something like those: gles20canvas*, environment, hardwarerenderer).

//thkd to you by accident ;]

simlock doesn't working on custom roms like cm for devices with qualcomm ril.

congrats, you haven't joined anything

and add method StartSurfaceFlingerOnAnimation as StartSurfaceFlingerOffAnimation is already there.
[Android Software Development] Huncriter:
everything seems to be in both roms, i even compared paint.smali and it's identical

this line of the logcat is suspicious

W/dalvikvm( 226): No implementation found for native Lcom/android/server/PowerManagerService;.nativeStartSurfaceFlingerAnimation (I)V

W/dalvikvm( 226): threadid=20: thread exiting with uncaught exception (group=0x40a4a1f8)

E/AndroidRuntime( 226): *** FATAL EXCEPTION IN SYSTEM PROCESS: PowerManagerService.mScreenOffThread

in the original miui file i got nativeStartSurfaceFlingerAnimation

but in the cm9 file i got nativeStartSurfaceFlingerOffAnimation and nativeStartSurfaceFlingerOnAnimation

so i add both metods (off and on ) bellow the original (nativeStartSurfaceFlingerAnimation) in miui, it's correct right?

note: i've replaced nativeStartSurfaceFlingerAnimation with nativeStartSurfaceFlingerOffAnimation, sucess, no reboots anymore!!
[Android Software Development] Lens_flare:
ah, I'm not a logcat guru anymore D:

you are right, adding those should solve your problem.
[Android Software Development] Huncriter:
jeje :fingers-crossed:

one more thing, icon labels on homescreen looks realy ugly, status bar icon too, i don't know how to describe it, like pixel, but in the submenu like settings fonts and icons from status bar looks normal(i don't post screenshot cuz there looks normal)
[Android Software Development] Lens_flare:
do you have 720p screen size? :/ if no, something really have to be done with graphics. Or maybe you are asking too much from miui? :D
[Android Software Development] smithchipz:
Hi,

Thanks to you Lens_Flare, I managed to get the ROM booting, but then I ran into problems. The first time I booted into it after I flashed it, the lockscreen showed up. I swiped to unlock and saw the status bar and a white screen. There was then a message about Setup Wizard force closing and enabling Google Location Services. I pressed home and back (hardware keys) and then was presented with what looks like the bootanimation just constantly replaying while my hardware key lights are on and the USB charge light is also on. No key combination or reboot will let me leave this bootanimation screen. I've taken a logcat and I think I'm missing something but I'm not sure what. Sorry if it's long but it's everything from start to finish -> http://pastebin.com/d7dtMAvx. Thanks for any help.
[Android Software Development] Lens_flare:
Errors are:

E/FDApplication( 861): java.lang.NoClassDefFoundError: com.htc.htcjavaflag.HtcBuildFlag

org.restlet.engine.application.StatusFilter.doHandle(StatusFilter.java:152)

miui just don't have those classes. Please say what base rom are you using and what miui.
[Android Software Development] smithchipz:
I am using the only ICS/CM9 ROM for my phone (HTC Legend) as my base. It can be found here. For the MIUI ROM I'm porting from, I am using this HTC Wildfire S ROM.
[Android Software Development] stelios97:
what about this error?

06-29 14:12:23.944: E/dalvikvm(1493): Class lookup Lcom/android/server/wm/InputApplicationHandle; attempted with exception pending
[Android Software Development] Lens_flare:
alright, first make sure you don't have com/htc/htcjavaflag and org/restlet/engine/application/StatusFilter at somewhere on your apk and jars.

If they are not there, that's definitely miui you are using as base. I suggest to use nexus S instead.

what files have you changed about input at services.jar?
[Android Software Development] stelios97:
inputmanager.smali but not replaced added only missing methods!
[Android Software Development] Lens_flare:
try to replace inputmanager*.smali tree
[Android Software Development] ariadownload:
problem

hi guys i do port miui v4 for legend and i have problem rom stay with bootscreen

smithchipz you have framework.jar and services.jar?can upload files?
[Android Software Development] stelios97:
did this but still the same! bootloop!

here is the logcat maybe something else is the problem! http://pastebin.com/SjZ5j0fW
[Android Software Development] Lens_flare:
java.lang.VerifyError: com/android/server/PowerManagerService

that is more important.

So, check that out.
[Android Software Development] Huncriter:
i don't, but the source rom neither, both are ldpi devices

in the release post of the source nobody ask about that so i think everything is fine, but i have miui gb too and it doesn't have the same problem. are you sure that is something in the build prop, or maybe some library missing?
[Android Software Development] Lens_flare:
It's fine to port from nexus S as it anyway have all resources ldpi or hdpi.

as you are working with base rom mostly, you should have all set. But problem could be in framework(framework.jar for instance). Also keep in mind that miui isn't designed for ldpi.
[Android Software Development] ronak.super:
LENS!!

did as said to diff assetmanager. added all the lines .method and .field

still getting the same log

D/dalvikvm( 323): DexOpt: couldn't find field Landroid/content/res/AssetManager
;.mThemeSupport
W/dalvikvm( 323): VFY: unable to resolve instance field 8393
D/dalvikvm( 323): VFY: replacing opcode 0x5c at 0x0000
E/dalvikvm( 323): ERROR: couldn't find native method
E/dalvikvm( 323): Requested: Landroid/net/wifi/WifiNative;.loadHotspotDriver:()
Z
E/JNIHelp ( 323): RegisterNatives failed for 'android/net/wifi/WifiNative', abo
rting
F/libc ( 323): Fatal signal 11 (SIGSEGV) at 0xdeadbaad (code=1)

donno whats wrong,

also getting wifi/wifinative aborting??
[Android Software Development] Lens_flare:
but some of them are still missing right? Please recheck all again, especialy that .mThemeSupport (use search on base).

what's problem? replace it.
[Android Software Development] ronak.super:
LENS!

in the log

E/dalvikvm( 323): Requested: Landroid/net/wifi/WifiNative;.loadHotspotDriver:()
Z
E/JNIHelp ( 323): RegisterNatives failed for 'android/net/wifi/WifiNative', abo
rting
F/libc ( 323): Fatal signal 11 (SIGSEGV) at 0xdeadbaad (code=1

after it couldnt find the native method , it jumps directly to wifi and then aborts ,

does that mean system skipped mthemexxxxx . Because of WIFINATIVE is aborting , media might be dieing, also look at the below code

W/AudioFlinger( 324): Thread AudioOut_1 cannot connect to the power manager ser
vice

This at the begining of boot
[Android Software Development] Lens_flare:
First it checks for AssetManager, then it checks PackageRedirectionMap and then it checks WifiNative(at last it was mine trial and failing way to get my rom boot).

One more time: doubt? Replace that wifinative.smali.
[Android Software Development] ronak.super:
let me try!!!! replacing wifi native
[Android Software Development] Huncriter:
miui gb is for hdpi devices too and we have one without this problem, also we have cm9 ,so it's obvious that is something wrong , i forget to mention that rom boots without wallpaper and dont forget that screenshoots looks normal, no blurred label or icons. it's only hapen in homescreen, in other menus looks normal
[Android Software Development] Lens_flare:
you know why? Because it was RESIZED for you as MIUI gb is HDPI-only(MIUI v4 is multiresource).

not correct. All might have cm, not all miui.
[Android Software Development] Sir Otto:
I'm getting the same log while trying to port MIUI from Galaxy Nexus to my Galaxy Tab! Help! :(
[Android Software Development] v1r0x:
in which jar did you search for the file?

It's in services.jar.

Just open PowerManagerService.smali and rename all	appearances of nativeStartSurfaceFlingerAnimation to nativeStartSurfaceFlingerOffAnimation (in my port there are only two appearances)

And also add the new method nativeStartSurfaceFlingerOnAnimation.

Just copy the method nativeStartSurfaceFlingerOffAnimation and rename the Off to On.

Should look like this:

.method private native nativeStartSurfaceFlingerOffAnimation(I)V
.end method

.method private native nativeStartSurfaceFlingerOnAnimation(I)V
.end method

Then recompile, push the file and try to boot ;)
[Android Software Development] Lens_flare:
It would be right to also add description block which follows by that nativeStartSurfaceFlingerOnAnimation.
[Android Software Development] ronak.super:
i found these to lines

.method private native nativeStartSurfaceFlingerOffAnimation(I)V
.end method

.method private native nativeStartSurfaceFlingerOnAnimation(I)V
.end method

so should i change flingeron to flingeroff right

.method private native nativeStartSurfaceFlingerOffAnimation(I)V
.end method

.method private native nativeStartSurfaceFlingerOffAnimation(I)V
.end method

both the flinger to off??
[Android Software Development] Lens_flare:
no, if they are in miui, all should be ok then.
[Android Software Development] ronak.super:
No they are not miui

should i add these lines like this

.method private native nativeStartSurfaceFlingerOffAnimation(I)V
.end method
.method private native nativeStartSurfaceFlingerOnAnimation(I)V
.end method

or should i edit something?? LENS!!
[Android Software Development] resac:
search for nativeStartSurfaceFlingerOnAnimation

and change it to nativeStartSurfaceFlingerOffAnimation

and find same search again nativeStartSurfaceFlingerOnAnimation

on second search u change to same off and then just below u will find missing methods of onanimation just add it then u done..

just use winmerge and find in miui smali. u come to know.
[Android Software Development] tathanhlam66:
i think you should edit

change

invoke-direct {p0, p1}, Lcom/android/server/PowerManagerService;->nativeStartSurfaceFlingerAnimation(I)V

-->

invoke-direct {p0, p1}, Lcom/android/server/PowerManagerService;->nativeStartSurfaceFlingerOffAnimation(I)V

add line

.method private native nativeStartSurfaceFlingerOffAnimation(I)V
.end method

change

iput p1, p0, Lcom/android/server/PowerManagerService;->mProximityPendingValue:I

-->

invoke-direct {p0, p1}, Lcom/android/server/PowerManagerService;->nativeStartSurfaceFlingerOnAnimation(I)V

and

.method private native nativeStartSurfaceFlingerAnimation(I)V

-->

.method private native nativeStartSurfaceFlingerOnAnimation(I)V
[Android Software Development] Lens_flare:
Those pictures are from Meld diff viewer, they are pointing on all moments of porting powermanagerservice

first entry http://i.minus.com/dY4DiQfJ451Aq/Screenshot from 2012-07-08 12:04:39.png

second entry http://i.minus.com/dchMVcHtKe46T/Screenshot from 2012-07-08 12:05:39.png

block that should be added marked as green[block is incomplete] http://i.minus.com/dbmNygeJBs9klv/Screenshot from 2012-07-08 12:05:52.png
[Android Software Development] ariadownload:
problem

what is my problem stay in bootscreen

logcat attached
[Android Software Development] Lens_flare:
sounds like your frameworks are corrupted, check them out.
[Android Software Development] ariadownload:
How?
[Android Software Development] ariadownload:
problem

now i using miui port rom framework,logcat attached
[Android Software Development] v1r0x:
looks like you have to diff AssetManager.smali
[Android Software Development] ronak.super:
lens!

E/dalvikvm( 599): Requested: Lcom/android/server/wm/InputManager;.nativeSetKeyL
ayout:(Ljava/lang/String;Ljava/lang/String;)V
E/JNIHelp ( 599): RegisterNatives failed for 'com/android/server/wm/InputManage
r', aborting
F/libc ( 599): Fatal signal 11 (SIGSEGV) at 0xdeadbaad (code=1)

What now , after surfaceflingeroff,

do i just have to add missing methods or replace the inputmanager from base
[Android Software Development] Lens_flare:
Don't know about yours platform(remember problem with keyboard not showed?), but most common case is just to replace whole inputmanager tree
[Android Software Development] ronak.super:
lens!!!!

it booted!!!!!!!!!

thanks alot

Still the same keyboard not popping up,

checked the log showing input on nonfocused, android.........inputmethod

i think problem is in inputmethod let me check
[Android Software Development] Lens_flare:
I'd also thank v1r0x, resac, tathanhlam66 ;]

sounds like you have hardware keyboard(like on desire z, mini pro etc) with corresponding mechanics oO
[Android Software Development] ronak.super:
NO NO softkeyboard donno whats wrong,

got lot of things to be debugged, like rotation not working , screenshot and mass storage also not working.

ill help of you all guys ,

thanks for helping v1r0x, resac, tathanhlam66!!!!!!!!!!!!!!!!!and LENS!!

THANK YOU GUYS
[Android Software Development] Lens_flare:
yes definitely sounds like miui framework think you have a hardware keyboard, it might help: http://xdaforums.com/showthread.php?t=1608464 see step 8.

if you don't have something at base rom, you won't have it at miui.

steps described pages ago, just search.
[Android Software Development] martijnn2:
Anybody tried it for zp200?

I did..,no succes...
[Android Software Development] Lens_flare:
what's your log?

is cm working?
[Android Software Development] Sir Otto:
Thank you, LENSE! I had the same problem of ronak.super trying to port MIUI v4 from Galaxy Nexus to Galaxy Tab, but thanks to your advices I managed to boot it.

But there's another problem: when it boots, it shows the lockscreen, but then it also shows the message "Vpnservices.apk has stopped", or something like that. The strange thing is that VpnServices.apk doesn't exist, either in the CM9 I used as base or in the MIUI v4 for Galaxy Nexus I ported.

Help!:crying:

EDIT: No, I was wrong! It says:

Nfc service

has stopped. Because GTab hasn't the NFC chip. Maybe should I delete the Nfc.apk file in /system/app?

EDIT 2: I deleted Nfc.apk, but now when I try to unlock the screen it says: SystemUI has stopped. And then: com.android.phone has stopped. The only things I can do are opening camera and messages from the lockscreen. What should I do?

EDIT 3: I attached the logcat. What's this?

D/FramerateTokenList( 220): requestFramerate: 0.0 by:miui.app.screenelement.elements.FramerateController@41282420
[Android Software Development] ronak.super:
No lens

screenshot works on cm(base),

But screenshot in miui shows capture failed???

by the way i dont have hardware keyboard!!
[Android Software Development] resac:
E/AndroidRuntime( 659): Caused by: java.lang.UnsatisfiedLinkError: Couldn't load locSDK_2.2: findLibrary returned null

Add

locSDK_2.2 to /system/lib

and add nfclib which are in miui rom to u r lib and delete the nfc.apk and rest give another log lets c...!!!

---------- Post added at 11:56 PM ---------- Previous post was at 11:55 PM ----------

Ok.. if u dont have hardware keyboard then what is the issue??
[Android Software Development] ronak.super:
keyboard is not popping up??resac!

tried replacing inputmanagertree still nothing ,
[Android Software Development] Sir Otto:
I decided to throw away the Galaxy Nexus version and I decided to try porting MIUIv4 from Nexus S (CM9 RC1 as base), since ronak.super managed to make it work.

I followed the instructions, but now there is this logcat when I try to boot it (it doesn't even reach the bootanimation):

I/DEBUG ( 140): debuggerd: Jun 26 2012 07:55:51
--------- beginning of /dev/log/system
I/Vold ( 137): Vold 2.1 (the revenge) firing up
I/Netd ( 139): Netd 1.0 starting
D/Vold ( 137): Volume sdcard state changing -1 (Initializing) -> 0 (No-Media
)
D/Vold ( 137): Volume emmc state changing -1 (Initializing) -> 0 (No-Media)
D/Vold ( 137): Volume sdcard state changing 0 (No-Media) -> 2 (Pending)
D/DirectVolume( 137): DirectVolume::handlePartitionAdded -> MAJOR 179, MINOR 1,
PARTN 1
D/DirectVolume( 137): DirectVolume::handlePartitionAdded -> MAJOR 179, MINOR 2,
PARTN 2
D/DirectVolume( 137): DirectVolume::handlePartitionAdded -> MAJOR 179, MINOR 3,
PARTN 3
D/Vold ( 137): Volume sdcard state changing 2 (Pending) -> 1 (Idle-Unmounted
)
D/Vold ( 137): Volume emmc state changing 0 (No-Media) -> 2 (Pending)
D/DirectVolume( 137): DirectVolume::handlePartitionAdded -> MAJOR 179, MINOR 9,
PARTN 1
D/Vold ( 137): Volume emmc state changing 2 (Pending) -> 1 (Idle-Unmounted)
I/ ( 144): ServiceManager: 0x18910
[B]I/Netd ( 193): Netd 1.0 starting
I/Netd ( 220): Netd 1.0 starting
I/Netd ( 244): Netd 1.0 starting
I/Netd ( 268): Netd 1.0 starting
I/Netd ( 292): Netd 1.0 starting
I/Netd ( 316): Netd 1.0 starting
I/Netd ( 340): Netd 1.0 starting[/B]

And it continues giving

[B]Netd 1.0 starting[/B]

forever.

EDIT: Solved replacing libandroid_runtime.so with the original one from BASE, as written in the first post.
[Android Software Development] v1r0x:
I have a strange error.

I can't scroll in gmail or facebook. If I try to scroll it FCs

here my log:

07-08 23:02:03.914: E/AndroidRuntime(2239): FATAL EXCEPTION: WebViewCoreThread
07-08 23:02:03.914: E/AndroidRuntime(2239): java.lang.NoSuchFieldError: android.os.SystemProperties.QCOM_HARDWARE
07-08 23:02:03.914: E/AndroidRuntime(2239):	at android.webkit.WebViewCore$WebCoreThread$1.handleMessage(WebViewCore.java:725)
07-08 23:02:03.914: E/AndroidRuntime(2239):	at android.os.Handler.dispatchMessage(Handler.java:99)
07-08 23:02:03.914: E/AndroidRuntime(2239):	at android.os.Looper.loop(Looper.java:137)
07-08 23:02:03.914: E/AndroidRuntime(2239):	at android.webkit.WebViewCore$WebCoreThread.run(WebViewCore.java:789)
07-08 23:02:03.914: E/AndroidRuntime(2239):	at java.lang.Thread.run(Thread.java:856)
07-08 23:02:09.640: E/JavaBinder(1346): !!! FAILED BINDER TRANSACTION !!!
[Android Software Development] ronak.super:
Keyboard working???
[Android Software Development] Huncriter:
i'm still having the problem with blurred and pixeled fonts and icons on homescreen

i've found this on logcat, could be the reason?

E/libEGL ( 1427): call to OpenGL ES API with no current context (logged once per thread)

D/ShaderProgram( 1427): couldn't load the vertex shader!

E/libEGL ( 1427): call to OpenGL ES API with no current context (logged once per thread)

D/ShaderProgram( 1427): couldn't load the vertex shader!

E/libEGL ( 1427): call to OpenGL ES API with no current context (logged once per thread)

D/ShaderProgram( 1427): couldn't load the vertex shader!

E/libEGL ( 1427): call to OpenGL ES API with no current context (logged once per thread)

D/ShaderProgram( 1427): couldn't load the vertex shader!

E/libEGL ( 1427): call to OpenGL ES API with no current context (logged once per thread)

D/ShaderProgram( 1427): couldn't load the vertex shader!

I/Adreno ( 131): ioctl code 0x40140931 (IOCTL_KGSL_TIMESTAMP_EVENT) failed: errno 22 Invalid argument

I/ActivityManager( 334): START {flg=0x10000000 cmp=com.google.android.gsf/.update.SystemUpdateDownloadDialog} from pid 1211
[Android Software Development] resac:
Its new error in miui.2.7.6

just go in framework android/webkit/WebViewCore replace it with base thats all..

---------- Post added at 08:22 AM ---------- Previous post was at 08:20 AM ----------

@ronak.super --> Unpack android.policy.jar and find phonewindowmanager then in that file find getswitchstate and change the values for lid open and lid closed. Then save and repack and put the new jar in the zip.
[Android Software Development] Lens_flare:
add framework-miui-res.xml to etc/permissions.

make a log.

those libs won't prevent you to get home screen :p

nfc.apk will.

first of all, not so new :D

and that's exactly what he did. For instance, I replaced WebView*.smali and that solved such problem.

you don't but framework THINK you DO have it. It could be a way in which your vendor implemented such a big screen.

according to log, your EGL drivers are not functioning correctly, that issue is driver-only, so try to change them(lib/EGL folder).

PS:

right decision :D
[Android Software Development] Sir Otto:
Not yet... actually, it doesn't even boot, because, since I'm using your same base, I'm meeting the same problems you met before. But I'll reach you quickly and we'll be able to cooperate.
[Android Software Development] v1r0x:
replace all WebViewCore*.smali?

replace all WebView* smalis? oO
[Android Software Development] Lens_flare:
yes, coz "Core" do have dependencies in "Not-Core" code.
[Android Software Development] Lens_flare:
do you have framework-res-miui.xml at etc/permissions?

log shows you a liblocSDK_2.2 absense. It's not crucial.
[Android Software Development] ronak.super:
no i didnt ,

right now i have very slow connection(exceeded limit)

ill upload it day after tomo to gtab thread u may have look at it!

sorry!
[Android Software Development] Sir Otto:
No, I don't find the file framework-res-miui.xml even in the Nexus S Rom, but there's a miui-framework.xml. Maybe you could upload it?

What does it mean that have liblocSDK_2.2 absense? Sorry for my ignorance.

Maybe because I ported the 2.7.6 version, not the 2.6.x.

Thank you! Maybe we could cooperate to make MIUI v4 stable for our Galaxy Tab!
[Android Software Development] ronak.super:
resac!

can give me the correct line of getswitchgate , so that i would be easier to search!!!

may i know how is it related to keyboard not working problem

would be help replacing the whole view tree in framework.jar???

---------- Post added at 07:42 PM ---------- Previous post was at 07:35 PM ----------

Sir otto!

version 2.7.6 or 2.5.6 doesnt matter changes are only made in apps and not in these jars9 most probably)

take a look at ur build prop.....

i have a better idea other than this i have built a rom on miui already in gtab forum ,

y dont u use it for debugging then will merge the changes with our latest build ,

like follow the steps given by lens, resac,v1!!!!!!

to get keyboard working!!

keyboard is our priority!!!

once we get keyboard working !!!!!!!!! will debugg others

if u are ready pm me!!:fingers-crossed::highfive:

link for the thread

http://xdaforums.com/showthread.php?t=1613842
[Android Software Development] Sir Otto:
I'm sorry, ronak, but I didn't understand what did you mean with

y dont u use it for debugging then will merge the changes with our latest build.

By the way, do you have framework-res-miui.xml in /system/etc/permissions/ folder?
[Android Software Development] resac:
@ronak.super

i had hardware keyboard and that getwitchstate is the constants tell the onscreen keyboard state.

1.use your base LTINIME*.apk

2.unpack android.policy.jar

3.phonewindowmanager.smali

4.and find that getwitchstate and below u get 3 constants of Lidopen just try with diff way else compare with base u might get correct.. but in my case its not correct with base..

last constant is -0x1 which i using it 0x1
[Android Software Development] v1r0x:
replaced all WebView* but still the same error :(
[Android Software Development] Redmoon_:
find it. sorry

....
[Android Software Development] resac:
Log it wht error is!!
[Android Software Development] Redmoon_:
i made boot my ported nexus s to wfs

but it still have error . i dont know how fix it..

there is a logcat..

http://pastebin.com/70RSbBfe

thx . sorry for my bad english
[Android Software Development] Lens_flare:
add liblocSDK_2.2.so from nexus S miui to yours.

haven't still ported 2.7.x, maybe error couldn't be solved that way..

Redmoon_

Delete nfc.apk from system/app.

//hope your pm is now useless to answer
[Android Software Development] Redmoon_:
:good:

now another error...

logcat..

http://pastebin.com/WW8HReGq
[Android Software Development] Lens_flare:
E/dalvikvm( 1307): ERROR: couldn't find native method
E/dalvikvm( 1307): Requested: Landroid/media/MediaRecorder;.native_start:()V
E/JNIHelp ( 1307): RegisterNatives failed for 'android/media/MediaRecorder', aborting

android/media/MediaRecorder.smali , replace only it.
[Android Software Development] Redmoon_:
if i want to lock my screen . the device is restart...

this is the logcat (again)..

http://pastebin.com/Y2puJWWe

sorry for my bad english...