Compiling Decompiling apk problem - LG Optimus Black

Hi everyone
I have a problem compiling and decompiling apks.
Firstly im using zeus v2.1 rom and i take framework-res.apk and systemui.apk.
Then I put this apks to apk manager 5.0 file and decompile with apk manager.And I dont touch and dont modify any files and I open again apk manager and choose compile option.Than apk manager gives error.Why it giving error i dont touching or modifying any files.Also Im opening apk files with winrar and want to put any files to inside winrar gives error broken archive.But these same apk's when i put them in the phone it works normally.Where is the wrong?

George Jetson said:
Hi everyone
I have a problem compiling and decompiling apks.
Firstly im using zeus v2.1 rom and i take framework-res.apk and systemui.apk.
Then I put this apks to apk manager 5.0 file and decompile with apk manager.And I dont touch and dont modify any files and I open again apk manager and choose compile option.Than apk manager gives error.Why it giving error i dont touching or modifying any files.Also Im opening apk files with winrar and want to put any files to inside winrar gives error broken archive.But these same apk's when i put them in the phone it works normally.Where is the wrong?
Click to expand...
Click to collapse
it is a little easyer if you post the LOG...

here is the latest log
Code:
|29.01.2012 -- 21:57:25,15|
--------------------------------------------------------------------------
--2012-01-29 21:57:25-- http://dl.dropbox.com/u/14513610/apkver.txt
Resolving dl.dropbox.com... 107.20.134.231, 107.20.132.92, 107.20.234.233, ...
Connecting to dl.dropbox.com|107.20.134.231|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 31 [text/plain]
Saving to: `apkver.txt'
0K 100% 692K=0s
2012-01-29 21:57:25 (692 KB/s) - `apkver.txt' saved [31/31]
projects alt dizini ya da dosyas halen var.
place-apk-here-for-modding alt dizini ya da dosyas halen var.
place-ogg-here alt dizini ya da dosyas halen var.
place-apk-here-to-batch-optimize alt dizini ya da dosyas halen var.
place-apk-here-for-signing alt dizini ya da dosyas halen var.
projects alt dizini ya da dosyas halen var.
java version "1.7.0_02"
Java(TM) SE Runtime Environment (build 1.7.0_02-b13)
Java HotSpot(TM) Client VM (build 22.0-b10, mixed mode, sharing)
'adb' i‡ ya da dŸ komut, ‡alŸtrlabilir
program ya da toplu iŸ dosyas olarak tannmyor.
I: Checking whether sources has changed...
I: Smaling...
C:\Users\cd555obx\Desktop\Apk Manager\other\..\projects\SystemUI.apk\smali\com\android\systemui\statusbar\AnimatedImageView.smali[0,0] No enum constant org.jf.dexlib.AnnotationVisibility.RUNTİME
Exception in thread "main" brut.androlib.AndrolibException: Could not smali file: [email protected]
at brut.androlib.src.DexFileBuilder.addSmaliFile(Unknown Source)
at brut.androlib.src.DexFileBuilder.addSmaliFile(Unknown Source)
at brut.androlib.src.SmaliBuilder.buildFile(Unknown Source)
at brut.androlib.src.SmaliBuilder.build(Unknown Source)
at brut.androlib.src.SmaliBuilder.build(Unknown Source)
at brut.androlib.Androlib.buildSourcesSmali(Unknown Source)
at brut.androlib.Androlib.buildSources(Unknown Source)
at brut.androlib.Androlib.build(Unknown Source)
at brut.androlib.Androlib.build(Unknown Source)
at brut.apktool.Main.cmdBuild(Unknown Source)
at brut.apktool.Main.main(Unknown Source)

