yashsingh1/xdaforums huggingface dataset:
[Android Software Development] Lens_flare:
I/dalvikvm( 1267): Could not find method com.android.server.PowerManagerService.nativeStartSurfaceFlingerAnimation, referenced from method com.android.server.PowerManagerService.access$4800
W/dalvikvm( 1267): VFY: unable to resolve direct method 3989: Lcom/android/server/PowerManagerService;.nativeStartSurfaceFlingerAnimation (I)V

so re-port your powermanagerservice.smali with guides at last pages of this thread.
[Android Software Development] Redmoon_:
but this is a last page :rolleyes:
[Android Software Development] Lens_flare:
http://xdaforums.com/showpost.php?p=28439415&postcount=907

see this one for example.
[Android Software Development] Redmoon_:
i confused...

in your picture . are you port the PowerManagerService from MIUI to ICS base ?

i mean ..add MIUI method to ICS base PowerManagerService ??

:confused:

mean i have to replace..

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

to

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

and add method

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

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

to MIUI

then add this too to MIUI ?

.method private parseIntArray(Ljava/lang/String;)[I
.locals 4
.parameter "intArray"

.prologue
.line 3161
if-eqz p1, :cond_0

invoke-virtual {p1}, Ljava/lang/String;->length()I

move-result v3

if-nez v3, :cond_2

.line 3162
:cond_0
const/4 v3, 0x0

new-array v1, v3, [I

.line 3170
.local v1, result:[I
:cond_1
return-object v1

.line 3164
.end local v1 #result:[I
:cond_2
const-string v3, ","

invoke-virtual {p1, v3}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

move-result-object v2

.line 3165
.local v2, split:[Ljava/lang/String;
array-length v3, v2

new-array v1, v3, [I

.line 3166
.restart local v1 #result:[I
const/4 v0, 0x0

.local v0, i:I
:goto_0
array-length v3, v2

if-ge v0, v3, :cond_1

.line 3167
aget-object v3, v2, v0

invoke-static {v3}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

move-result v3

aput v3, v1, v0

.line 3166
add-int/lit8 v0, v0, 0x1

goto :goto_0
.end method

sorry for my bad english..
[Android Software Development] Lens_flare:
nope, vice versa :p

right but..

not add but just rename nativeStartSurfaceFlingerAnimation.

then add remaining block.
[Android Software Development] Redmoon_:
make a new error

E/JNIHelp ( 190): Native registration unable to find class 'com/android/server/Watchdog', aborting

full logcat

http://pastebin.com/rBVWRpX0

ps: i have Watchdog.smali...
[Android Software Development] Lens_flare:
try to replace it with base.
[Android Software Development] v1r0x:
07-10 12:29:58.441: E/ExternalAccountType(7279): Unsupported attribute readOnly
07-10 12:30:08.371: E/ACRA(3001): ACRA caught a NoSuchFieldError exception for com.facebook.katana. Building report.
07-10 12:30:11.123: E/AndroidRuntime(3001): FATAL EXCEPTION: WebViewCoreThread
07-10 12:30:11.123: E/AndroidRuntime(3001): java.lang.NoSuchFieldError: android.os.SystemProperties.QCOM_HARDWARE
07-10 12:30:11.123: E/AndroidRuntime(3001):	at android.webkit.WebViewCore$WebCoreThread$1.handleMessage(WebViewCore.java:725)
07-10 12:30:11.123: E/AndroidRuntime(3001):	at android.os.Handler.dispatchMessage(Handler.java:99)
07-10 12:30:11.123: E/AndroidRuntime(3001):	at android.os.Looper.loop(Looper.java:137)
07-10 12:30:11.123: E/AndroidRuntime(3001):	at android.webkit.WebViewCore$WebCoreThread.run(WebViewCore.java:789)
07-10 12:30:11.123: E/AndroidRuntime(3001):	at java.lang.Thread.run(Thread.java:856)
[Android Software Development] phonetech101:
Ok im trying to port miui v4 to ice cold sandwich and i used libandroid_runtime.so from miui port and it didn't even get past splash screen, so i tried libandroid_runtime.so from base "ice cold sandwich 8.2" and i got boot animation but it just loops.

Any help will be greatly appreciated :-)
[Android Software Development] phonetech101:
How long is too long?
[Android Software Development] Lens_flare:
v1r0x

I have just realised your error is in this line:

SO, framework.jar, android/os/SystemProperties.smali

diff them, add all that missing and replace big method blocks which are pointing to .line [number] (as I remember there are 1 or 2 such block).

phonetech101

log please.
[Android Software Development] v1r0x:
the location of the file was the hint I needed. Thanks :)

Edit: works perfect ;)
[Android Software Development] pwnyourace:
can someone please help me or try and point me in some sort of direction..got MIUI booting and everything seems to be working as it should except for the theme app force closes when pressing on a theme in local im trying and trying but i havent gotten anywhere yet

http://pastebin.com/ETGEjST7 i tried to make it as short as possible

edit: oh wow well that was as easy as replacing the thememanager.apk with a different one...
[Android Software Development] Redmoon_:
why my port get black bar in notifications menu ??
[Android Software Development] Lens_flare:
have you replaced android/graphics/Paint.smali in framework.jar?
[Android Software Development] Huncriter:
i didn't understand the method to make usb storage works

first i decompile framework-res.apk, add the line in values/strings, compile again, replace usb folder on services.jar. and then i have to replace framework-res.apk with the new one that i've just compiled? i did and nothing happens
[Android Software Development] pwnyourace:
E/videocamera( 4018): Could not start media recorder.
E/videocamera( 4018): java.lang.RuntimeException: start failed.
E/videocamera( 4018):	at android.media.MediaRecorder.native_start(Native Method)
E/videocamera( 4018):	at android.media.MediaRecorder.start(MediaRecorder.java)
E/videocamera( 4018):	at com.android.camera.VideoCamera.startVideoRecording(VideoCamera.java:1609)
E/videocamera( 4018):	at com.android.camera.VideoCamera.onShutterButtonClick(VideoCamera.java:673)
E/videocamera( 4018):	at com.android.camera.ShutterButton.performClick(ShutterButton.java:108)
E/videocamera( 4018):	at android.view.View$PerformClick.run(View.java)
E/videocamera( 4018):	at android.os.Handler.handleCallback(Handler.java)
E/videocamera( 4018):	at android.os.Handler.dispatchMessage(Handler.java)
E/videocamera( 4018):	at android.os.Looper.loop(Looper.java)
E/videocamera( 4018):	at android.app.ActivityThread.main(ActivityThread.java)
E/videocamera( 4018):	at java.lang.reflect.Method.invokeNative(Native Method)
E/videocamera( 4018):	at java.lang.reflect.Method.invoke(Method.java:511)
E/videocamera( 4018):	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java)
E/videocamera( 4018):	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java)
E/videocamera( 4018):	at dalvik.system.NativeStart.main(Native Method)
V/videocamera( 4018): Releasing media recorder.

