Related
Hi, when i decompile and then compile CarHomeGoogle 2.2.1 without any changes i get error
Code:
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
I:\HTC Desire\Rom edit\apk_manager_4.9\other\..\projects\CarHomeGoogle.apk\res\layout-land-hdpi\button_ui_mode_night.xml:2: error: No resource identifier found for attribute 'entries' in package 'com.android.carhome'
I:\HTC Desire\Rom edit\apk_manager_4.9\other\..\projects\CarHomeGoogle.apk\res\layout-land-mdpi\button_ui_mode_night.xml:2: error: No resource identifier found for attribute 'entries' in package 'com.android.carhome'
I:\HTC Desire\Rom edit\apk_manager_4.9\other\..\projects\CarHomeGoogle.apk\res\layout-port-hdpi\button_ui_mode_night.xml:2: error: No resource identifier found for attribute 'entries' in package 'com.android.carhome'
I:\HTC Desire\Rom edit\apk_manager_4.9\other\..\projects\CarHomeGoogle.apk\res\layout-port-mdpi\button_ui_mode_night.xml:2: error: No resource identifier found for attribute 'entries' in package 'com.android.carhome'
I:\HTC Desire\Rom edit\apk_manager_4.9\other\..\projects\CarHomeGoogle.apk\res\layout\carhome.xml:5: error: No resource identifier found for attribute 'defaultScreen' in package 'com.android.carhome'
I:\HTC Desire\Rom edit\apk_manager_4.9\other\..\projects\CarHomeGoogle.apk\res\layout-land\delete_zone.xml:5: error: No resource identifier found for attribute 'direction' in package 'com.android.carhome'
I:\HTC Desire\Rom edit\apk_manager_4.9\other\..\projects\CarHomeGoogle.apk\res\layout-port\delete_zone.xml:5: error: No resource identifier found for attribute 'direction' in package 'com.android.carhome'
I:\HTC Desire\Rom edit\apk_manager_4.9\other\..\projects\CarHomeGoogle.apk\res\layout-land-hdpi\workspace_screen.xml:2: error: No resource identifier found for attribute 'cellWidth' in package 'com.android.carhome'
I:\HTC Desire\Rom edit\apk_manager_4.9\other\..\projects\CarHomeGoogle.apk\res\layout-land-hdpi\workspace_screen.xml:2: error: No resource identifier found for attribute 'cellHeight' in package 'com.android.carhome'
I:\HTC Desire\Rom edit\apk_manager_4.9\other\..\projects\CarHomeGoogle.apk\res\layout-land-hdpi\workspace_screen.xml:2: error: No resource identifier found for attribute 'longAxisStartPadding' in package 'com.android.carhome'
I:\HTC Desire\Rom edit\apk_manager_4.9\other\..\projects\CarHomeGoogle.apk\res\layout-land-hdpi\workspace_screen.xml:2: error: No resource identifier found for attribute 'longAxisEndPadding' in package 'com.android.carhome'
I:\HTC Desire\Rom edit\apk_manager_4.9\other\..\projects\CarHomeGoogle.apk\res\layout-land-hdpi\workspace_screen.xml:2: error: No resource identifier found for attribute 'shortAxisStartPadding' in package 'com.android.carhome'
I:\HTC Desire\Rom edit\apk_manager_4.9\other\..\projects\CarHomeGoogle.apk\res\layout-land-hdpi\workspace_screen.xml:2: error: No resource identifier found for attribute 'shortAxisEndPadding' in package 'com.android.carhome'
I:\HTC Desire\Rom edit\apk_manager_4.9\other\..\projects\CarHomeGoogle.apk\res\layout-land-hdpi\workspace_screen.xml:2: error: No resource identifier found for attribute 'shortAxisCells' in package 'com.android.carhome'
I:\HTC Desire\Rom edit\apk_manager_4.9\other\..\projects\CarHomeGoogle.apk\res\layout-land-hdpi\workspace_screen.xml:2: error: No resource identifier found for attribute 'longAxisCells' in package 'com.android.carhome'
I:\HTC Desire\Rom edit\apk_manager_4.9\other\..\projects\CarHomeGoogle.apk\res\layout-land-mdpi\workspace_screen.xml:2: error: No resource identifier found for attribute 'cellWidth' in package 'com.android.carhome'
I:\HTC Desire\Rom edit\apk_manager_4.9\other\..\projects\CarHomeGoogle.apk\res\layout-land-mdpi\workspace_screen.xml:2: error: No resource identifier found for attribute 'cellHeight' in package 'com.android.carhome'
I:\HTC Desire\Rom edit\apk_manager_4.9\other\..\projects\CarHomeGoogle.apk\res\layout-land-mdpi\workspace_screen.xml:2: error: No resource identifier found for attribute 'longAxisStartPadding' in package 'com.android.carhome'
I:\HTC Desire\Rom edit\apk_manager_4.9\other\..\projects\CarHomeGoogle.apk\res\layout-land-mdpi\workspace_screen.xml:2: error: No resource identifier found for attribute 'longAxisEndPadding' in package 'com.android.carhome'
I:\HTC Desire\Rom edit\apk_manager_4.9\other\..\projects\CarHomeGoogle.apk\res\layout-land-mdpi\workspace_screen.xml:2: error: No resource identifier found for attribute 'shortAxisStartPadding' in package 'com.android.carhome'
I:\HTC Desire\Rom edit\apk_manager_4.9\other\..\projects\CarHomeGoogle.apk\res\layout-land-mdpi\workspace_screen.xml:2: error: No resource identifier found for attribute 'shortAxisEndPadding' in package 'com.android.carhome'
I:\HTC Desire\Rom edit\apk_manager_4.9\other\..\projects\CarHomeGoogle.apk\res\layout-land-mdpi\workspace_screen.xml:2: error: No resource identifier found for attribute 'shortAxisCells' in package 'com.android.carhome'
I:\HTC Desire\Rom edit\apk_manager_4.9\other\..\projects\CarHomeGoogle.apk\res\layout-land-mdpi\workspace_screen.xml:2: error: No resource identifier found for attribute 'longAxisCells' in package 'com.android.carhome'
I:\HTC Desire\Rom edit\apk_manager_4.9\other\..\projects\CarHomeGoogle.apk\res\layout-port-hdpi\workspace_screen.xml:2: error: No resource identifier found for attribute 'cellWidth' in package 'com.android.carhome'
I:\HTC Desire\Rom edit\apk_manager_4.9\other\..\projects\CarHomeGoogle.apk\res\layout-port-hdpi\workspace_screen.xml:2: error: No resource identifier found for attribute 'cellHeight' in package 'com.android.carhome'
I:\HTC Desire\Rom edit\apk_manager_4.9\other\..\projects\CarHomeGoogle.apk\res\layout-port-hdpi\workspace_screen.xml:2: error: No resource identifier found for attribute 'longAxisStartPadding' in package 'com.android.carhome'
I:\HTC Desire\Rom edit\apk_manager_4.9\other\..\projects\CarHomeGoogle.apk\res\layout-port-hdpi\workspace_screen.xml:2: error: No resource identifier found for attribute 'longAxisEndPadding' in package 'com.android.carhome'
I:\HTC Desire\Rom edit\apk_manager_4.9\other\..\projects\CarHomeGoogle.apk\res\layout-port-hdpi\workspace_screen.xml:2: error: No resource identifier found for attribute 'shortAxisStartPadding' in package 'com.android.carhome'
I:\HTC Desire\Rom edit\apk_manager_4.9\other\..\projects\CarHomeGoogle.apk\res\layout-port-hdpi\workspace_screen.xml:2: error: No resource identifier found for attribute 'shortAxisEndPadding' in package 'com.android.carhome'
I:\HTC Desire\Rom edit\apk_manager_4.9\other\..\projects\CarHomeGoogle.apk\res\layout-port-hdpi\workspace_screen.xml:2: error: No resource identifier found for attribute 'shortAxisCells' in package 'com.android.carhome'
I:\HTC Desire\Rom edit\apk_manager_4.9\other\..\projects\CarHomeGoogle.apk\res\layout-port-hdpi\workspace_screen.xml:2: error: No resource identifier found for attribute 'longAxisCells' in package 'com.android.carhome'
I:\HTC Desire\Rom edit\apk_manager_4.9\other\..\projects\CarHomeGoogle.apk\res\layout-port-mdpi\workspace_screen.xml:2: error: No resource identifier found for attribute 'cellWidth' in package 'com.android.carhome'
I:\HTC Desire\Rom edit\apk_manager_4.9\other\..\projects\CarHomeGoogle.apk\res\layout-port-mdpi\workspace_screen.xml:2: error: No resource identifier found for attribute 'cellHeight' in package 'com.android.carhome'
I:\HTC Desire\Rom edit\apk_manager_4.9\other\..\projects\CarHomeGoogle.apk\res\layout-port-mdpi\workspace_screen.xml:2: error: No resource identifier found for attribute 'longAxisStartPadding' in package 'com.android.carhome'
I:\HTC Desire\Rom edit\apk_manager_4.9\other\..\projects\CarHomeGoogle.apk\res\layout-port-mdpi\workspace_screen.xml:2: error: No resource identifier found for attribute 'longAxisEndPadding' in package 'com.android.carhome'
I:\HTC Desire\Rom edit\apk_manager_4.9\other\..\projects\CarHomeGoogle.apk\res\layout-port-mdpi\workspace_screen.xml:2: error: No resource identifier found for attribute 'shortAxisStartPadding' in package 'com.android.carhome'
I:\HTC Desire\Rom edit\apk_manager_4.9\other\..\projects\CarHomeGoogle.apk\res\layout-port-mdpi\workspace_screen.xml:2: error: No resource identifier found for attribute 'shortAxisEndPadding' in package 'com.android.carhome'
I:\HTC Desire\Rom edit\apk_manager_4.9\other\..\projects\CarHomeGoogle.apk\res\layout-port-mdpi\workspace_screen.xml:2: error: No resource identifier found for attribute 'shortAxisCells' in package 'com.android.carhome'
I:\HTC Desire\Rom edit\apk_manager_4.9\other\..\projects\CarHomeGoogle.apk\res\layout-port-mdpi\workspace_screen.xml:2: error: No resource identifier found for attribute 'longAxisCells' in package 'com.android.carhome'
I:\HTC Desire\Rom edit\apk_manager_4.9\other\..\projects\CarHomeGoogle.apk\res\xml\default_carhome.xml:4: error: No resource identifier found for attribute 'action' in package 'com.android.carhome'
I:\HTC Desire\Rom edit\apk_manager_4.9\other\..\projects\CarHomeGoogle.apk\res\xml\default_carhome.xml:4: error: No resource identifier found for attribute 'screen' in package 'com.android.carhome'
I:\HTC Desire\Rom edit\apk_manager_4.9\other\..\projects\CarHomeGoogle.apk\res\xml\default_carhome.xml:4: error: No resource identifier found for attribute 'position' in package 'com.android.carhome'
I:\HTC Desire\Rom edit\apk_manager_4.9\other\..\projects\CarHomeGoogle.apk\res\xml\default_carhome.xml:4: error: No resource identifier found for attribute 'icon' in package 'com.android.carhome'
I:\HTC Desire\Rom edit\apk_manager_4.9\other\..\projects\CarHomeGoogle.apk\res\xml\default_carhome.xml:4: error: No resource identifier found for attribute 'title' in package 'com.android.carhome'
I:\HTC Desire\Rom edit\apk_manager_4.9\other\..\projects\CarHomeGoogle.apk\res\xml\default_carhome.xml:5: error: No resource identifier found for attribute 'action' in package 'com.android.carhome'
I:\HTC Desire\Rom edit\apk_manager_4.9\other\..\projects\CarHomeGoogle.apk\res\xml\default_carhome.xml:5: error: No resource identifier found for attribute 'screen' in package 'com.android.carhome'
I:\HTC Desire\Rom edit\apk_manager_4.9\other\..\projects\CarHomeGoogle.apk\res\xml\default_carhome.xml:5: error: No resource identifier found for attribute 'position' in package 'com.android.carhome'
I:\HTC Desire\Rom edit\apk_manager_4.9\other\..\projects\CarHomeGoogle.apk\res\xml\default_carhome.xml:5: error: No resource identifier found for attribute 'icon' in package 'com.android.carhome'
I:\HTC Desire\Rom edit\apk_manager_4.9\other\..\projects\CarHomeGoogle.apk\res\xml\default_carhome.xml:5: error: No resource identifier found for attribute 'title' in package 'com.android.carhome'
I:\HTC Desire\Rom edit\apk_manager_4.9\other\..\projects\CarHomeGoogle.apk\res\xml\default_carhome.xml:6: error: No resource identifier found for attribute 'action' in package 'com.android.carhome'
I:\HTC Desire\Rom edit\apk_manager_4.9\other\..\projects\CarHomeGoogle.apk\res\xml\default_carhome.xml:6: error: No resource identifier found for attribute 'screen' in package 'com.android.carhome'
I:\HTC Desire\Rom edit\apk_manager_4.9\other\..\projects\CarHomeGoogle.apk\res\xml\default_carhome.xml:6: error: No resource identifier found for attribute 'position' in package 'com.android.carhome'
I:\HTC Desire\Rom edit\apk_manager_4.9\other\..\projects\CarHomeGoogle.apk\res\xml\default_carhome.xml:6: error: No resource identifier found for attribute 'icon' in package 'com.android.carhome'
I:\HTC Desire\Rom edit\apk_manager_4.9\other\..\projects\CarHomeGoogle.apk\res\xml\default_carhome.xml:6: error: No resource identifier found for attribute 'title' in package 'com.android.carhome'
I:\HTC Desire\Rom edit\apk_manager_4.9\other\..\projects\CarHomeGoogle.apk\res\xml\default_carhome.xml:6: error: No resource identifier found for attribute 'hintToken' in package 'com.android.carhome'
I:\HTC Desire\Rom edit\apk_manager_4.9\other\..\projects\CarHomeGoogle.apk\res\xml\default_carhome.xml:7: error: No resource identifier found for attribute 'screen' in package 'com.android.carhome'
I:\HTC Desire\Rom edit\apk_manager_4.9\other\..\projects\CarHomeGoogle.apk\res\xml\default_carhome.xml:7: error: No resource identifier found for attribute 'position' in package 'com.android.carhome'
I:\HTC Desire\Rom edit\apk_manager_4.9\other\..\projects\CarHomeGoogle.apk\res\xml\default_carhome.xml:7: error: No resource identifier found for attribute 'icon' in package 'com.android.carhome'
I:\HTC Desire\Rom edit\apk_manager_4.9\other\..\projects\CarHomeGoogle.apk\res\xml\default_carhome.xml:7: error: No resource identifier found for attribute 'title' in package 'com.android.carhome'
I:\HTC Desire\Rom edit\apk_manager_4.9\other\..\projects\CarHomeGoogle.apk\res\xml\default_carhome.xml:7: error: No resource identifier found for attribute 'uri' in package 'com.android.carhome'
I:\HTC Desire\Rom edit\apk_manager_4.9\other\..\projects\CarHomeGoogle.apk\res\xml\default_carhome.xml:8: error: No resource identifier found for attribute 'action' in package 'com.android.carhome'
I:\HTC Desire\Rom edit\apk_manager_4.9\other\..\projects\CarHomeGoogle.apk\res\xml\default_carhome.xml:8: error: No resource identifier found for attribute 'screen' in package 'com.android.carhome'
I:\HTC Desire\Rom edit\apk_manager_4.9\other\..\projects\CarHomeGoogle.apk\res\xml\default_carhome.xml:8: error: No resource identifier found for attribute 'position' in package 'com.android.carhome'
I:\HTC Desire\Rom edit\apk_manager_4.9\other\..\projects\CarHomeGoogle.apk\res\xml\default_carhome.xml:8: error: No resource identifier found for attribute 'icon' in package 'com.android.carhome'
I:\HTC Desire\Rom edit\apk_manager_4.9\other\..\projects\CarHomeGoogle.apk\res\xml\default_carhome.xml:8: error: No resource identifier found for attribute 'title' in package 'com.android.carhome'
I:\HTC Desire\Rom edit\apk_manager_4.9\other\..\projects\CarHomeGoogle.apk\res\xml\default_carhome.xml:9: error: No resource identifier found for attribute 'action' in package 'com.android.carhome'
I:\HTC Desire\Rom edit\apk_manager_4.9\other\..\projects\CarHomeGoogle.apk\res\xml\default_carhome.xml:9: error: No resource identifier found for attribute 'screen' in package 'com.android.carhome'
I:\HTC Desire\Rom edit\apk_manager_4.9\other\..\projects\CarHomeGoogle.apk\res\xml\default_carhome.xml:9: error: No resource identifier found for attribute 'position' in package 'com.android.carhome'
I:\HTC Desire\Rom edit\apk_manager_4.9\other\..\projects\CarHomeGoogle.apk\res\xml\default_carhome.xml:9: error: No resource identifier found for attribute 'icon' in package 'com.android.carhome'
I:\HTC Desire\Rom edit\apk_manager_4.9\other\..\projects\CarHomeGoogle.apk\res\xml\default_carhome.xml:9: error: No resource identifier found for attribute 'title' in package 'com.android.carhome'
I:\HTC Desire\Rom edit\apk_manager_4.9\other\..\projects\CarHomeGoogle.apk\res\xml\default_carhome.xml:9: error: No resource identifier found for attribute 'removable' in package 'com.android.carhome'
I:\HTC Desire\Rom edit\apk_manager_4.9\other\..\projects\CarHomeGoogle.apk\res\xml\default_carhome.xml:10: error: No resource identifier found for attribute 'action' in package 'com.android.carhome'
I:\HTC Desire\Rom edit\apk_manager_4.9\other\..\projects\CarHomeGoogle.apk\res\xml\default_carhome.xml:10: error: No resource identifier found for attribute 'screen' in package 'com.android.carhome'
I:\HTC Desire\Rom edit\apk_manager_4.9\other\..\projects\CarHomeGoogle.apk\res\xml\default_carhome.xml:10: error: No resource identifier found for attribute 'position' in package 'com.android.carhome'
I:\HTC Desire\Rom edit\apk_manager_4.9\other\..\projects\CarHomeGoogle.apk\res\xml\default_carhome.xml:10: error: No resource identifier found for attribute 'icon' in package 'com.android.carhome'
I:\HTC Desire\Rom edit\apk_manager_4.9\other\..\projects\CarHomeGoogle.apk\res\xml\default_carhome.xml:10: error: No resource identifier found for attribute 'title' in package 'com.android.carhome'
I:\HTC Desire\Rom edit\apk_manager_4.9\other\..\projects\CarHomeGoogle.apk\res\xml\default_carhome.xml:11: error: No resource identifier found for attribute 'className' in package 'com.android.carhome'
I:\HTC Desire\Rom edit\apk_manager_4.9\other\..\projects\CarHomeGoogle.apk\res\xml\default_carhome.xml:11: error: No resource identifier found for attribute 'packageName' in package 'com.android.carhome'
I:\HTC Desire\Rom edit\apk_manager_4.9\other\..\projects\CarHomeGoogle.apk\res\xml\default_carhome.xml:11: error: No resource identifier found for attribute 'screen' in package 'com.android.carhome'
I:\HTC Desire\Rom edit\apk_manager_4.9\other\..\projects\CarHomeGoogle.apk\res\xml\default_carhome.xml:11: error: No resource identifier found for attribute 'position' in package 'com.android.carhome'
I:\HTC Desire\Rom edit\apk_manager_4.9\other\..\projects\CarHomeGoogle.apk\res\xml\default_carhome.xml:11: error: No resource identifier found for attribute 'icon' in package 'com.android.carhome'
I:\HTC Desire\Rom edit\apk_manager_4.9\other\..\projects\CarHomeGoogle.apk\res\xml\default_carhome.xml:11: error: No resource identifier found for attribute 'title' in package 'com.android.carhome'
I:\HTC Desire\Rom edit\apk_manager_4.9\other\..\projects\CarHomeGoogle.apk\res\xml\default_carhome.xml:12: error: No resource identifier found for attribute 'action' in package 'com.android.carhome'
I:\HTC Desire\Rom edit\apk_manager_4.9\other\..\projects\CarHomeGoogle.apk\res\xml\default_carhome.xml:12: error: No resource identifier found for attribute 'screen' in package 'com.android.carhome'
I:\HTC Desire\Rom edit\apk_manager_4.9\other\..\projects\CarHomeGoogle.apk\res\xml\default_carhome.xml:12: error: No resource identifier found for attribute 'position' in package 'com.android.carhome'
I:\HTC Desire\Rom edit\apk_manager_4.9\other\..\projects\CarHomeGoogle.apk\res\xml\default_carhome.xml:12: error: No resource identifier found for attribute 'icon' in package 'com.android.carhome'
I:\HTC Desire\Rom edit\apk_manager_4.9\other\..\projects\CarHomeGoogle.apk\res\xml\default_carhome.xml:12: error: No resource identifier found for attribute 'title' in package 'com.android.carhome'
I:\HTC Desire\Rom edit\apk_manager_4.9\other\..\projects\CarHomeGoogle.apk\res\xml\default_carhome.xml:13: error: No resource identifier found for attribute 'className' in package 'com.android.carhome'
I:\HTC Desire\Rom edit\apk_manager_4.9\other\..\projects\CarHomeGoogle.apk\res\xml\default_carhome.xml:13: error: No resource identifier found for attribute 'screen' in package 'com.android.carhome'
I:\HTC Desire\Rom edit\apk_manager_4.9\other\..\projects\CarHomeGoogle.apk\res\xml\default_carhome.xml:13: error: No resource identifier found for attribute 'position' in package 'com.android.carhome'
I:\HTC Desire\Rom edit\apk_manager_4.9\other\..\projects\CarHomeGoogle.apk\res\xml\default_carhome.xml:13: error: No resource identifier found for attribute 'icon' in package 'com.android.carhome'
I:\HTC Desire\Rom edit\apk_manager_4.9\other\..\projects\CarHomeGoogle.apk\res\xml\default_carhome.xml:13: error: No resource identifier found for attribute 'title' in package 'com.android.carhome'
I:\HTC Desire\Rom edit\apk_manager_4.9\other\..\projects\CarHomeGoogle.apk\res\xml\default_carhome.xml:13: error: No resource identifier found for attribute 'removable' in package 'com.android.carhome'
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, E:\Users\sami\AppData\Local\Temp\APKTOOL8020954777841076030.tmp, -I, C:\Users\sami\apktool\framework\1.apk, -S, I:\HTC Desire\Rom edit\apk_manager_4.9\other\..\projects\CarHomeGoogle.apk\res, -M, I:\HTC Desire\Rom edit\apk_manager_4.9\other\..\projects\CarHomeGoogle.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(Unknown Source)
at brut.androlib.Androlib.buildResourcesFull(Unknown Source)
at brut.androlib.Androlib.buildResources(Unknown Source)
at brut.androlib.Androlib.build(Unknown Source)
at brut.androlib.Androlib.build(Unknown Source)
at brut.apktool.Main.cmdBuild(Unknown Source)
at brut.apktool.Main.main(Unknown Source)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, E:\Users\sami\AppData\Local\Temp\APKTOOL8020954777841076030.tmp, -I, C:\Users\sami\apktool\framework\1.apk, -S, I:\HTC Desire\Rom edit\apk_manager_4.9\other\..\projects\CarHomeGoogle.apk\res, -M, I:\HTC Desire\Rom edit\apk_manager_4.9\other\..\projects\CarHomeGoogle.apk\AndroidManifest.xml]
at brut.util.OS.exec(Unknown Source)
... 7 more
anyone can help me fix that please?
Anyon? please...
hi devs,
is would like to modify an apk! after some google-work, i found apktool to decompile & to compile the modded! but without success!
what i have done? (OS=linux)
download (aapt,apktool,apktool.jar) to /usr/local/bin
adb pull /system/app/DeskClock.apk /home/htc/
cd /home/htc/
apktool d DeskClock.apk ./out
change the /res/values-de/strings.xml and save
apktool b -f -d out (compile the folder to new apk)
adb shell & cd /system/app & mv DeskClock.apk DeskClock.old & ^ctrl+D
adb push /home/htc/out/dist/DeskClock.apk /system/app/
ok, in my opinion that should be all, but it doesn't work!
i cant see the Clock App on my Droid.
Can anybody say me, were is my misstake?
I'm not very talented in Linux, but your steps seem to be right. I always used Windows at work, so I do only know the apk took for Win XP
But did you check if the recompiled file has the same size as the original one?
Apktool ERROR
Hey I'm trying to use apktool to recompile my SystemUI.apk but anytime i run apktool b SystemUI the following error pops up
C:\Windows\system32>cd C:\Windows
C:\Windows>apktool if C:\Windows\framework-res.apk
I: Framework installed to: C:\Users\Mama\apktool\framework\1.apk
C:\Windows>apktool if C:\Windows\SystemUI.apk
I: Framework installed to: C:\Users\Mama\apktool\framework\127.apk
C:\Windows>apktool d SystemUI.apk
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\Mama\apktool\framework\1.apk
I: Loaded.
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Done.
I: Copying assets and libs...
C:\Windows>apktool b SystemUI
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
C:\Windows\SystemUI\res\values\styles.xml:3: error: Error retrieving parent for
item: No resource found that matches the given name '@*android:style/TextAppeara
nce.StatusBar'.
C:\Windows\SystemUI\res\values\styles.xml:8: error: Error retrieving parent for
item: No resource found that matches the given name '@*android:style/TextAppeara
nce.Large'.
C:\Windows\SystemUI\res\values\styles.xml:11: error: Error retrieving parent for
item: No resource found that matches the given name '@*android:style/Widget.But
ton'.
C:\Windows\SystemUI\res\values\styles.xml:16: error: Error retrieving parent for
item: No resource found that matches the given name '@*android:style/TextAppear
ance.StatusBar'.
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, --min-sdk-version, 10, --target-sdk-ver
sion, 10, -F, C:\Users\Mama\AppData\Local\Temp\APKTOOL1762758136473137198.tmp, -
I, C:\Users\Mama\apktool\framework\1.apk, -S, C:\Windows\SystemUI\res, -M, C:\Wi
ndows\SystemUI\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:255)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:324)
at brut.androlib.Androlib.buildResources(Androlib.java:269)
at brut.androlib.Androlib.build(Androlib.java:192)
at brut.androlib.Androlib.build(Androlib.java:174)
at brut.apktool.Main.cmdBuild(Main.java:188)
at brut.apktool.Main.main(Main.java:70)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sd
k-version, 10, --target-sdk-version, 10, -F, C:\Users\Mama\AppData\Local\Temp\AP
KTOOL1762758136473137198.tmp, -I, C:\Users\Mama\apktool\framework\1.apk, -S, C:\
Windows\SystemUI\res, -M, C:\Windows\SystemUI\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:253)
... 6 more
C:\Windows>
I know that some of the .xml file might be wrong but i tried just decompiling and recompiling the SystemUI.apk and the same error appear...
Is there something im doing wrong??
Please help!!!!!!
maybe posting in the thread for apktool might get you help faster
and nice revive of a 10 month old dead thread
OK so I've made it this far with akila87's help but now I'm stuck building my decompiled apk. I'm trying to bring back the old 2.1 SE calculator but i don't know if I coded my xml files if they are good because they are not being recompiled or built again. heres the problem...
Code:
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\Documents and Settings\Home>cd C:\apktool-install-windows-2.2_r01-3
C:\apktool-install-windows-2.2_r01-3>apktool b Calculator
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
(skipping index file 'C:\apktool-install-windows-2.2_r01-3\Calculator\res\dr
awable-hdpi\Thumbs.db')
C:\apktool-install-windows-2.2_r01-3\Calculator\res\values\styles.xml:5: error:
Error: No resource found that matches the given name: attr 'android:background'.
C:\apktool-install-windows-2.2_r01-3\Calculator\res\values\styles.xml:6: error:
Error: No resource found that matches the given name: attr 'android:focusable'.
C:\apktool-install-windows-2.2_r01-3\Calculator\res\values\styles.xml:8: error:
Error: No resource found that matches the given name: attr 'android:layout_heigh
t'.
C:\apktool-install-windows-2.2_r01-3\Calculator\res\values\styles.xml:9: error:
Error: No resource found that matches the given name: attr 'android:layout_margi
n'.
C:\apktool-install-windows-2.2_r01-3\Calculator\res\values\styles.xml:10: error:
Error: No resource found that matches the given name: attr 'android:layout_marg
inLeft'.
C:\apktool-install-windows-2.2_r01-3\Calculator\res\values\styles.xml:11: error:
Error: No resource found that matches the given name: attr 'android:layout_weig
ht'.
C:\apktool-install-windows-2.2_r01-3\Calculator\res\values\styles.xml:7: error:
Error: No resource found that matches the given name: attr 'android:layout_width
'.
C:\apktool-install-windows-2.2_r01-3\Calculator\res\values\styles.xml:4: error:
Error: No resource found that matches the given name: attr 'android:textSize'.
C:\apktool-install-windows-2.2_r01-3\Calculator\res\values\styles.xml:14: error:
Error: No resource found that matches the given name: attr 'android:background'
.
C:\apktool-install-windows-2.2_r01-3\Calculator\res\values\styles.xml:17: error:
Error: No resource found that matches the given name: attr 'android:textSize'.
C:\apktool-install-windows-2.2_r01-3\Calculator\res\values\styles.xml:22: error:
Error: No resource found that matches the given name: attr 'android:gravity'.
C:\apktool-install-windows-2.2_r01-3\Calculator\res\values\styles.xml:26: error:
Error: No resource found that matches the given name: attr 'android:layout_heig
ht'.
C:\apktool-install-windows-2.2_r01-3\Calculator\res\values\styles.xml:25: error:
Error: No resource found that matches the given name: attr 'android:layout_widt
h'.
C:\apktool-install-windows-2.2_r01-3\Calculator\res\values\styles.xml:27: error:
Error: No resource found that matches the given name: attr 'android:maxLines'.
C:\apktool-install-windows-2.2_r01-3\Calculator\res\values\styles.xml:23: error:
Error: No resource found that matches the given name: attr 'android:padding'.
C:\apktool-install-windows-2.2_r01-3\Calculator\res\values\styles.xml:28: error:
Error: No resource found that matches the given name: attr 'android:scrollHoriz
ontally'.
C:\apktool-install-windows-2.2_r01-3\Calculator\res\values\styles.xml:24: error:
Error: No resource found that matches the given name: attr 'android:scrollbars'
.
C:\apktool-install-windows-2.2_r01-3\Calculator\res\values\styles.xml:21: error:
Error: No resource found that matches the given name: attr 'android:textColor'.
C:\apktool-install-windows-2.2_r01-3\Calculator\res\values\styles.xml:20: error:
Error: No resource found that matches the given name: attr 'android:textSize'.
C:\apktool-install-windows-2.2_r01-3\Calculator\res\values\styles.xml:30: error:
Error retrieving parent for item: No resource found that matches the given name
'@android:style/Theme'.
C:\apktool-install-windows-2.2_r01-3\Calculator\res\values\styles.xml:31: error:
Error: No resource found that matches the given name: attr 'android:windowBackg
round'.
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, C:\DOCUME~1\Home\LOCALS~1\Temp\APKT
OOL2546885007159582906.tmp, -S, C:\apktool-install-windows-2.2_r01-3\Calculator\
res, -M, C:\apktool-install-windows-2.2_r01-3\Calculator\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(Unknown Source)
at brut.androlib.Androlib.buildResourcesFull(Unknown Source)
at brut.androlib.Androlib.buildResources(Unknown Source)
at brut.androlib.Androlib.build(Unknown Source)
at brut.androlib.Androlib.build(Unknown Source)
at brut.apktool.Main.cmdBuild(Unknown Source)
at brut.apktool.Main.main(Unknown Source)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\D
OCUME~1\Home\LOCALS~1\Temp\APKTOOL2546885007159582906.tmp, -S, C:\apktool-instal
l-windows-2.2_r01-3\Calculator\res, -M, C:\apktool-install-windows-2.2_r01-3\Cal
culator\AndroidManifest.xml]
at brut.util.OS.exec(Unknown Source)
... 7 more
C:\apktool-install-windows-2.2_r01-3>_
When you do jar files you have to add the sources before compile or decompile... so maybe that apk needs the sources by doing apktool if (source name) in terminal... maybe if the original source and the 2.2 or 2.3 source?.... hope this helps
Sent from my X10i using XDA App
Exactly. You need to inc source jar or Java classes. Sorry for obvious question (log posted) could you tell me what your build setup is please?
Edit: create an eclipse project and import.
rdannar said:
When you do jar files you have to add the sources before compile or decompile... so maybe that apk needs the sources by doing apktool if (source name) in terminal... maybe if the original source and the 2.2 or 2.3 source?.... hope this helps
Sent from my X10i using XDA App
Click to expand...
Click to collapse
Sent from my X10a using XDA Premium App
MrHassell said:
Exactly. You need to inc source jar or Java classes. Sorry for obvious question (log posted) could you tell me what your build setup is please?
Edit: create an eclipse project and import.
Sent from my X10a using XDA Premium App
Click to expand...
Click to collapse
I'm on CM6 6.1.3 (v54)... I'm trying to edit the stock SE calculator.apk :/ and it decompilied no problem. If I put apktool d calculator (folder) ill get the calculator.out which has the apktool.yml which I copied and pasted into clthe decompiled calculator folder
And where do I get these sources?
Sent from a pyramid in Canadada
your problem is that you didn't imported a framework that works with the apk(in your case the 2.1's framework)
you will find help doing it if you look at the bottom of apktool's help screen
you can import multiple frameworks, so I suggest you to import 2.2's, too
resources are loaded from framework-res.apk
PS.: sometimes recompiling fails if AndroidManifest.xml contains some random crappy stuff. if compiling still fails post that xml and then I could post a corrected one. and please delete any kind of rubbish from the dirs... *caugh* thumbs.db *caugh*
moved to proper forum
oh, mcfly. procedure, procedure. soapbox time?
first verify that apktool is setup and working correctly for you. lets assume that it is;
these are simple instructions for tagging 1 single framework for use in working in 1 rom. additional options are required if working with multiple romsets;
1
tag the rom framework for use in decompiling and recompiling apks that came with the sony rom;
Code:
framework if framework-res.apk
if you were in an unextracted rom folder;
Code:
/system/framework
2
decompile apk you wish to work with
Code:
apktool d Calculator.apk
your apk should decompile without error
3
NOW we verify your apktool setup. recompile the Calculator.apk, unmodified. casing matters and you should specify the output file.
Code:
apktool b Calculator ./built/Calculator.apk
DO YOU HAVE ERRORS AT THIS POINT? if you do, you don't have apktool setup right.
if you don't your xml modifications are either too excessive (they don't jive w/ the jar), or you're improperly making xml modifications. it happens. the changes you make, as the others said, have to jive w/ the jar that accompanies it. my past experience has been that modifications to the /res/values folder that you're making tends to break apk's if its more than just manipulation to a few simple digital values for colors or margins, and even then stability is iffy. i find its better to creatively manipulate the images by overlaying the images where i want them placed in a graphic editor, and then experimenting with creating them to display where i want on the screen. i do this in combination w screenshots from the calculator that i want to display. not a procedure easily explained..
..i was able to turn the current se21 calculator into a htc hybrid by replacing the provided background w/ a black background that has a grey bar across the output field at the top of the screen. i simply put the grey bar on the background image. no xml manipulation required. looks nice compared to the funky blue one it came w.
zip up what you have and send it my way and i can tell you if what you're doing is doable w/ apktool.
i can be of no help to you with eclipse and use of source in your venture. source coding is a little above my current list of working skills beyond simple stock source compiles w the make system for apps and roms.
i have the same error when compiling the com.htc.resources.apk
how i add the sources ?
thanks
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
sorry for my poor english.. i write this guide by request.
this is pretty simple thing..
1. decompile framework-res.apk
- you need apktool.jar 1.4.3 version to decompile ics apk.
download 1.4.3 : http://code.google.com/p/android-apktool/downloads/list
download 1.4.2 : http://code.google.com/p/android-apktool/downloads/detail?name=apktool1.4.2.tar.bz2&can=1&q=
(if you have problems with 1.4.3, use 1.4.2 instead)
2. open /res/values/bools.xml with a text editor
3. find "config_showNavigationBar" and set to true
4. to turn off capacitive buttons backlight, maybe you need to edit arrays.xml
- it does not work on my nexus s but seem to be working well on some other devices..
-----------------------------------------------------------------------------
* 5 [WVGA devices only] it would be better to slightly resize navigation bar height to avoid keyboard overlapping problem (see this post).
(or you have to lower lcd density but that cause app compatibility issues)
: open dimens.xml and find the line "navigation_bar_height".
and you need one more step to compensate buttons sizes.
download : http://www.mediafire.com/?758mnayrlt3dee4
this zip include 4 png files. add those files to SystemUI.apk (/res/drawable-hdpi/) using 7-zip or other program. (replace original PNGs to these files).
-----------------------------------------------------------------------------
6. recompile
- you need new aapt.exe from latest platform-tools.
download : http://www.mediafire.com/?0q52u6v8vdkpq1i
7. done
*if you don't know how to modify apk file, read this post first.
-
Where did you get apktool 1.4.2?
How would I disable the onscrwen keys in twlauncher 4. 5? Cause we already configured the ics keys to be our softkeus?
Sent from my SCH-I400 using xda premium
KBanause said:
Where did you get apktool 1.4.2?
Click to expand...
Click to collapse
yes interesting question
KBanause said:
Where did you get apktool 1.4.2?
Click to expand...
Click to collapse
here it is : http://www.multiupload.com/YWJHOSZ7GJ
you can find it here
ciscogee said:
How would I disable the onscrwen keys in twlauncher 4. 5? Cause we already configured the ics keys to be our softkeus?
Sent from my SCH-I400 using xda premium
Click to expand...
Click to collapse
sorry but you'd better ask your rom dev to do it..
evilisto said:
here it is : http://www.multiupload.com/YWJHOSZ7GJ
you can find it here
Click to expand...
Click to collapse
Thanks. At least I was able to recompile the framework-res.apk wothout any errors. Now I have to check if I can use it without bootloops
evilisto said:
here it is : http://www.multiupload.com/YWJHOSZ7GJ
you can find it here
sorry but you'd better ask your rom dev to do it..
Click to expand...
Click to collapse
Worked for me with this apktool
Edit: decompile that is
THX!
Could you got a little more in-depth on step 5? Whats the correct way to recompile the apk with aapt?
pingpongboss said:
Could you got a little more in-depth on step 5? Whats the correct way to recompile the apk with aapt?
Click to expand...
Click to collapse
just put aapt.exe in the same folder as apktool.jar. that's all
can someone please help me with using apktool and decompiling my framework-res?
I'm not having any trouble with decompiling, but after making the necessary changes to bools and array, I can not get it to recompile.
What am I doing wrong here?
to decompile....
Code:
apktool d framework-res.apk
....make the changes, then...
Code:
apktool b framework-res
and i get this:
Code:
c:\apktool>apktool b framework-res.apk
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathN
otExist: apktool.yml
at brut.androlib.Androlib.readMetaFile(Androlib.java:142)
at brut.androlib.Androlib.build(Androlib.java:159)
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.directory.PathNotExist: apktool.yml
at brut.directory.AbstractDirectory.getFileInput(AbstractDirectory.java:
103)
at brut.androlib.Androlib.readMetaFile(Androlib.java:138)
... 4 more
c:\apktool>
Any help would be much appreciated.
EDIT -
Just noticed that I typed....
Code:
apktool b framework-res.apk
...instead of...
Code:
apktool b framework-res
When I tried it without the .apk, I get this....
Code:
c:\apktool>apktool b framework-res
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: c:\apktool\framework-res\res/drawable-sw600dp-h
dpi
invalid resource directory name: c:\apktool\framework-res\res/layout-sw600dp
invalid resource directory name: c:\apktool\framework-res\res/layout-w600dp
invalid resource directory name: c:\apktool\framework-res\res/values-h720dp
invalid resource directory name: c:\apktool\framework-res\res/values-sw600dp
invalid resource directory name: c:\apktool\framework-res\res/values-sw600dp-w10
24dp
invalid resource directory name: c:\apktool\framework-res\res/values-sw600dp-w12
80dp
invalid resource directory name: c:\apktool\framework-res\res/values-w360dp
invalid resource directory name: c:\apktool\framework-res\res/values-w480dp
invalid resource directory name: c:\apktool\framework-res\res/values-w500dp
invalid resource directory name: c:\apktool\framework-res\res/values-w600dp
invalid resource directory name: c:\apktool\framework-res\res/values-w720dp
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, C:\Users\BRANDO~1.AMY\AppData\Local
\Temp\APKTOOL5284591862303952400.tmp, -x, -S, c:\apktool\framework-res\res, -M,
c:\apktool\framework-res\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a: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, C:\U
sers\BRANDO~1.AMY\AppData\Local\Temp\APKTOOL5284591862303952400.tmp, -x, -S, c:\
apktool\framework-res\res, -M, c:\apktool\framework-res\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:191)
... 6 more
sixfearstheseven said:
I'm not having any trouble with decompiling, but after making the necessary changes to bools and array, I can not get it to recompile.
What am I doing wrong here?
to decompile....
Code:
apktool d framework-res.apk
....make the changes, then...
Code:
apktool b framework-res
and i get this:
Code:
c:\apktool>apktool b framework-res.apk
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathN
otExist: apktool.yml
at brut.androlib.Androlib.readMetaFile(Androlib.java:142)
at brut.androlib.Androlib.build(Androlib.java:159)
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.directory.PathNotExist: apktool.yml
at brut.directory.AbstractDirectory.getFileInput(AbstractDirectory.java:
103)
at brut.androlib.Androlib.readMetaFile(Androlib.java:138)
... 4 more
c:\apktool>
Any help would be much appreciated.
EDIT -
Just noticed that I typed....
Code:
apktool b framework-res.apk
...instead of...
Code:
apktool b framework-res
When I tried it without the .apk, I get this....
Code:
c:\apktool>apktool b framework-res
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: c:\apktool\framework-res\res/drawable-sw600dp-h
dpi
invalid resource directory name: c:\apktool\framework-res\res/layout-sw600dp
invalid resource directory name: c:\apktool\framework-res\res/layout-w600dp
invalid resource directory name: c:\apktool\framework-res\res/values-h720dp
invalid resource directory name: c:\apktool\framework-res\res/values-sw600dp
invalid resource directory name: c:\apktool\framework-res\res/values-sw600dp-w10
24dp
invalid resource directory name: c:\apktool\framework-res\res/values-sw600dp-w12
80dp
invalid resource directory name: c:\apktool\framework-res\res/values-w360dp
invalid resource directory name: c:\apktool\framework-res\res/values-w480dp
invalid resource directory name: c:\apktool\framework-res\res/values-w500dp
invalid resource directory name: c:\apktool\framework-res\res/values-w600dp
invalid resource directory name: c:\apktool\framework-res\res/values-w720dp
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, C:\Users\BRANDO~1.AMY\AppData\Local
\Temp\APKTOOL5284591862303952400.tmp, -x, -S, c:\apktool\framework-res\res, -M,
c:\apktool\framework-res\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a: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, C:\U
sers\BRANDO~1.AMY\AppData\Local\Temp\APKTOOL5284591862303952400.tmp, -x, -S, c:\
apktool\framework-res\res, -M, c:\apktool\framework-res\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:191)
... 6 more
Click to expand...
Click to collapse
Same here, getting the same error when recompiling it -_- 3 people have told me it's because aapt isn't the ICS version but I updated it 3 times and even asked someone to upload and I get that same error.
GazaIan said:
Same here, getting the same error when recompiling it -_- 3 people have told me it's because aapt isn't the ICS version but I updated it 3 times and even asked someone to upload and I get that same error.
Click to expand...
Click to collapse
Yep, i did the same thing with aapt. I triple and quadruple checked that it was the ICS compatible version, but still no dice.
I don't know. I'm still patiently waiting for a proper developer to throw together a version for the Incredible that has the on screen nav buttons since i know next to nothing about this stuff, but seriously, this process looks so simple yet I'm having so much trouble with it.
Even if i did get it to compile, I'd be stuck because adb never wants to push or pull files from my phone.
Sent from my Incredible using xda premium
sixfearstheseven said:
Yep, i did the same thing with aapt. I triple and quadruple checked that it was the ICS compatible version, but still no dice.
I don't know. I'm still patiently waiting for a proper developer to throw together a version for the Incredible that has the on screen nav buttons since i know next to nothing about this stuff, but seriously, this process looks so simple yet I'm having so much trouble with it.
Even if i did get it to compile, I'd be stuck because adb never wants to push or pull files from my phone.
Sent from my Incredible using xda premium
Click to expand...
Click to collapse
You can always copy it over and set permissions (although it usually crashes before you can), or put it in an update.zip. The update.zip method is my favorite.
GazaIan said:
You can always copy it over and set permissions (although it usually crashes before you can), or put it in an update.zip. The update.zip method is my favorite.
Click to expand...
Click to collapse
How does that work? Sorry, I'm pretty new to all of this. Do I just zip up the framework apk, name it update.zip, then flash it in CWM? Or is there more to it?
If it's that easy, that would be awesome, if only I could get the apk to compile.
I'm so frustrated with this that I'm about willing to offer a donation to someone who could do it for me, although it would be much more satisfying if I could get it done on my own. Maybe I could give a donation to someone who could successfully walk me through it. The offers out there of anyone wants to take it.
Sent from my Incredible using xda premium
sixfearstheseven said:
Yep, i did the same thing with aapt. I triple and quadruple checked that it was the ICS compatible version, but still no dice.
I don't know. I'm still patiently waiting for a proper developer to throw together a version for the Incredible that has the on screen nav buttons since i know next to nothing about this stuff, but seriously, this process looks so simple yet I'm having so much trouble with it.
Even if i did get it to compile, I'd be stuck because adb never wants to push or pull files from my phone.
Sent from my Incredible using xda premium
Click to expand...
Click to collapse
try again with this aapt... : http://www.mediafire.com/?0q52u6v8vdkpq1i
evilisto said:
try again with this aapt... : http://www.mediafire.com/?0q52u6v8vdkpq1i
Click to expand...
Click to collapse
Were you able to get it to work with that?
I found a work around two days ago. I took the customized XML files and put them in a Metamorph zip file. I ran it and it successfully changed framework-res.apk but the navigation buttons still wouldn't show. Now, I don't know much about this, so I'm not sure if doing it that way should have worked, but if it should have, it didn't, which would mean the instructions in the first post are incomplete.
I'm doing this on my Incredible, so maybe the ROM I'm using is missing something else. I have no idea. I've tried it on three different ICS ROMs and it didn't work on any of them.
When I get a chance, I'll try it with the new aapt.
Sent from my ADR6300 using xda premium
Thanks for that new aapt, it works. It recompiled everything, but the file size is 4mb smaller than the original framework-res.apk. I get nothing but bootloops now. I also compiled with APK Multi Tool which also worked, but with the same results - bootloops.
Would it be possible to enable the soft buttons on a gingerbread ROM?
~=[,,_,,]:3 <----nyancat
Futur Innovations said:
Would it be possible to enable the soft buttons on a gingerbread ROM?
~=[,,_,,]:3 <----nyancat
Click to expand...
Click to collapse
I highly doubt it, enough to confidently say no.
Sent from my GT-P7510 using xda premium
We are all here to learn, take from community and give back to community!!!
@Lord ClockaN
Hya guys, after A LOT of requests, I decided to share with the community something that I found really REALLY useful for Dev's but also for other users too that want to mess up with compiling and decompiling process. Usually, non problems at all with that, but since ICS come out, many dev\users are not able to decompile\compile properly many ics apk (not all). This guide will ensure you a good result, 100% working, easy, and fastest way to mess up with ics for theming and resizing purposes, or whatever you want
BIG THX to my friend and Dev teammate @Bichon for this
Credits
@Beachon (yes, again)
@Xavierjohn22, the amazing author of AutoApktool! Visit his thread HERE, click his thanks button, and support his work with donations, and my personal thanks to author for this tool which is the most powerful and easiest tool ever.
@Brut_all for Apktool
@XDA Community
@Google
About Apktooll
Please consider to visit the original thread about this tool, because what I'm explaining here is just 1\10 of the real skill of this tool. You can do basically whatever you want with AutoApktool, themers will love it, Dev's will appreciate it a lot, I'm sure.
Why can't we use Apktool???
Well, you can, but it's more difficult, that's it.
Why do you say "must use 1.4.1 apktool version"??
The reason why is that since 1.4.2 version, apktool generate java code while recompiling process is going on, and this lead to errors that 9/10 makes decompile process fail.
Requirements (Windows environment, mine is Seven 64 bit)
Java (last version)
JDK (last version)
JDR (last version, usually included in JDK or Java)
SDK (last 3.0 version for ICS source code)
Auto_Apktool 2.0.0 (DOWNLOAD THIS ONE NOT OTHERS!!!)
HOW-TO (NOTE: before start, select Apktool version with option 21, YOU MUST CHOOSE 1.4.1 version!!)
1) Download and simply unpack Auto_ApkTool 2.0.0
2)Click on "autoapktoolmain.bat", prompt will open
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
3)put the apk you want to mess up with in "_INPUT_APK"
4) you can chose more than one option to decompile (option 6 is strongly recommended)
5) when option 6 is being selected, drag the apk from _INPUT_APK folder into the windows prompt and click enter
6) A Note window will appear, and will show IF the decompiling process has been done properly. Once you close that window, you will see the decompiled folder in _INPUT_APK folder
7) do your edits (xml, snali, or png, doesn't matter)
8) recompile with option 7 (NOTE: this time you MUST drag all the FOLDER, NOT the apk)
9) Once recompiling finished, open the decompiled folder, go to "dist" folder, and here you got your edited apk
10) you MUST sign the apk with option 10 (NOTE: drag the apk from dist folder to the prompt, then press enter, and in the SAME folder, a signedxxx.apk will appear)
11) Rename the apk, and push it |NOTE: you can push the apk with 62 option or with sdk typing:
Code:
adb remount
adb push xxx.apk system/app
adb reboot
That's it
Exactly what I was looking for. Thanks a milli.
Dosnt work with stock deodexed SGS2 LPH rom. Log:
[*] C:\Users\Sale\Desktop\AutoAPKTool2.0.0\_INPUT_APK\SystemUI.apk
decompiling C:\Users\Sale\Desktop\AutoAPKTool2.0.0\_INPUT_APK\SystemUI.apk...
I: Baksmaling...
Exception in thread "main" java.lang.RuntimeException: bad magic value: 64 65 78 0a 30 33 36 00
at org.jf.dexlib.DexFile.<init>(DexFile.java:377)
at org.jf.dexlib.DexFile.<init>(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)
salesale said:
Dosnt work with stock deodexed SGS2 LPH rom. Log:
[*] C:\Users\Sale\Desktop\AutoAPKTool2.0.0\_INPUT_APK\SystemUI.apk
decompiling C:\Users\Sale\Desktop\AutoAPKTool2.0.0\_INPUT_APK\SystemUI.apk...
I: Baksmaling...
Exception in thread "main" java.lang.RuntimeException: bad magic value: 64 65 78 0a 30 33 36 00
at org.jf.dexlib.DexFile.<init>(DexFile.java:377)
at org.jf.dexlib.DexFile.<init>(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)
Click to expand...
Click to collapse
Just saw this exact issue, and I don't think it's a tool fault..what U edited before recompiling?
Inviato dal mio HTC Desire HD with Beats Audio usando Tapatalk
Nothing, just decompile and always the fault
salesale said:
Nothing, just decompile and always the fault
Click to expand...
Click to collapse
First you must install framework-res.apk first then choose default option to select ur SystemUI.apk.
Then should be work fine....
If still cannot mean that apk files has been edited before !!!!!
Looks like 9png. files was edited...
Is it true that you edit any png files in res/drawable-* folder ?????
I have installed framework-res. I am not edit any file.
Here is CM9, stock LPB and stock LPH
CM9 http://dl.dropbox.com/u/28679276/CM9.7z
LPB http://www.mediafire.com/?yk9p9rezuv5r4bv
LPH http://dl.dropbox.com/u/28679276/XXLPH.7z
Can you try to decompile? Thanks
salesale said:
Nothing, just decompile and always the fault
Click to expand...
Click to collapse
R U ok with java and jdk? The fault is when U decompile or after edit and recompiling?
Inviato dal mio HTC Desire HD with Beats Audio usando Tapatalk
Java is OK. Works with nexus, SGS1, GNex files. The fault is when decompile
salesale said:
Java is OK. Works with nexus, SGS1, GNex files. The fault is when decompile
Click to expand...
Click to collapse
Something wrong with that apk, which ics version is? Are you able to decompile some apk of the same base?
Inviato dal mio HTC Desire HD with Beats Audio usando Tapatalk
Man, when i try to recompile the program give me the next error:
[*] "C:\Users\Kai5ser Z\Downloads\Auto_ApkTool_2.0.0\AutoAPKTool2.0.0\_INPUT_APK\SystemUI"
recompiling "C:\Users\Kai5ser Z\Downloads\Auto_ApkTool_2.0.0\AutoAPKTool2.0.0\_INPUT_APK\SystemUI"...
I: Smaling...
I: Building resources...
libpng error: Read Error
ERROR: Failure processing PNG image C:\Users\Kai5ser Z\Downloads\Auto_ApkTool_2.0.0\AutoAPKTool2.0.0\_INPUT_APK\SystemUI\res\drawable-hdpi\alert_bar_background_normal.9.png
libpng error: Read Error
ERROR: Failure processing PNG image C:\Users\Kai5ser Z\Downloads\Auto_ApkTool_2.0.0\AutoAPKTool2.0.0\_INPUT_APK\SystemUI\res\drawable-hdpi\compat_mode_help_divider_bottom.9.png
libpng error: Read Error
ERROR: Failure processing PNG image C:\Users\Kai5ser Z\Downloads\Auto_ApkTool_2.0.0\AutoAPKTool2.0.0\_INPUT_APK\SystemUI\res\drawable-hdpi\status_bar_call_ongoing_background.9.png
libpng error: Read Error
ERROR: Failure processing PNG image C:\Users\Kai5ser Z\Downloads\Auto_ApkTool_2.0.0\AutoAPKTool2.0.0\_INPUT_APK\SystemUI\res\drawable-hdpi\tw_plmn_bg.9.png
libpng error: Read Error
ERROR: Failure processing PNG image C:\Users\Kai5ser Z\Downloads\Auto_ApkTool_2.0.0\AutoAPKTool2.0.0\_INPUT_APK\SystemUI\res\drawable-hdpi\tw_quicksetting_divider_line.9.png
C:\Users\Kai5ser Z\Downloads\Auto_ApkTool_2.0.0\AutoAPKTool2.0.0\_INPUT_APK\SystemUI\res\values\public.xml:69: error: Public entry identifier 0x7f0200d0 entry index is larger than available symbols (index 208, total symbols 44).
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\KAI5SE~1\AppData\Local\Temp\APKTOOL8579198258812201192.tmp, -I, C:\Users\Kai5ser Z\apktool\framework\1.apk, -S, C:\Users\Kai5ser Z\Downloads\Auto_ApkTool_2.0.0\AutoAPKTool2.0.0\_INPUT_APK\SystemUI\res, -M, C:\Users\Kai5ser Z\Downloads\Auto_ApkTool_2.0.0\AutoAPKTool2.0.0\_INPUT_APK\SystemUI\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, C:\Users\KAI5SE~1\AppData\Local\Temp\APKTOOL8579198258812201192.tmp, -I, C:\Users\Kai5ser Z\apktool\framework\1.apk, -S, C:\Users\Kai5ser Z\Downloads\Auto_ApkTool_2.0.0\AutoAPKTool2.0.0\_INPUT_APK\SystemUI\res, -M, C:\Users\Kai5ser Z\Downloads\Auto_ApkTool_2.0.0\AutoAPKTool2.0.0\_INPUT_APK\SystemUI\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
Sorry for put it all. maybe you can help me, when i try it to compilate, allways give me that error.
Kaiser Z
Pl. Explain what is the possible reason for showing PARSE error ( not installed) and installed but force close error ( not even start ).
KaiserZ said:
Man, when i try to recompile the program give me the next error:
[*] "C:\Users\Kai5ser Z\Downloads\Auto_ApkTool_2.0.0\AutoAPKTool2.0.0\_INPUT_APK\SystemUI"
recompiling "C:\Users\Kai5ser Z\Downloads\Auto_ApkTool_2.0.0\AutoAPKTool2.0.0\_INPUT_APK\SystemUI"...
I: Smaling...
I: Building resources...
libpng error: Read Error
ERROR: Failure processing PNG image C:\Users\Kai5ser Z\Downloads\Auto_ApkTool_2.0.0\AutoAPKTool2.0.0\_INPUT_APK\SystemUI\res\drawable-hdpi\alert_bar_background_normal.9.png
libpng error: Read Error
ERROR: Failure processing PNG image C:\Users\Kai5ser Z\Downloads\Auto_ApkTool_2.0.0\AutoAPKTool2.0.0\_INPUT_APK\SystemUI\res\drawable-hdpi\compat_mode_help_divider_bottom.9.png
libpng error: Read Error
ERROR: Failure processing PNG image C:\Users\Kai5ser Z\Downloads\Auto_ApkTool_2.0.0\AutoAPKTool2.0.0\_INPUT_APK\SystemUI\res\drawable-hdpi\status_bar_call_ongoing_background.9.png
libpng error: Read Error
ERROR: Failure processing PNG image C:\Users\Kai5ser Z\Downloads\Auto_ApkTool_2.0.0\AutoAPKTool2.0.0\_INPUT_APK\SystemUI\res\drawable-hdpi\tw_plmn_bg.9.png
libpng error: Read Error
ERROR: Failure processing PNG image C:\Users\Kai5ser Z\Downloads\Auto_ApkTool_2.0.0\AutoAPKTool2.0.0\_INPUT_APK\SystemUI\res\drawable-hdpi\tw_quicksetting_divider_line.9.png
C:\Users\Kai5ser Z\Downloads\Auto_ApkTool_2.0.0\AutoAPKTool2.0.0\_INPUT_APK\SystemUI\res\values\public.xml:69: error: Public entry identifier 0x7f0200d0 entry index is larger than available symbols (index 208, total symbols 44).
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\KAI5SE~1\AppData\Local\Temp\APKTOOL8579198258812201192.tmp, -I, C:\Users\Kai5ser Z\apktool\framework\1.apk, -S, C:\Users\Kai5ser Z\Downloads\Auto_ApkTool_2.0.0\AutoAPKTool2.0.0\_INPUT_APK\SystemUI\res, -M, C:\Users\Kai5ser Z\Downloads\Auto_ApkTool_2.0.0\AutoAPKTool2.0.0\_INPUT_APK\SystemUI\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, C:\Users\KAI5SE~1\AppData\Local\Temp\APKTOOL8579198258812201192.tmp, -I, C:\Users\Kai5ser Z\apktool\framework\1.apk, -S, C:\Users\Kai5ser Z\Downloads\Auto_ApkTool_2.0.0\AutoAPKTool2.0.0\_INPUT_APK\SystemUI\res, -M, C:\Users\Kai5ser Z\Downloads\Auto_ApkTool_2.0.0\AutoAPKTool2.0.0\_INPUT_APK\SystemUI\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
Sorry for put it all. maybe you can help me, when i try it to compilate, allways give me that error.
Kaiser Z
Click to expand...
Click to collapse
U are messin up with 9png mate, as themer who I am, I remember you that those png MUST be fixed with 9png patch...also remember that guys, messing up with png is always safer and cleaner when it's done on the stock apk, which means no xml edits, no smali, whatever! First of all, custom png, second recompile, third smali/xml edits, recompile again, that's the way..
Inviato dal mio HTC Desire HD with Beats Audio usando Tapatalk
memnoc said:
U are messin up with 9png mate, as themer who I am, I remember you that those png MUST be fixed with 9png patch...also remember that guys, messing up with png is always safer and cleaner when it's done on the stock apk, which means no xml edits, no smali, whatever! First of all, custom png, second recompile, third smali/xml edits, recompile again, that's the way..
Inviato dal mio HTC Desire HD with Beats Audio usando Tapatalk
Click to expand...
Click to collapse
Man you gonna hate, but im so noob, can you explain me more easily every spet that you sed.....? please, i really wanna do that, i mean, i wanna to custom the apk, i hope you can help me, and if you do that, i gonna give mi gratitud . greetings. I hope you can understan what i sad, my english is not good XD
Kaiser Z
memnoc: can u make a mirror download. I can't download from https://rapidshare.com/files/1410893164/Auto_ApkTool_2.0.0.zip please i recomend u uplad from mediafire.com
Great guide... However, I am running into the same wall that I always to when I try and re-compile the ICS Systemui.apk from my Asus Transformer Prime. I get a aapt.exe crash, followed by the following error:
Code:
C:\Users\Troy\Desktop\AutoAPKTool2.0.0\_INPUT_APK\SystemUI
recompiling C:\Users\Troy\Desktop\AutoAPKTool2.0.0\_INPUT_APK\SystemUI...
I: Smaling...
I: Building resources...
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\Troy\AppData\Local\Temp\APKTOOL2330637792693006158.tmp, -I, C:\Users\Troy\apktool\framework\1.apk, -S, C:\Users\Troy\Desktop\AutoAPKTool2.0.0\_INPUT_APK\SystemUI\res, -M, C:\Users\Troy\Desktop\AutoAPKTool2.0.0\_INPUT_APK\SystemUI\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, C:\Users\Troy\AppData\Local\Temp\APKTOOL2330637792693006158.tmp, -I, C:\Users\Troy\apktool\framework\1.apk, -S, C:\Users\Troy\Desktop\AutoAPKTool2.0.0\_INPUT_APK\SystemUI\res, -M, C:\Users\Troy\Desktop\AutoAPKTool2.0.0\_INPUT_APK\SystemUI\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
I made no changes to the systemui, I simply decompiled it (which worked fine) and then recompiled it.
Yes, I did apktool install the framework from the same system, before hand.
I have gotten this error everytime on the systemui, no matter which guide or apktool version I use. The framework-res works without a hitch, but the damn systemui is a ***** that has no mercy!
Thank you for any help you can throw my way. Me and a few others on the Prime thread are trying to get a % battery mod done for the Prime, but we need to be able to recompile the SystemUI.apk first.
- Thanks