• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root Miui on Sgh-T599n??

brandonabandon@beast:~/patchrom$ . build/envsetup.sh PATCHROM_BRANCH = kitkat - Pastebin.com <-miui compile error. local-zip-file := stockrom.zip local-out-zip-file := MIUI_Codina.zip local - Pastebin.com <-makefile. the build produces ~/apktool/framework/1-miui.apk 2.apk 3.apk 4.apk 5.apk 6.apk any suggestions?

got it building. no dice for slimrom. cm11 will decompile. someone point me to a good smali guide? no experience with smali :rolleyes:

edit-nm, i can smali. *yawn
 
  • Like
Reactions: Guggy
Upvote 0
logcat from build one-->brandonabandon@beast:~$ adb logcat --------- beginning of /dev/log/system I/au - Pastebin.com

edit. slimmed the apps-->http://pastebin.com/bcGRK352 build is 300+.
E/ServiceManager( 1665): add_service('miui.shell',0x8) uid=1000 - ALREADY REGISTERED, OVERRIDE
I/ServiceManager( 1665): service 'miui.shell' died

E/dalvikvm( 1674): JNI posting fatal error: Native registration unable to find class 'com/android/internal/os/RuntimeInit'; aborting...

D/dalvikvm( 2133): DexOpt: incorrect opt magic number (0xff ff ff ff)
D/dalvikvm( 2133): ODEX file is stale or bad; removing and retrying (/data/dalvik-cache/system@framework@framework2.jar@classes.dex)
D/dalvikvm( 2133): DexOpt: --- BEGIN 'framework2.jar' (bootstrap=1) ---
E/dalvikvm( 2221): Out-of-order method_idx: 0x3e89 then 0x3e89
E/dalvikvm( 2221): Trouble with item 2095 @ offset 0x3094d0
E/dalvikvm( 2221): Swap of section type 2006 failed
E/dalvikvm( 2221): ERROR: Byte swap + verify failed

E/dalvikvm( 2221): Optimization failed
W/dalvikvm( 2133): DexOpt: --- END 'framework2.jar' --- status=0xff00, process failed
E/dalvikvm( 2133): Unable to extract+optimize DEX from '/system/framework/framework2.jar'
D/dalvikvm( 2133): Unable to process classpath element '/system/framework/framework2.jar'

^focus. any suggestions?
 
Upvote 0
logcat from build one-->brandonabandon@beast:~$ adb logcat --------- beginning of /dev/log/system I/au - Pastebin.com

edit. slimmed the apps-->http://pastebin.com/bcGRK352 build is 300+.
E/ServiceManager( 1665): add_service('miui.shell',0x8) uid=1000 - ALREADY REGISTERED, OVERRIDE
I/ServiceManager( 1665): service 'miui.shell' died

E/dalvikvm( 1674): JNI posting fatal error: Native registration unable to find class 'com/android/internal/os/RuntimeInit'; aborting...

D/dalvikvm( 2133): DexOpt: incorrect opt magic number (0xff ff ff ff)
D/dalvikvm( 2133): ODEX file is stale or bad; removing and retrying (/data/dalvik-cache/system@framework@framework2.jar@classes.dex)
D/dalvikvm( 2133): DexOpt: --- BEGIN 'framework2.jar' (bootstrap=1) ---
E/dalvikvm( 2221): Out-of-order method_idx: 0x3e89 then 0x3e89
E/dalvikvm( 2221): Trouble with item 2095 @ offset 0x3094d0
E/dalvikvm( 2221): Swap of section type 2006 failed
E/dalvikvm( 2221): ERROR: Byte swap + verify failed

E/dalvikvm( 2221): Optimization failed
W/dalvikvm( 2133): DexOpt: --- END 'framework2.jar' --- status=0xff00, process failed
E/dalvikvm( 2133): Unable to extract+optimize DEX from '/system/framework/framework2.jar'
D/dalvikvm( 2133): Unable to process classpath element '/system/framework/framework2.jar'

^focus. any suggestions?

Try another smali. And baksmali it can't find your .Dex file inside the .jar file.
 
  • Like