Camera works, switching to vidcam works, vidcam preview works, but when i press record nothing happens and this is what logcat says:( i got this before and after replacing android.media.mediarecorder.smali
[Android Software Development] Lens_flare:
all looks correct, but you forgot storage_list.xml. Also check out that id of string you added match with similar in your base (see plurals.xml).
[Android Software Development] Redmoon_:
just Paint.smali ? or Paint*.smali :confused:
[Android Software Development] Lens_flare:
just Paint.smali.
[Android Software Development] Redmoon_:
still got black bar....
[Android Software Development] phonetech101:
Ok im stuck at boot animation, here is my logcat if anyone could help it would be greatly appreciated :-)

http://db.tt/axD0pEKl
[Android Software Development] Bonkurei:
got my port to working, but it cant call or receive a call and it cant text message and i think there is another problems too.

i attach my logcat
[Android Software Development] cmbaughman:
OK I've had a working build for quite a while. After building the 2.7.6 release the only thing I am noticing that has an issue is theme manager. I have tried replacing with the older theme manager and still doesn't work and logcat doesn't really seem to tell much at all.

Problem is that when I apply a theme the app behaves normally and no errors, however, it doesn't apply the theme. Before I can fix it i wanted to find out if others have this issue? This will tell me of its the latest miui code and possibly help me understand if its one of the over 20 classes they modified in framework or thememanager which when I decompile and look at the AndolroidManifest.XML I notice the Id they use has changes from android.uid.phone to android.uid.theme

