[HOWTO] Integrating/Adding applications to the settings menu - LG Optimus Black

In this tutorial we will cover how to add an item in the settings menu for integration when cooking your own rom, or for personal use. Using windows XP, but should apply to any windows version, Linux users: you most likely are smart enough to use this guide with whatever flavor of linux you're using, so i wont cover linux specific guidelines.
The original reason i began doing this was because i hate clutter in my app drawer, and i like accessing settings for things from the.... you guessed it: Settings menu.
For this tutorial we will use the Spare Parts app, but this applies to almost all applications that you would desire adding.
Materials :
PSPad or Notepad++ (i'll use PSPad in this tutorial, it's just my preference)
APKMultiTool (or any other, like elesbb's GUI APK Tool v1.2.4.5, etc...)
SpareParts APK (or what you want !)
Settings APK from the rom you wish to modify
Archive manager (7z or Winrar, i use Winrar)
A general understanding of using APKMultiTool or APKManager is a great start, i'll try to make this guide friendly to those who arent familiar.
Process :
01) Install APKMultiTool
02) Place both APK files in APKMultiTool's place-apk-here-for-modding folder
{
"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"
}
03) Start APKMultiTool by double clicking script.bat in the main APKMultiTool folder
04) Select the settings app by typing 25 then enter, then the number next to the settings app then enter
05) Decompile both APKS by selecting option number 9 after selecting the APK from the menu from before
06) Get Back to the APKMultiTool main folder, then enter projects folder, then Settings.apk folder
07) Navigate to res/xml from this folder and open the settings.xml file with pspad (right click and select PSPad or open from pspad directly) to add a new action and icon
08) We'll add it right after the display settings entry, find it and copy the entire selection, then after IconPreferenceScreen> hit enter to make a new line.
09) Paste the entire action, this is what we will edit, you can type it all out word for word, but this is easier, and there is less room for a mistake
10) after pasting, we'll change the values for the new settings action, string name (title), and drawable name (icon) see below pictures
11) change all the references from display to sp or spareparts, or anything you want to call it, just make sure it's consistent as in the next steps we will use the titles and strings you created. the @drawable will be the name of the icon you create, the @string will be the title used to display the menu item. you will need to change the target package to spare part's internal app name (this can be found in the SpareParts project folder inside AndroidManifest.xml)
and the target class (the action within the target package to open or perform). to obtain the target class, the easiest way i've found is installing the app you want to add and using adw and finding a blank area on your homescreen(s), long press, then select custom shortcut>pick your activity>activities>browse down until you find the SpareParts app, and expand with the arrow on the left SpareParts only has one action, but other apps will have several. the first on the list is usually it's opening class it's in the ( )'s in this example it's .SpareParts. the target class is the internal app name.class so here we will add com.android.spare_parts.SpareParts
14) open strings.xml
15) navigate to the bottom of the strings xml and copy the final string and as before at the end press enter and paste to modify a new string. the first part is the string name that you made above, the second is the actually title that will appear in the settings menu (Spare Parts in ths example)
16) save the file and close
17) create a graphic icon (32 pixels by 32 pixels or 32x32) for the selection from the settings menu, we will call it ic_settings_sp.png
18) place this icon in the res/drawable-mdpi folder
19) open the public.xml in the res/values folder where you found the strings.xml file
EDIT : Seems that you don't need to do this, it may cause some troubles when recompiling. So, just jump from step 18 to 24 Thanks RomWiz
20) this takes a little work and a little understanding of how hex numbers work. hex numbers go from 0 to 9 then a-f, this gives sixteen values, so hex numbers conform to this order - 0123456789abcdef the reason this is important is that you need to find the last hex number in the drawable range. the public.xml file is usually not in order so it takes some work and some time to find the number you need to assign a new "id" to the icon, and string we are adding. if you are using a fresh Settings.apk basically you'll take the highest number you've found and add 1 to it using the above hex order until you find a number that doesnt exist. in this example the we find it here:
so copy that line, create a new line under it and add the name of the icon you created and add 1 to the number at the end
21) repeat the above process to add the string we created earlier in the strings section of public.xml
22) save the file and close
24) you are now ready to compile the APK, in the APKMultiTool screen select teh settings.apk using option 25 again and then use option 11 to compile the APK
25) if you get errors, run the log, at the end of the log it will usually list the problem you encountered if you did. if it mentions something being out of range you need to chek to make sure your numbers are correct, if it mentions missing resources you havent properly added the strings or icons
26) if all goes well you will be asked if this is a system apk, either option is fine, the second option is if you want to keep old files to avoid errors. answering no is the easiest way. just answering no to both works fine
27) you should now have a newly compiled APK, in the place-apk-here-for-modding folder with the prefix "unsigned"
28) open both the Settings.apk and unsignedSettings.apk file with winrar or winzip
29) transfer find the icon in the unsignedSettings.apk /res/drawable-mdpi folder and transfer it accordingly to the Settings.apk /res/drawable folder, do the same with the /res/xml/settings.xml and the /resources.arsc file.
30) your new settings apk is now ready to be pushed to /system/app on your device.
31) Optional - if not already installed, place SpareParts.apk into the /system/app folder to make it a system app
32) Optional - if you want to remove SpareParts from the app drawer you'll need to decompile the spare parts apk using the steps above and edit one line from the AndroidManifest.xml file, just delete the entire launcher line it looks like this:
33) Optional - Recompile the SpareParts.xml file and sign it if you wish (SpareParts can be signed, DO NOT perform this step on the Settings.apk file, it will not work due to mismatched signatures in the uid)
Don't forget permissions...
That should be it.

Nice.
repulse said:
33) Optional - Recompile the SpareParts.xml file and sign it if you wish (SpareParts can be signed, DO NOT perform this step on the Settings.apk file, it will not work due to mismatched signatures in the uid)
Click to expand...
Click to collapse
If you have access to the key that was used originally then you can resign Settings.apk with that key.

good guide we need more than like this guides thanks you.

I'm using your guide trying to add holo launcher settings into the android setting menu. I have sucessfully added it to the menu, but it crashes when selected. logcat gives the following error
Code:
I/ActivityManager( 640): START u0 {act=android.intent.action.MAIN cmp=com.mobint.hololauncher/.SettingsActivity} from pid 3312
E/AndroidRuntime( 3312): FATAL EXCEPTION: main
E/AndroidRuntime( 3312): android.content.ActivityNotFoundException: Unable to find explicit activity class {com.mobint.hololauncher/com.mobint.hololauncher.SettingsActivity}; have you declared this activity in your AndroidManifest.xml?
As per your guide i have the following in my settingsheader.xml file (don't have a settings.xml)
Code:
<header android:id="@+id/launcher_settings"
android:title="@string/launcher_settings_title"
android:icon="@drawable/ic_settings_launcher" >
<intent
android:action="android.intent.action.MAIN"
android:targetPackage="com.mobint.hololauncher"
android:targetClass="com.mobint.hololauncher.SettingsActivity" />
</header>
and this added to the end of my strings.xml
Code:
<string name="launcher_settings_title">Launcher Settings</string>
Any help would be great.

Haze028 said:
I'm using your guide trying to add holo launcher settings into the android setting menu. I have sucessfully added it to the menu, but it crashes when selected. logcat gives the following error
Code:
I/ActivityManager( 640): START u0 {act=android.intent.action.MAIN cmp=com.mobint.hololauncher/.SettingsActivity} from pid 3312
E/AndroidRuntime( 3312): FATAL EXCEPTION: main
E/AndroidRuntime( 3312): android.content.ActivityNotFoundException: Unable to find explicit activity class {com.mobint.hololauncher/com.mobint.hololauncher.SettingsActivity}; have you declared this activity in your AndroidManifest.xml?
As per your guide i have the following in my settingsheader.xml file (don't have a settings.xml)
Code:
<header android:id="@+id/launcher_settings"
android:title="@string/launcher_settings_title"
android:icon="@drawable/ic_settings_launcher" >
<intent
android:action="android.intent.action.MAIN"
android:targetPackage="com.mobint.hololauncher"
android:targetClass="com.mobint.hololauncher.SettingsActivity" />
</header>
and this added to the end of my strings.xml
Code:
<string name="launcher_settings_title">Launcher Settings</string>
Any help would be great.
Click to expand...
Click to collapse
What rom ?

repulse said:
What rom ?
Click to expand...
Click to collapse
Aokp 4.2.1
I have the optimus g, just hoping you might be able to point me in the right direction

Haze028 said:
Aokp 4.2.1
I have the optimus g, just hoping you might be able to point me in the right direction
Click to expand...
Click to collapse
Will try it ASAP and tell you :thumbup:
EDIT: can you please send me your settings.apk ?
Sent from my LG-P970 using xda premium

repulse said:
Will try it ASAP and tell you :thumbup:
EDIT: can you please send me your settings.apk ?
Sent from my LG-P970 using xda premium
Click to expand...
Click to collapse
Thanks in andvance for taking a look, sorry for delayed reply. Here is my settings apk,.
I'm a noob here, just learning as I go. As it does display in the setting list properly I'm wondering if it has to do with the action.MAIN as the settings is not the main action for holo launcher.... or am i not understanding the action.MAIN properly...
either way, if you are able to help me get this going That would be great!

I will take a look at this tomorrow 'cause i'm not at home now
Sent from my LG-P970 using xda premium

@Haze028 can you also provide me your original settings.apk please ?

repulse said:
@Haze028 can you also provide me your original settings.apk please ?
Click to expand...
Click to collapse
As requested Thanks again.

What about the same tutorial but for ICS? I tried it yesterday with ICS, but things are different, and I don't know how to keep going... :silly:
I was trying to add it's task manager's to it, just before power saver option (LGSettings3.apk), and I did it but it gave me FC trying to launch

Well I figured out my issue. Your guide is great and worked fine. My problem was
android:targetPackage="com.mobint.hololauncher" needed to be com.mobint.hololauncher.hd
Everything works great now. Thanks for your quick reply and egarness to help. And for your excellent guide.

Haze028 said:
Well I figured out my issue. Your guide is great and worked fine. My problem was
android:targetPackage="com.mobint.hololauncher" needed to be com.mobint.hololauncher.hd
Everything works great now. Thanks for your quick reply and egarness to help. And for your excellent guide.
Click to expand...
Click to collapse
Sorry for the delay to reply
Was busy with IRL stuff

repulse said:
Sorry for the delay to reply
Was busy with IRL stuff
Click to expand...
Click to collapse
All good sir. Appreciate the effort you put forth trying to help me out.

I don't have settings.xml
settings_header.xml it is

RomWiz said:
I don't have settings.xml
settings_header.xml it is
Click to expand...
Click to collapse
Yep, settings_header.xml do the job too
Sent from my LG-P970 using xda premium

repulse said:
Yep, settings_header.xml do the job too
Sent from my LG-P970 using xda premium
Click to expand...
Click to collapse
Problem when compiling
Code:
C:\Users\Daniel\apktool\WizardRom>apktool b settings c:/users/daniel/desktop/set
tings.apk
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
C:\Users\Daniel\apktool\WizardRom\settings\res\values\public.xml:3080: error: Pu
blic entry identifier 0x7f0b0964 entry index is larger than available symbols (i
ndex 2404, total symbols 1931).
C:\Users\Daniel\apktool\WizardRom\settings\res\values\public.xml:3080: error: Pu
blic symbol string/xposed_dpi_settings declared here is not defined.
C:\Users\Daniel\apktool\WizardRom\settings\res\values\public.xml:3079: error: Pu
blic entry identifier 0x7f0b0963 entry index is larger than available symbols (i
ndex 2403, total symbols 1931).
C:\Users\Daniel\apktool\WizardRom\settings\res\values\public.xml:3079: error: Pu
blic symbol string/xposed_frameworks_settings declared here is not defined.
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec command: [aapt, p, --min-
sdk-version, 17, --target-sdk-version, 17, -F, C:\Users\Daniel\AppData\Local\Tem
p\APKTOOL5268858854168196489.tmp, -I, C:\Users\Daniel\apktool\framework\1.apk, -
S, C:\Users\Daniel\apktool\WizardRom\settings\res, -M, C:\Users\Daniel\apktool\W
izardRom\settings\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:358)
at brut.androlib.Androlib.buildResources(Androlib.java:283)
at brut.androlib.Androlib.build(Androlib.java:206)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not
exec command: [aapt, p, --min-sdk-version, 17, --target-sdk-version, 17, -F, C:
\Users\Daniel\AppData\Local\Temp\APKTOOL5268858854168196489.tmp, -I, C:\Users\Da
niel\apktool\framework\1.apk, -S, C:\Users\Daniel\apktool\WizardRom\settings\res
, -M, C:\Users\Daniel\apktool\WizardRom\settings\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:357)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:336)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sd
k-version, 17, --target-sdk-version, 17, -F, C:\Users\Daniel\AppData\Local\Temp\
APKTOOL5268858854168196489.tmp, -I, C:\Users\Daniel\apktool\framework\1.apk, -S,
C:\Users\Daniel\apktool\WizardRom\settings\res, -M, C:\Users\Daniel\apktool\Wiz
ardRom\settings\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:355)
... 6 more