Reactions: brandonabandon
Upvote 0
i sent the framework2 smali and rejects to the devs behind the miui kk rom for the moto g [Kitkat 4.4.4][PORT][WORKING][UNOFFICIAL][ST… | Moto G | XDA Forums. if scroll the thread 40-50 it appears they had the same exact problem, but nobody posted the actual solution. i ran the pac port through pr and the build was successful, but the logcat was identical. the f2.jar from other kk roms appear identical, including just a .dex file.:thinking: i ported some of the kk roms and the logcat error is libnativehelper problem and the usual media died. the ported roms load f2 no problem. any suggestions? im brand new to smali btw. the suggestion from the link was the glowpadview smali was the culprit. after patching and rebuilding the logcat read the same error.slim and carbon rom fail at make workspace. the first of the three build commands. im running the stock rom next.

edit: stockrom complete fail. unable to extract zip. omni?

Post me your full log cat. I'm sure its a missing switch or code. I'm not an expert with smali but I know my way around it.

I can't even setup to build a aosp ROM cause I am not wasting hours to download 10gb+ of code just for one device.
 
Upvote 0
Post me your full log cat. I'm sure its a missing switch or code. I'm not an expert with smali but I know my way around it.

I can't even setup to build a aosp ROM cause I am not wasting hours to download 10gb+ of code just for one device.

just ran omnirom through pr and the results are exactly the same. the logcat is identical. i am fully wiping between installs. brandonabandon@beast:~$ adb logcat --------- beginning of /dev/log/main I/DEBU - Pastebin.com <-full logcat. although the errors i posted earlier, are the only difference between mostly any 4.4.4 rom existing already. pr is a few apps and libs difference besides fw modification, the logcat would show more of a difference if f2 will load.:rolleyes:

edit: porting kk miui from other devices also errors at libnative.so and adb shell died. this logcat from porting, the libnative error is more specific

D/dalvikvm( 2364): Trying to load lib libjavacore.so 0x0
D/dalvikvm( 2364): Added shared lib libjavacore.so 0x0
D/dalvikvm( 2364): Trying to load lib libnativehelper.so 0x0
D/dalvikvm( 2364): Added shared lib libnativehelper.so 0x0
D/dalvikvm( 2364): No JNI_OnLoad found in libnativehelper.so 0x0, skipping init
E/dalvikvm( 2364): ERROR: couldn't find native method
E/dalvikvm( 2364): Requested: Landroid/content/res/AssetManager;.init:()V <---these
E/dalvikvm( 2364): Candidate: Landroid/content/res/AssetManager;.init:(Z)V <-----????
E/dalvikvm( 2364): JNI posting fatal error: RegisterNatives failed for 'android/content/res/AssetManager'; aborting...


edit: the moto g devs mention glowpadview.smali duplicate virtual method warning during build. i had the same warning but im not sure how to delete it. http://pastebin.com/cjPKHKDB <- glowpadview.smali
Ignoring duplicate virtual method definition: Lcom/android/internal/widget/multiwaveview/GlowPadView;->getTargetDrawables()Ljava/util/ArrayList;
 
Upvote 0
cams workin on miui jb. but multiple fc to android.process.media and android.keyboard. any suggestions?
 

Attachments

  • Screenshot_2014-10-24-01-51-13.jpg
    Screenshot_2014-10-24-01-51-13.jpg
    21 KB · Views: 102
  • Like
Reactions: dadcup and Guggy
Upvote 0
just ran omnirom through pr and the results are exactly the same. the logcat is identical. i am fully wiping between installs. brandonabandon@beast:~$ adb logcat --------- beginning of /dev/log/main I/DEBU - Pastebin.com <-full logcat. although the errors i posted earlier, are the only difference between mostly any 4.4.4 rom existing already. pr is a few apps and libs difference besides fw modification, the logcat would show more of a difference if f2 will load.:rolleyes:

edit: porting kk miui from other devices also errors at libnative.so and adb shell died. this logcat from porting, the libnative error is more specific

D/dalvikvm( 2364): Trying to load lib libjavacore.so 0x0
D/dalvikvm( 2364): Added shared lib libjavacore.so 0x0
D/dalvikvm( 2364): Trying to load lib libnativehelper.so 0x0
D/dalvikvm( 2364): Added shared lib libnativehelper.so 0x0
D/dalvikvm( 2364): No JNI_OnLoad found in libnativehelper.so 0x0, skipping init
E/dalvikvm( 2364): ERROR: couldn't find native method
E/dalvikvm( 2364): Requested: Landroid/content/res/AssetManager;.init:()V <---these
E/dalvikvm( 2364): Candidate: Landroid/content/res/AssetManager;.init:(Z)V <-----????
E/dalvikvm( 2364): JNI posting fatal error: RegisterNatives failed for 'android/content/res/AssetManager'; aborting...


edit: the moto g devs mention glowpadview.smali duplicate virtual method warning during build. i had the same warning but im not sure how to delete it. http://pastebin.com/cjPKHKDB <- glowpadview.smali
Ignoring duplicate virtual method definition: Lcom/android/internal/widget/multiwaveview/GlowPadView;->getTargetDrawables()Ljava/util/ArrayList;

You can try an ignore method inside the glow pad. Or find all the dependents on the glow pad view through each smali and remove them.
 
Upvote 0
hi Guy i'm trying to get this ROM because i like it too much (it cool as touchwiz) but i can't find it on 4shared please send it to me, i would try it on m'y phone
NB: you can pm me at napoly95@gmail.com
Please do not bump posts over 2+ years old.
If you need assistance with this rom please contact the OP of the thread or a member of the Exhibit Rooting community for help.
 
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones