yashsingh1/xdaforums huggingface dataset:
[Android Software Development] Slimegod:
trying to flash the miui nexus s to my Sprint s3. I would flash the port and it's as if I was on the previous rom. Changed everything, boot.img, build, framework, apps. And like even the build.prop, libs, etc but it still said the pervious build when I went into settings. Need help guys what am I doing wrong. I was told something was enabled in the framework of the Nexus S that prevents it from being ported. Anyone has heard that before? And if so how do I disable it?
[Android Software Development] fedevd:
Hold on, did you used Nexus S? MIUI v4 or v5? Based on what CM? 10 or 10.1?

Enviado desde mi C6602 mediante Tapatalk
[Android Software Development] Slimegod:
It's v5. As far as what CM, I'm trying to find out. Went to the Nexus S miui thread and they said they didn't know l didn't know so
[Android Software Development] fedevd:
E/JNIHelp ( 5785): Native registration unable to find class 'android/content/res/Configuration', aborting

Fix that and try..

Enviado desde mi C6603 mediante Tapatalk
[Android Software Development] Bordo_Bereli51:
fixed it already

but now stuck at

I/ServiceManager( 504): Waiting for service miui.shell...

I/ServiceManager( 504): Waiting for service miui.shell...

I/ServiceManager( 504): Waiting for service miui.shell...

I/ServiceManager( 504): Waiting for service miui.shell...

I/ServiceManager( 504): Waiting for service miui.shell...

E/ShellServiceJni( 504): Can't obtain ShellService

already added service shelld /system/xbin/shelld​

class main

into the init.rc and shelld already exist in xbin folder
[Android Software Development] Notorious:
Make sure you use the installd from miui its in system/bin
[Android Software Development] Slimegod:
Did a miui port a while back from AT&T to my Sprint s3. Everything booted fine but wasn't able to get service unless I was on Wi-Fi. I know the radio's are different, AT&T running gsm and Sprint cdma, how do I fix that to get service?
[Android Software Development] jing95916:
I port miui to 9305,but it FC with Dex cache directory isn't writable: /cache/dalvik-cache. How can I fix it. Do you know ?
[Android Software Development] ZduneX25:
What can be wrong if Data Monitor doubles real usage? For example if i lost 100mb browsing web it shows 200-300mb instead. 3th party data counters from google play are showing 100mb.
[Android Software Development] jing95916:
D/TelephonyManager( 2012): No /proc/cmdline exception=java.io.FileNotFoundException: /proc/cmdline: open failed: EACCES (Permission denied) D/TelephonyManager( 2012): /proc/cmdline=
[Android Software Development] jimbo77:
It's been a long time since i've tried porting MIUI. Anyway I moved from the i9300 to a Huawei Ascend P6 and gave it a shot since we have a CM stable version...

I've fixed a lot of issues but I'm stuck at the following:

F/SystemServer( 439): BOOT FAILURE starting Input Manager Service

F/SystemServer( 439): java.lang.NullPointerException

F/SystemServer( 439):	at android.provider.Settings$NameValueCache.getStringForUser(Settings.java:847)

F/SystemServer( 439):	at android.provider.Settings$Secure.getStringForUser(Settings.java:2893)

F/SystemServer( 439):	at com.android.server.InputMethodManagerService$InputMethodSettings.getSelectedInputMethod(InputMethodManagerService.java:3855)

F/SystemServer( 439):	at com.android.server.InputMethodManagerService.<init>(InputMethodManagerService.java:674)

F/SystemServer( 439):	at com.android.server.ServerThread.run(SystemServer.java:367)

F/SystemServer( 439): BOOT FAILURE making display ready

F/SystemServer( 439): java.lang.NullPointerException

F/SystemServer( 439):	at com.android.server.ServerThread.run(SystemServer.java:383)

Also I'm having this:

I/installd( 468): installd firing up

E/cutils ( 468): Failed to mkdir(/data/media/0): No such file or directory

E/installd( 468): Failed to setup media for user 0

E/installd( 468): Could not create directories; exiting.

Anyone can provide some assistance? Thanks!

EDIT: I should mention, I'm using CM 10.1 as Base and Porting from Galaxy Nexus (Maguro) MIUI V5.

Thanks for the help in advance!
[Android Software Development] Slimegod:
Were you able to get it to boot? Ive been trying to do the same port from the Nexus but stuck on the boot animation. Wasn't even able to get a log either.
[Android Software Development] jimbo77:
It boots but I can't get pass the boot animation, having that error. Based on [MENTION=3355080]datagutt[/MENTION] reply a couple of pages back I've sent a PM to our CM developer to check if SELINUX is enabled or not...
[Android Software Development] Slimegod:
Yeah it happens to me to think it might be to boot.img. Have to decompile it here's the link.

http://xdaforums.com/showthread.php?t=2319018. Gotta look for the init,rc files in base and port, that's where the bootpathclasses are and compare. Haven't had a chance to do it cause I been busy. Let me know if that works cause I been trying to port MIUI for the longest, send me a pm.
[Android Software Development] Notorious:
anyone know how to fix this

http://pastebin.com/f2qQGtce
[Android Software Development] fedevd:
SE Linux?

Booted or bootloop?

What rom as base and port base?

Enviado desde mi C6603 mediante Tapatalk
[Android Software Development] Notorious:
No selinux ,bootloop and cm base cm10.1.3 That a log from my Lewa OS port but I get the same error when I port MIUI
[Android Software Development] asianflavor:
Something messed up with ActivityManagerService? Found this in Google Git about Core Services. Don't know if this will help.
[Android Software Development] Notorious:
[MENTION=3130027]jimbo77[/MENTION] did you ever find a solution to your log?
[Android Software Development] jimbo77:
No, I haven't had time to keep up with the porting.

I'll have some spare time tomorrow. I'll see what I can do. I checked with our cm developer and SELINUX wasn't enabled. So I'll do all from 0 again
[Android Software Development] fedevd:
[MENTION=4229751]Notorious[/MENTION].. Wut device??

Enviado desde mi C6603 mediante Tapatalk
[Android Software Development] Notorious:
For my log I'm porting Lewa OS from i9300(Int S3) to D2spr(Sprint s3) and from Jimbos log I get that when porting from Maguro
[Android Software Development] _polimorph_:
I tried for ages to port to that version of CM. It's the CM10.1 stable one, isn't it? I had to choose another version of CM earlier than the ones with SElinux. You might also try a version of AOSP. We have the faryab's one and it's pretty awesome.
[Android Software Development] Notorious:
Yes its cm10.1.3 and Selinux isn't present in the rom. On my evo LTE it wasn't added until cm10.2
[Android Software Development] databits:
Hi, I just ported MIUI to our device but the com.android.phone is FC. Any fix/solution for this? Thanks in advance.
[Android Software Development] Notorious:
Log cat is needed
[Android Software Development] databits:
-Edit-

I can't delete this post. I'll find it out myself later as I can't attach more than 1mb.
[Android Software Development] Dom3616:
Logcat Errors

Can someone please help me with these logcat errors?

I'm trying to port MIUI to my Huawei Y201 PRO. Port ROM is from Huawei G300.

I guess the main problem is in the Android Runtime error. Please help me how to fix them. :(
[Android Software Development] _polimorph_:
Here's your error:

E/AndroidRuntime(3843): *** FATAL EXCEPTION IN SYSTEM PROCESS: WindowManager
E/AndroidRuntime(3843): java.lang.NoSuchMethodError: com.android.internal.policy.impl.MiuiPhoneWindowManager[COLOR="Red"].getPowerLongPress[/COLOR]

Search and diff MiuiPhoneWindowManager for missing methods like the one in red.
[Android Software Development] Dom3616:
I solved that problem, thanks though. ;)