RomWiz said:
C:\Users\Daniel\apktool\WizardRom\settings\res\values\public.xml:3080: error: Pu
blic entry identifier 0x7f0b0964 entry index is larger than available symbols (i
ndex 2404, total symbols 1931).
C:\Users\Daniel\apktool\WizardRom\settings\res\values\public.xml:3080: error: Pu
blic symbol string/xposed_dpi_settings declared here is not defined.
C:\Users\Daniel\apktool\WizardRom\settings\res\values\public.xml:3079: error: Pu
blic entry identifier 0x7f0b0963 entry index is larger than available symbols (i
ndex 2403, total symbols 1931).
C:\Users\Daniel\apktool\WizardRom\settings\res\values\public.xml:3079: error: Pu
blic symbol string/xposed_frameworks_settings declared here is not defined.
Click to expand...
Click to collapse
Wrong identifier entries (0x7f______)

diazao said:
Wrong identifier entries (0x7f______)
Click to expand...
Click to collapse
I changed it to match the above one but now there is another error
Code:
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
C:\Users\Daniel\apktool\WizardRom\settings\res\values\public.xml:3079: error: Pu
blic resource string/xposed_frameworks_settings has conflicting type codes for i
ts public identifiers (0xb vs 0x10).
C:\Users\Daniel\apktool\WizardRom\settings\res\values\public.xml:3080: error: Pu
blic resource string/xposed_dpi_settings has conflicting type codes for its publ
ic identifiers (0xb vs 0x10).
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec command: [aapt, p, --min-
sdk-version, 17, --target-sdk-version, 17, -F, C:\Users\Daniel\AppData\Local\Tem
p\APKTOOL3325692844454988854.tmp, -I, C:\Users\Daniel\apktool\framework\1.apk, -
S, C:\Users\Daniel\apktool\WizardRom\settings\res, -M, C:\Users\Daniel\apktool\W
izardRom\settings\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:358)
at brut.androlib.Androlib.buildResources(Androlib.java:283)
at brut.androlib.Androlib.build(Androlib.java:206)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not
exec command: [aapt, p, --min-sdk-version, 17, --target-sdk-version, 17, -F, C:
\Users\Daniel\AppData\Local\Temp\APKTOOL3325692844454988854.tmp, -I, C:\Users\Da
niel\apktool\framework\1.apk, -S, C:\Users\Daniel\apktool\WizardRom\settings\res
, -M, C:\Users\Daniel\apktool\WizardRom\settings\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:357)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:336)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sd
k-version, 17, --target-sdk-version, 17, -F, C:\Users\Daniel\AppData\Local\Temp\
APKTOOL3325692844454988854.tmp, -I, C:\Users\Daniel\apktool\framework\1.apk, -S,
C:\Users\Daniel\apktool\WizardRom\settings\res, -M, C:\Users\Daniel\apktool\Wiz
ardRom\settings\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:355)
... 6 more

Related

[MOD][15 Toggles] How to mod Lidroid framework for JellyBean Roms

