[WIP]MIUI for Galaxy Grand


Jul 5, 2013
10
0
11
#1
Hey guys i'm working on a port of MIUI for galaxy grand using patchrom! I have fixed some smali's! Now getting this error while recompiling framework-miui-res.apk
Code:
>>> build out/framework-miui-res.apk...
/home/aditya/patchrom/tools/apktool --quiet d -f /home/aditya/patchrom/miui/HDPI/system/framework/framework-miui-res.apk out/framework-miui-res
ls: cannot access overlay/framework-miui-res/res/[^v]*: No such file or directory
ls: cannot access overlay/framework-miui-res/res/values*: No such file or directory
/home/aditya/patchrom/tools/apktool --quiet b out/framework-miui-res out/framework-miui-res.apk
Exception in thread "main" java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Boolean
    at brut.androlib.Androlib.build(Androlib.java:186)
    at brut.androlib.Androlib.build(Androlib.java:176)
    at brut.apktool.Main.cmdBuild(Main.java:228)
    at brut.apktool.Main.main(Main.java:79)
make: *** [out/framework-miui-res.apk] Error 1
aditya@aditya-Inspiron-5520:~/patchrom/stock$ [CODE]
Any one has solution for this??
P.S I have installed MICODE aapt already!
 

Acid

Scripting Ninja
Staff member
Aug 20, 2011
2,726
744
247
#3
Nope its not. Its not very popular device and not a top model to get official MIUI.
 