However, sim-card is not working and in logcat, it shows clearly that the modem is not configured. Any idea how to fix this? :(

P.s: The baseband section in settings states Unknown as well.

---------- Post added at 07:55 PM ---------- Previous post was at 07:48 PM ----------
[Android Software Development] ZduneX25:
Coming miui's update brings fc in security center > cleaner:

any ideas?

i just want to mention that there is no fc in english or chinese, but if we add multilanf there is fc in other langs
[Android Software Development] ygorigor:
The problem it's comma 0,00 used for separating decimal numbers. Somewhere in framework comma is defined as separator for decimal numbers for languages other than english and chinese.

For chinese and english languages the separator is dot (.) so Cleaner not FC.

But I don't know where it's defined this separator in framework
[Android Software Development] ZduneX25:
[MENTION=2339654]ygorigor[/MENTION] yeah it's kind of stupid move do not you think?, lucky us: https://github.com/KDGDev/miui-v5-r...r-miuiandroid/issues/24#issuecomment-37016593
[Android Software Development] matrix0807:
i have some question:

my device is based on mediatek 6582 processor.

someone has already port lewa and miui.

in lewa, everything works, include gps, except cannot switch 3g in sim 2 (the phone is dual sim). tested with YGPS on engineer mode, there are name of chipset gps (mt6582_GPS something like that)

in MIUI, gps and switch 3G doesn't work. in YGPS on engineer mode, the chipset of gps is blank/unknown. it's like missing driver or something.

so, how to fix gps in MIUI? is there any file in lewa that can use in MIUI?

thx a lot :)
[Android Software Development] youngchaos:
Hello guys , here my problem , i would port from a miui rom for my ZP998 the NFC fuction of another MIUI ZP998 . I tell you why , the rom with NFC is pretty bugged while the ROM without NFC is not so i would just to port the NFC to the working Rom.

How to do this?
[Android Software Development] fedevd:
Remove the NFC app and nfc folder from the framework and test,, first without the app and after without the framework folder..

Enviado desde mi C6603 mediante Tapatalk
[Android Software Development] youngchaos:
No man i need to PORT NFC in my rom , not delete.. if i just copy the files i get Installation Aborted..
[Android Software Development] fedevd:
Sorry,, i missunderstood... What the CWM log says??

Enviado desde mi C6603 mediante Tapatalk
[Android Software Development] Anang_Galih:
Get symlink error:what:
[Android Software Development] fedevd:
Guys, can you help me here please?:

I/dalvikvm( 3825): Zip is good, but no classes.dex inside, and no .odex file in the same directory

W/PackageManager( 3825): Exception reading jar: /system/framework/framework-miui-res.apk

W/PackageManager( 3825): java.io.IOException: /system/framework/framework-miui-res.apk

W/PackageManager( 3825):	at dalvik.system.DexFile.isDexOptNeeded(Native Method)

W/PackageManager( 3825):	at com.android.server.pm.PackageManagerService.<init>(PackageManagerService.java)

W/PackageManager( 3825):	at com.android.server.pm.PackageManagerService.main(PackageManagerService.java)

W/PackageManager( 3825):	at com.android.server.ServerThread.initAndLoop(SystemServer.java)

W/PackageManager( 3825):	at com.android.server.SystemServer.main(SystemServer.java)

W/PackageManager( 3825):	at java.lang.reflect.Method.invokeNative(Native Method)

W/PackageManager( 3825):	at java.lang.reflect.Method.invoke(Method.java:515)

W/PackageManager( 3825):	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java)

W/PackageManager( 3825):	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java)

W/PackageManager( 3825):	at dalvik.system.NativeStart.main(Native Method)

I/PackageManager( 3825): /system/framework/framework-miui-res.apk changed; collecting certs
[Android Software Development] youngchaos:
I solved it , do you know what files are needed for porting Sim Pin Unlock? I have crash unlocking for sim pin...
[Android Software Development] mattblack85:
Will there be a new guid for miui v6 4.4.11?

I´m trying to port the nexus 7 (2013) miui rom to the LG gpad v500... Not working till now, stuck in bootloop. :eek:
[Android Software Development] fedevd:
Log?