This is an update of this guide to get it working on Jelly Bean Roms, all we need is a 3 empty frameworks to rebuild Lidroid one (Thanks to LegendK95 for the idea), i built 3 fake frameworks: wanam3.apk, wanam4.apk, wanam5.apk.
Get them from attachments and push them with Apktool ( i recommend this Apktool update, thank to iBotPeaches):
Code:
apktool.bat if path_to/framework-res.apk
apktool.bat if path_to/twframework-res.apk
apktool.bat if path_to/wanam3.apk
apktool.bat if path_to/wanam4.apk
apktool.bat if path_to/wanam5.apk
Now you can decompile "lidroid-res.apk" (Available here), open "apktool.yml", you will find this :
Code:
isFrameworkApk: true
usesFramework:
ids:
- 1
sdkInfo:
minSdkVersion: '16'
targetSdkVersion: '16'
Add the 3 frameworks (2,3 and 4):
Code:
isFrameworkApk: true
usesFramework:
ids:
- 1
- 2
- 3
- 4
sdkInfo:
minSdkVersion: '16'
targetSdkVersion: '16'
Done, make your changes and re-compile.
Woohoo! many thanks mate, now I can make AndroidGX-MOD S3 fully compatible with Jelly Bean roms
We have chance to get you into this board! :good:
... I return working on it!
Ok, just tried your tutorial, but seems like there is a problem : I can't decompile properly without errors.
I'm still using Wanam APK ICS Manager but replaced with latest files from apktool thread that you provided (same for aapt.exe).
I decompiled lidroid-res.apk as dependencies with wanam3-5.apk ==> OK, but recompiling is not, here is my log.txt :
Code:
--------------------------------------------------------------------------
|25/09/2012 -- 13:16:02,68|
--------------------------------------------------------------------------
java version "1.7.0_07"
Java(TM) SE Runtime Environment (build 1.7.0_07-b10)
Java HotSpot(TM) Client VM (build 23.3-b01, mixed mode, sharing)
Exception in thread "main" brut.androlib.AndrolibException: java.io.FileNotFoundException: X:\Android common\APK Manager JB (by Wanam)\place-apk-here-for-modding\wanam3.apk"X:\Android common\APK Manager JB (by Wanam)\place-apk-here-for-modding\wanam4.apk"X:\Android common\APK Manager JB (by Wanam)\place-apk-here-for-modding\wanam5.apk (La syntaxe du nom de fichier, de répertoire ou de volume est incorrecte)
at brut.androlib.res.AndrolibResources.installFramework(AndrolibResources.java:481)
at brut.androlib.Androlib.installFramework(Androlib.java:447)
at brut.apktool.Main.cmdInstallFramework(Main.java:199)
at brut.apktool.Main.main(Main.java:72)
Caused by: java.io.FileNotFoundException: X:\Android common\APK Manager JB (by Wanam)\place-apk-here-for-modding\wanam3.apk"X:\Android common\APK Manager JB (by Wanam)\place-apk-here-for-modding\wanam4.apk"X:\Android common\APK Manager JB (by Wanam)\place-apk-here-for-modding\wanam5.apk (La syntaxe du nom de fichier, de répertoire ou de volume est incorrecte)
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(Unknown Source)
at java.util.zip.ZipFile.<init>(Unknown Source)
at java.util.zip.ZipFile.<init>(Unknown Source)
at brut.androlib.res.AndrolibResources.installFramework(AndrolibResources.java:449)
... 3 more
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\sub\apktool\framework\1.apk
I: Loaded.
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Done.
I: Copying assets and libs...
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
Exception in thread "main" brut.androlib.err.CantFindFrameworkResException
at brut.androlib.res.AndrolibResources.getFrameworkApk(AndrolibResources.java:441)
at brut.androlib.Androlib.parseUsesFramework(Androlib.java:482)
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)
I tried to recompile without doing the modification of apktool.yml, and recompiling is OK this time, but I guess it's not the right way.
Any idea please ?
AndroidGX said:
Ok, just tried your tutorial, but seems like there is a problem : I can't decompile properly without errors.
I'm still using Wanam APK ICS Manager but replaced with latest files from apktool thread that you provided (same for aapt.exe).
I decompiled lidroid-res.apk as dependencies with wanam3-5.apk ==> OK, but recompiling is not, here is my log.txt :
Code:
--------------------------------------------------------------------------
|25/09/2012 -- 13:16:02,68|
--------------------------------------------------------------------------
java version "1.7.0_07"
Java(TM) SE Runtime Environment (build 1.7.0_07-b10)
Java HotSpot(TM) Client VM (build 23.3-b01, mixed mode, sharing)
Exception in thread "main" brut.androlib.AndrolibException: java.io.FileNotFoundException: X:\Android common\APK Manager JB (by Wanam)\place-apk-here-for-modding\wanam3.apk"X:\Android common\APK Manager JB (by Wanam)\place-apk-here-for-modding\wanam4.apk"X:\Android common\APK Manager JB (by Wanam)\place-apk-here-for-modding\wanam5.apk (La syntaxe du nom de fichier, de répertoire ou de volume est incorrecte)
at brut.androlib.res.AndrolibResources.installFramework(AndrolibResources.java:481)
at brut.androlib.Androlib.installFramework(Androlib.java:447)
at brut.apktool.Main.cmdInstallFramework(Main.java:199)
at brut.apktool.Main.main(Main.java:72)
Caused by: java.io.FileNotFoundException: X:\Android common\APK Manager JB (by Wanam)\place-apk-here-for-modding\wanam3.apk"X:\Android common\APK Manager JB (by Wanam)\place-apk-here-for-modding\wanam4.apk"X:\Android common\APK Manager JB (by Wanam)\place-apk-here-for-modding\wanam5.apk (La syntaxe du nom de fichier, de répertoire ou de volume est incorrecte)
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(Unknown Source)
at java.util.zip.ZipFile.<init>(Unknown Source)
at java.util.zip.ZipFile.<init>(Unknown Source)
at brut.androlib.res.AndrolibResources.installFramework(AndrolibResources.java:449)
... 3 more
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\sub\apktool\framework\1.apk
I: Loaded.
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Done.
I: Copying assets and libs...
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
Exception in thread "main" brut.androlib.err.CantFindFrameworkResException
at brut.androlib.res.AndrolibResources.getFrameworkApk(AndrolibResources.java:441)
at brut.androlib.Androlib.parseUsesFramework(Androlib.java:482)
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)
I tried to recompile without doing the modification of apktool.yml, and recompiling is OK this time, but I guess it's not the right way.
Any idea please ?
Click to expand...
Click to collapse
Did you push the 3 frameworks? if so, you don't need to decompile with dependencies.
wanam said:
Did you push the 3 frameworks? if so, you don't need to decompile with dependencies.
Click to expand...
Click to collapse
Thanks! it worked like a charm :good:
I never knew that just pushing while no selectionning the concerned lidroid-res will be working, but it is
Very interesting.
Thanks again mate.
AndroidGX said:
Thanks! it worked like a charm :good:
I never knew that just pushing while no selectionning the concerned lidroid-res will be working, but it is
Very interesting.
Thanks again mate.
Click to expand...
Click to collapse
My pleasure
@Wanam or
Someone can explain me the first part, the apktool.bat stuffs. How can i push the wanam files?
I try those commands but i have several errors
I'm able to de-compile lidroid-res.apk without the push parts.
In re-compiling (apktool b lidroid-res lidroid-res-new.apk) the first line after hit enter is: "Could not find sources" but the rest of process goes ok.
In the end i have a new apk with a few less mbs than the original.
Any help will be very appreciated.
Thanks... Working great...
Thanks my friend wanam!
works like a charm!
thanks for all help!
regards
adesirello
Thanks for this mod .
can you explain how i can put 8toogle or 6 or 5 if i want in portrait mode ?
i have note 2 and i have 5 toggle , but i prefere 8 toggle it is mod in lidroid-res.apk or in systemui.apk
can you tell what xml i wan modified please
i have this pb but i have put 5 ressources
Microsoft Windows [version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. Tous droits réservés.
C:\APK_JB_MANAGER-By-BroLee\other>apktool.bat if path_to/framework-res.apk
Exception in thread "main" brut.androlib.AndrolibException: java.io.FileNotFound
Exception: path_to\framework-res.apk (Le chemin dÆaccÞs spÚcifiÚ est introuvable
)
at brut.androlib.res.AndrolibResources.installFramework(AndrolibResource
s.java:477)
at brut.androlib.Androlib.installFramework(Androlib.java:448)
at brut.apktool.Main.cmdInstallFramework(Main.java:193)
at brut.apktool.Main.main(Main.java:69)
Caused by: java.io.FileNotFoundException: path_to\framework-res.apk (Le chemin d
ÆaccÞs spÚcifiÚ est introuvable)
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(Unknown Source)
at java.util.zip.ZipFile.<init>(Unknown Source)
at brut.androlib.res.AndrolibResources.installFramework(AndrolibResource
s.java:445)
... 3 more
C:\APK_JB_MANAGER-By-BroLee\other>apktool.bat if C:\APK_JB_MANAGER-By-BroLee\oth
er\framework-res.apk
I: Framework installed to: C:\Users\Lopes Carla\apktool\framework\1.apk
C:\APK_JB_MANAGER-By-BroLee\other>apktool.bat if C:\APK_JB_MANAGER-By-BroLee\oth
er\twframework-res.apk
I: Framework installed to: C:\Users\Lopes Carla\apktool\framework\2.apk
C:\APK_JB_MANAGER-By-BroLee\other>apktool.bat if C:\APK_JB_MANAGER-By-BroLee\oth
er\wanam3.apk
I: Framework installed to: C:\Users\Lopes Carla\apktool\framework\3.apk
C:\APK_JB_MANAGER-By-BroLee\other>apktool.bat if C:\APK_JB_MANAGER-By-BroLee\oth
er\wanam4.apk
I: Framework installed to: C:\Users\Lopes Carla\apktool\framework\4.apk
C:\APK_JB_MANAGER-By-BroLee\other>apktool.bat if C:\APK_JB_MANAGER-By-BroLee\oth
er\wanam5.apk
I: Framework installed to: C:\Users\Lopes Carla\apktool\framework\5.apk
C:\APK_JB_MANAGER-By-BroLee\other>apktool d lidroid-res.apk C:\APK_JB_MANAGER-By
-BroLee\other\lidroid
I: Loading resource table...
I: Loaded.
I: Loading resource table from file: C:\Users\Lopes Carla\apktool\framework\1.ap
k
I: Loaded.
I: Decoding file-resources...
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...
C:\APK_JB_MANAGER-By-BroLee\other>apktool b C:\APK_JB_MANAGER-By-BroLee\other\li
droid
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
Warning: AndroidManifest.xml already defines minSdkVersion (in http://schemas.an
droid.com/apk/res/android); using existing value in manifest.
Warning: AndroidManifest.xml already defines targetSdkVersion (in http://schemas
.android.com/apk/res/android); using existing value in manifest.
I: Building apk file...
C:\APK_JB_MANAGER-By-BroLee\other>
Click to expand...
Click to collapse
Help please
hi
i want to change some stuff into lidroid-res.apk
Step:
installed dependencies no error occured
decompiled lidroid-res.apk no error
edited apktool.yml no error
done my changes
recompile lidroid-res no error
signed lidroid-res.apk
push in system/framework
fix permissions to rw-r-r
reboot
SystemUI CRASH!!!!!!!!
What's my bad?
Thanks in advance
i'm on LS2 for gt-n7000
i attached my modded
lidroid-res.apk
Anyone can help me?
Please
Ofeliax said:
hi
i want to change some stuff into lidroid-res.apk
Step:
installed dependencies no error occured
decompiled lidroid-res.apk no error
edited apktool.yml no error
done my changes
recompile lidroid-res no error
signed lidroid-res.apk
push in system/framework
fix permissions to rw-r-r
reboot
SystemUI CRASH!!!!!!!!
What's my bad?
Thanks in advance
i'm on LS2 for gt-n7000
i attached my modded
lidroid-res.apk
Click to expand...
Click to collapse
Why do you sign it?
Hi wanam
You mean that i just push in system/framework the lidroid-res.apk from /dist folder , right?
But at apktool.yml i must add until to -4 or -5?
Thanks for support!!!!!!
Ofeliax said:
Hi wanam
You mean that i just push in system/framework the lidroid-res.apk from /dist folder , right?
But at apktool.yml i must add until to -4 or -5?
Thanks for support!!!!!!
Click to expand...
Click to collapse
No need to sign it, just add 2-3-4 resources and compile.
wanam said:
No need to sign it, just add 2-3-4 resources and compile.
Click to expand...
Click to collapse
Ok
I'll try so and I'll give you feedback
Thanks
It work perfectly
man i using apktool the lastest one. and im am using a note 2 and trying to color the toggle mod and its not sticking nothing is showing up as far as my color changes. any idea? thing compile just find and enter the steps installed the 3 .apks and still nothing

[TUTORIAL] How to Decompile and Recompile ICS .Apk Files][Easy ONE]

This is an Easy Tutorial, How to Decompile .apk and Recompile .apk Files​If u like this Tutorial, Hit THANKS Button​CREDITS
Memnoc - For Gud Ideas.
Xavierjohn22 - the amazing author of AutoApktool go Here, Hit thanks to Him Too.
Sandy7-For Motivation.
Requirements
Java (last version)
JDK (last version)
JDR (last version, usually included in JDK or Java)
Auto_Apktool 2.0.0 (DOWNLOAD THIS ONE NOT OTHERS)
HOW TO DO
NOTE: before start, select Apktool version with option 21, YOU MUST CHOOSE 1.4.1 version
1) Download and simply unpack Auto_ApkTool
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 EDIT, in "_INPUT_APK"
4) Nw u Should Choose "option 6" for 'decompiling .apk
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, smali, or png, WHATEVER)
8) recompile with option 7 (NOTE: this time you MUST drag all the FOLDER, NOT the apk)
9) Once recompiling finished, u will Get a Dcompiled NOTE window that Shows your apk is sucessfully Compiled, Close that Window, Once open the decompiled folder, go to "dist" folder, and here you got your edited apk
10) NOW this is the Last step, since u cannot Sign System app, u will have to Copy the META-INF foldrer frm the Orginal apk to the edited apk, for more Info See the "Screen"
11) Rename the apk if Needed, and push it.
Reserved, Tutorial for how to de/re-compile, .jar files.
Reserved2, for video tutorial!
FAQ's​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
I got errror
Hello,
I follow this instruction but when I recomoile (option 7 drag with folder), I got error
Log is below:
Code:
[*] "D:\Android\DRCompileAPK\AutoAPKTool2.0.4\_INPUT_APK\ZPlayer v3.6-AnDrOiD"
recompiling "D:\Android\DRCompileAPK\AutoAPKTool2.0.4\_INPUT_APK\ZPlayer v3.6-AnDrOiD"...
I: Smaling...
I: Building resources...
(skipping (null) file 'D:\Android\DRCompileAPK\AutoAPKTool2.0.4\_INPUT_APK\ZPlayer v3.6-AnDrOiD\res\drawable-hdpi\_next.png')
(skipping (null) file 'D:\Android\DRCompileAPK\AutoAPKTool2.0.4\_INPUT_APK\ZPlayer v3.6-AnDrOiD\res\drawable-hdpi\_pause.png')
(skipping (null) file 'D:\Android\DRCompileAPK\AutoAPKTool2.0.4\_INPUT_APK\ZPlayer v3.6-AnDrOiD\res\drawable-hdpi\_play.png')
(skipping (null) file 'D:\Android\DRCompileAPK\AutoAPKTool2.0.4\_INPUT_APK\ZPlayer v3.6-AnDrOiD\res\drawable-hdpi\_previous.png')
D:\Android\DRCompileAPK\AutoAPKTool2.0.4\_INPUT_APK\ZPlayer v3.6-AnDrOiD\res\values\public.xml:19: error: Public symbol drawable/_next declared here is not defined.
D:\Android\DRCompileAPK\AutoAPKTool2.0.4\_INPUT_APK\ZPlayer v3.6-AnDrOiD\res\values\public.xml:20: error: Public symbol drawable/_pause declared here is not defined.
D:\Android\DRCompileAPK\AutoAPKTool2.0.4\_INPUT_APK\ZPlayer v3.6-AnDrOiD\res\values\public.xml:21: error: Public symbol drawable/_play declared here is not defined.
D:\Android\DRCompileAPK\AutoAPKTool2.0.4\_INPUT_APK\ZPlayer v3.6-AnDrOiD\res\values\public.xml:22: error: Public symbol drawable/_previous declared here is not defined.
D:\Android\DRCompileAPK\AutoAPKTool2.0.4\_INPUT_APK\ZPlayer v3.6-AnDrOiD\res\values\public.xml:98: error: Public entry identifier 0x7f020050 entry index is larger than available symbols (index 80, total symbols 80).
D:\Android\DRCompileAPK\AutoAPKTool2.0.4\_INPUT_APK\ZPlayer v3.6-AnDrOiD\res\values\public.xml:98: error: Public symbol drawable/zplayer_2x2 declared here is not defined.
D:\Android\DRCompileAPK\AutoAPKTool2.0.4\_INPUT_APK\ZPlayer v3.6-AnDrOiD\res\values\public.xml:99: error: Public entry identifier 0x7f020051 entry index is larger than available symbols (index 81, total symbols 80).
D:\Android\DRCompileAPK\AutoAPKTool2.0.4\_INPUT_APK\ZPlayer v3.6-AnDrOiD\res\values\public.xml:99: error: Public symbol drawable/zplayer_c declared here is not defined.
D:\Android\DRCompileAPK\AutoAPKTool2.0.4\_INPUT_APK\ZPlayer v3.6-AnDrOiD\res\values\public.xml:100: error: Public entry identifier 0x7f020052 entry index is larger than available symbols (index 82, total symbols 80).
D:\Android\DRCompileAPK\AutoAPKTool2.0.4\_INPUT_APK\ZPlayer v3.6-AnDrOiD\res\values\public.xml:100: error: Public symbol drawable/zpp declared here is not defined.
D:\Android\DRCompileAPK\AutoAPKTool2.0.4\_INPUT_APK\ZPlayer v3.6-AnDrOiD\res\values\public.xml:101: error: Public entry identifier 0x7f020053 entry index is larger than available symbols (index 83, total symbols 80).
D:\Android\DRCompileAPK\AutoAPKTool2.0.4\_INPUT_APK\ZPlayer v3.6-AnDrOiD\res\values\public.xml:101: error: Public symbol drawable/zzzz_ declared here is not defined.
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\MENGLIM\AppData\Local\Temp\APKTOOL3676539834868097954.tmp, -I, C:\Users\MENGLIM\apktool\framework\1.apk, -S, D:\Android\DRCompileAPK\AutoAPKTool2.0.4\_INPUT_APK\ZPlayer v3.6-AnDrOiD\res, -M, D:\Android\DRCompileAPK\AutoAPKTool2.0.4\_INPUT_APK\ZPlayer v3.6-AnDrOiD\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\MENGLIM\AppData\Local\Temp\APKTOOL3676539834868097954.tmp, -I, C:\Users\MENGLIM\apktool\framework\1.apk, -S, D:\Android\DRCompileAPK\AutoAPKTool2.0.4\_INPUT_APK\ZPlayer v3.6-AnDrOiD\res, -M, D:\Android\DRCompileAPK\AutoAPKTool2.0.4\_INPUT_APK\ZPlayer v3.6-AnDrOiD\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
The system cannot find the drive specified.
Of course, I install framework which copy from my device framework-res.apk and twframework-res.apk
and installed.
why?
I am using window 7 64bits, International S3, Rom null18.1, LLC
Bro u have decompiled it, the errors here r becoz, u have editied u apk in wrong way if u edit it simply jst replacing the strings want it wont recompile poperly !
stanlin salu said:
Bro u have decompiled it, the errors here r becoz, u have editied u apk in wrong way if u edit it simply jst replacing the strings want it wont recompile poperly !
Click to expand...
Click to collapse
I already decompiled with the option 6 and edit some string after that recompile(option 7). I follow this instruction.
do you mean if I just edit string, it will not compile properly?
menglim said:
I already decompiled with the option 6 and edit some string after that recompile(option 7). I follow this instruction.
Click to expand...
Click to collapse
Its not the problem with the instruction, its the problem with ur editing, u jst check properly in the error log, it explain where u have made mistake, a single misplace of strings, wont allow to recompile, see the log and correct accordingly !
Sent from my WT19i using xda premium
stanlin salu said:
Its not the problem with the instruction, its the problem with ur editing, u jst check properly in the error log, it explain where u have made mistake, a single misplace of strings, wont allow to recompile, see the log and correct accordingly !
Sent from my WT19i using xda premium
Click to expand...
Click to collapse
Sorry, could u tell me which line ?
---------- Post added at 04:28 PM ---------- Previous post was at 04:25 PM ----------
even I did not change any source. I just decompile and recompile, still get the error...
It can also be becoz of corrupt apk, Bro try to decomplie pure stock unmodified apks and check wether u get the error on them !
but the apk, which I want to compile, install on the phone properly and work properly.
Now, i am compiling and decompiling framework-res.apk.... (for test)
I will report later
---------- Post added at 04:50 PM ---------- Previous post was at 04:42 PM ----------
Here is the error when I recompile framwork-res.apk
Code:
[*] D:\Android\DRCompileAPK\AutoAPKTool2.0.4\_INPUT_APK\framework-res
recompiling D:\Android\DRCompileAPK\AutoAPKTool2.0.4\_INPUT_APK\framework-res...
W: Could not find sources
I: Building resources...
aapt: warning: string 'reboot_download' has no default translation in D:\Android\DRCompileAPK\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res; found: ru
aapt: warning: string 'reboot_recovery' has no default translation in D:\Android\DRCompileAPK\AutoAPKTool2.0.4\_INPUT_APK\framework-res\res; found: ru
I: Building apk file...
The system cannot find the drive specified.
look like miss some string in traslation
Thanks!!! I think this tutorial is perfect!!
Enviado desde mi GT-I9300 usando Tapatalk 2

[GUIDE] HOW TO THEME CM10.1 - Animated Book