Jul 5, 2013
10
0
11
#4
Nope its not. Its not very popular device and not a top model to get official MIUI.
YES SIR IM WORKING ON IT NEED A HELP! I have build fullota the rom isn't booting here is logcat
Code:
D/dalvikvm(  132): DEX prep '/system/framework/bouncycastle.jar': unzip in 22ms, rewrite 361ms 
D/dalvikvm(  132): DexOpt: --- BEGIN 'ext.jar' (bootstrap=1) --- 
I/ServiceManager(  131): Waiting for service broadcom.tvservice... 
D/dalvikvm(  364): DexOpt: load 29ms, verify+opt 417ms, 1000660 bytes 
I/ServiceManager(  260): Waiting for service media.audio_policy... 
D/dalvikvm(  132): DexOpt: --- END 'ext.jar' (success) --- 
D/dalvikvm(  132): DEX prep '/system/framework/ext.jar': unzip in 42ms, rewrite 622ms 
I/ServiceManager(  134): Waiting for service broadcom.tvservice... 
D/dalvikvm(  132): DexOpt: --- BEGIN 'framework.jar' (bootstrap=1) --- 
I/ServiceManager(  131): Waiting for service broadcom.tvservice... 
E/dalvikvm(  365): Out-of-order entry types: 0x12fb then 0x12fb 
E/dalvikvm(  365): Trouble with item 611 @ offset 0x1592f0 
E/dalvikvm(  365): Cross-item verify of section type 1003 failed 
E/dalvikvm(  365): ERROR: Byte swap + verify failed 
E/dalvikvm(  365): Optimization failed 
W/dalvikvm(  132): DexOpt: --- END 'framework.jar' --- status=0xff00, process failed 
E/dalvikvm(  132): Unable to extract+optimize DEX from '/system/framework/framework.jar' 
D/dalvikvm(  132): Unable to process classpath element '/system/framework/framework.jar' 
I/ServiceManager(  260): Waiting for service media.audio_policy... 
I/ServiceManager(  134): Waiting for service broadcom.tvservice... 
D/dalvikvm(  132): DexOpt: --- BEGIN 'framework2.jar' (bootstrap=1) --- 
E/dalvikvm(  366): outsSize (6) > registersSize (3) 
E/dalvikvm(  366): Trouble with item 12754 @ offset 0x257dd0 
E/dalvikvm(  366): Swap of section type 2001 failed 
E/dalvikvm(  366): ERROR: Byte swap + verify failed 
E/dalvikvm(  366): Optimization failed 
W/dalvikvm(  132): DexOpt: --- END 'framework2.jar' --- status=0xff00, process failed 
E/dalvikvm(  132): Unable to extract+optimize DEX from '/system/framework/framework2.jar' 
D/dalvikvm(  132): Unable to process classpath element '/system/framework/framework2.jar' 
D/dalvikvm(  132): DexOpt: --- BEGIN 'android.policy.jar' (bootstrap=1) --- 
E/dalvikvm(  368): Out-of-order method_idx: 0x80c then 0x80c 
E/dalvikvm(  368): Trouble with item 116 @ offset 0x924f4 
E/dalvikvm(  368): Swap of section type 2006 failed 
E/dalvikvm(  368): ERROR: Byte swap + verify failed 
E/dalvikvm(  368): Optimization failed 
W/dalvikvm(  132): DexOpt: --- END 'android.policy.jar' --- status=0xff00, process failed 
E/dalvikvm(  132): Unable to extract+optimize DEX from '/system/framework/android.policy.jar' 
D/dalvikvm(  132): Unable to process classpath element '/system/framework/android.policy.jar' 
I/ServiceManager(  131): Waiting for service broadcom.tvservice... 
D/dalvikvm(  132): DexOpt: --- BEGIN 'services.jar' (bootstrap=1) --- 
E/dalvikvm(  374): outsSize (7) > registersSize (5) 
E/dalvikvm(  374): Trouble with item 10313 @ offset 0x1e77f0 
E/dalvikvm(  374): Swap of section type 2001 failed 
E/dalvikvm(  374): ERROR: Byte swap + verify failed 
E/dalvikvm(  374): Optimization failed 
W/dalvikvm(  132): DexOpt: --- END 'services.jar' --- status=0xff00, process failed 
E/dalvikvm(  132): Unable to extract+optimize DEX from '/system/framework/services.jar' 
D/dalvikvm(  132): Unable to process classpath element '/system/framework/services.jar' 
D/dalvikvm(  132): DexOpt: --- BEGIN 'apache-xml.jar' (bootstrap=1) --- 
I/ServiceManager(  260): Waiting for service media.audio_policy... 
I/ServiceManager(  134): Waiting for service broadcom.tvservice... 
D/dalvikvm(  375): DexOpt: load 31ms, verify+opt 306ms, 833364 bytes 
D/dalvikvm(  132): DexOpt: --- END 'apache-xml.jar' (success) --- 
D/dalvikvm(  132): DEX prep '/system/framework/apache-xml.jar': unzip in 32ms, rewrite 475ms 
D/dalvikvm(  132): DexOpt: --- BEGIN 'sec_edm.jar' (bootstrap=1) --- 
D/dalvikvm(  376): DexOpt: load 10ms, verify+opt 4ms, 401916 bytes 
D/dalvikvm(  132): DexOpt: --- END 'sec_edm.jar' (success) --- 
D/dalvikvm(  132): DEX prep '/system/framework/sec_edm.jar': unzip in 15ms, rewrite 111ms 
D/dalvikvm(  132): DexOpt: --- BEGIN 'seccamera.jar' (bootstrap=1) --- 
D/dalvikvm(  377): DexOpt: load 3ms, verify+opt 2ms, 119852 bytes 
D/dalvikvm(  132): DexOpt: --- END 'seccamera.jar' (success) --- 
D/dalvikvm(  132): DEX prep '/system/framework/seccamera.jar': unzip in 1ms, rewrite 40ms 
D/dalvikvm(  132): Trying to load lib libjavacore.so 0x0 
D/dalvikvm(  132): Added shared lib libjavacore.so 0x0 
D/dalvikvm(  132): Trying to load lib libnativehelper.so 0x0 
D/dalvikvm(  132): Added shared lib libnativehelper.so 0x0
I guess its error from my side? APKTOOL bug or anything other?? Thanks in advance! :)
 
Jul 26, 2013
2
0
11
#5
Nope its not. Its not very popular device and not a top model to get official MIUI.

Please at least consider a release for Galaxy grand. There are a lot of people in India and china who use it. May not be popular elsewhere, but surely popular here :)