[MENTION=1229779]mattblack85[/MENTION] Here you go: https://github.com/datagutt/Android-MIUI-Porting/blob/kitkat/hammerhead/prep_rom

Give a thanks to [MENTION=3355080]datagutt[/MENTION] for that..

Enviado desde mi C6603 mediante Tapatalk
[Android Software Development] mattblack85:
I used that script, changed it a little bit for Ubuntu. Unfortunately I can't make a log. Adb isn't working from boot.

http://xdaforums.com/showthread.php?p=51987437

Verstuurd vanaf mijn Nexus 5 met Tapatalk
[Android Software Development] fedevd:
Damn, my 3G sucks a lot.. Thougth that my answer was posted but it wasn't.. For sure you screw up some smalis, in your script you replace some smalis to be diffed later if i'm not wrong.. Do this, remove app, fonts, framework, media and priv-app, move the MIUI ones in it, then copy just the libs called miui, every of them (are like between 6 and 10 lib files) and xiaomi ones too, then just zip it and test it.. For sure adb will work.. Then just do logs and you will se what smalis needs to be patched..

Enviado desde mi C6603 mediante Tapatalk
[Android Software Development] UltraGamerHD:
I get this error When Replacing RIL in framework.jar and Phone app Force Closes!

FATAL EXCEPTION: main

E/AndroidRuntime( 1784): java.lang.RuntimeException: Unable to get provider com.android.phone.MSimIccProvider: java.lang.ClassNotFoundException: com.android.phone.MSimIccProvider

E/AndroidRuntime( 1784):	at android.app.ActivityThread.installProvider(ActivityThread.java:4563)

E/AndroidRuntime( 1784):	at android.app.ActivityThread.installContentProviders(ActivityThread.java:4190)

E/AndroidRuntime( 1784):	at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4132)

E/AndroidRuntime( 1784):	at android.app.ActivityThread.access$1300(ActivityThread.java:130)

E/AndroidRuntime( 1784):	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1255)

E/AndroidRuntime( 1784):	at android.os.Handler.dispatchMessage(Handler.java:99)

E/AndroidRuntime( 1784):	at android.os.Looper.loop(Looper.java:137)

E/AndroidRuntime( 1784):	at android.app.ActivityThread.main(ActivityThread.java:4745)

E/AndroidRuntime( 1784):	at java.lang.reflect.Method.invokeNative(Native Method)

E/AndroidRuntime( 1784):	at java.lang.reflect.Method.invoke(Method.java:511)

E/AndroidRuntime( 1784):	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)

E/AndroidRuntime( 1784):	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)

E/AndroidRuntime( 1784):	at dalvik.system.NativeStart.main(Native Method)

E/AndroidRuntime( 1784): Caused by: java.lang.ClassNotFoundException: com.android.phone.MSimIccProvider

E/AndroidRuntime( 1784):	at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:61)

E/AndroidRuntime( 1784):	at java.lang.ClassLoader.loadClass(ClassLoader.java:501)

E/AndroidRuntime( 1784):	at java.lang.ClassLoader.loadClass(ClassLoader.java:461)

E/AndroidRuntime( 1784):	at android.app.ActivityThread.installProvider(ActivityThread.java:4548)

E/AndroidRuntime( 1784):	... 12 more
[Android Software Development] fedevd:
More of that log will be helpfull.. Do:

adb logcat -c

and then just:

adb logcat >1.txt

and finish it when the log size are around 100 kb.. Then tou will have a more specific log, paste here or upload to pastebin.com and will be better mate..

Enviado desde mi C6603 mediante Tapatalk
[Android Software Development] UltraGamerHD:
I have uploaded the logcat as 2.txt.
[Android Software Development] fedevd:
You have a loooooooot if missing class files or methods.. Open that log with Notepad++, search 'could not find class' and you will see how many missing classes do you have and which class do you have to fix..