CM10.1-THEME_BOOK
Theme book was created by Annex and Ebs512. I've been asked alot of questions from how to get started? what do I need to get started? to What Graphics program do I use? etc. We made a real simple theme guide to help get you started. This is in Layman Terms.. Nothing fancy.
ONLY THING FANCY IS MY FLASH BOOK
YOU MUST HAVE A FLASH PLAYER INSTALLED TO VIEW THIS!!!
{
"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"
}
We will be updating this, the xml generator got fixed and became extended and also fixed a few duplicated images in my theme template so that is being updated aswell
This book started off good but am I missing something? It kind of ended abruptly at page 20 w/ no closure?
Papichulo06 said:
This book started off good but am I missing something? It kind of ended abruptly at page 20 w/ no closure?
Click to expand...
Click to collapse
Did we forget to cover something? It end that way because theming isn't done after this book where the book leaves off is where you are supposed to pickup with you own ideas we can't exactly explain self creation or styles of theming this is just supposed to show you how to set everything up and you edit images according to your personal taste
Sent from my Nexus S 4G using Xparent Cyan Tapatalk 2
ebs512 said:
Did we forget to cover something? It end that way because theming isn't done after this book where the book leaves off is where you are supposed to pickup with you own ideas we can't exactly explain self creation or styles of theming this is just supposed to show you how to set everything up and you edit images according to your personal taste
Sent from my Nexus S 4G using Xparent Cyan Tapatalk 2
Click to expand...
Click to collapse
Well for me. I had and still have several issues compiling. I downloaded ANNEX's template and had this issue:
Code:
--------------------------------------------------------------------------
|Mon 02/11/2013 -- 4:29:40.27|
--------------------------------------------------------------------------
'mode' is not recognized as an internal or external command,
operable program or batch file.
java version "1.7.0_13"
Java(TM) SE Runtime Environment (build 1.7.0_13-b20)
Java HotSpot(TM) 64-Bit Server VM (build 23.7-b01, mixed mode)
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
D:\Dropbox\Public\Android\Themes\APK-Multi-Tool-Stable-RELEASE\other\..\projects\Color_Me_Droid.apk\res\drawable-hdpi\frameworks_res_pointer_arrow_icon.xml:2: error: No resource identifier found for attribute 'bitmap' in package 'android'
D:\Dropbox\Public\Android\Themes\APK-Multi-Tool-Stable-RELEASE\other\..\projects\Color_Me_Droid.apk\res\drawable-hdpi\frameworks_res_pointer_arrow_icon.xml:2: error: No resource identifier found for attribute 'hotSpotX' in package 'android'
D:\Dropbox\Public\Android\Themes\APK-Multi-Tool-Stable-RELEASE\other\..\projects\Color_Me_Droid.apk\res\drawable-hdpi\frameworks_res_pointer_arrow_icon.xml:2: error: No resource identifier found for attribute 'hotSpotY' in package 'android'
D:\Dropbox\Public\Android\Themes\APK-Multi-Tool-Stable-RELEASE\other\..\projects\Color_Me_Droid.apk\res\drawable-hdpi\frameworks_res_pointer_spot_anchor_icon.xml:2: error: No resource identifier found for attribute 'bitmap' in package 'android'
D:\Dropbox\Public\Android\Themes\APK-Multi-Tool-Stable-RELEASE\other\..\projects\Color_Me_Droid.apk\res\drawable-hdpi\frameworks_res_pointer_spot_anchor_icon.xml:2: error: No resource identifier found for attribute 'hotSpotX' in package 'android'
D:\Dropbox\Public\Android\Themes\APK-Multi-Tool-Stable-RELEASE\other\..\projects\Color_Me_Droid.apk\res\drawable-hdpi\frameworks_res_pointer_spot_anchor_icon.xml:2: error: No resource identifier found for attribute 'hotSpotY' in package 'android'
D:\Dropbox\Public\Android\Themes\APK-Multi-Tool-Stable-RELEASE\other\..\projects\Color_Me_Droid.apk\res\drawable-hdpi\frameworks_res_pointer_spot_hover_icon.xml:2: error: No resource identifier found for attribute 'bitmap' in package 'android'
D:\Dropbox\Public\Android\Themes\APK-Multi-Tool-Stable-RELEASE\other\..\projects\Color_Me_Droid.apk\res\drawable-hdpi\frameworks_res_pointer_spot_hover_icon.xml:2: error: No resource identifier found for attribute 'hotSpotX' in package 'android'
D:\Dropbox\Public\Android\Themes\APK-Multi-Tool-Stable-RELEASE\other\..\projects\Color_Me_Droid.apk\res\drawable-hdpi\frameworks_res_pointer_spot_hover_icon.xml:2: error: No resource identifier found for attribute 'hotSpotY' in package 'android'
D:\Dropbox\Public\Android\Themes\APK-Multi-Tool-Stable-RELEASE\other\..\projects\Color_Me_Droid.apk\res\drawable-hdpi\frameworks_res_pointer_spot_touch_icon.xml:2: error: No resource identifier found for attribute 'bitmap' in package 'android'
D:\Dropbox\Public\Android\Themes\APK-Multi-Tool-Stable-RELEASE\other\..\projects\Color_Me_Droid.apk\res\drawable-hdpi\frameworks_res_pointer_spot_touch_icon.xml:2: error: No resource identifier found for attribute 'hotSpotX' in package 'android'
D:\Dropbox\Public\Android\Themes\APK-Multi-Tool-Stable-RELEASE\other\..\projects\Color_Me_Droid.apk\res\drawable-hdpi\frameworks_res_pointer_spot_touch_icon.xml:2: error: No resource identifier found for attribute 'hotSpotY' in package 'android'
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 9, --target-sdk-version, 9, -F, C:\Users\Jorge\AppData\Local\Temp\APKTOOL6306987089940608367.tmp, -x, -I, C:\Users\Jorge\apktool\framework\1.apk, -S, D:\Dropbox\Public\Android\Themes\APK-Multi-Tool-Stable-RELEASE\other\..\projects\Color_Me_Droid.apk\res, -M, D:\Dropbox\Public\Android\Themes\APK-Multi-Tool-Stable-RELEASE\other\..\projects\Color_Me_Droid.apk\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:358)
at brut.androlib.Androlib.buildResources(Androlib.java:283)
at brut.androlib.Androlib.build(Androlib.java:206)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 9, --target-sdk-version, 9, -F, C:\Users\Jorge\AppData\Local\Temp\APKTOOL6306987089940608367.tmp, -x, -I, C:\Users\Jorge\apktool\framework\1.apk, -S, D:\Dropbox\Public\Android\Themes\APK-Multi-Tool-Stable-RELEASE\other\..\projects\Color_Me_Droid.apk\res, -M, D:\Dropbox\Public\Android\Themes\APK-Multi-Tool-Stable-RELEASE\other\..\projects\Color_Me_Droid.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:357)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:336)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 9, --target-sdk-version, 9, -F, C:\Users\Jorge\AppData\Local\Temp\APKTOOL6306987089940608367.tmp, -x, -I, C:\Users\Jorge\apktool\framework\1.apk, -S, D:\Dropbox\Public\Android\Themes\APK-Multi-Tool-Stable-RELEASE\other\..\projects\Color_Me_Droid.apk\res, -M, D:\Dropbox\Public\Android\Themes\APK-Multi-Tool-Stable-RELEASE\other\..\projects\Color_Me_Droid.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:355)
... 6 more
^CThe system cannot open the device or file specified.
I did some googling and realized a few things that the book could of been more clear on like extracting different apk's and combining the res folder of that apk into your res folder of your template. Incorporating a FAQ section would be nice and possibly even a troubleshooting section for issues like the one I got and still have. The book could also mention what program to use to edit smali. Possibly how to install it once it's compiled like, do we flash or do we install just the .apk? And once installed how do we apply it? Through Theme Chooser? Just small things like those could clear up a lot of things.
Over all, it's a really good starter book and I definitely liked the presentation!
Well hmm which apktool are you using? Have you watched my tutorial videos on decompiling and recompiling apks? I have several videos on YouTube might want to check them out, links can be found in the 3rd post of the cm10.1 mega theme thread
Sent from my Nexus S 4G using Xparent Cyan Tapatalk 2
ebs512 said:
Well hmm which apktool are you using? Have you watched my tutorial videos on decompiling and recompiling apks? I have several videos on YouTube might want to check them out, links can be found in the 3rd post of the cm10.1 mega theme thread
Sent from my Nexus S 4G using Xparent Cyan Tapatalk 2
Click to expand...
Click to collapse
Well at first I used the one that was stated in the book and I got errors. So I replaced some of the files with the one in the sdk with no luck. So then I went off downloading different ones n pretty much got the same results. I will take a look at your videos and see if anything helps. *I remember this was why I quit learning how to theme a long time ago. I couldn't get the apktool to work . However, MetaMorph was easy and I did utilize that for sometime.
Papichulo06 said:
Well at first I used the one that was stated in the book and I got errors. So I replaced some of the files with the one in the sdk with no luck. So then I went off downloading different ones n pretty much got the same results. I will take a look at your videos and see if anything helps. *I remember this was why I quit learning how to theme a long time ago. I couldn't get the apktool to work . However, MetaMorph was easy and I did utilize that for sometime.
Click to expand...
Click to collapse
Metamorph only replaces images, its different than apktool and would not work well when trying to make a complete theme
Sent from my Nexus S 4G using Xparent Cyan Tapatalk 2
ebs512 said:
Metamorph only replaces images, its different than apktool and would not work well when trying to make a complete theme
Sent from my Nexus S 4G using Xparent Cyan Tapatalk 2
Click to expand...
Click to collapse
Agreed. That's why I stopped even doing that n then stopped theming all together .
Now after xda-university popped up, I figured I'd give it another shot. I'm sure I'll be able to figure it out eventually with the help of kind people like yourself. You sir, are a gentleman and a scholar. :good:
Papichulo06 said:
Agreed. That's why I stopped even doing that n then stopped theming all together .
Now after xda-university popped up, I figured I'd give it another shot. I'm sure I'll be able to figure it out eventually with the help of kind people like yourself. You sir, are a gentleman and a scholar. :good:
Click to expand...
Click to collapse
Also checkout the theming tools package I included in the 3rd post of Krazie1's cm10.1 mega theme template thread in the 3rd post, those should be all the correct files you need
Sent from my Nexus S 4G using Xparent Cyan Tapatalk 2
Some of the instructions are a bit vague. You don't specify the name of the environment variable for the JDK for example, despite insisting on a very specific name for the android SDK variable name.
EDIT: Decompilation fails anyway.
Passa91 said:
Some of the instructions are a bit vague. You don't specify the name of the environment variable for the JDK for example, despite insisting on a very specific name for the android SDK variable name.
EDIT: Decompilation fails anyway.
Click to expand...
Click to collapse
Decompilation of what exactly fails? What is your operating system?
Sent from my Nexus S 4G using Xparent Cyan Tapatalk 2
ebs512 said:
Also checkout the theming tools package I included in the 3rd post of Krazie1's cm10.1 mega theme template thread in the 3rd post, those should be all the correct files you need
Sent from my Nexus S 4G using Xparent Cyan Tapatalk 2
Click to expand...
Click to collapse
Downloaded it and I got the error "unknown compression method" in a lot of the zipped fils when I tried to extract it using 7zip. Any ideas?
Sent from my EVO using Tapatalk 2
Papichulo06 said:
Downloaded it and I got the error "unknown compression method" in a lot of the zipped fils when I tried to extract it using 7zip. Any ideas?
Sent from my EVO using Tapatalk 2
Click to expand...
Click to collapse
Extract using winrar free version
Sent from my Nexus S 4G using Xparent Cyan Tapatalk 2
Papichulo06 said:
Well for me. I had and still have several issues compiling. I downloaded ANNEX's template and had this issue:
Code:
--------------------------------------------------------------------------
|Mon 02/11/2013 -- 4:29:40.27|
--------------------------------------------------------------------------
'mode' is not recognized as an internal or external command,
operable program or batch file.
java version "1.7.0_13"
Java(TM) SE Runtime Environment (build 1.7.0_13-b20)
Java HotSpot(TM) 64-Bit Server VM (build 23.7-b01, mixed mode)
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
D:\Dropbox\Public\Android\Themes\APK-Multi-Tool-Stable-RELEASE\other\..\projects\Color_Me_Droid.apk\res\drawable-hdpi\frameworks_res_pointer_arrow_icon.xml:2: error: No resource identifier found for attribute 'bitmap' in package 'android'
D:\Dropbox\Public\Android\Themes\APK-Multi-Tool-Stable-RELEASE\other\..\projects\Color_Me_Droid.apk\res\drawable-hdpi\frameworks_res_pointer_arrow_icon.xml:2: error: No resource identifier found for attribute 'hotSpotX' in package 'android'
D:\Dropbox\Public\Android\Themes\APK-Multi-Tool-Stable-RELEASE\other\..\projects\Color_Me_Droid.apk\res\drawable-hdpi\frameworks_res_pointer_arrow_icon.xml:2: error: No resource identifier found for attribute 'hotSpotY' in package 'android'
D:\Dropbox\Public\Android\Themes\APK-Multi-Tool-Stable-RELEASE\other\..\projects\Color_Me_Droid.apk\res\drawable-hdpi\frameworks_res_pointer_spot_anchor_icon.xml:2: error: No resource identifier found for attribute 'bitmap' in package 'android'
D:\Dropbox\Public\Android\Themes\APK-Multi-Tool-Stable-RELEASE\other\..\projects\Color_Me_Droid.apk\res\drawable-hdpi\frameworks_res_pointer_spot_anchor_icon.xml:2: error: No resource identifier found for attribute 'hotSpotX' in package 'android'
D:\Dropbox\Public\Android\Themes\APK-Multi-Tool-Stable-RELEASE\other\..\projects\Color_Me_Droid.apk\res\drawable-hdpi\frameworks_res_pointer_spot_anchor_icon.xml:2: error: No resource identifier found for attribute 'hotSpotY' in package 'android'
D:\Dropbox\Public\Android\Themes\APK-Multi-Tool-Stable-RELEASE\other\..\projects\Color_Me_Droid.apk\res\drawable-hdpi\frameworks_res_pointer_spot_hover_icon.xml:2: error: No resource identifier found for attribute 'bitmap' in package 'android'
D:\Dropbox\Public\Android\Themes\APK-Multi-Tool-Stable-RELEASE\other\..\projects\Color_Me_Droid.apk\res\drawable-hdpi\frameworks_res_pointer_spot_hover_icon.xml:2: error: No resource identifier found for attribute 'hotSpotX' in package 'android'
D:\Dropbox\Public\Android\Themes\APK-Multi-Tool-Stable-RELEASE\other\..\projects\Color_Me_Droid.apk\res\drawable-hdpi\frameworks_res_pointer_spot_hover_icon.xml:2: error: No resource identifier found for attribute 'hotSpotY' in package 'android'
D:\Dropbox\Public\Android\Themes\APK-Multi-Tool-Stable-RELEASE\other\..\projects\Color_Me_Droid.apk\res\drawable-hdpi\frameworks_res_pointer_spot_touch_icon.xml:2: error: No resource identifier found for attribute 'bitmap' in package 'android'
D:\Dropbox\Public\Android\Themes\APK-Multi-Tool-Stable-RELEASE\other\..\projects\Color_Me_Droid.apk\res\drawable-hdpi\frameworks_res_pointer_spot_touch_icon.xml:2: error: No resource identifier found for attribute 'hotSpotX' in package 'android'
D:\Dropbox\Public\Android\Themes\APK-Multi-Tool-Stable-RELEASE\other\..\projects\Color_Me_Droid.apk\res\drawable-hdpi\frameworks_res_pointer_spot_touch_icon.xml:2: error: No resource identifier found for attribute 'hotSpotY' in package 'android'
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 9, --target-sdk-version, 9, -F, C:\Users\Jorge\AppData\Local\Temp\APKTOOL6306987089940608367.tmp, -x, -I, C:\Users\Jorge\apktool\framework\1.apk, -S, D:\Dropbox\Public\Android\Themes\APK-Multi-Tool-Stable-RELEASE\other\..\projects\Color_Me_Droid.apk\res, -M, D:\Dropbox\Public\Android\Themes\APK-Multi-Tool-Stable-RELEASE\other\..\projects\Color_Me_Droid.apk\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:358)
at brut.androlib.Androlib.buildResources(Androlib.java:283)
at brut.androlib.Androlib.build(Androlib.java:206)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 9, --target-sdk-version, 9, -F, C:\Users\Jorge\AppData\Local\Temp\APKTOOL6306987089940608367.tmp, -x, -I, C:\Users\Jorge\apktool\framework\1.apk, -S, D:\Dropbox\Public\Android\Themes\APK-Multi-Tool-Stable-RELEASE\other\..\projects\Color_Me_Droid.apk\res, -M, D:\Dropbox\Public\Android\Themes\APK-Multi-Tool-Stable-RELEASE\other\..\projects\Color_Me_Droid.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:357)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:336)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 9, --target-sdk-version, 9, -F, C:\Users\Jorge\AppData\Local\Temp\APKTOOL6306987089940608367.tmp, -x, -I, C:\Users\Jorge\apktool\framework\1.apk, -S, D:\Dropbox\Public\Android\Themes\APK-Multi-Tool-Stable-RELEASE\other\..\projects\Color_Me_Droid.apk\res, -M, D:\Dropbox\Public\Android\Themes\APK-Multi-Tool-Stable-RELEASE\other\..\projects\Color_Me_Droid.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:355)
... 6 more
^CThe system cannot open the device or file specified.
Click to expand...
Click to collapse
I'm getting the same error, but with different locations for the files. I can decompile the APK just fine with Virtuous Ten Studio, but when I go to build the APK I just get these errors.
SpawnHyuuga said:
I'm getting the same error, but with different locations for the files. I can decompile the APK just fine with Virtuous Ten Studio, but when I go to build the APK I just get these errors.
Click to expand...
Click to collapse
Are you guys using then correct version of apktool?
Sent from my Nexus S 4G using Xparent Cyan Tapatalk 2
ebs512 said:
Are you guys using then correct version of apktool?
Sent from my Nexus S 4G using Xparent Cyan Tapatalk 2
Click to expand...
Click to collapse
I'll check with VTS real quick and edit this post. Just wondering, will this work with my CM10 ROM or do I specifically have to be using CM10.1? My phone currently doesn't have a 10.1 ROM available, is why I'm asking.
SpawnHyuuga said:
I'll check with VTS real quick and edit this post. Just wondering, will this work with my CM10 ROM or do I specifically have to be using CM10.1? My phone currently doesn't have a 10.1 ROM available, is why I'm asking.
Click to expand...
Click to collapse
I don't know what VTS is and you need the correct apktool to decompile and recompile files successfully, cm10 is 4.1 and cm10.1 is 4.2
Sent from my Nexus S 4G using Xparent Cyan Tapatalk 2
ebs512 said:
I don't know what VTS is and you need the correct apktool to decompile and recompile files successfully, cm10 is 4.1 and cm10.1 is 4.2
Sent from my Nexus S 4G using Xparent Cyan Tapatalk 2
Click to expand...
Click to collapse
VTS is a GUI-based tool for decompiling and recompiling APKs. It also supports editing SMALI code. It appears to use either APKtool 1.5.1 or 1.5.2, either one. Right now my phone is using 4.1.2. I'll try looking around for a CM10 theme template instead.
SpawnHyuuga said:
VTS is a GUI-based tool for decompiling and recompiling APKs. It also supports editing SMALI code. It appears to use either APKtool 1.5.1 or 1.5.2, either one. Right now my phone is using 4.1.2. I'll try looking around for a CM10 theme template instead.
Click to expand...
Click to collapse
Well I had made a pretty decent cm10 theme template and annex did as well, the difference with mine is I deindexed all the images to rgb mode check my SIG if you want the thread
Sent from my Nexus S 4G using Xparent Cyan Tapatalk 2