I guess I am asking simply if anyone else is reporting theme issues and of they dealt with it how?

Is anyone else seeing this?
[Android Software Development] pwnyourace:
My theme chooser would open up and let me download themes but when I clicked to apply one in local it force closed. I ended up downloading the miuiandroid.com Crespo build and using the thememanager.apk and it worked after that.
[Android Software Development] Gerrett:
@cmboughtman Did you have the data/system/theme folder?

Gesendet von meinem GT-N7000 mit Tapatalk 2
[Android Software Development] cmbaughman:
Thanks both of you for responding. I actually fixed it, (and I am not sure how!). First I tried editing the apk, however that forced closed and when i saw the amount of classes i'd need to edit to get it to work, I decided to try something else. Then I tried pushing the one from our last release, that force closed as well. I decided to try digging more, but for some reason I grabbed one from crespo (this weeks) and now for whatever reason it's working. Really really odd! I don't know if it has anything to do with the fact that I rebooted in between a few times or what? I am pretty sure I already tried this same apk, but whose complaining, it's working and that's cool to me!

note: BTW I noticed for whatever reason the /data/system/theme wasn't there, however now it is! This must be part of the culprit! Thanks for your input guys!
[Android Software Development] Huncriter:
i can't hang up calls

log attached
[Android Software Development] Lens_flare:
oh sh** what have you done before that log appears?

E/AndroidRuntime( 4950): *** FATAL EXCEPTION IN SYSTEM PROCESS: ActivityManager
E/AndroidRuntime( 4950): java.lang.NoClassDefFoundError: [generic]
E/AndroidRuntime( 4950): at dalvik.system.NativeStart.main(Native Method)

E/AndroidRuntime( 4950): Error reporting crash
E/AndroidRuntime( 4950): java.lang.NullPointerException
E/AndroidRuntime( 4950): at com.android.internal.os.RuntimeInit$UncaughtH
andler.uncaughtException(RuntimeInit.java:72)
E/AndroidRuntime( 4950): at java.lang.ThreadGroup.uncaughtException(Threa
dGroup.java:693)
E/AndroidRuntime( 4950): at java.lang.ThreadGroup.uncaughtException(Threa
dGroup.java:690)

E/CallCard( 843): MIONE:call.state: DISCONNECTING

E/CallCard( 843): MIONE:call timer reset

just a minute, MI One?

That's why your icons are skewed :D

Alright, hope replacing RIL*.smali will help.
[Android Software Development] Huncriter:
i replace RIL*.smalis and nothing happen, phone. apk freezes and says "hanging up" but th call remains and the only option is reboot.

by the way, i didn't understand, why my icons are screwed?
[Android Software Development] Lens_flare:
Do you have mobile data activated? Usually it's something about RIL module.. curious, do you have yellowpage.db at system/etc?

Coz seem to me you are using MI-One base.
[Android Software Development] gulbir101:
basically I could try a gt540 rom and it could work? Could u help me port?
[Android Software Development] Ron G:
i think gt540 roms can be work but i'm sure. And now i can't help you i'm busy in my 1st year final exam. I can't help until 24th march for exam i stoped my all development. why you not ask help from other ally devs. Ally devs can be help you in better way.
[Android Software Development] gulbir101:
Ill try a couple roms out :)

EDIT* Didnt work, signature verification Failed lol .. do ya know any developer that can port this?
[Android Software Development] Mohanshbhr:
I can't get packet data (2g or 3g) working. Any fix for this.
[Android Software Development] sohil:
Thank you very much,