Enviado desde mi C6603 mediante Tapatalk
[Android Software Development] Slimegod:
I'm getting a "failed E: executing updater binary" when flashing a ROM. I'm using TWRP 2.7.0.0 any help.
[Android Software Development] fedevd:
Derped rom, download it again

Enviado desde mi C6603 mediante Tapatalk
[Android Software Development] Slimegod:
Its a ported ROM. From Nexus 4 to my Sprint s3.
[Android Software Development] Notorious:
Recovery is too new need to downgrade it or you can change the update-binary with cm11s. You can also use latest version of Philz recovery
[Android Software Development] Slimegod:
OK
[Android Software Development] UltraGamerHD:
Hey wrong log check 3.txt

I get Operator Name Unknown and No Signal but com.android.phone force closes like every 2 seconds.

BTW All I did was replace ril files with CM10 ones.

https://drive.google.com/file/d/0B73-53ZX-WVRNUxBMEk3cnN4Ums/edit?usp=sharing
[Android Software Development] damian01211:
Guys will it work for CM11 ? Also I cannot find MIUI Package anywhere.
[Android Software Development] Toni5830:
Ok, now it boots, let's see if I can solve this:

solved com.android.phone FC
[Android Software Development] Ozadroid:
ADB during boot

when i boot the phone, adb doesnt work initially. but after waiting for 2mins it shows up. how to enable adb instantly?

CM11.
[Android Software Development] Notorious:
How did you fix that security error?
[Android Software Development] Toni5830:
"Lmiui/security/securitymanager" error? (or similar, can't remember)

Actually I didn't solve it..kind of.. I had to remove the piece of code.. I don't have my PC here so I can't check exactly what I changed

Sent from Italy using Tapatalk
[Android Software Development] CosmicDan:
:: Fix mediascanner
copy /y base_miui\lib\libdrmframework_jni.so miui_port\system\lib\
copy /y base_miui\lib\libmedia_jni.so miui_port\system\lib\
copy /y base_miui\lib\libmtp.so miui_port\system\lib\
[Android Software Development] Alex93917:
Other problem : When i launch app which requiere Root permissions, she FC.

Why ?! :)
[Android Software Development] DJBhardwaj:
Fix Super User. Refer to 1st post.
[Android Software Development] v1r0x:
I have two questions and hope someone knows an answer. I've searched through the "whole" internet (google and xda :D) but couldn't find a solution.

1:

I've downloaded the new Google Translate 2.5 and want to use the camera.

But after hit on the cam icon the app FC with this:

could not dlopen libposteffect.so

and

08-11 04:37:27.199: E/AndroidRuntime(13249): FATAL EXCEPTION: main
08-11 04:37:27.199: E/AndroidRuntime(13249): java.lang.NoClassDefFoundError: [generic]
08-11 04:37:27.199: E/AndroidRuntime(13249):	at dalvik.system.NativeStart.main(Native Method)

2:

Someone using my port can't connect to his wifi.

He sent me a logcat (attached) but I couldn't find any problems :confused:
[Android Software Development] Alex93917:
No change with fix line. Always FC with app needed Root.
[Android Software Development] Lens_flare:
yah.. darn mythic lib.. hope it is located at gapps package.. a

miui rejected usage of gapps.

authentication is timed out. possibly wrong auth code ;]
[Android Software Development] utingbato:
hi alex :)

to op i tried to port miui for GALAXY W. we have miui 2.7.6 made by alex (thank to him)

but i want to port miui using the new cm9 alpha6 of arco as base and using miui of alex.. then i follow all the step on page 1.. now it wont boot only on bootanimation.. how can i fix?

thank you
[Android Software Development] DJBhardwaj:
Check the logcat
[Android Software Development] TMinh:
Hi. in my miui v4 port, as soon as i lock the device (by press lock on notification bar as well as power key or automatically lock), it crash to bootanimation and then back to lockscreen. can anyone know how to solve this??? thanks :D
[Android Software Development] Ozadroid:
Provide the logcat of the process.
[Android Software Development] TMinh:
Here is the logcat: http://pastebin.com/N9A23iZ4
[Android Software Development] Ozadroid:
here is the error!

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