[TOOL]CM Theme to XThemeEngine Converter / Porter

You can stop F5-ing.
What's that all about? Didn't that exist already?
This tool converts an CM10 / AOKP / ... theme to an XThemeEngine (showthread.php?t=2240180 , I'm still "too new to add links" I guess).
The second post of that thread is just an instruction post. It tells you how to port the theme manually. I've made the script on base of that tutorial and then ported it to Java code so it's cross-platform.
The MAIN PROS:
- Easier with graphical user interface!
- Generates the missing redirections.xml for you!
- Doesn't need the SampleTheme.apk and doesn't need any IDE like Eclipse!
One-Time Set-Up:
1. Download apktool with signapk and testkeys in the same folder.
2. Download the .jar
I've removed the instructions for the shell script - the .sh itself is still inside the upload.zip.
Everytime you run it:
Select all the needed files. The GUI will help you.
Also, if aapt isn't inside of your $PATH, use the optional file chooser for that.
The folder containing aapt is usually platform-tools in the SDK folder.
WARNING: Any damage to your device is NOT MY FAULT. Any damage to any of the apks is NOT MY FAULT. Any damage to the Linux, NT or GNU Kernel is NOT MY FAULT. Any usage of Chuck Norris in this post is NOT MY FAU~~~~UU~~ IT'S MY FAULT!
WARNING: The output is A RAW PORT (except the generated redirections if missing) that may not work on some devices. Please port the .apk manually if needed.
When you encounter any problems, please reply with device, Android version and input theme (link to thread and APK if possible). Thanks!
Known problems (legend: p- problem c-- cause w--- workaround f--- fix) :
p- Applying theme failed.
c-- It's not my fault if the themers use separate xml files and / or forgett redirections.xml .
w--- Create one on your own and modify the code inside the .sh file (you can't overlook it...). It's easier than it sounds. Just replace ./tmpst/res/xml/redirections.xml with the path to your own one.
f--- Update to 2.0+
c-- The theme needs a device-specifiic redirections.xml due to Samsungs / Sonys / ... package and resource stuff.
w--- Port the theme on your own. That's really sad - that's why I've added it to my TODO list.
Changelog:
1.0: Initial release
1.1: Added missing zipalign
1.2: Added code snippet that copy-pastes the sampletheme apk's redirections.xml if there is no one. Unfournately it only has an entry for SystemUI so the code should be modified by the user easily to load a custom redirections.xml instead.
2.0: Ported to Java (.jar) for cross-platform support; removed zipalign for some time; added auto-generation of redirections.xml
ToDo: (* = focused, + = added)
+ Autogenerate redirections.xml if missing (aka Fix failed applying theme).
+ Fix failed applying theme. Some debug options in XThemeEngine would be helpfull... :/ (Edit: See the problem "Applying theme failed.")
+ Make more efficient
+ Add missing zipalign (if requested by too many users) (Edit: Just. Do. It.)
+ Make thread "first post" more user-friendly
+ Port it to a commandline .jar or GUI .jar (Edit: I prefer GUI .jar)
* Find device-specifiic redirections.xml and implement an option to choose from them. Yes, I mean you, Samsung and Sony!
- Add images to the first post
- Re-addd the zipaligning
AngelDE98 said:
I am verry sorry if this post is in the wrong place. I tought it would fit the "Themes" subforum because it's a theme converter and I've seen some ideas for it here, too. I'm just another dumb user, I know so just correct me. :/
What's that all about? Didn't that exist already?
This tool converts an CM10 / AOKP / ... theme to an XThemeEngine (showthread.php?t=2240180 , I'm still "too new to add links" I guess).
The second post of that thread is just an instruction post. It tells you how to port the theme manually. I've made the script on base of that.
One-Time Set-Up (notice that file / folder names are caps-sensitive on Linux!):
1. Download the convert.sh and make it runnable (I won't tell you how to do it because it's basic )
2. Make a new folder named "apktool" next to the .sh
3. Download apktool + signapk .jars (I won't tell you because I've seen some removed links from mods here and there ). Put apktool + signapk .jars into the apktool folder.
4. Download the sampletheme.apk and NAME IT "sampletheme.apk".. wow. Place it next to the .sh and apktool folder.
Now:
1. (Re)Place your input.apk (must be named so, if I've got time or help for making it load from arguments I'll implemt that) next to the .sh
2. Run the .sh script in Terminal
3. ....?
4. Profit. A new file named output.apk appeared. You may want to install it as normal app.
WARNING: Any damage to your device is NOT MY FAULT. Any damage to any of the apks is NOT MY FAULT. Any damage to the Linux Kernel is NOT MY FAULT. Any usage of Chuck Norris in this post is NOT MY FAU~~~~UU~~ IT'S MY FAULT!
WARNING: The output.apk is A RAW PORT that may not work on some devices. Please port the .apk manually if needed.
When you encounter any problems, please reply with device, Android version and input theme (link to thread and APK if possible). Thanks!
Known problems (legend: p- problem c-- cause w--- workaround f--- fix) :
p- Applying theme failed.
c-- It's not my fault if the themers use separate xml files and / or forgett redirections.xml .
w--- Create one on your own and modify the code inside the .sh file (you can't overlook it...). It's easier than it sounds. Just replace ./tmpst/res/xml/redirections.xml with the path to your own one.
Changelog:
1.0: Initial release
1.1: Added missing zipalign
1.2: Added code snippet that copy-pastes the sampletheme apk's redirections.xml if there is no one. Unfournately it only has an entry for SystemUI so the code should be modified by the user easily to load a custom redirections.xml instead.
ToDo: (* = focused, + = added)
- Autogenerate redirections.xml if missing (aka Fix failed applying theme).
+ Fix failed applying theme. Some debug options in XThemeEngine would be helpfull... :/ (Edit: See the problem "Applying theme failed.")
- Make more efficient
+ Add missing zipalign (if requested by too many users) (Edit: Just. Do. It.)
- Make thread "first post" more user-friendly
- If possible and apktool and signapk do exist for Android (otherwise decompile and port to Android), create "mobile version" of this tool (possibly without rooting needed)
* Port it to a commandline .jar or GUI .jar (Edit: I prefer GUI .jar)
Click to expand...
Click to collapse
Thnks but maybe u need add some images
to see how to use this (much people cant understood all on this post) and if u add some screens are more friendly
cheers
TeamMex said:
Thnks but maybe u need add some images
to see how to use this (much people cant understood all on this post) and if u add some screens are more friendly
cheers
Click to expand...
Click to collapse
I will add images after I've released the .jar file which is cross-platform. Yesterday some testing went wrong (aapt not found, mysterious .xml after package name in code-made redirections.xml). I hope I'll be able to upload the .jar today.
AngelDE98 said:
I will add images after I've released the .jar file which is cross-platform. Yesterday some testing went wrong (aapt not found, mysterious .xml after package name in code-made redirections.xml). I hope I'll be able to upload the .jar today.
Click to expand...
Click to collapse
F5...F5...F5... :fingers-crossed:
BoilerDroid said:
F5...F5...F5... :fingers-crossed:
Click to expand...
Click to collapse
Stop F5-ing.
AngelDE98 said:
Stop F5-ing.
Click to expand...
Click to collapse
Radiance_Gold by @IND190
Converted, installed, but won't apply theme...
I'm trying to convert: http://forum.xda-developers.com/showthread.php?t=2057131
d2vzw running Jelly Bean's 15
-------------------------
-------------------------
Version 2.0 by AngelDE98
-------------------------
[FILE:INAPK] C:\Users\_\Desktop\SGS3\Apktool JB 4.2.2_Signed_By Rizal Lovins Sundanesse\com.ind190.theme.radiance_gold.apk
[FILEUTAPK] C:\Users\_\Desktop\SGS3\Apktool JB 4.2.2_Signed_By Rizal Lovins Sundanesse\GoldTheme-2.apk
[FILE:APKTOOL] C:\Users\_\Desktop\SGS3\Apktool JB 4.2.2_Signed_By Rizal Lovins Sundanesse
[FILE:TMPDIR] C:\Users\_~1\AppData\Local\Temp\CMTXTE
[OS:ID] WINDOWS
[OS:SHELL] cmd
-------------------------
Beginning conversion...
Clearing tmpdir
Decompiling inapk into tmpdir
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\_\apktool\framework\1.apk
I: Loaded.
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Done.
I: Copying assets and libs...
Removing the public.xml
redirections.xml exists: NO
Creating new redirections.xml
Adding permission into AndroidManifest.xml
Recompiling / bulding new apk
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
Warning: AndroidManifest.xml already defines minSdkVersion (in http://schemas.android.com/apk/res/android); using existing value in manifest.
Warning: AndroidManifest.xml already defines targetSdkVersion (in http://schemas.android.com/apk/res/android); using existing value in manifest.
I: Building apk file...
Signing new apk
Done!
BoilerDroid said:
Radiance_Gold by @IND190
Converted, installed, but won't apply theme...
I'm trying to convert: http://forum.xda-developers.com/showthread.php?t=2057131
d2vzw running Jelly Bean's 15
Click to expand...
Click to collapse
Can you please give me your logcat log and device? Maybe you have got one of the Sony or Samsung devices that need special device-dependent redirections :/
I was able to apply the theme. On ICS.
There are no errors in the conversion log.
-------------------------
-------------------------
Version 2.0 by AngelDE98
-------------------------
[FILE:INAPK] C:\Users\klozz\Desktop\Themes speciales para stock roms\ChromeOS.V.2.1.apk
[FILEUTAPK] C:\Users\klozz\Desktop\Themes speciales para stock roms\themes\Chromeosported
[FILE:APKTOOL] C:\Users\klozz\Desktop\Themes speciales para stock roms\apktool\Apk_Manager_UOT\other
[FILE:TMPDIR] C:\Users\klozz\AppData\Local\Temp\CMTXTE
[OS:ID] WINDOWS
[OS:SHELL] cmd
-------------------------
Beginning conversion...
Clearing tmpdir
Decompiling inapk into tmpdir
I: Loading resource table...
Exception in thread "main" brut.androlib.AndrolibException: Multiple resources: spec=0x02020000 drawable/com_android_browser_geolocation_permissions_prompt_background, config=-xhdpi-v13
at brut.androlib.res.data.ResConfig.addResource(ResConfig.java:65)
at brut.androlib.res.data.ResConfig.addResource(ResConfig.java:58)
at brut.androlib.res.decoder.ARSCDecoder.readEntry(ARSCDecoder.java:196)
at brut.androlib.res.decoder.ARSCDecoder.readConfig(ARSCDecoder.java:165)
at brut.androlib.res.decoder.ARSCDecoder.readType(ARSCDecoder.java:130)
at brut.androlib.res.decoder.ARSCDecoder.readPackage(ARSCDecoder.java:105)
at brut.androlib.res.decoder.ARSCDecoder.readTable(ARSCDecoder.java:82)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:48)
at brut.androlib.res.AndrolibResources.getResPackagesFromApk(AndrolibResources.java:315)
at brut.androlib.res.AndrolibResources.loadMainPkg(AndrolibResources.java:50)
at brut.androlib.res.AndrolibResources.getResTable(AndrolibResources.java:43)
at brut.androlib.Androlib.getResTable(Androlib.java:44)
at brut.androlib.ApkDecoder.getResTable(ApkDecoder.java:148)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:98)
at brut.apktool.Main.cmdDecode(Main.java:120)
at brut.apktool.Main.main(Main.java:57)
Removing the public.xml
redirections.xml exists: NO
Creating new redirections.xml
Something went wrong - look at STDOUT
D:
U can give me how to add manualy dependent directions on Sony device?
Aww... the ToDo list already contains that. I'll work on that today I guess...
Thanks for the log. Two resources and 1 id? How that?
Sent from my FWS710EU using xda app-developers app
BoilerDroid said:
Radiance_Gold by @IND190
Converted, installed, but won't apply theme...
I'm trying to convert: http://forum.xda-developers.com/showthread.php?t=2057131
d2vzw running Jelly Bean's 15
-------------------------
-------------------------
Version 2.0 by AngelDE98
-------------------------
[FILE:INAPK] C:\Users\_\Desktop\SGS3\Apktool JB 4.2.2_Signed_By Rizal Lovins Sundanesse\com.ind190.theme.radiance_gold.apk
[FILEUTAPK] C:\Users\_\Desktop\SGS3\Apktool JB 4.2.2_Signed_By Rizal Lovins Sundanesse\GoldTheme-2.apk
[FILE:APKTOOL] C:\Users\_\Desktop\SGS3\Apktool JB 4.2.2_Signed_By Rizal Lovins Sundanesse
[FILE:TMPDIR] C:\Users\_~1\AppData\Local\Temp\CMTXTE
[OS:ID] WINDOWS
[OS:SHELL] cmd
-------------------------
Beginning conversion...
Clearing tmpdir
Decompiling inapk into tmpdir
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\_\apktool\framework\1.apk
I: Loaded.
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Done.
I: Copying assets and libs...
Removing the public.xml
redirections.xml exists: NO
Creating new redirections.xml
Adding permission into AndroidManifest.xml
Recompiling / bulding new apk
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
Warning: AndroidManifest.xml already defines minSdkVersion (in http://schemas.android.com/apk/res/android); using existing value in manifest.
Warning: AndroidManifest.xml already defines targetSdkVersion (in http://schemas.android.com/apk/res/android); using existing value in manifest.
I: Building apk file...
Signing new apk
Done!
Click to expand...
Click to collapse
I'm getting this error too! when it gets towards the end you can see the apk in the folder and by the time its done it simply disappears. any ideas why that is? Im sure this tool just needs some more work and in time everything will work out but as it sits right now its a total dud. But Ill keep watch on this. Oh yeah by the way Im running an sgs4 with stock 4.2.2
thatsupnow said:
I'm getting this error too! when it gets towards the end you can see the apk in the folder and by the time its done it simply disappears. any ideas why that is? Im sure this tool just needs some more work and in time everything will work out but as it sits right now its a total dud. But Ill keep watch on this. Oh yeah by the way Im running an sgs4 with stock 4.2.2
Click to expand...
Click to collapse
Maybe it's a problem with the signing... The temporary apk you see gets signed and replaced. Have you got the signer and test keys in the apktool folder? Maybe I'll include the signer and test keys.
Sent from my Nexus 7 using xda app-developers app
AngelDE98 said:
Maybe it's a problem with the signing... The temporary apk you see gets signed and replaced. Have you got the signer and test keys in the apktool folder? Maybe I'll include the signer and test keys.
Sent from my Nexus 7 using xda app-developers app
Click to expand...
Click to collapse
Yeah I made sure to grab everything that was needed
Sent from my SGH-I337M using xda premium
Here's my log:
-------------------------
-------------------------
Version 2.0 by AngelDE98
-------------------------
[FILE:INAPK] D:\hololight.apk
[FILEUTAPK] d:\holoconverted.apk
[FILE:APKTOOL] D:\apktool
[FILE:TMPDIR] C:\Users\Admin\AppData\Local\Temp\CMTXTE
[OS:ID] WINDOWS
[OS:SHELL] cmd
-------------------------
Beginning conversion...
Clearing tmpdir
Decompiling inapk into tmpdir
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\Admin\apktool\framework\1.apk
I: Loaded.
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec: 0x0a03007c
at brut.androlib.res.data.ResPackage.getResSpec(ResPackage.java:61)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:58)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:54)
at brut.androlib.res.data.value.ResReferenceValue.getReferent(ResReferenceValue.java:62)
at brut.androlib.res.data.value.ResReferenceValue.encodeAsResXml(ResReferenceValue.java:46)
at brut.androlib.res.data.value.ResScalarValue.encodeAsResXmlAttr(ResScalarValue.java:44)
at brut.androlib.res.data.value.ResStyleValue.serializeToResValuesXml(ResStyleValue.java:48)
at brut.androlib.res.data.value.ResBagValue.serializeToResValuesXml(ResBagValue.java:40)
at brut.androlib.res.AndrolibResources.generateValuesFile(AndrolibResources.java:418)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:241)
at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:115)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:99)
at brut.apktool.Main.cmdDecode(Main.java:141)
at brut.apktool.Main.main(Main.java:72)
Removing the public.xml
redirections.xml exists: YES
Adding permission into AndroidManifest.xml
Recompiling / bulding new apk
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathNotExist: apktool.yml
at brut.androlib.Androlib.readMetaFile(Androlib.java:164)
at brut.androlib.Androlib.build(Androlib.java:181)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:214)
at brut.apktool.Main.main(Main.java:74)
Caused by: brut.directory.PathNotExist: apktool.yml
at brut.directory.AbstractDirectory.getFileInput(AbstractDirectory.java:103)
at brut.androlib.Androlib.readMetaFile(Androlib.java:160)
... 4 more
Signing new apk
java.io.FileNotFoundException: d:\holoconverted.apk (O sistema n ̄o pode encontrar o arquivo especificado)
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(Unknown Source)
at java.util.zip.ZipFile.<init>(Unknown Source)
at java.util.jar.JarFile.<init>(Unknown Source)
at java.util.jar.JarFile.<init>(Unknown Source)
at com.android.signapk.SignApk.main(SignApk.java:437)
Done!
this tools is awesome
i hope the dev can get many help to get this tools works perfect
i got some problem here, when im start converting and the log said:
Code:
Version 2.0 by AngelDE98
-------------------------
[FILE:INAPK] D:\Kev\Application\Android\maxc\Sense5.apk
[FILE:eek:UTAPK] D:\Kev\Application\Android\maxc\Apktool JB 4.2.2_Signed_By Rizal Lovins Sundanesse\kam.apk
[FILE:APKTOOL] D:\Kev\Application\Android\maxc\Apktool JB 4.2.2_Signed_By Rizal Lovins Sundanesse
[FILE:TMPDIR] C:\Users\RYFK\AppData\Local\Temp\CMTXTE
[OS:ID] WINDOWS
[OS:SHELL] cmd
-------------------------
Beginning conversion...
Clearing tmpdir
Decompiling inapk into tmpdir
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\RYFK\apktool\framework\1.apk
I: Loaded.
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Done.
I: Copying assets and libs...
Removing the public.xml
redirections.xml exists: NO
Creating new redirections.xml
Adding permission into AndroidManifest.xml
Recompiling / bulding new apk
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 9, --target-sdk-version, 15, -F, C:\Users\RYFK\AppData\Local\Temp\APKTOOL8117237803851350007.tmp, -x, -I, C:\Users\RYFK\apktool\framework\1.apk, -S, C:\Users\RYFK\AppData\Local\Temp\CMTXTE\res, -M, C:\Users\RYFK\AppData\Local\Temp\CMTXTE\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:355)
at brut.androlib.Androlib.buildResources(Androlib.java:280)
at brut.androlib.Androlib.build(Androlib.java:203)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:214)
at brut.apktool.Main.main(Main.java:74)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 9, --target-sdk-version, 15, -F, C:\Users\RYFK\AppData\Local\Temp\APKTOOL8117237803851350007.tmp, -x, -I, C:\Users\RYFK\apktool\framework\1.apk, -S, C:\Users\RYFK\AppData\Local\Temp\CMTXTE\res, -M, C:\Users\RYFK\AppData\Local\Temp\CMTXTE\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:335)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:333)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 9, --target-sdk-version, 15, -F, C:\Users\RYFK\AppData\Local\Temp\APKTOOL8117237803851350007.tmp, -x, -I, C:\Users\RYFK\apktool\framework\1.apk, -S, C:\Users\RYFK\AppData\Local\Temp\CMTXTE\res, -M, C:\Users\RYFK\AppData\Local\Temp\CMTXTE\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:93)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:333)
... 6 more
Caused by: java.io.IOException: Cannot run program "aapt": CreateProcess error=2, The system cannot find the file specified
at java.lang.ProcessBuilder.start(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at brut.util.OS.exec(OS.java:84)
... 7 more
Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(Unknown Source)
at java.lang.ProcessImpl.start(Unknown Source)
... 11 more
Signing new apk
java.io.FileNotFoundException: D:\Kev\Application\Android\maxc\Apktool JB 4.2.2_Signed_By Rizal Lovins Sundanesse\kam.apk (The system cannot find the file specified)
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(Unknown Source)
at java.util.zip.ZipFile.<init>(Unknown Source)
at java.util.jar.JarFile.<init>(Unknown Source)
at java.util.jar.JarFile.<init>(Unknown Source)
at com.android.signapk.SignApk.main(SignApk.java:437)
Done!
What the hell i must do ?
ApkTool has got problems running. Guessing it doesn't even work when running in cmd / terminal:
ApkTool needs the Android SDK tools installed to function properly (actually only aapt but it's still wiser to install the whole toolset).
And with installed I mean installed and inside the $PATH.
There should be tutorials about installing the Android SDK tools (or just aapt).
Another thing I would try (guessing it WORKS in cmd / terminal): Just place the aapt binary next to the ApkTool.jar / converting tool .jar as Java's exec default path should check for files in the working directory (where you run the .jars from), too.
When these don't work, just tell me.
Sent from my Nexus 7 using xda app-developers app
so it's necessary to install Android SDK ??
Unfortunately, yes. You should've been noticed about that when downloading ApkTool as it's not my fault but ApkTool's fault.
Sent from my Nexus 7 using xda app-developers app
Is this still active?
Are you able to create a stand alone jar where you can just drop package xmls into a folder, run the jar and it creates a redirections.xml from the package xmls in the folder ?
Yeah, I could do it when I find some more free time. I've been busy with another project.
Also, I'll try to make the project open-source by putting it on GitHub. Maybe other people would want to help me.
Sent from my Nexus 7 using xda app-developers app

[SOLUTION] Error decompile/recompile framework-res.apk and SystemUI.apk Android 5.1

Many guys getting error while trying to decompile/recompile apks( e.g framework-res.apk and SystemUI.apk)
So here is the solution download the apktool.jar( its a Snapshot build provided by iBotPeaches) from
here
Download apktool app but how to load it in Windows java is installed but apktool is not opening there
Again I have used all methods to decompile and recompile lollipop apks like advanced apktool
Apktool cmd version's
Android maltitool
All are working fine decompiled apk easily but no one able to recompile any apks showings errors in log
Even I have tried to recompile non modified apks but that again got failed
Plz help me if it got possible I will able to theme our lollipop ROM as we want 50% work is done just recompilation is pending
walpanmad said:
Download apktool app but how to load it in Windows java is installed but apktool is not opening there
Again I have used all methods to decompile and recompile lollipop apks like advanced apktool
Apktool cmd version's
Android maltitool
All are working fine decompiled apk easily but no one able to recompile any apks showings errors in log
Even I have tried to recompile non modified apks but that again got failed
Plz help me if it got possible I will able to theme our lollipop ROM as we want 50% work is done just recompilation is pending
Click to expand...
Click to collapse
Can you please provide me what error log you are getting?
I have this problem
********************************************************************************
*
*
*
* framework-res.apk Found Installing
*
*
*
********************************************************************************
*
Exception in thread "main" brut.androlib.AndrolibException: Could not decode ars
c file
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:56)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:40)
at brut.androlib.res.AndrolibResources.installFramework(AndrolibResource
s.java:562)
at brut.androlib.Androlib.installFramework(Androlib.java:473)
at brut.apktool.Main.cmdInstallFramework(Main.java:250)
at brut.apktool.Main.main(Main.java:81)
Caused by: java.io.IOException: Expected: 0x001c0001, got: 0x00000000
at brut.util.ExtDataInput.skipCheckInt(ExtDataInput.java:48)
at brut.androlib.res.decoder.StringBlock.read(StringBlock.java:44)
at brut.androlib.res.decoder.ARSCDecoder.readPackage(ARSCDecoder.java:10
2)
at brut.androlib.res.decoder.ARSCDecoder.readTable(ARSCDecoder.java:83)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:49)
... 5 more
press any key to continue....
help please
yes work for me ... thanks :good:
antonino530 said:
I have this problem
********************************************************************************
*
*
*
* framework-res.apk Found Installing
*
*
*
********************************************************************************
*
Exception in thread "main" brut.androlib.AndrolibException: Could not decode ars
c file
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:56)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:40)
at brut.androlib.res.AndrolibResources.installFramework(AndrolibResource
s.java:562)
at brut.androlib.Androlib.installFramework(Androlib.java:473)
at brut.apktool.Main.cmdInstallFramework(Main.java:250)
at brut.apktool.Main.main(Main.java:81)
Caused by: java.io.IOException: Expected: 0x001c0001, got: 0x00000000
at brut.util.ExtDataInput.skipCheckInt(ExtDataInput.java:48)
at brut.androlib.res.decoder.StringBlock.read(StringBlock.java:44)
at brut.androlib.res.decoder.ARSCDecoder.readPackage(ARSCDecoder.java:10
2)
at brut.androlib.res.decoder.ARSCDecoder.readTable(ARSCDecoder.java:83)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:49)
... 5 more
press any key to continue....
help please
Click to expand...
Click to collapse
not getting it
better you run apktool on cmd directly rather then using batch applications
antonino530 said:
I have this problem
********************************************************************************
*
*
*
* framework-res.apk Found Installing
*
*
*
********************************************************************************
*
Exception in thread "main" brut.androlib.AndrolibException: Could not decode ars
c file
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:56)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:40)
at brut.androlib.res.AndrolibResources.installFramework(AndrolibResource
s.java:562)
at brut.androlib.Androlib.installFramework(Androlib.java:473)
at brut.apktool.Main.cmdInstallFramework(Main.java:250)
at brut.apktool.Main.main(Main.java:81)
Caused by: java.io.IOException: Expected: 0x001c0001, got: 0x00000000
at brut.util.ExtDataInput.skipCheckInt(ExtDataInput.java:48)
at brut.androlib.res.decoder.StringBlock.read(StringBlock.java:44)
at brut.androlib.res.decoder.ARSCDecoder.readPackage(ARSCDecoder.java:10
2)
at brut.androlib.res.decoder.ARSCDecoder.readTable(ARSCDecoder.java:83)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:49)
... 5 more
press any key to continue....
help please
Click to expand...
Click to collapse
Did you ever get this solved? I am having the same issue
It had solved bro
Just use latest release of apktool and
Follow correct instruction for decompiling system apks
Sent from my Spice Mi-498 using XDA Free mobile app
decompile errors
I am getting these errors in attached screenshot, any help please?
SLCMotor said:
I am getting these errors in attached screenshot, any help please?
Click to expand...
Click to collapse
maybe it will be hort but if you copy resorces.arsc from to framwork-res.apk to out folder before build you can solve problem

Categories

Resources