If you can please provide little info on how to give permission?
[Android Software Development] Mohanshbhr:
Please someone help me with packet data problem

http://xdaforums.com/showpost.php?p=23138434&postcount=30
[Android Software Development] yonzz:
Hello, my friend was succesful port MIUI 4 to Galaxy Gio, but there's mic problem, which is that when i call someone, my friend can't hear my voice. Any suggestion about how to fix this? thanks :D
[Android Software Development] kluster1999:
Constant Phone Crash + No Service

Hello, thanks to the OP for this great guide. I ported the Desire S MIUI V4 using Deck's alpha 8 ICS as base to the EVO 4g.

The rom boots fine, but I constantly get, "Unfortunately, the process com.android.phone has stopped". If I keep pressing ok I can interact with the UI for a second between force closes.

On first boot I got a message saying, "Security has been denied superuser permissions". Do I need to delete superuser from the base rom so that it will not interfere with MIUI's Security app?

I also have no service. I tried the framework-res.apk tweak mentioned on page 7, but it did not work for me. :(

I have attached a logcat. Using Notepad++, please look at lines 465-473, 867, 1363-1381, 1475, 1479, 1583, and 1767-1785.

I WILL DONATE $10 to whomever helps me get this working!!!:D

Thanks
[Android Software Development] Mohanshbhr:
for superuser u can try this

http://xdaforums.com/showpost.php?p=23098432&postcount=2
[Android Software Development] karthiknr:
Worked for me. Using a zte blade.:)

Thanks a lot.:)
[Android Software Development] MaksMod:
Hello, proxuser, my Chinese, first, thanks for your guide post link

I use huawei u8800pro, i want to port miui v4 to my phone, i port it based on this ics http://xdaforums.com/showthread.php?t=1492957, this ics is based on AOSP, and i study your guide to do it, it's dosen't work, it's just see bootanimation, but didn't enter the system, Do you have some idea for it ?

Thanks. :)

based miui v4 : http://xdaforums.com/showthread.php?t=1433617

---------- Post added at 08:22 PM ---------- Previous post was at 08:21 PM ----------

Hello, proxuser, my Chinese, first, thanks for your guide post link

I use huawei u8800pro, i want to port miui v4 to my phone, i port it based on this ics http://xdaforums.com/showthread.php?t=1492957, this ics is based on AOSP, and i study your guide to do it, it's dosen't work, it's just see bootanimation, but didn't enter the system, Do you have some idea for it ?

Thanks. :)

based miui v4 : http://xdaforums.com/showthread.php?t=1433617
[Android Software Development] dyetheskin:
does the ics base have to be aosp? im trying to port for the rezound. rezound aosp roms dont exist yet but we do have ics sense roms.
[Android Software Development] dan-fish:
Miui is AOSP so you'll most likely need to use an AOSP ROM. Doesn't hurt to try though
[Android Software Development] brownmc77:
Cant get it to boot, not boot looping tho. Just stuck on bootscreen. Any idea's? HTC Evo.
[Android Software Development] spleef:
using mostly this guide and the numerous others on the xda i was able to port the miui for the atrix to the photon...... rom i made is damn stable only a few very small problems most of which have either already been fixed or figured out, can easily be a daily driver.... anyhow just wanted to say thanks and post my link and say that YES this works. i added a link to this thread in my rom thread

THANKS!!!!

spleef's MIUI/ICS for the motorola photon:

http://xdaforums.com/showthread.php?t=1536161
[Android Software Development] hemo1001:
Best guide ever .... finally i can port my own miui without using speed porting software ... thanks you very much
[Android Software Development] stenka85:
with the lastest miui 2.3.9 permission manager of miui with su, doesn't work.

Any solution?
[Android Software Development] ZduneX25:
Have you guys tried to port MIUIv4 to Xperia 2011 devices?? There is no MIUIv4 for any Xperia, so I dunno which MIUIv4 I should use to take necessary files and be able to move them to cm9 rom.
[Android Software Development] rukin5197:
Honestly I've been taking bits and pieces from various roms.