E/AndroidRuntime( 4096): java.lang.NoSuchMethodError: com.android.server.PowerManagerService.nativeStartSurfaceFlingerAnimation

this error is described in 2nd post i think. look at it.!
[Android Software Development] TMinh:
Thank u. Now i know what cause the error. Gonna fix now :)
[Android Software Development] Hikari:
unfortunately, wont work!
[Android Software Development] Hikari:
anyone have an idea on this(bottom of keyboard)?
[Android Software Development] Lens_flare:
as you are using mdpi device, push keyboard from cm, it even the same so you won't loose miui xperience.
[Android Software Development] CosmicDan:
Worked for me, sorry to hear.
[Android Software Development] DJBhardwaj:
Posted this in proxuser's thread

If someone could please help?

CosmicDan?
[Android Software Development] CosmicDan:
APKTool bug. It's very difficult to edit later MIUI APK's because APKTool is so out of date. Try deleting all the "hugeui" folders (but make sure you never choose "Huge" font size in Display Settings).
[Android Software Development] DJBhardwaj:
Okay sure. I will try this too asap.
[Android Software Development] Notorious:
Yes that error
[Android Software Development] Ozadroid:
when i boot the phone, adb doesnt work initially. but after waiting for 2mins it shows up. how to enable adb instantly?

CM11.
[Android Software Development] Notorious:
Did you mod your default.prob in your boot.IMG by deleting ro.adb.secure line and changing ro. Secure to 0?
[Android Software Development] Ozadroid:
Yep
[Android Software Development] Toni5830:
Error:

Exception Ljava/lang/UnsatisfiedLinkError; thrown while initializing Lmiui/security/SecurityManager;

DO NOT DO THIS,

read below

I solved it decompiling framework_ext.jar and in smali/miui/security I changed SecurityManager.smali with another SecurityManager.smali I got from a previous version of Miui for my device

I'm attaching both files

After this I had a similar error about Lmiui/security which I solved in the same way
[Android Software Development] Slimegod:
What specific libs do you need when porting miui to make it boot?
[Android Software Development] Notorious:
A logcat will tell you what libs are needed if its not booting because of missing libs
[Android Software Development] Toni5830:
Please ignore my previous post.. In that way you'll only have lots o problems; instead copy libmiui_security.so and (particularly for that error) libsechook.so, which is called by Lmiui/security/SecurityManager, to your rom..

Rom boots but now I have "com.android.provision stopped working"; I can't go through setup wizard or enable debugging :mad:
[Android Software Development] Zehlek:
Will this guide work to port Miui Kitkat from Nexus 5 to Nexus 4?
[Android Software Development] Slimegod:
Been trying to port that to my Sprint s3 but it didn't boot. It should though. If you try and it boots let me know what libs you changed Can't get a log so I wouldn't even know but it should work. There's a link on the AT&T thread, 4.5.30, you can try that.
[Android Software Development] datagutt:
I don't remember seeing an provision error in my i9300 port (Look at my thread if you want to compare files).

I did get the securitymanager error though, removed a piece of code from it, but later found out i forgot to add libsechook. I believe this library handles root access.

So when i prevented MIUI from loading it, i broke root :P
[Android Software Development] Toni5830:
Try changing ro.build.type=user in build.prop to ro.build.type=eng

then adb should work

I don't know what it is used for, Titanium Backup worked for me without that lib, but I had several other problems (maybe I deleted too much code:/)
[Android Software Development] Slimegod:
Will try it and see. And if that doesn't work? Did everything possible but still run into that problem.

Edit: actually checked and it's the same as the build.porp I was able to get a log on which is actually for my phone and isn't a port.
[Android Software Development] Slimegod:
Got hung in waiting for device. Reinstalled drivers and everything. Don't know what else to do.
[Android Software Development] Notorious:
If you can't get a log even after you have edited the default.prob then your rom doesn't even boot to the point for the kernel to even load which indicates its completely goofed at a kernel level