micode / patchrom Goto Github PK
View Code? Open in Web Editor NEWUse disassemble/assemble technology to porting miui to misc android devices
Home Page: http://micode.net/forum-55-1.html
Use disassemble/assemble technology to porting miui to misc android devices
Home Page: http://micode.net/forum-55-1.html
Patchrom =========== Get Android SDK ---------------- In order to build patchrom project, you must have android sdk installed.(http://developer.android.com/sdk/installing.html) And add the sdk tools and platform-tools to PATH. vim .bashrc export PATH=$PATH:/home/xxx/android-sdk/tools:/home/xxx/anroid-sdk/platform-tools Getting Started --------------- To get started with MiCode/patchrom, you'll need to get familiar with [Git and Repo](http://source.android.com/download/using-repo). To initialize your local repository using the patchrom trees, use a command like this: mkdir patchrom cd patchrom repo init -u git://github.com/MiCode/patchrom.git -b marshmallow Then to sync up: repo sync Build -------- Assumed current directory is patchtom and you want to build the ROM for Nexus6P . build/envsetup.sh cd angler make fullota After build completed, there will be a fullota.zip under out directory, now you can flash this file into your device. Porting new device ------------------ Asssumed current directory is patchrom and you want to port miui to a new android device xblade Prerequiste: (1) Your device has root privilege or a rooted kernel(preferred) (2) Your device can flash ZIP from recovery(twrp recovery is preferred) Workflow: (1) connect your device to PC, ensure adb works (2) run the following commands . build/envsetup.sh mkdir xblade cd xblade adb reboot recovery ../tools/releasetools/ota_target_from_phone -r (this will generate a stockrom.zip, flash this zip in recovery mode to ensure it works) cp ../honor/makefile .(modify the local-zip-file to stockrom.zip, read the comments in makefile) make workspace make firstpatch (this will add the miui code into framework/android.policy/services.jar, resolve any conflict) make fullota Now you can get your own miui ROM, enjoy it!
is the preloaded-classes in framework.jar needed? Because the patchrom ignore it.
And why no signing for the modded jars.
Hi,
I keep getting these errors when building framework.res:
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)
at brut.androlib.Androlib.buildResources(Androlib.java:248)
at brut.androlib.Androlib.build(Androlib.java:171)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
It happens on both v4 and Gingerbread.
So, what gives??
Thanks in advance!
Gingerbread:
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, /var/folders/37/h0kwn8mj6kldypqmbxg1cpmm0000gn/T/APKTOOL3427029977752328793.tmp, -x, -I, /Users/Paul/apktool/framework/1.apk, -S, /Users/Paul/gingerbread/marvel/.build/framework-res/res, -M, /Users/Paul/gingerbread/marvel/.build/framework-res/AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)
at brut.androlib.Androlib.buildResources(Androlib.java:248)
at brut.androlib.Androlib.build(Androlib.java:171)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, /var/folders/37/h0kwn8mj6kldypqmbxg1cpmm0000gn/T/APKTOOL3427029977752328793.tmp, -x, -I, /Users/Paul/apktool/framework/1.apk, -S, /Users/Paul/gingerbread/marvel/.build/framework-res/res, -M, /Users/Paul/gingerbread/marvel/.build/framework-res/AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
v4:
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, /var/folders/37/h0kwn8mj6kldypqmbxg1cpmm0000gn/T/APKTOOL4568253920662917919.tmp, -x, -I, /Users/Paul/apktool/framework/1.apk, -S, /Users/Paul/patchrom/marvel/out/framework-res/res, -M, /Users/Paul/patchrom/marvel/out/framework-res/AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)
at brut.androlib.Androlib.buildResources(Androlib.java:248)
at brut.androlib.Androlib.build(Androlib.java:171)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, /var/folders/37/h0kwn8mj6kldypqmbxg1cpmm0000gn/T/APKTOOL4568253920662917919.tmp, -x, -I, /Users/Paul/apktool/framework/1.apk, -S, /Users/Paul/patchrom/marvel/out/framework-res/res, -M, /Users/Paul/patchrom/marvel/out/framework-res/AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
I am trying to build the ROM for lt18i
It has the official support. I downloaded the sources and when I run make fullota it always gives me the same error. I have not modified anything
Here is the full output of error which i get
build out/MediaProvider.apk...
/home/dds/miui/tools/apktool --quiet b out/MediaProvider out/MediaProvider.apk
<<< build out/MediaProvider.apk completed!
/home/dds/miui/tools/apktool --quiet d -f /home/dds/miui/miui/system/app/MiuiHome.apk out/MiuiHome
/home/dds/miui/tools/patch_miui_app.sh >/dev/null MiuiHome out/MiuiHome
build out/MiuiHome.apk...
/home/dds/miui/tools/apktool --quiet b out/MiuiHome out/MiuiHome.apk
invalid resource directory name: /home/dds/miui/lt18i/out/MiuiHome/res/values-w320dp-largeui-hdpi
invalid resource directory name: /home/dds/miui/lt18i/out/MiuiHome/res/values-w360dp-hugeui-hdpi
invalid resource directory name: /home/dds/miui/lt18i/out/MiuiHome/res/values-w360dp-largeui-hdpi
invalid resource directory name: /home/dds/miui/lt18i/out/MiuiHome/res/values-w360dp-hugeui-xhdpi
invalid resource directory name: /home/dds/miui/lt18i/out/MiuiHome/res/values-largeui-xhdpi
invalid resource directory name: /home/dds/miui/lt18i/out/MiuiHome/res/values-hugeui-xhdpi
invalid resource directory name: /home/dds/miui/lt18i/out/MiuiHome/res/drawable-hugeui-hdpi
invalid resource directory name: /home/dds/miui/lt18i/out/MiuiHome/res/values-w360dp-largeui-xhdpi
invalid resource directory name: /home/dds/miui/lt18i/out/MiuiHome/res/values-w320dp-hugeui-hdpi
invalid resource directory name: /home/dds/miui/lt18i/out/MiuiHome/res/values-largeui-hdpi
invalid resource directory name: /home/dds/miui/lt18i/out/MiuiHome/res/drawable-largeui-hdpi
invalid resource directory name: /home/dds/miui/lt18i/out/MiuiHome/res/values-hugeui-hdpi
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, /tmp/APKTOOL7470284248443911621.tmp, -I, /home/dds/apktool/framework/1.apk, -I, /home/dds/apktool/framework/6.apk, -S, /home/dds/miui/lt18i/out/MiuiHome/res, -M, /home/dds/miui/lt18i/out/MiuiHome/AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)
at brut.androlib.Androlib.buildResources(Androlib.java:248)
at brut.androlib.Androlib.build(Androlib.java:171)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, /tmp/APKTOOL7470284248443911621.tmp, -I, /home/dds/apktool/framework/1.apk, -I, /home/dds/apktool/framework/6.apk, -S, /home/dds/miui/lt18i/out/MiuiHome/res, -M, /home/dds/miui/lt18i/out/MiuiHome/AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
make: *** [out/MiuiHome.apk] Error 1
Actually I wanted to build for SK17i which has roms similar to LT18i so was trying to build first for this device
Can't build using "make fullota".. Always have this:
fede@fede-ubuntu:~/patchrom/adv$ make fullota
/home/fede/patchrom/build/util.mk:198: atención: se imponen comandos para el objetivo «stockrom.zip»
/home/fede/patchrom/build/porting.mk:346: atención: se ignoran las instrucciones viejas para el objetivo «stockrom.zip»
build out/framework-res.apk...
add miui overlay resources
WARING[CHECK]: out/framework-res/res/values-largeui-xhdpi : no such directory
WARING[CHECK]: out/framework-res/res/values-mcc460-mnc01 : no such directory
WARING[CHECK]: out/framework-res/res/values-mcc460-mnc01-zh-rCN : no such directory
WARING[CHECK]: out/framework-res/res/values-mcc460-mnc01-zh-rTW : no such directory
WARING[CHECK]: out/framework-res/res/values-mcc460-mnc03 : no such directory
WARING[CHECK]: out/framework-res/res/values-mcc460-mnc03-zh-rCN : no such directory
WARING[CHECK]: out/framework-res/res/values-mcc460-mnc03-zh-rTW : no such directory
/home/fede/patchrom/tools/remove_redef.py >/dev/null out/framework-res
/home/fede/patchrom/tools/apktool --quiet b out/framework-res out/framework-res.apk
/home/fede/patchrom/adv/out/framework-res/res/values/drawables.xml:221: error: Resource entry notification_bg is already defined.
res/drawable/notification_bg.xml:0: Originally defined here.
/home/fede/patchrom/adv/out/framework-res/res/values/drawables.xml:222: error: Resource entry notification_bg_low is already defined.
res/drawable/notification_bg_low.xml:0: Originally defined here.
aapt: warning: string 'app_killed_message' has no default translation in /home/fede/patchrom/adv/out/framework-res/res; found: cs da de el es hu it ja nl pt ro ru tr
aapt: warning: string 'global_action_choose_profile' has no default translation in /home/fede/patchrom/adv/out/framework-res/res; found: cs da de el es fr hu it ja nl pt ro ru tr
aapt: warning: string 'global_action_reboot' has no default translation in /home/fede/patchrom/adv/out/framework-res/res; found: cs da de el es fr hu it ja nl pt ro ru tr
aapt: warning: string 'global_action_screenshot' has no default translation in /home/fede/patchrom/adv/out/framework-res/res; found: cs da de el es fr hu it ja nl pt ru tr
aapt: warning: string 'global_actions_expanded_desktop_mode_off_status' has no default translation in /home/fede/patchrom/adv/out/framework-res/res; found: da de el es fr hu ja nl pt ro ru
aapt: warning: string 'global_actions_expanded_desktop_mode_on_status' has no default translation in /home/fede/patchrom/adv/out/framework-res/res; found: da de el es fr hu ja nl pt ro ru
aapt: warning: string 'global_actions_toggle_expanded_desktop_mode' has no default translation in /home/fede/patchrom/adv/out/framework-res/res; found: da de el es fr hu ja nl pt ro ru
aapt: warning: string 'lockscreen_discharging' has no default translation in /home/fede/patchrom/adv/out/framework-res/res; found: cs da de el es fr hu it ja nl pt ro ru tr
aapt: warning: string 'openurl' has no default translation in /home/fede/patchrom/adv/out/framework-res/res; found: cs da el es it ja pt tr
aapt: warning: string 'permdesc_preventpower' has no default translation in /home/fede/patchrom/adv/out/framework-res/res; found: cs da el es hu it ja nl pt tr
aapt: warning: string 'permdesc_sendMockSms' has no default translation in /home/fede/patchrom/adv/out/framework-res/res; found: cs da el es hu it ja nl pt ru tr
aapt: warning: string 'permlab_preventpower' has no default translation in /home/fede/patchrom/adv/out/framework-res/res; found: cs da el es hu it ja nl pt tr
aapt: warning: string 'permlab_sendMockSms' has no default translation in /home/fede/patchrom/adv/out/framework-res/res; found: cs da el es hu it ja nl pt ru tr
aapt: warning: string 'profileGroupCalendar' has no default translation in /home/fede/patchrom/adv/out/framework-res/res; found: cs da de el es fr hu it ja nl pt ro ru tr
aapt: warning: string 'profileGroupEmail' has no default translation in /home/fede/patchrom/adv/out/framework-res/res; found: cs da de el es fr hu it ja nl pt ro tr
aapt: warning: string 'profileGroupGmail' has no default translation in /home/fede/patchrom/adv/out/framework-res/res; found: cs da de el es fr hu it ja nl pt ro tr
aapt: warning: string 'profileGroupPhone' has no default translation in /home/fede/patchrom/adv/out/framework-res/res; found: cs da de el es fr hu it ja nl pt ro ru tr
aapt: warning: string 'profileGroupSMS' has no default translation in /home/fede/patchrom/adv/out/framework-res/res; found: cs da de el es fr hu it ja nl pt ro tr
aapt: warning: string 'profileNameDefault' has no default translation in /home/fede/patchrom/adv/out/framework-res/res; found: cs da de el es fr hu it ja nl pt ro ru tr
aapt: warning: string 'profileNameHome' has no default translation in /home/fede/patchrom/adv/out/framework-res/res; found: cs da de el es fr hu it ja nl pt ro ru tr
aapt: warning: string 'profileNameNight' has no default translation in /home/fede/patchrom/adv/out/framework-res/res; found: cs da de el es fr hu it ja nl pt ro ru tr
aapt: warning: string 'profileNameSilent' has no default translation in /home/fede/patchrom/adv/out/framework-res/res; found: cs da de el es fr hu it ja nl pt ro ru tr
aapt: warning: string 'profileNameWork' has no default translation in /home/fede/patchrom/adv/out/framework-res/res; found: cs da de el es fr hu it ja nl pt ro ru tr
aapt: warning: string 'reboot_bootloader' has no default translation in /home/fede/patchrom/adv/out/framework-res/res; found: cs da de el es fr hu it ja nl pt tr
aapt: warning: string 'reboot_bootmenu' has no default translation in /home/fede/patchrom/adv/out/framework-res/res; found: cs da de el es fr hu it ja nl pt tr
aapt: warning: string 'reboot_confirm' has no default translation in /home/fede/patchrom/adv/out/framework-res/res; found: cs da de el es fr hu it ja nl pt ro ru tr
aapt: warning: string 'reboot_download' has no default translation in /home/fede/patchrom/adv/out/framework-res/res; found: cs da de el es fr hu it ja nl pt tr
aapt: warning: string 'reboot_fastboot' has no default translation in /home/fede/patchrom/adv/out/framework-res/res; found: cs da de el es fr hu it ja nl pt tr
aapt: warning: string 'reboot_progress' has no default translation in /home/fede/patchrom/adv/out/framework-res/res; found: cs da de el es fr hu it ja nl pt ro ru tr
aapt: warning: string 'reboot_reboot' has no default translation in /home/fede/patchrom/adv/out/framework-res/res; found: cs da de el es fr hu it ja nl pt ro ru tr
aapt: warning: string 'reboot_recovery' has no default translation in /home/fede/patchrom/adv/out/framework-res/res; found: cs da de el es fr hu it ja nl pt ro tr
aapt: warning: string 'reboot_system' has no default translation in /home/fede/patchrom/adv/out/framework-res/res; found: cs da de el es fr hu it ja nl pt ro ru tr
aapt: warning: string 'storage_sd_dock_card' has no default translation in /home/fede/patchrom/adv/out/framework-res/res; found: cs da el es hu it ja nl pt tr
aapt: warning: string 'toast_rotation_locked' has no default translation in /home/fede/patchrom/adv/out/framework-res/res; found: cs da el es it ja nl pt ro tr
aapt: warning: string 'toast_rotation_unlocked' has no default translation in /home/fede/patchrom/adv/out/framework-res/res; found: cs da el es it ja nl pt ro tr
aapt: warning: string 'weather_0' has no default translation in /home/fede/patchrom/adv/out/framework-res/res; found: cs da de el es fr hu it ja nl pt ro ru tr
aapt: warning: string 'weather_1' has no default translation in /home/fede/patchrom/adv/out/framework-res/res; found: cs da de el es fr hu it ja nl pt ro ru tr
aapt: warning: string 'weather_10' has no default translation in /home/fede/patchrom/adv/out/framework-res/res; found: cs da de el es fr hu it ja nl pt ro ru tr
aapt: warning: string 'weather_11' has no default translation in /home/fede/patchrom/adv/out/framework-res/res; found: cs da de el es fr hu it ja nl pt ro ru tr
aapt: warning: string 'weather_12' has no default translation in /home/fede/patchrom/adv/out/framework-res/res; found: cs da de el es fr hu it ja nl pt ro ru tr
aapt: warning: string 'weather_13' has no default translation in /home/fede/patchrom/adv/out/framework-res/res; found: cs da de el es fr hu it ja nl pt ro ru tr
aapt: warning: string 'weather_14' has no default translation in /home/fede/patchrom/adv/out/framework-res/res; found: cs da de el es fr hu it ja nl pt ro ru tr
aapt: warning: string 'weather_15' has no default translation in /home/fede/patchrom/adv/out/framework-res/res; found: cs da de el es fr hu it ja nl pt ro ru tr
aapt: warning: string 'weather_16' has no default translation in /home/fede/patchrom/adv/out/framework-res/res; found: cs da de el es fr hu it ja nl pt ro ru tr
aapt: warning: string 'weather_17' has no default translation in /home/fede/patchrom/adv/out/framework-res/res; found: cs da de el es fr hu it ja nl pt ro ru tr
aapt: warning: string 'weather_18' has no default translation in /home/fede/patchrom/adv/out/framework-res/res; found: cs da de el es fr hu it ja nl pt ro ru tr
aapt: warning: string 'weather_19' has no default translation in /home/fede/patchrom/adv/out/framework-res/res; found: cs da de el es fr hu it ja nl pt ro ru tr
aapt: warning: string 'weather_2' has no default translation in /home/fede/patchrom/adv/out/framework-res/res; found: cs da de el es fr hu it ja nl pt ro ru tr
aapt: warning: string 'weather_20' has no default translation in /home/fede/patchrom/adv/out/framework-res/res; found: cs da de el es fr hu it ja nl pt ro ru tr
aapt: warning: string 'weather_21' has no default translation in /home/fede/patchrom/adv/out/framework-res/res; found: cs dException in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, /tmp/APKTOOL7964619052125650988.tmp, -x, -S, /home/fede/patchrom/adv/out/framework-res/res, -M, /home/fede/patchrom/adv/out/framework-res/AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)
at brut.androlib.Androlib.buildResources(Androlib.java:248)
at brut.androlib.Androlib.build(Androlib.java:171)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, /tmp/APKTOOL7964619052125650988.tmp, -x, -S, /home/fede/patchrom/adv/out/framework-res/res, -M, /home/fede/patchrom/adv/out/framework-res/AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
a de el es fr hu it ja nl pt ro ru tr
aapt: warning: string 'weather_22' has no default translation in /home/fede/patchrom/adv/out/framework-res/res; found: cs da de el es fr hu it ja nl pt ro ru tr
aapt: warning: string 'weather_23' has no default translation in /home/fede/patchrom/adv/out/framework-res/res; found: cs da de el es fr hu it ja nl pt ro ru tr
aapt: warning: string 'weather_24' has no default translation in /home/fede/patchrom/adv/out/framework-res/res; found: cs da de el es fr hu it ja nl pt ro ru tr
aapt: warning: string 'weather_25' has no default translation in /home/fede/patchrom/adv/out/framework-res/res; found: cs da de el es fr hu it ja nl pt ro ru tr
aapt: warning: string 'weather_26' has no default translation in /home/fede/patchrom/adv/out/framework-res/res; found: cs da de el es fr hu it ja nl pt ro ru tr
aapt: warning: string 'weather_27' has no default translation in /home/fede/patchrom/adv/out/framework-res/res; found: cs da de el es fr hu it ja nl pt ro ru tr
aapt: warning: string 'weather_28' has no default translation in /home/fede/patchrom/adv/out/framework-res/res; found: cs da de el es fr hu it ja nl pt ro ru tr
aapt: warning: string 'weather_29' has no default translation in /home/fede/patchrom/adv/out/framework-res/res; found: cs da de el es fr hu it ja nl pt ro ru tr
aapt: warning: string 'weather_3' has no default translation in /home/fede/patchrom/adv/out/framework-res/res; found: cs da de el es fr hu it ja nl pt ro ru tr
aapt: warning: string 'weather_30' has no default translation in /home/fede/patchrom/adv/out/framework-res/res; found: cs da de el es fr hu it ja nl pt ro ru tr
aapt: warning: string 'weather_31' has no default translation in /home/fede/patchrom/adv/out/framework-res/res; found: cs da de el es fr hu it ja nl pt ro ru tr
aapt: warning: string 'weather_32' has no default translation in /home/fede/patchrom/adv/out/framework-res/res; found: cs da de el es fr hu it ja nl pt ro ru tr
aapt: warning: string 'weather_3200' has no default translation in /home/fede/patchrom/adv/out/framework-res/res; found: de el es hu it ja pt ru tr
aapt: warning: string 'weather_33' has no default translation in /home/fede/patchrom/adv/out/framework-res/res; found: cs da de el es fr hu it ja nl pt ro ru tr
aapt: warning: string 'weather_34' has no default translation in /home/fede/patchrom/adv/out/framework-res/res; found: cs da de el es fr hu it ja nl pt ro ru tr
aapt: warning: string 'weather_35' has no default translation in /home/fede/patchrom/adv/out/framework-res/res; found: cs da de el es fr hu it ja nl pt ro ru tr
aapt: warning: string 'weather_36' has no default translation in /home/fede/patchrom/adv/out/framework-res/res; found: cs da de el es fr hu it ja nl pt ro ru tr
aapt: warning: string 'weather_37' has no default translation in /home/fede/patchrom/adv/out/framework-res/res; found: cs da de el es fr hu it ja nl pt ro ru tr
aapt: warning: string 'weather_38' has no default translation in /home/fede/patchrom/adv/out/framework-res/res; found: cs da de el es fr hu it ja nl pt ro ru tr
aapt: warning: string 'weather_39' has no default translation in /home/fede/patchrom/adv/out/framework-res/res; found: cs da de el es fr hu it ja nl pt ro ru tr
aapt: warning: string 'weather_4' has no default translation in /home/fede/patchrom/adv/out/framework-res/res; found: cs da de el es fr hu it ja nl pt ro ru tr
aapt: warning: string 'weather_40' has no default translation in /home/fede/patchrom/adv/out/framework-res/res; found: cs da de el es fr hu it ja nl pt ro ru tr
aapt: warning: string 'weather_41' has no default translation in /home/fede/patchrom/adv/out/framework-res/res; found: cs da de el es fr hu it ja nl pt ro ru tr
aapt: warning: string 'weather_42' has no default translation in /home/fede/patchrom/adv/out/framework-res/res; found: cs da de el es fr hu it ja nl pt ro ru tr
aapt: warning: string 'weather_43' has no default translation in /home/fede/patchrom/adv/out/framework-res/res; found: cs da de el es fr hu it ja nl pt ro ru tr
aapt: warning: string 'weather_44' has no default translation in /home/fede/patchrom/adv/out/framework-res/res; found: cs da de el es fr hu it ja nl pt ro ru tr
aapt: warning: string 'weather_45' has no default translation in /home/fede/patchrom/adv/out/framework-res/res; found: cs da de el es fr hu it ja nl pt ro ru tr
aapt: warning: string 'weather_46' has no default translation in /home/fede/patchrom/adv/out/framework-res/res; found: cs da de el es fr hu it ja nl pt ro ru tr
aapt: warning: string 'weather_47' has no default translation in /home/fede/patchrom/adv/out/framework-res/res; found: cs da de el es fr hu it ja nl pt ro ru tr
aapt: warning: string 'weather_5' has no default translation in /home/fede/patchrom/adv/out/framework-res/res; found: cs da de el es fr hu it ja nl pt ro ru tr
aapt: warning: string 'weather_6' has no default translation in /home/fede/patchrom/adv/out/framework-res/res; found: cs da de el es fr hu it ja nl pt ro ru tr
aapt: warning: string 'weather_7' has no default translation in /home/fede/patchrom/adv/out/framework-res/res; found: cs da de el es fr hu it ja nl pt ro ru tr
aapt: warning: string 'weather_8' has no default translation in /home/fede/patchrom/adv/out/framework-res/res; found: cs da de el es fr hu it ja nl pt ro ru tr
aapt: warning: string 'weather_9' has no default translation in /home/fede/patchrom/adv/out/framework-res/res; found: cs da de el es fr hu it ja nl pt ro ru tr
aapt: warning: string 'weather_E' has no default translation in /home/fede/patchrom/adv/out/framework-res/res; found: cs da de el es fr hu it ja nl pt ru tr
aapt: warning: string 'weather_N' has no default translation in /home/fede/patchrom/adv/out/framework-res/res; found: cs da de el es fr hu it ja nl pt ru tr
aapt: warning: string 'weather_NE' has no default translation in /home/fede/patchrom/adv/out/framework-res/res; found: cs da de el es fr hu it ja nl pt ru tr
aapt: warning: string 'weather_NW' has no default translation in /home/fede/patchrom/adv/out/framework-res/res; found: cs da de el es fr hu it ja nl pt ru tr
aapt: warning: string 'weather_S' has no default translation in /home/fede/patchrom/adv/out/framework-res/res; found: cs da de el es fr hu it ja nl pt ru tr
aapt: warning: string 'weather_SE' has no default translation in /home/fede/patchrom/adv/out/framework-res/res; found: cs da de el es fr hu it ja nl pt ru tr
aapt: warning: string 'weather_SW' has no default translation in /home/fede/patchrom/adv/out/framework-res/res; found: cs da de el es fr hu it ja nl pt ru tr
aapt: warning: string 'weather_W' has no default translation in /home/fede/patchrom/adv/out/framework-res/res; found: cs da de el es fr hu it ja nl pt ru tr
aapt: warning: string 'weather_last_sync_just_now' has no default translation in /home/fede/patchrom/adv/out/framework-res/res; found: cs da de el es fr hu it ja nl pt ro ru tr
aapt: warning: string 'weather_no_data' has no default translation in /home/fede/patchrom/adv/out/framework-res/res; found: cs da de el es fr hu it ja nl pt ro ru tr
aapt: warning: string 'weather_refreshing' has no default translation in /home/fede/patchrom/adv/out/framework-res/res; found: cs da de el es fr hu it ja nl pt ro ru tr
aapt: warning: string 'weather_tap_to_refresh' has no default translation in /home/fede/patchrom/adv/out/framework-res/res; found: cs da de el es fr hu it ja nl pt ro ru tr
aapt: warning: string 'wildcardProfile' has no default translation in /home/fede/patchrom/adv/out/framework-res/res; found: cs da de el es fr hu it ja nl pt ru tr
make: *** [out/framework-res.apk] Error 1
fede@fede-ubuntu:~/patchrom/adv$
I installed "aapt", "apktool" and "apktool.jar" of MIUI tools and still same error.. What can I do?
I tried to sync with repo but it stuck on 90%. I tried also a fresh install but there is the same problem. How i can fix it?thanks
I've worked out all of the smali errors and now I am stuck at the end with this error:
Sign target files
rewriting SYSTEM/build.prop:
Traceback (most recent call last):
File "/home/josh/patchrom/tools/releasetools/sign_target_files_apks", line 354, in
main(sys.argv[1:])
File "/home/josh/patchrom/tools/releasetools/sign_target_files_apks", line 341, in main
SignApks(input_zip, output_zip, apk_key_map, key_passwords)
File "/home/josh/patchrom/tools/releasetools/sign_target_files_apks", line 162, in SignApks
new_data = RewriteProps(data)
File "/home/josh/patchrom/tools/releasetools/sign_target_files_apks", line 194, in RewriteProps
assert len(pieces) == 5
AssertionError
Build full ota package: /home/josh/patchrom/rezound/out/fullota.zip
unzipping target target-files...
using device-specific extensions in .
Traceback (most recent call last):
File "/home/josh/patchrom/tools/releasetools/ota_from_target_files", line 846, in
main(sys.argv[1:])
File "/home/josh/patchrom/tools/releasetools/ota_from_target_files", line 814, in main
WriteFullOTAPackage(input_zip, output_zip)
File "/home/josh/patchrom/tools/releasetools/ota_from_target_files", line 370, in WriteFullOTAPackage
metadata = {"post-build": GetBuildProp("ro.build.fingerprint", input_zip),
File "/home/josh/patchrom/tools/releasetools/ota_from_target_files", line 472, in GetBuildProp
bp = z.read("SYSTEM/build.prop")
File "/usr/lib/python2.6/zipfile.py", line 834, in read
return self.open(name, "r", pwd).read()
File "/usr/lib/python2.6/zipfile.py", line 857, in open
zinfo = self.getinfo(name)
File "/usr/lib/python2.6/zipfile.py", line 824, in getinfo
'There is no item named %r in the archive' % name)
KeyError: "There is no item named 'SYSTEM/build.prop' in the archive"
make: *** [fullota] Error 1
Thank you for your help in advance.
I keep getting the below error during a pull from the Razr HD
uid, gid, mode = rows[length-3:] ValueError: need more than 1 value to unpack
Any thoughts why?
After a recent commit I noticed that the miui/src directory was removed. Unfortunately when I try to buildthe x515m or i9100 projects they die with the exact same error:
Install framework resources for apktool...
Sep 6, 2012 4:28:34 PM brut.androlib.res.AndrolibResources installFramework
INFO: Framework installed to: /root/apktool/framework/2.apk
Sep 6, 2012 4:28:34 PM brut.androlib.res.AndrolibResources installFramework
INFO: Framework installed to: /root/apktool/framework/5.apk
Sep 6, 2012 4:28:35 PM brut.androlib.res.AndrolibResources installFramework
INFO: Framework installed to: /root/apktool/framework/4.apk
Sep 6, 2012 4:28:35 PM brut.androlib.res.AndrolibResources installFramework
INFO: Framework installed to: /root/apktool/framework/3.apk
install framework-miui-res.apk
/mnt/micode/tools/apktool --verbose if /mnt/micode/miui/system/framework/framework-miui-res.apk
Sep 6, 2012 4:28:35 PM brut.androlib.res.AndrolibResources installFramework
INFO: Framework installed to: /root/apktool/framework/6.apk
unzip stockrom.zip "system/framework/.apk" -d out
Archive: stockrom.zip
inflating: out/system/framework/twframework-res.apk
inflating: out/system/framework/framework-res.apk
install out/system/framework/twframework-res.apk
Sep 6, 2012 4:28:36 PM brut.androlib.res.AndrolibResources installFramework
INFO: Framework installed to: /root/apktool/framework/2.apk
install out/system/framework/framework-res.apk
Sep 6, 2012 4:28:37 PM brut.androlib.res.AndrolibResources installFramework
INFO: Framework installed to: /root/apktool/framework/1.apk
<<< install framework resources completed!
build out/framework-res.apk...
add miui overlay resources
ls: cannot access /mnt/micode/miui/src/frameworks/miui/overlay/frameworks/base/core/res/res/[^v]: No such file or directory
ls: cannot access /mnt/micode/miui/src/frameworks/miui/overlay/frameworks/base/core/res/res/values_: No such file or directory
/mnt/micode/tools/remove_redef.py out/framework-res
/mnt/micode/tools/apktool --verbose b out/framework-res out/framework-res.apk
Sep 6, 2012 4:28:40 PM brut.androlib.Androlib buildSources
WARNING: Could not find sources
Sep 6, 2012 4:28:40 PM brut.androlib.Androlib buildResourcesFull
INFO: Checking whether resources has changed...
Sep 6, 2012 4:28:40 PM brut.androlib.Androlib buildResourcesFull
INFO: Building resources...
aapt: warning: string 'policydesc_allow_htmlemail' has no default translation in /mnt/micode/i9100/out/framework-res/res; found: en_US
aapt: warning: string 'policylab_allow_htmlemail' has no default translation in /mnt/micode/i9100/out/framework-res/res; found: en_US
aapt: warning: string 'wifi_p2p_pbc_go_negotiation_request_message' has no default translation in /mnt/micode/i9100/out/framework-res/res; found: en_GB
aapt: warning: string 'wifi_p2p_pin_display_message' has no default translation in /mnt/micode/i9100/out/framework-res/res; found: en_GB
aapt: warning: string 'wifi_p2p_pin_go_negotiation_request_message' has no default translation in /mnt/micode/i9100/out/framework-res/res; found: en_GB
aapt: warning: string 'zzz_skt_usim_not_used' has no default translation in /mnt/micode/i9100/out/framework-res/res; found: zh_HK zh_TW
Sep 6, 2012 4:28:53 PM brut.androlib.Androlib buildApk
INFO: Building apk file...
/mnt/micode/tools/apktool --verbose if out/framework-res.apk
Sep 6, 2012 4:28:56 PM brut.androlib.res.AndrolibResources installFramework
INFO: Framework installed to: /root/apktool/framework/1.apk
<<< build out/framework-res.apk completed!
build out/framework-miui-res.apk...
/mnt/micode/tools/apktool --verbose d -f /mnt/micode/miui/system/framework/framework-miui-res.apk out/framework-miui-res
Sep 6, 2012 4:28:56 PM brut.androlib.res.AndrolibResources loadMainPkg
INFO: Loading resource table...
Sep 6, 2012 4:28:57 PM brut.androlib.res.AndrolibResources loadMainPkg
INFO: Loaded.
Sep 6, 2012 4:28:57 PM brut.androlib.res.AndrolibResources loadFrameworkPkg
INFO: Loading resource table from file: /root/apktool/framework/1.apk
Sep 6, 2012 4:28:58 PM brut.androlib.res.AndrolibResources loadFrameworkPkg
INFO: Loaded.
Sep 6, 2012 4:28:58 PM brut.androlib.res.AndrolibResources decode
INFO: Decoding file-resources...
Sep 6, 2012 4:29:02 PM brut.androlib.res.AndrolibResources decode
INFO: Decoding values_/* XMLs...
Sep 6, 2012 4:29:02 PM brut.androlib.res.AndrolibResources decode
INFO: Done.
Sep 6, 2012 4:29:02 PM brut.androlib.Androlib decodeRawFiles
INFO: Copying assets and libs...
cp: cannot stat `/mnt/micode/miui/src/frameworks/miui/core/res/res': No such file or directory
make: *** [out/framework-miui-res.apk] Error 1
Are there any plans to put this back? Is the build process changing?
Thanks!
CMBaughman
Okay, so I've taken the file and it says resolve problems.
I see the
-dst_smali-orig
-dst_smali_patched
-new_smali
-old_smali
-reject
Do I apply the manual fixes to new_smali? Or to the files outside of /temp in the root of my porting phone.
Also, could you shed some light for a novice on how exactly to read the smali diff files? Do we want to match the asteriks (*) or the hyphens (-)?
EX:
--- PhoneWindowManager$18.smali 2012-03-19 22:43:58.951031278 -0500
---
**\* 42,48 ****
# virtual methods
.method public run()V
! .locals 5
.prologue
const/4 v4, 0x0
--- 42,48 ----
# virtual methods
.method public run()V
! .locals 6
.prologue
const/4 v4, 0x0```
So does this mean I go to line 42-48 and replace the .locals 6 to .locals 5?
File "/home/peaches/patchrom/tools/releasetools/sign_target_files_apks", line 354, in <module>
main(sys.argv[1:])
File "/home/peaches/patchrom/tools/releasetools/sign_target_files_apks", line 341, in main
SignApks(input_zip, output_zip, apk_key_map, key_passwords)
File "/home/peaches/patchrom/tools/releasetools/sign_target_files_apks", line 162, in SignApks
new_data = RewriteProps(data)
File "/home/peaches/patchrom/tools/releasetools/sign_target_files_apks", line 194, in RewriteProps
assert len(pieces) == 5
AssertionError
Build full ota package: /home/peaches/patchrom/m0/out/fullota.zip
unzipping target target-files...
using device-specific extensions in .
Traceback (most recent call last):
File "/home/peaches/patchrom/tools/releasetools/ota_from_target_files", line 848, in <module>
main(sys.argv[1:])
File "/home/peaches/patchrom/tools/releasetools/ota_from_target_files", line 816, in main
WriteFullOTAPackage(input_zip, output_zip)
File "/home/peaches/patchrom/tools/releasetools/ota_from_target_files", line 370, in WriteFullOTAPackage
metadata = {"post-build": GetBuildProp("ro.build.fingerprint", input_zip),
File "/home/peaches/patchrom/tools/releasetools/ota_from_target_files", line 472, in GetBuildProp
bp = z.read("SYSTEM/build.prop")
File "/usr/lib/python2.7/zipfile.py", line 869, in read
return self.open(name, "r", pwd).read()
File "/usr/lib/python2.7/zipfile.py", line 892, in open
zinfo = self.getinfo(name)
File "/usr/lib/python2.7/zipfile.py", line 859, in getinfo
'There is no item named %r in the archive' % name)
KeyError: "There is no item named 'SYSTEM/build.prop' in the archive"
My keys look fine though :/
ro.build.description=d2uc-user 4.0.4 IMM76D I747UCALEM,release-keys
ro.build.fingerprint=/samsung/d2uc/d2att:4.0.4/IMM76D/I747UCALEM:user/ota-rel-keys,release-keys
ro.build.characteristics=default
ro.build.display.id=cm_d2att-userdebug 4.0.4 IMM76L eng.jenkins.20120710.234202 test-keys
ro.build.version.incremental=fullota.peaches.20120711.105905
After running
"make firstpatch", all my jar files contain files like
PhoneWindow$DialogMenuCallback.smali-{line}.diff
for any file that was changed. I don't know if building these are ignored, but it doesn't seem right.
(Only seen in the new PatchRom). I deleted all and re-pulled and still duplicated the problem.
Trying to running repo sync and I get this error. Any ideas?
error: revision refs/heads/ics in MiCode/patchrom-gnote not found
the detail log is :
E/dalvikvm( 2009): Unable to extract+optimize DEX from '/system/framework/framework.jar'
E/JNIHelp ( 2009): Native registration unable to find class 'android/debug/JNITest', aborting
F/libc ( 2009): Fatal signal 11 (SIGSEGV) at 0xdeadbaad (code=1)
E/dalvikvm( 2077): LinearAlloc exceeded capacity (8388608), last=9520
E/dalvikvm( 2077): VM aborting
bcz the classes.dex file has method limitation of 65535,i divide the framework to framework.jar and framework2.jar and both were push into fullota.zip.And the checksum verifying of framework.jar is ok.It seem that the cache partition is too small.Need i have to increase it.
And help and suggestion will be appreciated!
edit:
after i resize the cache size. the "Unable to extract+optimize DEX from '/system/framework/framework.jar'" error disappear.
but "E/JNIHelp ( 2009): Native registration unable to find class 'android/debug/JNITest', aborting
F/libc ( 2009): Fatal signal 11 (SIGSEGV) at 0xdeadbaad (code=1)" still exist. I know the reason why JNITest cannot be found.
because i put the com.android.debug package in the framework2.jar. Can someone tell me how to let the system can invoke the
packages in the framework2.jar
This error apear after I updated my ubuntu and restarted
Sign target files
signing: Userbook.apk (/home/sijav/patchrom/build/security/platform)
Traceback (most recent call last):
File "/home/sijav/patchrom/tools/releasetools/sign_target_files_apks", line 354, in
main(sys.argv[1:])
File "/home/sijav/patchrom/tools/releasetools/sign_target_files_apks", line 341, in main
SignApks(input_zip, output_zip, apk_key_map, key_passwords)
File "/home/sijav/patchrom/tools/releasetools/sign_target_files_apks", line 153, in SignApks
signed_data = SignApk(data, key, key_passwords[key])
File "/home/sijav/patchrom/tools/releasetools/sign_target_files_apks", line 131, in SignApk
common.SignFile(unsigned.name, signed.name, keyname, pw, align=4)
File "/home/sijav/patchrom/tools/releasetools/common.py", line 374, in SignFile
p = Run(["zipalign", "-f", str(align), sign_name, output_name])
File "/home/sijav/patchrom/tools/releasetools/common.py", line 62, in Run
return subprocess.Popen(args, **kwargs)
File "/usr/lib/python2.7/subprocess.py", line 679, in init
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1249, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
I'm currently runnung 64bit ubuntu 12.04 LTS with 4 GB of ram and a Core 2 Quad CPU running at 2.66 Ghz,
I have installed pyton but the problem is still is!
any kind of help would be much appreciate.
thnx
ls -d overlay/framework-miui-res/res/[^v]*
; do\ #cp -r $dir out/framework-miui-res/res; \
# done
unzip >/dev/null ViciousMIUI-V4-toro-2.3.2-V2-signed.zip -d out/ZIP
/home/insanemod/patchrom/tools/apktool --quiet d -f /home/insanemod/patchrom/miui/system/framework/services.jar out/services_miui
Exception in thread "main" java.lang.RuntimeException: bad magic value: 64 65 78 0a 30 33 35 00
at org.jf.dexlib.DexFile.(DexFile.java:377)
at org.jf.dexlib.DexFile.(DexFile.java:274)
at brut.androlib.src.SmaliDecoder.decode(SmaliDecoder.java:44)
at brut.androlib.src.SmaliDecoder.decode(SmaliDecoder.java:33)
at brut.androlib.Androlib.decodeSourcesSmali(Androlib.java:68)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:85)
at brut.apktool.Main.cmdDecode(Main.java:128)
at brut.apktool.Main.main(Main.java:65)
make: *** [out/services_miui] Error 1
This is weird.
I've re-done the smali edits 4 times now. I've actually re-done the entire process 4 times because I thought I was making a mistake.
I/SystemServer( 1420): Alarm Manager
E/PhonePolicy( 1420): Could not preload class for phone policy: com.android.internal.policy.impl.PhoneWindow$ContextMenuCallback
I/SystemServer( 1420): Init Watchdog
I/SystemServer( 1420): Window Manager
W/dalvikvm( 1420): VFY: register1 v0 type 0, wanted 17
W/dalvikvm( 1420): VFY: rejecting opcode 0xd5 at 0x002f
W/dalvikvm( 1420): VFY: rejected Lcom/android/internal/policy/impl/PhoneWindowManager;.interceptKeyBeforeQueueing (Landroid/view/KeyEvent;IZ)I
W/dalvikvm( 1420): Verifier rejected class Lcom/android/internal/policy/impl/PhoneWindowManager;
W/dalvikvm( 1420): threadid=23: thread exiting with uncaught exception (group=0x409e81f8)
I/Process ( 1420): Sending signal. PID: 1420 SIG: 9
E/AndroidRuntime( 1420): *** FATAL EXCEPTION IN SYSTEM PROCESS: WindowManager
E/AndroidRuntime( 1420): java.lang.VerifyError: com/android/internal/policy/impl/PhoneWindowManager
E/AndroidRuntime( 1420): at com.android.internal.policy.impl.MiuiClassFactory.createPhoneWindowManager(MiuiClassFactory.java:32)
E/AndroidRuntime( 1420): at com.android.internal.policy.impl.Policy.makeNewWindowManager(Policy.java)
E/AndroidRuntime( 1420): at com.android.internal.policy.PolicyManager.makeNewWindowManager(PolicyManager.java:67)
E/AndroidRuntime( 1420): at com.android.server.wm.WindowManagerService.<init>(WindowManagerService.java:306)
E/AndroidRuntime( 1420): at com.android.server.wm.WindowManagerService.<init>(WindowManagerService.java:145)
E/AndroidRuntime( 1420): at com.android.server.wm.WindowManagerService$WMThread.run(WindowManagerService.java:689)
I/ServiceManager( 1303): service 'sensorservice' died
I/ServiceManager( 1303): service 'meminfo' died
I/ServiceManager( 1303): service 'activity' died
I/ServiceManager( 1303): service 'entropy' died
I/ServiceManager( 1303): service 'power' died
I/ServiceManager( 1303): service 'batteryinfo' died
I/ServiceManager( 1303): service 'usagestats' died
I/ServiceManager( 1303): service 'telephony.registry' died
I/ServiceManager( 1303): service 'package' died
Can not fix that. One of my smali edits told me to edit PhoneManager$18$1, but I only had PhoneManager$18. Could that be the problem? How do I do that smali edit, if I don't have that file?
I keep getting this error when trying to run make fullota:
/home/jr/stspatchrom/tools/apktool --quiet d -f /home/jr/stspatchrom/miui/system/app/MiuiSystemUI.apk out/MiuiSystemUI
/home/jr/stspatchrom/tools/patch_miui_app.sh >/dev/null MiuiSystemUI out/MiuiSystemUI
build out/MiuiSystemUI.apk...
cp: cannot stat `MiuiSystemUI': No such file or directory
make: *** [out/MiuiSystemUI.apk] Error 1
I noticed on the Makefile the following line. If I hash it out, then the rom builds, but how would I fix this to buildout and compile these files?
local-miui-modified-apps := MiuiSystemUI MiuiHome Mms Phone Settings
-Jr
when you had a call,you can't find the calllog,and can't write the data to contact2.db /calling/,so we can't get the calllog.please test it,and try to make it.
when i flush it to my device, it display this error and loop don't know how to fix tht, can anyone help me
W/dalvikvm( 297): VFY: copy1 v3<-v19 type=17 cat=3
W/dalvikvm( 297): VFY: rejecting opcode 0x08 at 0x0191
W/dalvikvm( 297): VFY: rejected Lcom/android/server/ConnectivityService;.startUsingNetworkFeature (ILjava/lang/String;Landroid/os/IBinder;)I
W/dalvikvm( 297): Verifier rejected class Lcom/android/server/ConnectivityService;
F/SystemServer( 297): BOOT FAILURE starting Connectivity Service
F/SystemServer( 297): java.lang.VerifyError: com/android/server/ConnectivityService
F/SystemServer( 297): at com.android.server.ServerThread.run(SystemServer.java:468)
W/SystemServer( 297): ***********************************************
E/AndroidRuntime( 297): Error reporting WTF
E/AndroidRuntime( 297): java.lang.NullPointerException
E/AndroidRuntime( 297): at com.android.server.am.ActivityManagerService$11.run(ActivityManagerService.java:7916)
E/AndroidRuntime( 297): at com.android.server.am.ActivityManagerService.addErrorToDropBox(ActivityManagerService.java:7938)
E/AndroidRuntime( 297): at com.android.server.am.ActivityManagerService.handleApplicationWtf(ActivityManagerService.java:7718)
E/AndroidRuntime( 297): at com.android.internal.os.RuntimeInit.wtf(RuntimeInit.java:347)
E/AndroidRuntime( 297): at android.util.Log$1.onTerribleFailure(Log.java:103)
E/AndroidRuntime( 297): at android.util.Log.wtf(Log.java:278)
E/AndroidRuntime( 297): at com.android.server.ServerThread.reportWtf(SystemServer.java:95)
E/AndroidRuntime( 297): at com.android.server.ServerThread.run(SystemServer.java:477)
I/SystemServer( 297): Throttle Service
I/SystemServer( 297): Mount Service
I/SystemServer( 297): Notification Manager
When ever I try to to use "make fullota" I get the below error.
/home/jr/tools/apktool --quiet d -f /home/jr/miui/system/framework/android.policy.jar out/android.policy_miui
build out/android.policy.jar...
/home/jr/tools/add_miui_smail.sh >/dev/null out/android.policy_miui out/android.policy
/home/jr/tools/apktool --quiet b out/android.policy out/android.policy.jar
Exception in thread "main" brut.androlib.AndrolibException: Could not smali file: java.io.FileInputStream@19e06de8
at brut.androlib.src.DexFileBuilder.addSmaliFile(DexFileBuilder.java:45)
at brut.androlib.src.DexFileBuilder.addSmaliFile(DexFileBuilder.java:33)
at brut.androlib.src.SmaliBuilder.buildFile(SmaliBuilder.java:64)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:48)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:35)
at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:222)
at brut.androlib.Androlib.buildSources(Androlib.java:179)
at brut.androlib.Androlib.build(Androlib.java:170)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
make: *** [out/android.policy.jar] Error 1
Can't seem to figure this out.
since the libskia.so is the one from MIUI PATCHROM project, so any idea for this issue?
in normal way, the skia should open the fonts under /system/fonts
D/dalvikvm( 1521): GC_EXPLICIT freed 26K, 68% free 663K/2048K, paused 0ms+0ms
D/dalvikvm( 1521): GC_EXPLICIT freed 28K, 67% free 689K/2048K, paused 0ms+0ms
D/skia ( 1521): ---- failed to open </data/fonts/Roboto-Regular.ttf> as a font
D/skia ( 1521): ---- failed to open </data/fonts/Roboto-Bold.ttf> as a font
D/skia ( 1521): ---- failed to open </data/fonts/Roboto-Italic.ttf> as a font
D/skia ( 1521): ---- failed to open </data/fonts/Roboto-BoldItalic.ttf> as a font
D/skia ( 1521): ---- failed to open </data/fonts/DroidSerif-Regular.ttf> as a font
D/skia ( 1521): ---- failed to open </data/fonts/DroidSerif-Bold.ttf> as a font
D/skia ( 1521): ---- failed to open </data/fonts/DroidSerif-Italic.ttf> as a font
D/skia ( 1521): ---- failed to open </data/fonts/DroidSerif-BoldItalic.ttf> as a font
D/skia ( 1521): ---- failed to open </data/fonts/DroidSans.ttf> as a font
D/skia ( 1521): ---- failed to open </data/fonts/DroidSans-Bold.ttf> as a font
D/skia ( 1521): ---- failed to open </data/fonts/DroidSansMono.ttf> as a font
D/skia ( 1521): ---- failed to open </data/fonts/DroidSansHebrew-Bold.ttf> as a font
F/libc ( 1521): Fatal signal 11 (SIGSEGV) at 0x00000004 (code=1)
I/SurfaceFlinger( 92): [SurfaceFlinger] frames:46, duration:1.001000, fps:45.938881
I/DEBUG ( 90): debuggerd: tmb file path:'/data/tombstones/tombstone_01'
I/DEBUG ( 90): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
I/DEBUG ( 90): Build fingerprint: 'alps/ckt75_cu_ics/ckt75_cu_ics:4.0.3/IML74K/1335360703:eng/test-keys'
I/DEBUG ( 90): pid: 1521, tid: 1521 >>> zygote <<<
I/DEBUG ( 90): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 00000004
I/DEBUG ( 90): r0 00000000 r1 00000000 r2 00000000 r3 00000000
I/DEBUG ( 90): r4 00000000 r5 40766764 r6 bea5f518 r7 00bb2368
I/DEBUG ( 90): r8 00000000 r9 00bb1828 10 40766748 fp 40766748
I/DEBUG ( 90): ip 000d5a3c sp bea5f4a8 lr 40690d34 pc 4068fbd8 cpsr 60000010
rrs@zan:/media/DATA/Android/patchrom/gn878$ make fullota
build out/framework.jar...
/media/DATA/Android/patchrom/tools/add_miui_smail.sh >/dev/null out/framework_miui out/framework
/media/DATA/Android/patchrom/tools/apktool --quiet b out/framework out/framework.jar
Exception in thread "main" org.jf.dexlib.Util.ExceptionWithContext: method index is too large.
at org.jf.dexlib.Util.ExceptionWithContext.withContext(ExceptionWithContext.java:54)
at org.jf.dexlib.Item.addExceptionContext(Item.java:176)
at org.jf.dexlib.Item.writeTo(Item.java:119)
at org.jf.dexlib.Section.writeTo(Section.java:119)
at org.jf.dexlib.DexFile.writeTo(DexFile.java:716)
at brut.androlib.src.DexFileBuilder.getAsByteArray(DexFileBuilder.java:75)
at brut.androlib.src.DexFileBuilder.writeTo(DexFileBuilder.java:58)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:50)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:35)
at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:222)
at brut.androlib.Androlib.buildSources(Androlib.java:179)
at brut.androlib.Androlib.build(Androlib.java:170)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: java.lang.RuntimeException: method index is too large.
at org.jf.dexlib.Code.Format.Instruction35c.writeInstruction(Instruction35c.java:102)
at org.jf.dexlib.Code.Instruction.write(Instruction.java:57)
at org.jf.dexlib.CodeItem.writeItem(CodeItem.java:258)
at org.jf.dexlib.Item.writeTo(Item.java:116)
... 12 more
code_item @0x1d78b4 (Ljavax/microedition/khronos/egl/EGLContext;->()V)
make: *** [out/framework.jar] Error 1
I am stuck at this step and am not sure how to proceed further.. :-(
Any help is appreciated
Runing swapon on MIUI V4 will got function not implemented issue:
swapon: /mnt/sdcard2/swapfile: Function not implemented
phone: HUAWEI u8860
os: MIUI V4
i'm trying to compile with XWLPG base (latest european firmware) but the rom only works with original miui boot.img (ZSLPG)
patchrom renames original zImage to boot.img (without changes) but doesnt work
should i make changes on it before use patchrom?
what can i do?
thanks!!!
Dear,
I've found the jellybean branch in tools, android, miui... projects, but when I repo init jellybean, it displayed no jellybean branch error.
So how can I get the jellybean branch?
Regards
/home/jared/Android/patchrom/tools/apktool --quiet b out/services out/services.jar
Exception in thread "main" brut.androlib.AndrolibException: Could not smali file: java.io.FileInputStream@8afcd0c
at brut.androlib.src.DexFileBuilder.addSmaliFile(DexFileBuilder.java:45)
at brut.androlib.src.DexFileBuilder.addSmaliFile(DexFileBuilder.java:33)
at brut.androlib.src.SmaliBuilder.buildFile(SmaliBuilder.java:64)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:48)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:35)
at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:222)
at brut.androlib.Androlib.buildSources(Androlib.java:179)
at brut.androlib.Androlib.build(Androlib.java:170)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
make: *** [out/services.jar] Error 1
jared@ubuntu:/Android/patchrom/d710$ ../tools/smali services.jar.out/Android/patchrom/d710$
jared@ubuntu:
Any help would be greatly appreciated!
Copy target file template into current working directory
Copy bootimage
Copy system dir
Process metadata
Recovery link files success
Compress the target_files dir into zip file
/home/peaches/patchrom/dhd/out/target_files
zip -q -r -y /home/peaches/patchrom/dhd/out/target_files.zip *
/home/peaches/patchrom/dhd
Sign target files
Traceback (most recent call last):
File "/home/peaches/patchrom/tools/releasetools/sign_target_files_apks", line 354, in
main(sys.argv[1:])
File "/home/peaches/patchrom/tools/releasetools/sign_target_files_apks", line 333, in main
misc_info = common.LoadInfoDict(input_zip)
File "/home/peaches/patchrom/tools/releasetools/common.py", line 144, in LoadInfoDict
d["fstab"] = LoadRecoveryFSTab(zip)
File "/home/peaches/patchrom/tools/releasetools/common.py", line 163, in LoadRecoveryFSTab
raise ValueError("malformed recovery.fstab line: "%s"" % (line,))
ValueError: malformed recovery.fstab line: "/cache ext4 /dev/block/mmcblk0p27 NULL ext3"
Build full ota package: /home/peaches/patchrom/dhd/out/fullota.zip
unzipping target target-files...
warning [/home/peaches/patchrom/dhd/out/target_files.zip]: zipfile is empty
ERROR: failed to unzip input target-files "/home/peaches/patchrom/dhd/out/target_files.zip"
make: *** [fullota] Error 1
My target_files.zip is like 102MB. This block of code
function sign_target_files {
echo "Sign target files"
$SIGN_TARGET_FILES_APKS -d $PORT_ROOT/build/security $TARGET_FILES_ZIP temp.zip
mv temp.zip $TARGET_FILES_ZIP
}
Takes that zip, messes it up and outputs a 22byte ZIP file. I did the commands as follows
source build/envsetup.sh
cd dhd
make workspace
make firstpath
-fix rejects
-make fullota
This EXACT process worked fine on the previous build, and only boot-looped with errors described in previous bug reports. Please advise.
I am trying to pull from a leak of ICS for the bionic and I got this error below. Any help would be most appreciated.
Compress the target_files dir into zip file
/home/junior/stspatchrom/bio
Build full ota package: /home/junior/stspatchrom/bio/stockrom.zip
unzipping target target-files...
using device-specific extensions in .
unable to load device-specific module; assuming none
Traceback (most recent call last):
File "/home/junior/stspatchrom/tools/releasetools/ota_from_target_files", line 846, in
main(sys.argv[1:])
File "/home/junior/stspatchrom/tools/releasetools/ota_from_target_files", line 814, in main
WriteFullOTAPackage(input_zip, output_zip)
File "/home/junior/stspatchrom/tools/releasetools/ota_from_target_files", line 398, in WriteFullOTAPackage
script.FormatPartition("/system")
File "/home/junior/stspatchrom/tools/releasetools/edify_generator.py", line 172, in FormatPartition
(p.fs_type, common.PARTITION_TYPES[p.fs_type],
KeyError: 'auto'
I'm using the MIUI patchrom to create MIUI for the ZTE Skate. I'm using my CM9 port as a base as we don't have manufacturer ICS. The problem is that, in the ROM, the lockscreen from CM9/AOSP comes up rather than the MIUI lockscreen. Also when I theme using the theme app, the lockscreen doesn't change - it remains on stock CM9/AOSP.
Great job so far guys though. Really happy that you released your sources!
Where in the hell is the makefile that has the following commands
make workspace and make firstpatch
This is my outout in the end of the build process:
unzipping target target-files...
using device-specific extensions in .
using prebuilt boot.img...
Traceback (most recent call last):
File "/root/patchrom/tools/releasetools/ota_from_target_files", line 846, in
main(sys.argv[1:])
File "/root/patchrom/tools/releasetools/ota_from_target_files", line 814, in main
WriteFullOTAPackage(input_zip, output_zip)
File "/root/patchrom/tools/releasetools/ota_from_target_files", line 430, in WriteFullOTAPackage
if boot_img and not device_specific.WriteRawImage("/boot", "boot.img"):
File "/root/patchrom/tools/releasetools/common.py", line 687, in WriteRawImage
return self._DoCall("WriteRawImage")
File "/root/patchrom/tools/releasetools/common.py", line 655, in DoCall
return getattr(self.module, function_name)(((self,) + args), *_kwargs)
File "./releasetools.py", line 6, in WriteRawImage
info.script.Mount("/cust")
File "/root/patchrom/tools/releasetools/edify_generator.py", line 138, in Mount
p = fstab[mount_point]
KeyError: '/cust'
What does this mean?? Don't know what to look for here.
I'm trying to setup a build environment on my linux machine using the instructions provided by the patchrom README. However, when I try to use "repo sync," I get an error saying "Fetching projects: 95% (19/20) fatal: remote error:
MiCode/patchrom_i9300 is not a valid repository name
Email [email protected] for help
error: Cannot fetch MiCode/patchrom_i9300"
Any idea what I can do to fix this?
Hey,
all paths are wrong!
root@gemini-server:/home/peaches/patchrom/honor# make fullota
make: *** No rule to make target /home/peaches/patchrom/miui/system/framework/framework.jar', needed by
apktool-if'. Stop.
root@gemini-server:/home/peaches/patchrom/honor#
Where are the *apks to install via apktool?
I followed the directions exactly, and add on "make fullota" it failed.
I have set everything up but when i type "repo sync" the following errors occur
"josh@josh:~/patchrom$ repo sync
fatal: '../MiCode/patchrom_android.git' does not appear to be a git repository
fatal: The remote end hung up unexpectedly
error: Cannot fetch MiCode/patchrom_android"
any help on this would be greatly appreciated.
Hey guys,
I'm having a funny problem in compiling miui framework with apktool,
here it is:
apktool b out/framework-miui-res out/framework-miui-res.apk
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: /home/sijav/Desktop/patchrom/nypone/out/framework-miui-res/res/drawable-largeui-hdpi
invalid resource directory name: /home/sijav/Desktop/patchrom/nypone/out/framework-miui-res/res/values-largeui-xhdpi
invalid resource directory name: /home/sijav/Desktop/patchrom/nypone/out/framework-miui-res/res/drawable-largeui-xhdpi
invalid resource directory name: /home/sijav/Desktop/patchrom/nypone/out/framework-miui-res/res/values-largeui-hdpi
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, /tmp/APKTOOL8916500702804855339.tmp, -x, -I, /home/sijav/apktool/framework/1.apk, -I, /home/sijav/apktool/framework/2.apk, -I, /home/sijav/apktool/framework/3.apk, -I, /home/sijav/apktool/framework/4.apk, -I, /home/sijav/apktool/framework/5.apk, -S, /home/sijav/Desktop/patchrom/nypone/out/framework-miui-res/res, -M, /home/sijav/Desktop/patchrom/nypone/out/framework-miui-res/AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)
at brut.androlib.Androlib.buildResources(Androlib.java:248)
at brut.androlib.Androlib.build(Androlib.java:171)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, /tmp/APKTOOL8916500702804855339.tmp, -x, -I, /home/sijav/apktool/framework/1.apk, -I, /home/sijav/apktool/framework/2.apk, -I, /home/sijav/apktool/framework/3.apk, -I, /home/sijav/apktool/framework/4.apk, -I, /home/sijav/apktool/framework/5.apk, -S, /home/sijav/Desktop/patchrom/nypone/out/framework-miui-res/res, -M, /home/sijav/Desktop/patchrom/nypone/out/framework-miui-res/AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more '''
I used both miui appt and googles!
and If I use the latest google apktool.jar I getting this error =>
Exception in thread "main" java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Boolean
Guys help me please!
zip -q -r -y /home/sijav/Desktop/patchrom/nypone/out/target_files.zip *
/home/sijav/Desktop/patchrom/nypone
Sign target files
NOT signing: AlipayMsp.apk
signing: Userbook.apk (/home/sijav/Desktop/patchrom/build/security/platform)
Could not create the Java virtual machine.ERROR: signapk.jar failed: return code 1
Build full ota package: /home/sijav/Desktop/patchrom/nypone/out/fullota.zip
unzipping target target-files...
Traceback (most recent call last):
File "/home/sijav/Desktop/patchrom/tools/releasetools/ota_from_target_files", line 889, in
main(sys.argv[1:])
File "/home/sijav/Desktop/patchrom/tools/releasetools/ota_from_target_files", line 841, in main
OPTIONS.info_dict = common.LoadInfoDict(input_zip)
File "/home/sijav/Desktop/patchrom/tools/releasetools/common.py", line 111, in LoadInfoDict
raise ValueError("can't find recovery API version in input target-files")
ValueError: can't find recovery API version in input target-files
make: *** [fullota] Error 1
there is recovery_api_version=3 in first line of META/misc_info.txt
not sure what should I do!
any advise?
When i make fullota, the target_files.zip suddenly goes from a healthy 700mb to 22bytes
Build full ota package: /root/android/patchrom/p768/out/fullota.zip
unzipping target target-files...
warning [/root/android/patchrom/p768/out/target_files.zip]: zipfile is empty
ERROR: failed to unzip input target-files "/root/android/patchrom/p768/out/target_files.zip"
make: *** [fullota] Error 1
Repo sync stops at 94%. I have tried clearing my files and re-downloading multiple times and it always gets to 94% and hangs. Any Ideas to help would be appreciated
I don't own this phone. So I'm doing an ICS MIUI v4 build for the supersonic or Evo 4G. Since I cannot use ota_from_phone, but I found ota_from_target_files.
I use the parameters
INPUT OUTPUT and got the error below.
peaches@turf:~/patchrom/supersonic$ ../tools/releasetools/ota_from_target_files aokp_supersonic_build-28.zip stockrom.zip unzipping target target-files... Traceback (most recent call last): File "../tools/releasetools/ota_from_target_files", line 846, in <module> main(sys.argv[1:]) File "../tools/releasetools/ota_from_target_files", line 798, in main OPTIONS.info_dict = common.LoadInfoDict(input_zip) File "/home/peaches/patchrom/tools/releasetools/common.py", line 111, in LoadInfoDict raise ValueError("can't find recovery API version in input target-files") ValueError: can't find recovery API version in input target-files
The ZIP is a regular CWM mod update.zip. Is this not what it takes? Any documention using this function?
/home/ilia/android/miui/tools/remove_redef.py >/dev/null out/framework-res
/home/ilia/android/miui/tools/apktool --quiet b out/framework-res out/framework-res.apk
/home/ilia/android/miui/tools/apktool --quiet if out/framework-res.apk
<<< build out/framework-res.apk completed!
build out/framework-miui-res.apk...
/home/ilia/android/miui/tools/apktool --quiet d -f /home/ilia/android/miui/miui/system/framework/framework-miui-res.apk out/framework-miui-res
ls: невозможно получить доступ к overlay/framework-miui-res/res/[^v]: Нет такого файла или каталога
/home/ilia/android/miui/tools/apktool --quiet b out/framework-miui-res out/framework-miui-res.apk
Exception in thread "main" brut.androlib.err.CantFindFrameworkResException
at brut.androlib.res.AndrolibResources.getFrameworkApk(AndrolibResources.java:366)
at brut.androlib.Androlib.parseUsesFramework(Androlib.java:400)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)
at brut.androlib.Androlib.buildResources(Androlib.java:248)
at brut.androlib.Androlib.build(Androlib.java:171)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
make: ** [out/framework-miui-res.apk] Ошибка 1
In what can be problem?
Sorry,my english is so poor,how can I upload the patchrom of my device ?Could you give some steps?
/media/1275edb8-8d81-4596-9873-b9c3b2012d84/miui/u970/out/target_files
zip -q -r -y /media/1275edb8-8d81-4596-9873-b9c3b2012d84/miui/u970/out/target_files.zip *
/media/1275edb8-8d81-4596-9873-b9c3b2012d84/miui/u970
Sign target files
signing: GameCenter.apk (/media/1275edb8-8d81-4596-9873-b9c3b2012d84/miui/build/security/platform)
Traceback (most recent call last):
File "/media/1275edb8-8d81-4596-9873-b9c3b2012d84/miui/tools/releasetools/sign_target_files_apks", line 354, in
main(sys.argv[1:])
File "/media/1275edb8-8d81-4596-9873-b9c3b2012d84/miui/tools/releasetools/sign_target_files_apks", line 341, in main
SignApks(input_zip, output_zip, apk_key_map, key_passwords)
File "/media/1275edb8-8d81-4596-9873-b9c3b2012d84/miui/tools/releasetools/sign_target_files_apks", line 153, in SignApks
signed_data = SignApk(data, key, key_passwords[key])
File "/media/1275edb8-8d81-4596-9873-b9c3b2012d84/miui/tools/releasetools/sign_target_files_apks", line 131, in SignApk
common.SignFile(unsigned.name, signed.name, keyname, pw, align=4)
File "/media/1275edb8-8d81-4596-9873-b9c3b2012d84/miui/tools/releasetools/common.py", line 374, in SignFile
p = Run(["zipalign", "-f", str(align), sign_name, output_name])
File "/media/1275edb8-8d81-4596-9873-b9c3b2012d84/miui/tools/releasetools/common.py", line 62, in Run
return subprocess.Popen(args, *_kwargs)
File "/usr/lib/python2.7/subprocess.py", line 679, in init
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1249, in execute_child
raise child_exception
OSError: [Errno 13] Permission denied
Build full ota package: /media/1275edb8-8d81-4596-9873-b9c3b2012d84/miui/u970/out/fullota.zip
unzipping target target-files...
Traceback (most recent call last):
File "/media/1275edb8-8d81-4596-9873-b9c3b2012d84/miui/tools/releasetools/ota_from_target_files", line 876, in
main(sys.argv[1:])
File "/media/1275edb8-8d81-4596-9873-b9c3b2012d84/miui/tools/releasetools/ota_from_target_files", line 828, in main
OPTIONS.info_dict = common.LoadInfoDict(input_zip)
File "/media/1275edb8-8d81-4596-9873-b9c3b2012d84/miui/tools/releasetools/common.py", line 111, in LoadInfoDict
raise ValueError("can't find recovery API version in input target-files")
ValueError: can't find recovery API version in input target-files
make: ** [fullota] 错误 1
This is wrong, please help solve it, thank you!!!
having trouble with making the services.jar build, something to do with the smali
/home/josh/patchrom/tools/apktool --quiet b out/services out/services.jar
Exception in thread "main" brut.androlib.AndrolibException: Could not smali file: java.io.FileInputStream@d3bef50
at brut.androlib.src.DexFileBuilder.addSmaliFile(DexFileBuilder.java:45)
at brut.androlib.src.DexFileBuilder.addSmaliFile(DexFileBuilder.java:33)
at brut.androlib.src.SmaliBuilder.buildFile(SmaliBuilder.java:64)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:48)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:35)
at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:222)
at brut.androlib.Androlib.buildSources(Androlib.java:179)
at brut.androlib.Androlib.build(Androlib.java:170)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
make: *** [out/services.jar] Error 1
If someone can point me in the right direction to fix this, it would be appreciated greatly.
fede@fede-ubuntu:~/patchrom/adv$ make workspace
Install framework resources for apktool...
install framework-miui-res.apk
/home/fede/patchrom/tools/apktool --quiet if /home/fede/patchrom/miui/HDPI/system/framework/framework-miui-res.apk
/home/fede/patchrom/tools/apktool --quiet if /home/fede/patchrom/miui/HDPI/system/framework/framework-res.apk miui
unzip >/dev/null stockrom.zip "system/framework/.apk" -d out
replace out/system/framework/framework-res.apk? [y]es, [n]o, [A]ll, [N]one, [r]ename: A
install out/system/framework/framework-res.apk
<<< install framework resources completed!
unzip >/dev/null stockrom.zip system/framework/services.jar -d out
/home/fede/patchrom/tools/apktool --quiet d -f out/system/framework/services.jar services.jar.out
unzip >/dev/null stockrom.zip system/framework/android.policy.jar -d out
/home/fede/patchrom/tools/apktool --quiet d -f out/system/framework/android.policy.jar android.policy.jar.out
unzip >/dev/null stockrom.zip system/framework/framework.jar -d out
/home/fede/patchrom/tools/apktool --quiet d -f out/system/framework/framework.jar framework.jar.out
unzip >/dev/null stockrom.zip system/framework/framework2.jar -d out
caution: filename not matched: system/framework/framework2.jar
make: ** [framework2.jar.out] Error 11
fede@fede-ubuntu:~/patchrom/adv$
HELP??
I got 2 issues - adding overlays and signing the apks
I'm using ubuntu 11.10 and working on 4.0.4 base.
1st Issue:
build out/framework-res.apk...
add miui overlay resources
/media/DATA/patchrom/tools/remove_redef.py >/dev/null out/framework-res
/media/DATA/patchrom/tools/apktool --quiet b out/framework-res out/framework-res.apk
/media/DATA/patchrom/tools/apktool --quiet if out/framework-res.apk
<<< build out/framework-res.apk completed!
build out/framework-miui-res.apk...
/media/DATA/patchrom/tools/apktool --quiet d -f /media/DATA/patchrom/miui/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
/media/DATA/patchrom/tools/apktool --quiet b out/framework-miui-res out/framework-miui-res.apk
<<< build out/framework-miui-res.apk completed!
2nd issue:
remove all unnecessary apks from original ZIP file...
<<< remove done!
/media/DATA/patchrom/tools/sign.sh >/dev/null sign.zip out/ZIP
/media/DATA/patchrom/tools/sign.sh: line 47: zipalign: command not found
mv: cannot execute stat() on 'out/ZIP/system/app/Exchange.apk.signed.aligned': No such file or directory
/media/DATA/patchrom/tools/sign.sh: line 47: zipalign: command not found
mv: cannot execute stat() on 'out/ZIP/system/app/MediaProvider.apk.signed.aligned': No such file or directory
/media/DATA/patchrom/tools/sign.sh: line 47: zipalign: command not found
... And then a lot more of these..
What am i missing?
This looks like a python error but I thought of checking here first.
There's one more exception in the logs:
Traceback (most recent call last):
File "/media/DATA/Android/patchrom/tools/releasetools/ota_from_target_files", line 889, in
I'm not sure what this is about.
Run getfilesysteminfo and recoverylink.py to recover symlink
Recovery link files success
Build apkcerts.txt
remote object '/data/system/packages.xml' does not exist
Error: /media/DATA/Android/patchrom/gn878/out/target_files/packages.xml doesn't exist or isn't a vaild xml file
rm: cannot remove ‘/media/DATA/Android/patchrom/gn878/out/target_files/packages.xml’: No such file or directory
Generate metadata used to build target files...
Compress the target_files dir into zip file
/media/DATA/Android/patchrom/gn878
Build full ota package: /media/DATA/Android/patchrom/gn878/stockrom.zip
Traceback (most recent call last):
File "/media/DATA/Android/patchrom/tools/releasetools/ota_from_target_files", line 889, in
unzipping target target-files...
using device-specific extensions in .
unable to load device-specific module; assuming none
using prebuilt boot.img...
main(sys.argv[1:])
File "/media/DATA/Android/patchrom/tools/releasetools/ota_from_target_files", line 857, in main
WriteFullOTAPackage(input_zip, output_zip)
File "/media/DATA/Android/patchrom/tools/releasetools/ota_from_target_files", line 440, in WriteFullOTAPackage
common.ZipWriteStr(output_zip, "boot.img", boot_img.data)
File "/media/DATA/Android/patchrom/tools/releasetools/common.py", line 618, in ZipWriteStr
zip.writestr(zinfo, data)
File "/usr/lib/python2.7/zipfile.py", line 1218, in writestr
self._writecheck(zinfo)
File "/usr/lib/python2.7/zipfile.py", line 1102, in _writecheck
raise LargeZipFile("Filesize would require ZIP64 extensions")
zipfile.LargeZipFile: Filesize would require ZIP64 extensions
I am trying to build MIUI for the RAZR HD Developer edition (unlocked version) but, following the steps, I try to use "../tools/releasetools/ota_target_from_phone - r," but it is not working. First it was saying that it could not find ota_from_target_files so I changed the line OTA_FROM_TARGET_FILES=$TOOL_DIR/releasetools/ota_from_target_files to
OTA_FROM_TARGET_FILES=../tools/releasetools/ota_from_target_files
and actually found the file but, after running the command again, it said that there was a "key error." Here is the output after the error:
Build full ota package: /home/jmoney4769/patchrom/vanquish/stockrom.zip
Traceback (most recent call last):
File "../tools/releasetools/ota_from_target_files", line 76, in
import common
File "/home/jmoney4769/patchrom/tools/releasetools/common.py", line 42, in
OPTIONS.search_path = os.path.join(os.environ["PORT_ROOT"], "tools");
File "/usr/lib/python2.7/UserDict.py", line 23, in getitem
raise KeyError(key)
KeyError: 'PORT_ROOT'
What can I do to make this work? If it makes a difference, there were also a couple errors that occurred:
Run getfilesysteminfo to build filesystem_config.txt
cannot stat '/tools/releasetools/getfilesysteminfo': No such file or directory
chmod: /system/xbin/getfilesysteminfo: No such file or directory
../tools/releasetools/ota_target_from_phone: line 176: /home/jmoney4769/patchrom/vanquish/out/target_files/META/filesystem_config.txt: No such file or directory
cat: /home/jmoney4769/patchrom/vanquish/out/target_files/META/filesystem_config.txt: No such file or directory
../tools/releasetools/ota_target_from_phone: line 187: /home/jmoney4769/patchrom/vanquish/out/target_files/META/filesystem_config.txt: No such file or directory
cat: /home/jmoney4769/patchrom/vanquish/out/target_files/META/tmp.txt: No such file or directory
rm: cannot remove /home/jmoney4769/patchrom/vanquish/out/target_files/META/tmp.txt': No such file or directory
Run getfilesysteminfo and recoverylink.py to recover symlink
python: can't open file '/tools/releasetools/recoverylink.py': [Errno 2] No such file or directory
rm: can't remove '/system/xbin/getfilesysteminfo': No such file or directory
Build apkcerts.txt
2050 KB/s (216682 bytes in 0.103s)
python: can't open file '/tools/apkcerts.py': [Errno 2] No such file or directory
../tools/releasetools/ota_target_from_phone: line 163: /home/jmoney4769/patchrom/vanquish/out/target_files/META/apkcerts.txt: No such file or directory
../tools/releasetools/ota_target_from_phone: line 165: /home/jmoney4769/patchrom/vanquish/out/target_files/META/temp.txt: No such file or directory
cat: /home/jmoney4769/patchrom/vanquish/out/target_files/META/apkcerts.txt: No such file or directory
mv: cannot stat/home/jmoney4769/patchrom/vanquish/out/target_files/META/temp.txt': No such file or directory
Generate metadata used to build target files...
cp: cannot stat /home/jmoney4769/patchrom/vanquish/out/target_files/META/apkcerts.txt': No such file or directory
cp: cannot stat/home/jmoney4769/patchrom/vanquish/out/target_files/META/filesystem_config.txt': No such file or directory
cp: cannot stat `/home/jmoney4769/patchrom/vanquish/out/target_files/RECOVERY/RAMDISK/etc/recovery.fstab': No such file or directory
/home/insanemod/patchrom/Bionic/out/framework-miui-res/res/values/public.xml:486: error: Error declaring public resource array/android_config_virtualKeyVibePattern for included package miui
/home/insanemod/patchrom/Bionic/out/framework-miui-res/res/values/public.xml:487: error: Error declaring public resource array/android_config_mobile_hotspot_provision_app for included package miui
/home/insanemod/patchrom/Bionic/out/framework-miui-res/res/values/public.xml:488: error: Error declaring public resource array/android_common_nicknames for included package miui
/home/insanemod/patchrom/Bionic/out/framework-miui-res/res/values/public.xml:489: error: Error declaring public resource array/mobile_operator_numeric_equivalencies for included package miui
/home/insanemod/patchrom/Bionic/out/framework-miui-res/res/values/public.xml:500: error: Error declaring public resource color/android_config_defaultNotificationColor for included package miui
/home/insanemod/patchrom/Bionic/out/framework-miui-res/res/values/public.xml:501: error: Error declaring public resource color/button_text for included package miui
/home/insanemod/patchrom/Bionic/out/framework-miui-res/res/values/public.xml:502: error: Error declaring public resource color/secondary_tab_text for included package miui
/home/insanemod/patchrom/Bionic/out/framework-miui-res/res/values/public.xml:503: error: Error declaring public resource color/textview_floatpanel_button_text_color for included package miui
/home/insanemod/patchrom/Bionic/out/framework-miui-res/res/values/public.xml:512: error: Error declaring public resource color/primary_text_color_inverse for included package miui
/home/insanemod/patchrom/Bionic/out/framework-miui-res/res/values/public.xml:513: error: Error declaring public resource color/secondary_text_color_inverse for included package miui
/home/insanemod/patchrom/Bionic/out/framework-miui-res/res/values/public.xml:514: error: Error declaring public resource color/primary_text for included package miui
/home/insanemod/patchrom/Bionic/out/framework-miui-res/res/values/public.xml:515: error: Error declaring public resource color/secondary_text for included package miui
/home/insanemod/patchrom/Bionic/out/framework-miui-res/res/values/public.xml:516: error: Error declaring public resource color/primary_text_color_shadow for included package miui
/home/insanemod/patchrom/Bionic/out/framework-miui-res/res/values/public.xml:517: error: Error declaring public resource color/secondary_text_color_shadow for included package miui
/home/insanemod/patchrom/Bionic/out/framework-miui-res/res/values/public.xml:518: error: Error declaring public resource color/android_listseparator_text_holo_light for included package miui
/home/insanemod/patchrom/Bionic/out/framework-miui-res/res/values/public.xml:521: error: Error declaring public resource integer/android_config_defaultNotificationLedOff for included package miui
/home/insanemod/patchrom/Bionic/out/framework-miui-res/res/values/public.xml:522: error: Error declaring public resource integer/android_config_lowBatteryWarningLevel for included package miui
/home/insanemod/patchrom/Bionic/out/framework-miui-res/res/values/public.xml:523: error: Error declaring public resource integer/android_config_lowBatteryCloseWarningLevel for included package miui
/home/insanemod/patchrom/Bionic/out/framework-miui-res/res/values/public.xml:524: error: Error declaring public resource integer/android_config_criticalBatteryWarningLevel for included package miui
/home/insanemod/patchrom/Bionic/out/framework-miui-res/res/values/public.xml:525: error: Error declaring public resource integer/android_config_screenBrightnessDim for included package miui
/home/insanemod/patchrom/Bionic/out/framework-miui-res/res/values/public.xml:526: error: Error declaring public resource integer/android_config_downloadDataDirSize for included package miui
/home/insanemod/patchrom/Bionic/out/framework-miui-res/res/values/public.xml:527: error: Error declaring public resource integer/android_config_downloadDataDirLowSpaceThreshold for included package miui
/home/insanemod/patchrom/Bionic/out/framework-miui-res/res/values/public.xml:528: error: Error declaring public resource integer/android_config_MaxConcurrentDownloadsAllowed for included package miui
/home/insanemod/patchrom/Bionic/out/framework-miui-res/res/values/public.xml:529: error: Error declaring public resource integer/android_preference_fragment_scrollbarStyle for included package miui
/home/insanemod/patchrom/Bionic/out/framework-miui-res/res/values/public.xml:537: error: Error declaring public resource bool/android_config_disableMenuKeyInLockScreen for included package miui
/home/insanemod/patchrom/Bionic/out/framework-miui-res/res/values/public.xml:538: error: Error declaring public resource bool/android_config_automatic_brightness_available for included package miui
/home/insanemod/patchrom/Bionic/out/framework-miui-res/res/values/public.xml:539: error: Error declaring public resource bool/android_config_wimaxEnabled for included package miui
/home/insanemod/patchrom/Bionic/out/framework-miui-res/res/values/public.xml:540: error: Error declaring public resource bool/android_config_voice_capable for included package miui
/home/insanemod/patchrom/Bionic/out/framework-miui-res/res/values/public.xml:541: error: Error declaring public resource bool/android_config_built_in_sip_phone for included package miui
/home/insanemod/patchrom/Bionic/out/framework-miui-res/res/values/public.xml:542: error: Error declaring public resource bool/android_config_intrusiveNotificationLed for included package miui
/home/insanemod/patchrom/Bionic/out/framework-miui-res/res/values/public.xml:543: error: Error declaring public resource bool/android_config_use_strict_phone_number_comparation for included package miui
/home/insanemod/patchrom/Bionic/out/framework-miui-res/res/values/public.xml:545: error: Error declaring public resource dimen/android_status_bar_height for included package miui
/home/insanemod/patchrom/Bionic/out/framework-miui-res/res/values/public.xml:557: error: Error declaring public resource dimen/text_font_size_huge for included package miui
/home/insanemod/patchrom/Bionic/out/framework-miui-res/res/values/public.xml:558: error: Error declaring public resource dimen/text_font_size_large for included package miui
/home/insanemod/patchrom/Bionic/out/framework-miui-res/res/values/public.xml:559: error: Error declaring public resource dimen/text_font_size_medium for included package miui
/home/insanemod/patchrom/Bionic/out/framework-miui-res/res/values/public.xml:560: error: Error declaring public resource dimen/text_font_size_small for included package miui
/home/insanemod/patchrom/Bionic/out/framework-miui-res/res/values/public.xml:561: error: Error declaring public resource dimen/text_font_size_tiny for included package miui
/home/insanemod/patchrom/Bionic/out/framework-miui-res/res/values/public.xml:562: error: Error declaring public resource dimen/android_navigation_bar_height for included package miui
/home/insanemod/patchrom/Bionic/out/framework-miui-res/res/values/public.xml:563: error: Error declaring public resource dimen/android_status_bar_icon_size for included package miui
/home/insanemod/patchrom/Bionic/out/framework-miui-res/res/values/public.xml:564: error: Error declaring public resource dimen/android_system_bar_height for included package miui
/home/insanemod/patchrom/Bionic/out/framework-miui-res/res/values/public.xml:565: error: Error declaring public resource dimen/android_system_bar_icon_size for included package miui
/home/insanemod/patchrom/Bionic/out/framework-miui-res/res/values/public.xml:566: error: Error declaring public resource dimen/android_preference_item_padding_side for included package miui
/home/insanemod/patchrom/Bionic/out/framework-miui-res/res/values/public.xml:567: error: Error declaring public resource dimen/android_navigation_bar_width for included package miui
/home/insanemod/patchrom/Bionic/out/framework-miui-res/res/values/public.xml:568: error: Error declaring public resource dimen/android_multiwaveview_hit_radius for included package miui
/home/insanemod/patchrom/Bionic/out/framework-miui-res/res/values/public.xml:569: error: Error declaring public resource dimen/android_multiwaveview_snap_margin for included package miui
There is a lot more than that. I want to know why its doing this. Please Help ME.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.