George Jetson said:
here is the latest log
Code:
|29.01.2012 -- 21:57:25,15|
--------------------------------------------------------------------------
--2012-01-29 21:57:25-- http://dl.dropbox.com/u/14513610/apkver.txt
Resolving dl.dropbox.com... 107.20.134.231, 107.20.132.92, 107.20.234.233, ...
Connecting to dl.dropbox.com|107.20.134.231|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 31 [text/plain]
Saving to: `apkver.txt'
0K 100% 692K=0s
2012-01-29 21:57:25 (692 KB/s) - `apkver.txt' saved [31/31]
projects alt dizini ya da dosyas halen var.
place-apk-here-for-modding alt dizini ya da dosyas halen var.
place-ogg-here alt dizini ya da dosyas halen var.
place-apk-here-to-batch-optimize alt dizini ya da dosyas halen var.
place-apk-here-for-signing alt dizini ya da dosyas halen var.
projects alt dizini ya da dosyas halen var.
java version "1.7.0_02"
Java(TM) SE Runtime Environment (build 1.7.0_02-b13)
Java HotSpot(TM) Client VM (build 22.0-b10, mixed mode, sharing)
'adb' i‡ ya da dŸ komut, ‡alŸtrlabilir
program ya da toplu iŸ dosyas olarak tannmyor.
I: Checking whether sources has changed...
I: Smaling...
C:\Users\cd555obx\Desktop\Apk Manager\other\..\projects\SystemUI.apk\smali\com\android\systemui\statusbar\AnimatedImageView.smali[0,0] No enum constant org.jf.dexlib.AnnotationVisibility.RUNTİME
Exception in thread "main" brut.androlib.AndrolibException: Could not smali file: [email protected]
at brut.androlib.src.DexFileBuilder.addSmaliFile(Unknown Source)
at brut.androlib.src.DexFileBuilder.addSmaliFile(Unknown Source)
at brut.androlib.src.SmaliBuilder.buildFile(Unknown Source)
at brut.androlib.src.SmaliBuilder.build(Unknown Source)
at brut.androlib.src.SmaliBuilder.build(Unknown Source)
at brut.androlib.Androlib.buildSourcesSmali(Unknown Source)
at brut.androlib.Androlib.buildSources(Unknown Source)
at brut.androlib.Androlib.build(Unknown Source)
at brut.androlib.Androlib.build(Unknown Source)
at brut.apktool.Main.cmdBuild(Unknown Source)
at brut.apktool.Main.main(Unknown Source)
Click to expand...
Click to collapse
"projects\SystemUI.apk\smali\com\android\systemui\statusbar\AnimatedImageView.smali"
and
"C:\Users\cd555obx\Desktop\Apk Manager\other"
Why in OTHER folder? I think I'ved used apk manager once and it wasn't far from what i use now. normaly, we put the apk in "place-apk-here-for-modding" folder.
Also this lines, why does it has dropbox in it?
Code:
|29.01.2012 -- 21:57:25,15|
--------------------------------------------------------------------------
--2012-01-29 21:57:25-- http://dl.dropbox.com/u/14513610/apkver.txt
Resolving dl.dropbox.com... 107.20.134.231, 107.20.132.92, 107.20.234.233, ...
Connecting to dl.dropbox.com|107.20.134.231|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 31 [text/plain]
Saving to: `apkver.txt'
Try the one/link I posted earlier, easy to use.
EDIT:
Saw your post in my thread. You touched the SMALI and wanted to remove time?

I deleted all apk manager files on my computer and install new apk manager than I clean my temp and users file.Now I try decompile framework apk its ok decompiled success.But I compile framework(do not touch or modify anything) that gives error here is new log.
Code:
--------------------------------------------------------------------------
|01.02.2012 -- 16:31:47,27|
--------------------------------------------------------------------------
--2012-02-01 16:31:47-- http://update.apkmultitool.com/apkver.txt
Resolving update.apkmultitool.com (update.apkmultitool.com)... 199.59.62.20
Connecting to update.apkmultitool.com (update.apkmultitool.com)|199.59.62.20|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 152 [text/plain]
Saving to: `apkver.txt'
0K 100% 1,81M=0s
2012-02-01 16:31:47 (1,81 MB/s) - `apkver.txt' saved [152/152]
projects alt dizini ya da dosyas halen var.
place-apk-here-for-modding alt dizini ya da dosyas halen var.
place-ogg-here alt dizini ya da dosyas halen var.
place-apk-here-to-batch-optimize alt dizini ya da dosyas halen var.
place-apk-here-for-signing alt dizini ya da dosyas halen var.
java version "1.6.0_30"
Java(TM) SE Runtime Environment (build 1.6.0_30-b12)
Java HotSpot(TM) Client VM (build 20.5-b03, mixed mode, sharing)
Sistem belirtilen yolu bulamyor.
Sistem belirtilen yolu bulamyor.
I: Loading resource table...
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.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\cd555obx\AppData\Local\Temp\APKTOOL3621473068753514816.tmp, -x, -S, C:\apkman\projects\framework-res.apk\res, -M, C:\apkman\projects\framework-res.apk\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\cd555obx\AppData\Local\Temp\APKTOOL3621473068753514816.tmp, -x, -S, C:\apkman\projects\framework-res.apk\res, -M, C:\apkman\projects\framework-res.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:87)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
Caused by: java.io.IOException: Cannot run program "aapt": CreateProcess error=2, Sistem belirtilen dosyay? bulam?yor
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:78)
... 7 more
Caused by: java.io.IOException: CreateProcess error=2, Sistem belirtilen dosyay? bulam?yor
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(Unknown Source)
at java.lang.ProcessImpl.start(Unknown Source)
... 11 more

I never had errors like that. Only if I made a mistake editing xml's, and it logs clearly where i've gone wrong. it must be the tool you use to decompile. What version is it? And is the APk you are trying to decompile deodexed?
I have Android SDK and Java installed. I will upload the one i use to decompile, try it.
I will attach as well a compiled but untouched framework-res from Zeus v2.1. See if you can compile/decompile it as I do. If not, you're missing something. The tool itself, java, or ASDK.

it works now dude thank you.

Good... happy tweaking bro.

gabwerkz said:
I never had errors like that. Only if I made a mistake editing xml's, and it logs clearly where i've gone wrong. it must be the tool you use to decompile. What version is it? And is the APk you are trying to decompile deodexed?
I have Android SDK and Java installed. I will upload the one i use to decompile, try it.
I will attach as well a compiled but untouched framework-res from Zeus v2.1. See if you can compile/decompile it as I do. If not, you're missing something. The tool itself, java, or ASDK.
Click to expand...
Click to collapse
how do i install that android sdk? i think thats the problem why its not compiling

I had those errors even when I had everything installed.However I noticed it doesn't happen with untouched APKs...so if you try to decompile and compile the framework-res.apk from Redy's v20N package it will work but if you try to do that with the Zeus framework it will give those errors even if you don't modify it,just my 2 cents on what I experienced
EDIT: Also tried the manual version using CMD with apktool..same errors

Nope, the one attached is untouched from Zeus v2.1. Just now I decompiled/compiled it and had no errors and uploaded (See date modified on properties). it must be the tool you both use.
See his logs? says "cannot load aapt" aapt.exe is the problem inside the tool. will post the link of the issue.

Thanks for the tool Gabwerkz it works now

timvdhoorn said:
how do i install that android sdk? i think thats the problem why its not compiling
Click to expand...
Click to collapse
spykedsystem said:
Thanks for the tool Gabwerkz it works now
Click to expand...
Click to collapse
See. I think I posted the download link of it somewhere in Zeus thread when he posted. George must have missed it. I trold him to try it, APK Multi Tool.
I think timvdhoorn doesn't have problems compiling. As he compiled a theme before. Only mistakes in modifying xml's, smali's or images he'll have errors or will not decompile.
Happy theming..

Yeah pretty much the smallest mistake in editing XML's can cause errors in compiling the apk..just trial and error

i have searched on forum. and it brings me here. my old phone section
i am trying to decompile and compile stock deodexed systemui.apk
i can decompile but cant compile (without any changes)
it gives error. i tried it on many tool, win7 and linux.
-if i dont change anything in decompiled systemui, it gives same error. it is not about changing xmls or smalis-
error like 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"
}
i am using latest tools
any idea?

agritux said:
i have searched on forum. and it brings me here. my old phone section
i am trying to decompile and compile stock deodexed systemui.apk
i can decompile but cant compile (without any changes)
it gives error. i tried it on many tool, win7 and linux.
-if i dont change anything in decompiled systemui, it gives same error. it is not about changing xmls or smalis-
error like this
i am using latest tools
any idea?
Click to expand...
Click to collapse
i have the same error even i dont touch the decompiled file and try to recompile it, but getting that error. did you get any succes to handle with that?

sorry i dont remember

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

[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

[HOWTO] Integrating/Adding applications to the settings menu

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

[TOOLKIT][THEMING] Android Batch Image Converter

{
"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"
}
Have you ever decompiled an apk wanting to theme it, but when you open the graphics you want to theme, they look distorted and blotchy?
Well, that's because all graphics on an android device are optimized before they're packaged, and this is what causes the distorted images.
Going through these graphics 1 by 1 can be time consuming, and isn't very fun, so I've aimed to change this by creating the Android Batch Image Converter. It's extremely simple to use, and uses the same algorithms for processing images that is used in the draw9patch tool.
You simply pick the directory where all graphics to be converted reside, then click on "Convert". This application will go through every png in that directory and replace it with an un-optimized version that you can work with in your favorite graphics editor.
This is obviously brand new, and it's development will rely on the popularity and usage of this application.
This application is written in Java and will require java 6 (1.6) or above and has currently only been tested on Windows 7, but should work on other OS as well.
As always, this tool is safe, however, I can not be held responsible for it's misuse and/or damages that it may cause to your mobile and/or desktop devices while using it.
You can download this application from the following link:
*** UPDATED October 27, 2013 ***
Android Batch Image Converter 1.1 - (04/14/2013)
It's a "Runnable Jar" file and only needs to be placed into the directory where you want it to run from.
*** SEE THE CHANGE LOG IN THE SECOND POST FOR NEW FEATURES ***
All constructive criticism and suggestions are welcome
Good Luck, and Happy Theming
Don't forget to click on the donate/thanks button if you found this application useful
Re: [TOOL][THEMING] Android Batch Image Converter
*** CHANGE LOG ***
Updated April 14, 2013
v 1.2 (10/27/2013)
- Added support for JPEG (.jpg, .jpeg)
v 1.1 (04/14/2013)
- Select images by folder or by file.
- Convert recursively through directories.
- Set custom file chooser default location.
- Set custom output directory for converted png's.
- Enable/Disable overwrite confirm warning.
v 1.0 (03/31/2013)
- Initial Release of Android Batch Image Converter.
- Convert png images in directory to unoptimized png's.
Re: [TOOL][THEMING] Android Batch Image Converter
*RESERVED*
sub'd... looks promising! thanks
Great work! Just tried it and it works really well.
AW: [TOOL][THEMING] Android Batch Image Converter
Thank you for that. Saves a lot of time.
Sent with a JellyBlack HTC One X
GREAT!
This is the only tool, I wanted. All the versions lower that CS6 of Photoshop are unable to open these PNGs because of transparent pixels issue.. but with this tool.. theming has became more simple....... great work...!! Thank you.
EDIT : Tried it now, working very nice.. perfect tool!
Awesome! Thanks!
Geat work
I think most people are looking for something like this.
OJ said:
This is the only tool, I wanted. All the versions lower that CS6 of Photoshop are unable to open these PNGs because of transparent pixels issue..
Click to expand...
Click to collapse
I used to have to switch to Paint.Net for such images but SuperPNG gets rid of that issue so I can now use PS to edit all images.
Outstanding
Sent from my HTC One X using xda premium
New version upload planned for tonight
Hey guys,
Just wanted to give you all a heads up that I will be uploading an update for the Android Batch Image Converter later on this evening... It is much improved since the first version. New features include:
- Progress meter to display conversion progress
- Choose files by directory or by individual file
- Recursive directory conversions
- Select the default directory for the file chooser dialog
- Set output directory for converted files
- Overwrite file warning (can be enabled/disabled)
I hope this upgrade will improve the workflow of the application. If you guys have any suggestions, please let me know so I can look into including your request for the next upgrade
links are dead..
titanic_fanatic said:
Hey guys,
Just wanted to give you all a heads up that I will be uploading an update for the Android Batch Image Converter later on this evening... It is much improved since the first version. New features include:
- Progress meter to display conversion progress
- Choose files by directory or by individual file
- Recursive directory conversions
- Select the default directory for the file chooser dialog
- Set output directory for converted files
- Overwrite file warning (can be enabled/disabled)
I hope this upgrade will improve the workflow of the application. If you guys have any suggestions, please let me know so I can look into including your request for the next upgrade
Click to expand...
Click to collapse
Brother, i saw your thread and i want to use your tool.. I tried to download but the download links are dead.. Please update it...
praderj said:
Brother, i saw your thread and i want to use your tool.. I tried to download but the download links are dead.. Please update it...
Click to expand...
Click to collapse
Sorry for that, I guess dev host has been down all day. I've updated the link with a more reliable host. Please try again
Sent from my SGH-I757M using XDA Premium 4 mobile app
titanic_fanatic said:
Sorry for that, I guess dev host has been down all day. I've updated the link with a more reliable host. Please try again
Sent from my SGH-I757M using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Thank you so much brother... I've downloaded the tool.. gonna try it now... thanks for the tool...
Sent from my Celkon A97i
Not working.
It worked on my pc.. but now i got new laptop.. it is having windows8 64bit.. has java 64bit installed in it.. so..now it is not working.. nothing happening when clicked on "Browse" button.. and some error message is being showed in cmd prompt window.. Here it is-
Code:
C:\Program Files\Java\jre7\bin>java -jar aic.jar
java.io.IOException: Access is denied
at java.io.WinNTFileSystem.createFileExclusively(Native Method)
at java.io.File.createNewFile(Unknown Source)
at com.nwwebdesign.AndroidBatchImageConverter.ui.MainFrame.<init>(MainFrame.java:78)
at com.nwwebdesign.AndroidBatchImageConverter.Application$1.run(Application.java:35)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$200(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
java.io.FileNotFoundException: options.properties (The system cannot find the file specified)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(Unknown Source)
at java.io.FileInputStream.<init>(Unknown Source)
at com.nwwebdesign.AndroidBatchImageConverter.ui.MainFrame.<init>(MainFrame.java:95)
at com.nwwebdesign.AndroidBatchImageConverter.Application$1.run(Application.java:35)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$200(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
OJ said:
It worked on my pc.. but now i got new laptop.. it is having windows8 64bit.. has java 64bit installed in it.. so..now it is not working.. nothing happening when clicked on "Browse" button.. and some error message is being showed in cmd prompt window.. Here it is-
Code:
C:\Program Files\Java\jre7\bin>java -jar aic.jar
java.io.IOException: Access is denied
at java.io.WinNTFileSystem.createFileExclusively(Native Method)
at java.io.File.createNewFile(Unknown Source)
at com.nwwebdesign.AndroidBatchImageConverter.ui.MainFrame.<init>(MainFrame.java:78)
at com.nwwebdesign.AndroidBatchImageConverter.Application$1.run(Application.java:35)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$200(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
java.io.FileNotFoundException: options.properties (The system cannot find the file specified)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(Unknown Source)
at java.io.FileInputStream.<init>(Unknown Source)
at com.nwwebdesign.AndroidBatchImageConverter.ui.MainFrame.<init>(MainFrame.java:95)
at com.nwwebdesign.AndroidBatchImageConverter.Application$1.run(Application.java:35)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$200(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Click to expand...
Click to collapse
This sounds like a windows UAC issue, thus the permission denied error. Try this, create a new empty text file named start_abic.bat, and place this text inside it:
Code:
java -jar AndroidBatchImageConvertor-1.1.jar
Make sure this file is either in the same directory as the app, or that the path to the jar is correct in the batch file. Then, right click on the batch file and open as administrator. This should run the app and allow it to function correctly with the right system permissions
titanic_fanatic said:
This sounds like a windows UAC issue, thus the permission denied error. Try this, create a new empty text file named start_abic.bat, and place this text inside it:
Code:
java -jar AndroidBatchImageConvertor-1.1.jar
Make sure this file is either in the same directory as the app, or that the path to the jar is correct in the batch file. Then, right click on the batch file and open as administrator. This should run the app and allow it to function correctly with the right system permissions
Click to expand...
Click to collapse
I managed it by changinh permission of the whole folder. Now, it is working ..thanks
@titanic_fanatic
amazing tool
but
how can i use this tool to fix jpeg images it works on only png images
sakshamx said:
@titanic_fanatic
amazing tool
but
how can i use this tool to fix jpeg images it works on only png images
Click to expand...
Click to collapse
I will have to add that functionality to the app for you. I don't have time to get to that until this weekend, but will definitely add the feature for you. I'll pm you after I post it if you like
Sent from my SGH-I757M using XDA Premium 4 mobile app

[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

Categories

Resources