I just limited the roms to a few things: mine had to be mdpi, preferably armv6, and cdma,
[Android Software Development] ZduneX25:
I tried files from HTC and Samsung, HTC's stuck on kernel image, Samsung's stuck on bootanimation :p

Logcat: http://pastebin.com/P0mxmke9

___________

Sent form awesome Neo V
[Android Software Development] Huncriter:
yellowpage.db is in system/etc, i try to disable mobile data,but i have the same error... i've realized that the phone doesn't sound in pc speakers (signal interference) when turns on, but signal is ok , i cant send and recieve sms and make calls... really strange

so what base i should use? ,i use galaxy mini miui, i try to use nexus s as source but i have the icudt46l.dat missing error
[Android Software Development] Lens_flare:
after killing mobile data perform reboot, it should work.

Nexus S. Mostly iсu errors are about folders in system/framework like framework.jar.out(so apktool work).
[Android Software Development] Huncriter:
i reboot and still not working, i'm goona use galaxy nexus s

there's no folder on framework, but I did my zip smaller and now seems to work, i get a new error :p.
[Android Software Development] Lens_flare:
Galaxy nexus or Nexus S?

So have you deleted something?

Error is still the same-damn icu C exception..
[Android Software Development] iXanza:
Tried this on the i9100G using Galaxy Nexus as a base. it wont go pass the miui boot animation. How do I post a logcat when it's in this state?
[Android Software Development] v1r0x:
adb should work, so connect phone via usb and start ddms (in SDK-Folder/tools)
[Android Software Development] Huncriter:
Nexus S

yeap, i've deleted some wallpapers, clock gadget, maps.apk and videoeditor.apk
[Android Software Development] dhalham:
Has the bootloop and booting problems been resolved, if yes then how?
[Android Software Development] Lens_flare:
Have you ever tried to boot unmodified rom with just your base files replaced?

yes.

It is fully depends on your device ;)
[Android Software Development] v1r0x:
Ok, I was sure that I had posted this but apparently not^^

I have a strange problem with the miui cam.

If I start the app there is no preview. I have to take a picture to get a preview.

And also the bottom lines are weird.

Any ideas?
[Android Software Development] Huncriter:
wich are the base files? i replace system/apps system/framework libs... everething you said in first page...

are you sure that the problen isn't because i have arm6 processor and nexus S has Cortex-A8?
[Android Software Development] Lens_flare:
all except app,framework,media,fonts folders.

It's not my guide ;]

LG p500 and many other devices miui were ported from nexus S. It's just a base coz real CPU detecting lies on kernel and libs, maybe on core services like Dalvik too.

really don't know what's problem, then, for me this error was when I tried Sensation rom.
[Android Software Development] iXanza:
Logcat = http://pastebin.com/WJF81cxN

It boots now but phone calls dont work.

I never used logcats before is it supposed to be that long?
[Android Software Development] Lens_flare:
E/SqliteDatabaseCpp( 217): sqlite3_open_v2("/system/etc/yellowpage.db", &handle, 1, NULL) failed
E/SQLiteDatabase( 217): Failed to open the database. closing it.
E/SQLiteDatabase( 217): android.database.sqlite.SQLiteCantOpenDatabaseException: unable to open database file
E/SQLiteDatabase( 217): at android.database.sqlite.SQLiteDatabase.dbopen(Native Method)

you forgot yellowpage.db.

yes.
[Android Software Development] iXanza:
Hmm I had it but I had to manually change the permissions to RWXRWXRWX (777) for yellowpage and telocation. would I be able to do this in updater script?

btw is 755 enough or 777?
[Android Software Development] magemastrix:
I always got this error, I am using a already ported rom for atrix and adding language, tried the following

Did the recompiling using the frameworks from patchrom with no success

Downloaded a HTC rom and used the frameworks, this error too

Edited miui-framework-res/res/public.xml from 0x06060008 to 0x6060008.

The framework.jar is kanged, so I think I cannot decompile without error, but the files I got when I decompile there is an r$array.xml and on it the address is 0x6...

and on my public.xml from framework-miui-res is 0x06060008

E/AndroidRuntime(10999): *** FATAL EXCEPTION IN SYSTEM PROCESS: WindowManagerPolicy
E/AndroidRuntime(10999): android.content.res.Resources$NotFoundException: Resource ID #0x6060008
E/AndroidRuntime(10999): at android.content.res.Resources.getValue(Resources.java:1022)
E/AndroidRuntime(10999): at android.content.res.MiuiResources.getValue(MiuiResources.java:61)
E/AndroidRuntime(10999): at miui.util.ResourceMapper.resolveReference(ResourceMapper.java:9)
E/AndroidRuntime(10999): at miui.util.HapticFeedbackUtil.updateSettings(HapticFeedbackUtil.java:109)
E/AndroidRuntime(10999): at miui.util.HapticFeedbackUtil$SettingsObserver.observe(HapticFeedbackUtil.java:92)
E/AndroidRuntime(10999): at miui.util.HapticFeedbackUtil.<init>(HapticFeedbackUtil.java:75)
E/AndroidRuntime(10999): at com.android.internal.policy.impl.MiuiPhoneWindowManager.init(MiuiPhoneWindowManager.java:129)
E/AndroidRuntime(10999): at com.android.server.wm.WindowManagerService$Po
licyThread.run(WindowManagerService.java:733)
I/ServiceManager( 1387): service 'cpuinfo' died
I/ServiceManager( 1387): service 'permission' died
I/ServiceManager( 1387): service 'sensorservice' died
I/ServiceManager( 1387): service 'usagestats' died
I/ServiceManager( 1387): service 'telephony.registry' died
I/ServiceManager( 1387): service 'activity' died
I/ServiceManager( 1387): service 'meminfo' died
I/ServiceManager( 1387): service 'gfxinfo' died
I/ServiceManager( 1387): service 'package' died
I/ServiceManager( 1387): service 'batteryinfo' died
I/ServiceManager( 1387): service 'entropy' died
I/ServiceManager( 1387): service 'power' died
I/ServiceManager( 1387): service 'account' died
I/ServiceManager( 1387): service 'content' died
I/ServiceManager( 1387): service 'vibrator' died
I/ServiceManager( 1387): service 'battery' died
I/ServiceManager( 1387): service 'hardware' died
I/ServiceManager( 1387): service 'alarm' died
E/installd( 1397): eof
E/installd( 1397): failed to read size
I/installd( 1397): closing connection
[Android Software Development] Lens_flare:
755 should be enough,but it should be assigned already by chmod on system folder

what miui base are you using?

If you use nexus s and do a straight port like OP guide and in my post, you will get what you want. Believe me, it's easier than patchrom and tinkering with htc frameworks.
[Android Software Development] magemastrix:
I am using a an already ported rom for atrix, from miui.us and xda's member th3bill.

just decompiling, adding values-pt and recompiling.

will try with nexus S framework, thank you.
[Android Software Development] :
somebody that could please have a look at my logcat? i've been working on this rom all day and it seem's like i'm very close to a boot

http://pastebin.com/mjRq7hcJ
[Android Software Development] Lens_flare:
ah so you just translating it? Alright,

then only replace framework-miui-res.apk(hope it doesn't contain any mod) with miuiandroid's nexus S and add necessary lang.

7-14 19:29:01.696: W/dalvikvm(1126): VFY: unable to resolve static method 38853: Landroid/webkit/WebViewCore;.resumePriority ()V
07-14 19:29:01.696: D/dalvikvm(1126): VFY: replacing opcode 0x71 at 0x001b
07-14 19:29:01.706: I/dalvikvm(1126): Could not find method android.webkit.WebViewCore.resumePriority, referenced from method android.webkit.WebView.doFling

etc etc..

replace whole webview*.smali tree, should help.