[Q] How to decompile/compile Arc Apks - Xperia Arc Q&A, Help & Troubleshooting

Hi!
I want to know how can I decompile and compile any Arc apk (calculator, home, conversation, settings, phone, contacts....)
​
First, I have Windows 7 64bits, Adb, java, apktool, Apk_manager 4.9 and 5.0.2, Apk_multitool.
Second I was following a lot of tutos and guides
For example:
[mod / theme] [cm6 / 2.2] [20-05-2011] WORKING Transparent contacts/phone/mms apks
[GUIDE]Enable more homescreens on default launcher
[Windows XP/VISTA/7][UTILITY][TOOL] APK Multi-Tool
[UPDATED 24.03.2011] X10 Theme Reference
.9.pngs figured out. New thread!
[Android 4.0][GUIDE]Port ICS transition animations on EVERY ROM & EVERY PHONE
[HOW TO] Extended Power Menu with no header (reboot / download / recovery)
[MOD] [Guide How To] SystemUI.apk for Transparent notifications background
[GUIDE][MOD] Transparent Background of Arc System App
Click to expand...
Click to collapse
Thirth, I have properly installed Arc framework on pc
And the tools worked correctly with the X10 apks when install an original X10 framework
But when I try to decompile an arc´s apk with the original Arc framework (C:\Users\Julio_Ton\apktool\framework\1.apk) I get this log from "Apk_multitool" or/and "apk_manager":
Code:
java version "1.7.0_01"
Java(TM) SE Runtime Environment (build 1.7.0_01-b08)
Java HotSpot(TM) 64-Bit Server VM (build 21.1-b02, mixed mode)
No se pudo encontrar C:\android-sdk-windows\Apk_Multi-Tool\place-apk-here-for-modding\../place-apk-here-for-modding/signedCalculator.apk
No se pudo encontrar C:\android-sdk-windows\Apk_Multi-Tool\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedCalculator.apk
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Loading resource table from file: C:\Users\Julio_Ton\apktool\framework\1.apk I: Loaded.
I: Decoding file-resources...
I: Decoding values*/* XMLs...
Presione una tecla para continuar . . .
Code:
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathN
otExist: apktool.yml
at brut.androlib.Androlib.readMetaFile(Androlib.java:142)
at brut.androlib.Androlib.build(Androlib.java:159)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:174)
at brut.apktool.Main.main(Main.java:59)
Caused by: brut.directory.PathNotExist: apktool.yml
at brut.directory.AbstractDirectory.getFileInput(AbstractDirectory.java:
103)
at brut.androlib.Androlib.readMetaFile(Androlib.java:138)
... 4 more
El sistema no puede encontrar el archivo especificado.
Presione una tecla para continuar . . .
Please Help ME!!!!!

excuse me for my english I'm from Costa Rica and I speak spanish

is there no more to the log ???
but you need to install the semcgeneriduxpres.apk
aswell
java -jar apktool.jar SemcGenericUxpRes.apk
will install it as "2.apk"
i have made a tool for swapping frameworks. but if you install the other framework you should be fine.
Pvy.

pvyParts said:
is there no more to the log ???
but you need to install the semcgeneriduxpres.apk
aswell
java -jar apktool.jar SemcGenericUxpRes.apk
will install it as "2.apk"
i have made a tool for swapping frameworks. but if you install the other framework you should be fine.
Pvy.
Click to expand...
Click to collapse
PvyParts, you're awesome!!! thanks a lot!!
I never had saw this tip in a thread thanks
Now I think that the decompile proccess is finished successfull.
This is my new log now
Code:
java version "1.7.0_01"
Java(TM) SE Runtime Environment (build 1.7.0_01-b08)
Java HotSpot(TM) 64-Bit Server VM (build 21.1-b02, mixed mode)
No se pudo encontrar C:\android-sdk-windows\Apk_Multi-Tool\place-apk-here-for-mo
dding\../place-apk-here-for-modding/signedCalculator.apk
No se pudo encontrar C:\android-sdk-windows\Apk_Multi-Tool\place-apk-here-for-mo
dding\../place-apk-here-for-modding/unsignedCalculator.apk
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Loading resource table from file: C:\Users\Julio_Ton\apktool\framework\1.apk
I: Loaded.
I: Decoding file-resources...
I: Decoding values*/* XMLs...
I: Loading resource table from file: C:\Users\Julio_Ton\apktool\framework\2.apk
I: Loaded.
I: Done.
I: Copying assets and libs...
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
I: Building apk file...
El sistema no puede encontrar el archivo especificado.
Presione una tecla para continuar . . .
And one more question, is normal that when I decompile an apk and I make a little change in a xml, then compile the apk, the size of the apk is reduced??
for example;
Calculator.apk Original 102,10K
unsignedCalculator.apk Modified by me 65,72K
signedCalculator.apk Modified by me 71,79K

julio_ton said:
PvyParts, you're awesome!!! thanks a lot!!
I never had saw this tip in a thread thanks
Now I think that the decompile proccess is finished successfull.
This is my new log now
Code:
java version "1.7.0_01"
Java(TM) SE Runtime Environment (build 1.7.0_01-b08)
Java HotSpot(TM) 64-Bit Server VM (build 21.1-b02, mixed mode)
No se pudo encontrar C:\android-sdk-windows\Apk_Multi-Tool\place-apk-here-for-mo
dding\../place-apk-here-for-modding/signedCalculator.apk
No se pudo encontrar C:\android-sdk-windows\Apk_Multi-Tool\place-apk-here-for-mo
dding\../place-apk-here-for-modding/unsignedCalculator.apk
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Loading resource table from file: C:\Users\Julio_Ton\apktool\framework\1.apk
I: Loaded.
I: Decoding file-resources...
I: Decoding values*/* XMLs...
I: Loading resource table from file: C:\Users\Julio_Ton\apktool\framework\2.apk
I: Loaded.
I: Done.
I: Copying assets and libs...
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
I: Building apk file...
El sistema no puede encontrar el archivo especificado.
Presione una tecla para continuar . . .
And one more question, is normal that when I decompile an apk and I make a little change in a xml, then compile the apk, the size of the apk is reduced??
for example;
Calculator.apk Original 102,10K
unsignedCalculator.apk Modified by me 65,72K
signedCalculator.apk Modified by me 71,79K
Click to expand...
Click to collapse
what you'l find is APKmanager compresses the images and xmls more than the sdk does you can turn compresion off in apkmanager.
if you do the framework it almost halfs it's size lol
i dont compress apps that were not compressed to start with thats my rule of thumb but all in all i dont think it matters too much. but i dont really know
Pvy.

Ops other problem
When I try to Compile SemcGenericUxpRes.apk get an error
Log:
Code:
I: Copying assets and libs...
C:\android-sdk-windows\Apktool>java -jar apktool.jar b SemcGenericUxpRes SemcGen
ericUxpResmod.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.common.BrutExce
ption: could not exec command: [aapt, p, -F, C:\Users\JULIO_~1\AppData\Local\Tem
p\APKTOOL3188190371594837753.tmp, -x, -I, C:\Users\Julio_Ton\apktool\framework\1
.apk, -S, C:\android-sdk-windows\Apktool\SemcGenericUxpRes\res, -M, C:\android-s
dk-windows\Apktool\SemcGenericUxpRes\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)
at brut.androlib.Androlib.buildResources(Androlib.java:248)
at brut.androlib.Androlib.build(Androlib.java:171)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\U
sers\JULIO_~1\AppData\Local\Temp\APKTOOL3188190371594837753.tmp, -x, -I, C:\User
s\Julio_Ton\apktool\framework\1.apk, -S, C:\android-sdk-windows\Apktool\SemcGene
ricUxpRes\res, -M, C:\android-sdk-windows\Apktool\SemcGenericUxpRes\AndroidManif
est.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:191)
... 6 more
C:\android-sdk-windows\Apktool>

julio_ton said:
Ops other problem
When I try to Compile SemcGenericUxpRes.apk get an error
Click to expand...
Click to collapse
Join the club...
I can't even decompile this apk, even though pvyParts can!

iridaki said:
Join the club...
I can't even decompile this apk, even though pvyParts can!
Click to expand...
Click to collapse
May i ?

julio_ton said:
Ops other problem
When I try to Compile SemcGenericUxpRes.apk get an error
Log:
Code:
I: Copying assets and libs...
C:\android-sdk-windows\Apktool>java -jar apktool.jar b SemcGenericUxpRes SemcGen
ericUxpResmod.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.common.BrutExce
ption: could not exec command: [aapt, p, -F, C:\Users\JULIO_~1\AppData\Local\Tem
p\APKTOOL3188190371594837753.tmp, -x, -I, C:\Users\Julio_Ton\apktool\framework\1
.apk, -S, C:\android-sdk-windows\Apktool\SemcGenericUxpRes\res, -M, C:\android-s
dk-windows\Apktool\SemcGenericUxpRes\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)
at brut.androlib.Androlib.buildResources(Androlib.java:248)
at brut.androlib.Androlib.build(Androlib.java:171)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\U
sers\JULIO_~1\AppData\Local\Temp\APKTOOL3188190371594837753.tmp, -x, -I, C:\User
s\Julio_Ton\apktool\framework\1.apk, -S, C:\android-sdk-windows\Apktool\SemcGene
ricUxpRes\res, -M, C:\android-sdk-windows\Apktool\SemcGenericUxpRes\AndroidManif
est.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:191)
... 6 more
C:\android-sdk-windows\Apktool>
Click to expand...
Click to collapse
*Note that that error is stupid and says nothing. This is annoying me atm. ;-) but alas thats a job for next week
iridaki said:
Join the club...
I can't even decompile this apk, even though pvyParts can!
Click to expand...
Click to collapse
That's cause I rock. ;-) and apktool fears me.
mundy725 said:
May i ?
Click to expand...
Click to collapse
Ofcourse. :-D
Back on topic,
I have found that Sony have some strange entries in the styles.xml (of the semcuxpres) if you look you'll see the ones I mean
I cant recompile the semcuxpres either. But tbh Ive not put much time into it yet as the error was useless... I'm more worried about getting some cool features atm. ( and partying ) I will figure out what's it is and get back to you. ;-)
You can drag drop compiled images and XMLs into the apk with 7zip or winrar etc. If you need more youll have to edit each app separately to bypass the styles.
Pvy.
Have a great new years everyone see you on the flip side.
*** edit *** maybe try installing the x10 framework-res.apk to recompile The semcuxpres. Don't ask why but it had fixed some of my issues b4.
Sent from my TEAM Powered Arc S

YOU ROCKS PVY I'm going to try it
I was using 3.0...142 uxpres and works but with few errors
I note in .142 uxpres much more archives than in .42 or newer... And I was think that's the problem....
I modify some xml of apks to make 40% transparent
Btw I even have problems compiling phonebook.apk :'(
Sent from my JT LT18a using xda premium

AND OF COURSE HAVE A GREAT NEW YEAR EVERYONE!!!!! :-D
Sent from my JT LT18a using xda premium

julio_ton said:
YOU ROCKS PVY I'm going to try it
I was using 3.0...142 uxpres and works but with few errors
I note in .142 uxpres much more archives than in .42 or newer... And I was think that's the problem....
I modify some xml of apks to make 40% transparent
Btw I even have problems compiling phonebook.apk :'(
Sent from my JT LT18a using xda premium
Click to expand...
Click to collapse
can you share the code that make transparent?
thanks

selaludiam said:
can you share the code that make transparent?
thanks
Click to expand...
Click to collapse
Make what transparent?
What app do you want to work on.
Pvy
Sent from my TEAM Powered Arc S

pvyParts said:
Make what transparent?
What app do you want to work on.
Pvy
Sent from my TEAM Powered Arc S
Click to expand...
Click to collapse
status bar
{
"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"
}
on ongoing item i want to change color and transparency 50%
status bar in landscape view
and transparent system>>SemcGenericUxpRes
i've got same problem>>aapt.exe crash
i've tried with x10 framework-res and a lot of xml code fail>>as like your post
thanks

Related

[HELP] Compiling Home.apk on stock .42

I am having trouble compiling Home.apk on stock .42 firmware using apkmanager. It decompiles ok but when i try to compile after making a few small changes i get an error and the new Home.apk appears to be incomplete i.e 600kb instead of 800kb. When i place the new apk in the correct folder with correct permissions it doesnt work.
Any suggestions appriciated. Cheers
Sent from my ST18i using XDA App
if you try just decompile and compile it
what happenned?
jimbobcox said:
I am having trouble compiling Home.apk on stock .42 firmware using apkmanager. It decompiles ok but when i try to compile after making a few small changes i get an error and the new Home.apk appears to be incomplete i.e 600kb instead of 800kb. When i place the new apk in the correct folder with correct permissions it doesnt work.
Any suggestions appriciated. Cheers
Sent from my ST18i using XDA App
Click to expand...
Click to collapse
Please post the log from your compiler.
pvy.
Will do when i get back on my laptop.
I will attemp decompile and compile without changes also.
Sent from my ST18i using XDA App
I have just decompiled the apk, i didn't make any changes and tried recompiling i got an error. Log as follows
---
|13/01/2012 -- 16:52:37.88|
--------------------------------------------------------------------------
java version "1.7.0_02"
Java(TM) SE Runtime Environment (build 1.7.0_02-b13)
Java HotSpot(TM) 64-Bit Server VM (build 22.0-b10, mixed mode)
Could Not Find C:\Android\apk_manager_4.9\place-apk-here-for-modding\../place-apk-here-for-modding/signedHome.apk
Could Not Find C:\Android\apk_manager_4.9\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedHome.apk
I: Baksmaling...
I: Loading resource table...
I: Decoding resources...
I: Loading resource table from file: C:\Users\JimBob\apktool\framework\1.apk
I: Copying assets and libs...
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
C:\Android\apk_manager_4.9\other\..\projects\Home.apk\res\values\styles.xml:16: error: Error retrieving parent for item: No resource found that matches the given name 'Layout'.
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\JimBob\AppData\Local\Temp\APKTOOL5814441021199410965.tmp, -I, C:\Users\JimBob\apktool\framework\1.apk, -S, C:\Android\apk_manager_4.9\other\..\projects\Home.apk\res, -M, C:\Android\apk_manager_4.9\other\..\projects\Home.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(Unknown Source)
at brut.androlib.Androlib.buildResourcesFull(Unknown Source)
at brut.androlib.Androlib.buildResources(Unknown Source)
at brut.androlib.Androlib.build(Unknown Source)
at brut.androlib.Androlib.build(Unknown Source)
at brut.apktool.Main.cmdBuild(Unknown Source)
at brut.apktool.Main.main(Unknown Source)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\JimBob\AppData\Local\Temp\APKTOOL5814441021199410965.tmp, -I, C:\Users\JimBob\apktool\framework\1.apk, -S, C:\Android\apk_manager_4.9\other\..\projects\Home.apk\res, -M, C:\Android\apk_manager_4.9\other\..\projects\Home.apk\AndroidManifest.xml]
at brut.util.OS.exec(Unknown Source)
... 7 more
The system cannot find the file specified.
Thanks in advance for any help!
SOLVED!
found solution here
http://forum.xda-developers.com/showthread.php?t=1276332
Sent from my ST18i using XDA App

[MOD][15 Toggles] How to mod Lidroid framework

Before you get the idea please consider to thank Препод, poppuri and sk0t (from 4pda.ru) for their time and hard work, all credits go to them.
Here we go, the idea is simple , decompile "lidroid-res.apk", open "apktool.yml", you will find this :
Code:
version: 1.4.5
apkFileName: lidroid-res.apk
isFrameworkApk: true
usesFramework:
ids:
- 1
If you keep the "- 1" it will uses only one framework, you have to add "2", like this :
Code:
version: 1.4.5
apkFileName: lidroid-res.apk
isFrameworkApk: true
usesFramework:
ids:
- 1
- 2
Done, make your changes and re-compile, use my Apk_Manager if you have any trouble with ICS files.
Thanks again to Препод & poppuri & sk0t, don't forget to credit them.
as 2.apk - do I need to install twframework-res.apk or lidroid-res.apk?
firefds said:
as 2.apk - do I need to install twframework-res.apk or lidroid-res.apk?
Click to expand...
Click to collapse
i think you will need twframework-res.apk.
So, now we can translate to own languages the lidroid toggles, right?
Krendelrus said:
So, now we can translate to own languages the lidroid toggles, right?
Click to expand...
Click to collapse
Yes, it should work.
Very useful, thanks.
Lovely bit of info, cheers Wanam - works perfect
I can't thank you enough for this sir!
yoderk said:
I can't thank you enough for this sir!
Click to expand...
Click to collapse
You are welcome.
sorry for beeing noob, but after editing apktool.yml and compiling (11) i get an error "An error occured, please check the log..."
Schneckmeier said:
sorry for beeing noob, but after editing apktool.yml and compiling (11) i get an error "An error occured, please check the log..."
Click to expand...
Click to collapse
Get me the log.
I used your Apk_Manager_ICS:
Code:
|11.04.2012 -- 18:31:21,04|
--------------------------------------------------------------------------
java version "1.6.0_24"
Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
Java HotSpot(TM) 64-Bit Server VM (build 19.1-b02, mixed mode)
I: Framework installed to: C:\Users\Schneckmeier\apktool\framework\2.apk
I: Loading resource table...
I: Loaded.
I: Loading resource table from file: C:\Users\Schneckmeier\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" java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Integer
at brut.androlib.Androlib.parseUsesFramework(Androlib.java:399)
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)
Schneckmeier said:
I used your Apk_Manager_ICS:
Code:
|11.04.2012 -- 18:31:21,04|
--------------------------------------------------------------------------
java version "1.6.0_24"
Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
Java HotSpot(TM) 64-Bit Server VM (build 19.1-b02, mixed mode)
I: Framework installed to: C:\Users\Schneckmeier\apktool\framework\2.apk
I: Loading resource table...
I: Loaded.
I: Loading resource table from file: C:\Users\Schneckmeier\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" java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Integer
at brut.androlib.Androlib.parseUsesFramework(Androlib.java:399)
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)
Click to expand...
Click to collapse
Maybe because you used the second solution, i removed it from the first page.
Use this one instead :
Code:
version: 1.4.5
apkFileName: lidroid-res.apk
isFrameworkApk: true
usesFramework:
ids:
- 1
- 2
re-installed newer java runtime environment 1.7.0_03 and used your second method now it works! Thanks wanam for help!!
Schneckmeier said:
re-installed newer java runtime environment 1.7.0_03 and used your second method now it works! Thanks wanam for help!!
Click to expand...
Click to collapse
It should work with jre 1.5 too.
is there anyway to change the "hamster" text in the values folder as everytime i recompile, i get a systemui error? im assuming i need to edit the text in strings.xml but still not working. any ideas? thx
dead0 said:
is there anyway to change the "hamster" text in the values folder as everytime i recompile, i get a systemui error? im assuming i need to edit the text in strings.xml but still not working. any ideas? thx
Click to expand...
Click to collapse
Any logs?
wanam said:
Any logs?
Click to expand...
Click to collapse
there were no errors in the log after compiling but i didn't edit the apktool.yml. everytime i edit *.yml i get compile error as posted above
tried again by just editing the apktool.yml as per your suggestion but get a compile error:
java version "1.7.0_03"
Java(TM) SE Runtime Environment (build 1.7.0_03-b05)
Java HotSpot(TM) 64-Bit Server VM (build 22.1-b02, mixed mode)
Could Not Find C:\Users\Administrator\Desktop\Apk_Manager_ICS\place-apk-here-for-modding\../place-apk-here-for-modding/signedlidroid-res.apk
I: Loading resource table...
I: Loaded.
I: Loading resource table from file: C:\Users\Administrator\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:366)
at brut.androlib.Androlib.parseUsesFramework(Androlib.java:400)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)
at brut.androlib.Androlib.buildResources(Androlib.java:248)
at brut.androlib.Androlib.build(Androlib.java:171)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Hi Wanam, how do you mod it so it doesn't say 'wanam lite' on the shut down dialog?
dead0 said:
there were no errors in the log after compiling but i didn't edit the apktool.yml. everytime i edit *.yml i get compile error as posted above
tried again by just editing the apktool.yml as per your suggestion but get a compile error:
java version "1.7.0_03"
Java(TM) SE Runtime Environment (build 1.7.0_03-b05)
Java HotSpot(TM) 64-Bit Server VM (build 22.1-b02, mixed mode)
Could Not Find C:\Users\Administrator\Desktop\Apk_Manager_ICS\place-apk-here-for-modding\../place-apk-here-for-modding/signedlidroid-res.apk
I: Loading resource table...
I: Loaded.
I: Loading resource table from file: C:\Users\Administrator\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:366)
at brut.androlib.Androlib.parseUsesFramework(Androlib.java:400)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)
at brut.androlib.Androlib.buildResources(Androlib.java:248)
at brut.androlib.Androlib.build(Androlib.java:171)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Click to expand...
Click to collapse
Push framework-res.apk (apktool if framework-res.apk).
kowcop said:
Hi Wanam, how do you mod it so it doesn't say 'wanam lite' on the shut down dialog?
Click to expand...
Click to collapse
Edit /res/values/strings.xml.

[Q] SystemUI.apk compile

Hello my friends.
I installed frameworkres and tw framework resources files. I decompiled SystemUI.apk and changed drawables.xml and status bar smali.
But I can't compile SystemUI.apk Error.
Log is here :
Code:
java version "1.7.0_05"
Java(TM) SE Runtime Environment (build 1.7.0_05-b05)
Java HotSpot(TM) 64-Bit Server VM (build 23.1-b03, mixed mode)
C:\Windows\SysWOW64\Apk Manager\place-apk-here-for-modding\../place-apk-here-for-modding/signedSystemUI.apk Bulunamad
C:\Windows\SysWOW64\Apk Manager\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedSystemUI.apk Bulunamad
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\HP\apktool\framework\1.apk
I: Loaded.
I: Decoding file-resources...
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...
I: Checking whether sources has changed...
I: Smaling...
Exception in thread "main" java.lang.NullPointerException
at org.jf.util.PathUtil.getRelativeFile(PathUtil.java:44)
at org.jf.smali.smaliFlexLexer.getSourceName(smaliFlexLexer.java:2922)
at org.antlr.runtime.CommonTokenStream.getSourceName(CommonTokenStream.java:345)
at org.antlr.runtime.tree.CommonTreeNodeStream.getSourceName(CommonTreeNodeStream.java:106)
at org.antlr.runtime.tree.TreeP****r.getSourceName(TreeP****r.java:78)
at org.jf.smali.smaliTreeWalker.getErrorHeader(smaliTreeWalker.java:372)
at org.antlr.runtime.BaseRecognizer.displayRecognitionError(BaseRecognizer.java:192)
at org.antlr.runtime.BaseRecognizer.reportError(BaseRecognizer.java:186)
at org.jf.smali.smaliTreeWalker.smali_file(smaliTreeWalker.java:451)
at brut.androlib.mod.SmaliMod.assembleSmaliFile(SmaliMod.java:85)
at brut.androlib.src.DexFileBuilder.addSmaliFile(DexFileBuilder.java:43)
at brut.androlib.src.DexFileBuilder.addSmaliFile(DexFileBuilder.java:33)
at brut.androlib.src.SmaliBuilder.buildFile(SmaliBuilder.java:64)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:48)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:35)
at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:243)
at brut.androlib.Androlib.buildSources(Androlib.java:200)
at brut.androlib.Androlib.build(Androlib.java:191)
at brut.androlib.Androlib.build(Androlib.java:174)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
I don't know what that error means but your apk manager is having problems with the smali
Try just doing the drawables with apk manager and see if that works...if it does work try the smali with this
Thank you but I have a problem. I don't know how can I use this tool.
Guide is here : http://forum.xda-developers.com/showthread.php?t=1136625
but links are broken.
You could try that what jarmezrocks has posted on that thread or post on it for some help.
I may still have the video/s from that tut and i can check tonight when I'm back at my pc but if you google 'smali baksmali tutorial' you should be able to find all the Info you need...and more...it's all out there
Sent from my GT-I9100 using xda premium
Arnadel said:
Hello my friends.
I installed frameworkres and tw framework resources files. I decompiled SystemUI.apk and changed drawables.xml and status bar smali.
But I can't compile SystemUI.apk Error.
Log is here :
Code:
java version "1.7.0_05"
Java(TM) SE Runtime Environment (build 1.7.0_05-b05)
Java HotSpot(TM) 64-Bit Server VM (build 23.1-b03, mixed mode)
C:\Windows\SysWOW64\Apk Manager\place-apk-here-for-modding\../place-apk-here-for-modding/signedSystemUI.apk Bulunamad
C:\Windows\SysWOW64\Apk Manager\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedSystemUI.apk Bulunamad
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\HP\apktool\framework\1.apk
I: Loaded.
I: Decoding file-resources...
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...
I: Checking whether sources has changed...
I: Smaling...
Exception in thread "main" java.lang.NullPointerException
at org.jf.util.PathUtil.getRelativeFile(PathUtil.java:44)
at org.jf.smali.smaliFlexLexer.getSourceName(smaliFlexLexer.java:2922)
at org.antlr.runtime.CommonTokenStream.getSourceName(CommonTokenStream.java:345)
at org.antlr.runtime.tree.CommonTreeNodeStream.getSourceName(CommonTreeNodeStream.java:106)
at org.antlr.runtime.tree.TreeP****r.getSourceName(TreeP****r.java:78)
at org.jf.smali.smaliTreeWalker.getErrorHeader(smaliTreeWalker.java:372)
at org.antlr.runtime.BaseRecognizer.displayRecognitionError(BaseRecognizer.java:192)
at org.antlr.runtime.BaseRecognizer.reportError(BaseRecognizer.java:186)
at org.jf.smali.smaliTreeWalker.smali_file(smaliTreeWalker.java:451)
at brut.androlib.mod.SmaliMod.assembleSmaliFile(SmaliMod.java:85)
at brut.androlib.src.DexFileBuilder.addSmaliFile(DexFileBuilder.java:43)
at brut.androlib.src.DexFileBuilder.addSmaliFile(DexFileBuilder.java:33)
at brut.androlib.src.SmaliBuilder.buildFile(SmaliBuilder.java:64)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:48)
at brut.androlib.src.SmaliBuilder.build(SmaliBuilder.java:35)
at brut.androlib.Androlib.buildSourcesSmali(Androlib.java:243)
at brut.androlib.Androlib.buildSources(Androlib.java:200)
at brut.androlib.Androlib.build(Androlib.java:191)
at brut.androlib.Androlib.build(Androlib.java:174)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Click to expand...
Click to collapse
hello Sir.. there must be something to do with the codings in the statusbar .smali file.. try to inspect the codes again. it could be wrong codes that u have inserted. I ever came across these errors before when I tried to change some codes .smali file.. I managed to recompile when I reverted the original codes back..

Decompiled att ion framework-res.APK?

So I noticed we didn't, or I didn't see, a decomplied framework-res and I was looking up some stuff about it and tried a few things and here is the folders I got when I "decomplied" the res,
Assets
Images
Sounds
Webkit
res
508 folders, no reason to list them here
AndroidManifest.XML
From that I feel like something is missing from the decomplie and I wanted to ask before I pursue this more because I want to move in the right direction, I'm not a dev but I like to dawdle and who says an extra person playing with stuff will hurt?
According to Ganesh it's the recompile that hasn't worked out yet. Maybe that's because of what your saying, something is missing from the decompile.
Sent from my LT28i using xda app-developers app
Yes I did have a problem there if I recall but I had more progress when I put the apktool on the root of my hdd and then run cmd as admin
Sent from my LT28at using xda premium
I have another question, different topic but I didn't feel like making another topic and spamming the page, in sys/ Module/ restart/ parameters there is a file called Download_mode and its value is set to 1, does this file, if set to 0, stop the phone from rebooting out of download mode after a set period of time? If so then we should theoretically be able to find one for fast boot?
thanitos said:
So I noticed we didn't, or I didn't see, a decomplied framework-res and I was looking up some stuff about it and tried a few things and here is the folders I got when I "decomplied" the res,
Assets
Images
Sounds
Webkit
res
508 folders, no reason to list them here
AndroidManifest.XML
From that I feel like something is missing from the decomplie and I wanted to ask before I pursue this more because I want to move in the right direction, I'm not a dev but I like to dawdle and who says an extra person playing with stuff will hurt?
Click to expand...
Click to collapse
decompiling framework-res.apk
./apktool if SemcGenericUxpRes.apk ion
./apktool d -f -t ion framework-res.apk out
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Loading resource table from file: /home/ganesh/apktool/framework/2-ion.apk
I: Loaded.
I: Done.
I: Copying assets and libs...
Click to expand...
Click to collapse
Click to expand...
Click to collapse
Compiling framework-res.apk (Without making any changes)
./apktool b out new.framework-res.apk
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
aapt: warning: string 'BaMmi' has no default translation in /home/ganesh/test/out/res; found: ar bg ca cs da de el en_GB es es_US et fa fi fr hi hr hu in it iw ko lt lv ms nb nl pl pt pt_PT ro ru sk sl sr sv th tl tr uk vi zh_CN zh_TW
I: Building apk file...
Click to expand...
Click to collapse
Click to expand...
Click to collapse
The Original size = 21 mb
The Decompiled-Recompiled Size = 15 mb.
Now if you try and push it to /system/framework you get boot loop.
And if you change resources, like adding pngs, it will not even compile.
We are missing something else here? Don't know what!
ganeshbiyer said:
decompiling framework-res.apk
Compiling framework-res.apk (Without making any changes)
The Original size = 21 mb
The Decompiled-Recompiled Size = 15 mb.
Now if you try and push it to /system/framework you get boot loop.
And if you change resources, like adding pngs, it will not even compile.
We are missing something else here? Don't know what!
Click to expand...
Click to collapse
C:\apk>apktool b framework-res unchanged/framework-res.apk
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: C:\apk\framework-res\res/drawable-sw600dp-hdpi
invalid resource directory name: C:\apk\framework-res\res/drawable-sw600dp-mdpi
invalid resource directory name: C:\apk\framework-res\res/drawable-sw600dp-xhdpi
invalid resource directory name: C:\apk\framework-res\res/layout-sw600dp
invalid resource directory name: C:\apk\framework-res\res/layout-w600dp
invalid resource directory name: C:\apk\framework-res\res/values-h720dp
invalid resource directory name: C:\apk\framework-res\res/values-sw600dp
invalid resource directory name: C:\apk\framework-res\res/values-sw600dp-land
invalid resource directory name: C:\apk\framework-res\res/values-sw600dp-w1024dp
invalid resource directory name: C:\apk\framework-res\res/values-sw600dp-w1280dp
invalid resource directory name: C:\apk\framework-res\res/values-w360dp
invalid resource directory name: C:\apk\framework-res\res/values-w480dp
invalid resource directory name: C:\apk\framework-res\res/values-w500dp
invalid resource directory name: C:\apk\framework-res\res/values-w600dp
invalid resource directory name: C:\apk\framework-res\res/values-w720dp
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, C:\Users\Jesse\AppData\Local\Temp\A
PKTOOL8244304813261978902.tmp, -x, -I, C:\Users\Jesse\apktool\framework\2-nozomi
.apk, -S, C:\apk\framework-res\res, -M, C:\apk\framework-res\AndroidManifest.xml
]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)
at brut.androlib.Androlib.buildResources(Androlib.java:248)
at brut.androlib.Androlib.build(Androlib.java:171)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\U
sers\Jesse\AppData\Local\Temp\APKTOOL8244304813261978902.tmp, -x, -I, C:\Users\J
esse\apktool\framework\2-nozomi.apk, -S, C:\apk\framework-res\res, -M, C:\apk\fr
amework-res\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:191)
... 6 more
Click to expand...
Click to collapse
for me when I decompile Im missing folders after it
thanitos said:
for me when I decompile Im missing folders after it
Click to expand...
Click to collapse
Are you doing this first:
apktool if SemcGenericUxpRes.apk
Yup
Sent from my LT28at using xda premium
what version of APKTOOL you use?
Currently I am using version 1.5, I have no problem to compile or decompile (no error), but when I install framework-res.apk, my phone goes into bootloop.
I tried several utility to sign my file, but so far no result.
The newest version also talking about the att version just to be clear
Sent from my LT28at using xda premium
Hello !
Have anything find a solution to compile correctly framework-res.apk. ???
just found one from Xperia S/Sola forums and it works for our ION :good:
http://forum.xda-developers.com/showthread.php?t=1943855
Followed the steps and changed the showNavigationBar value to true re-compiled the framework-res.apk and copied the resources.arsc from the compiled apk to original apk and pushed it to the Ion, and it worked. Can see the Navigation bar buttons now. The only catch is you cannot change the application backgrounds using the themes.
kapil4wm said:
just found one from Xperia S/Sola forums and it works for our ION :good:
http://forum.xda-developers.com/showthread.php?t=1943855
Followed the steps and changed the showNavigationBar value to true re-compiled the framework-res.apk and copied the resources.arsc from the compiled apk to original apk and pushed it to the Ion, and it worked. Can see the Navigation bar buttons now. The only catch is you cannot change the application backgrounds using the themes.
Click to expand...
Click to collapse
Thanks for the find and letting us know about it, much appreciated now I wana play with it!
Edited- after reading the linked topic I noticed that step 4 makes me feel stupid for not thinking of that lol but I dont fully understand step 5 and what those two lines of code are for, maybe if I was at my pc I could open it and see but I'm not so in the context what do they do?
Sent from my LT28at using xda premium
I want to bring this thread back to life ... Since I can't find a solution to my problem after modding the Framework-res.apk.
In addition to known problem that you can't changed theme. My dialer is now became transparent. This is very annoyed and make it hard to read the number pad. Can anyone please help ?
Here is the screenshot:
{
"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"
}
That's a deep necro, just flash the original ftf. Easy quick fix
Sent from my LT28at using xda app-developers app
thanitos said:
That's a deep necro, just flash the original ftf. Easy quick fix
Sent from my LT28at using xda app-developers app
Click to expand...
Click to collapse
I could simply restore my backup of framework-res.apk. I post the question here if any one successfully recomplile framework-res without the problems I mentioned above.
Sent from my Ion* using Tapatalk 2

help recompiling apk

having trouble recompiling the app after changing the artist color line to an ICS blue.
in the res/values/colors.xml theres a line which reads
Code:
<color name="widget_list_artist">#ff808080</color>
this needs to be changed to
Code:
<color name="widget_list_artist">#ff33B5E5</color>
recompile and done.
Samsung Music Player APK
https://www.dropbox.com/s/hzbjo9uqxjb1mn0/MusicPlayerWT.apk
not sure if its just me or if anyones able to recompile? Was doing this for a color request on the transparent music widget over in the themes section.
Well, kinda can't help without any error reports
Sent from my SGH-M919 using Tapatalk 2
elesbb said:
Well, kinda can't help without any error reports
Sent from my SGH-M919 using Tapatalk 2
Click to expand...
Click to collapse
but you could try and recompile the app with the changes I listed... and then let me know if its just me or not.
as far as the errors im getting this while decompiling http://pastebin.com/V9UdHqf4
and this while recompiling http://pastebin.com/x3YCarHL
havent used apktool since my early sensation days so Ive installed the new frameworks before anything. It worked back then. Going to try and start fresh with that apktool GUI link in your sig.
and using the updated GUI Apktool from your signature Im getting this:
Code:
Thu 07/18/2013
11:34:33.86
Re-compiling... "C:\Users\Ivan Trueba\APK GUI\InProgress\MusicPlayerWT.apk"
I: Smaling...
I: Building resources...
invalid resource directory name: C:\Users\Ivan Trueba\APK GUI\InProgress\MusicPlayerWT.apk\res/drawable-xxhdpi
invalid resource directory name: C:\Users\Ivan Trueba\APK GUI\InProgress\MusicPlayerWT.apk\res/values-sw359dp-land-xxhdpi
invalid resource directory name: C:\Users\Ivan Trueba\APK GUI\InProgress\MusicPlayerWT.apk\res/values-sw359dp-port-xxhdpi
invalid resource directory name: C:\Users\Ivan Trueba\APK GUI\InProgress\MusicPlayerWT.apk\res/values-sw359dp-xxhdpi
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 17, --target-sdk-version, 17, -F, C:\Users\IVANTR~1\AppData\Local\Temp\APKTOOL3172779546996359503.tmp, -I, C:\Users\Ivan Trueba\apktool\framework\1.apk, -I, C:\Users\Ivan Trueba\apktool\framework\2.apk, -S, C:\Users\Ivan Trueba\APK GUI\InProgress\MusicPlayerWT.apk\res, -M, C:\Users\Ivan Trueba\APK GUI\InProgress\MusicPlayerWT.apk\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, 17, --target-sdk-version, 17, -F, C:\Users\IVANTR~1\AppData\Local\Temp\APKTOOL3172779546996359503.tmp, -I, C:\Users\Ivan Trueba\apktool\framework\1.apk, -I, C:\Users\Ivan Trueba\apktool\framework\2.apk, -S, C:\Users\Ivan Trueba\APK GUI\InProgress\MusicPlayerWT.apk\res, -M, C:\Users\Ivan Trueba\APK GUI\InProgress\MusicPlayerWT.apk\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, 17, --target-sdk-version, 17, -F, C:\Users\IVANTR~1\AppData\Local\Temp\APKTOOL3172779546996359503.tmp, -I, C:\Users\Ivan Trueba\apktool\framework\1.apk, -I, C:\Users\Ivan Trueba\apktool\framework\2.apk, -S, C:\Users\Ivan Trueba\APK GUI\InProgress\MusicPlayerWT.apk\res, -M, C:\Users\Ivan Trueba\APK GUI\InProgress\MusicPlayerWT.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:333)
... 6 more
-----------------------------------------------------------------
Thu 07/18/2013
11:32:55.30
Decompiling.. "C:\GUI APK Tool\MusicPlayerWT.apk"
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\Ivan Trueba\apktool\framework\1.apk
I: Loaded.
I: Regular manifest package...
I: Decoding file-resources...
I: Loading resource table from file: C:\Users\Ivan Trueba\apktool\framework\2.apk
I: Loaded.
W: Cant find 9patch chunk in file: "drawable-nodpi/music_list_bg.9.png". Renaming it to *.png.
I: Decoding values */* XMLs...
I: Done.
I: Copying assets and libs...
The Illest 619 said:
and using the updated GUI Apktool from your signature Im getting this:
Code:
Thu 07/18/2013
11:34:33.86
Re-compiling... "C:\Users\Ivan Trueba\APK GUI\InProgress\MusicPlayerWT.apk"
I: Smaling...
I: Building resources...
invalid resource directory name: C:\Users\Ivan Trueba\APK GUI\InProgress\MusicPlayerWT.apk\res/drawable-xxhdpi
invalid resource directory name: C:\Users\Ivan Trueba\APK GUI\InProgress\MusicPlayerWT.apk\res/values-sw359dp-land-xxhdpi
invalid resource directory name: C:\Users\Ivan Trueba\APK GUI\InProgress\MusicPlayerWT.apk\res/values-sw359dp-port-xxhdpi
invalid resource directory name: C:\Users\Ivan Trueba\APK GUI\InProgress\MusicPlayerWT.apk\res/values-sw359dp-xxhdpi
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 17, --target-sdk-version, 17, -F, C:\Users\IVANTR~1\AppData\Local\Temp\APKTOOL3172779546996359503.tmp, -I, C:\Users\Ivan Trueba\apktool\framework\1.apk, -I, C:\Users\Ivan Trueba\apktool\framework\2.apk, -S, C:\Users\Ivan Trueba\APK GUI\InProgress\MusicPlayerWT.apk\res, -M, C:\Users\Ivan Trueba\APK GUI\InProgress\MusicPlayerWT.apk\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, 17, --target-sdk-version, 17, -F, C:\Users\IVANTR~1\AppData\Local\Temp\APKTOOL3172779546996359503.tmp, -I, C:\Users\Ivan Trueba\apktool\framework\1.apk, -I, C:\Users\Ivan Trueba\apktool\framework\2.apk, -S, C:\Users\Ivan Trueba\APK GUI\InProgress\MusicPlayerWT.apk\res, -M, C:\Users\Ivan Trueba\APK GUI\InProgress\MusicPlayerWT.apk\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, 17, --target-sdk-version, 17, -F, C:\Users\IVANTR~1\AppData\Local\Temp\APKTOOL3172779546996359503.tmp, -I, C:\Users\Ivan Trueba\apktool\framework\1.apk, -I, C:\Users\Ivan Trueba\apktool\framework\2.apk, -S, C:\Users\Ivan Trueba\APK GUI\InProgress\MusicPlayerWT.apk\res, -M, C:\Users\Ivan Trueba\APK GUI\InProgress\MusicPlayerWT.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:333)
... 6 more
-----------------------------------------------------------------
Thu 07/18/2013
11:32:55.30
Decompiling.. "C:\GUI APK Tool\MusicPlayerWT.apk"
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\Ivan Trueba\apktool\framework\1.apk
I: Loaded.
I: Regular manifest package...
I: Decoding file-resources...
I: Loading resource table from file: C:\Users\Ivan Trueba\apktool\framework\2.apk
I: Loaded.
W: Cant find 9patch chunk in file: "drawable-nodpi/music_list_bg.9.png". Renaming it to *.png.
I: Decoding values */* XMLs...
I: Done.
I: Copying assets and libs...
Click to expand...
Click to collapse
How did you pull this off!?
C:\Users\Ivan Trueba\APK GUI\InProgress\MusicPlayerWT.apk\res/drawable-xxhdpi
Click to expand...
Click to collapse
Notice the bolded character? That's your issue.
What are your computer specs? Platform? .net framework version?
Shouldn't be generating directories like that.
Sent from my SGH-M919 using Tapatalk 2
elesbb said:
How did you pull this off!?
Notice the bolded character? That's your issue.
What are your computer specs? Platform? .net framework version?
Shouldn't be generating directories like that.
Sent from my SGH-M919 using Tapatalk 2
Click to expand...
Click to collapse
No Idea. I installed everything to my C: drive instead of program files. dont think that matters though.
Windows 7, 4.5 framework version.
screenshot right before i decompile
http://i43.tinypic.com/2wf4cx1.jpg
The Illest 619 said:
No Idea. I installed everything to my C: drive instead of program files. dont think that matters though.
Windows 7, 4.5 framework version.
screenshot right before i decompile
http://i43.tinypic.com/2wf4cx1.jpg
Click to expand...
Click to collapse
Put it in program files. Not sure but that might be the issue. It can't create the files necessary because c drive needs administration rights to be able to write to it. Try running as admin and tell me what happens
Sent from my SGH-M919 using Tapatalk 2
elesbb said:
Put it in program files. Not sure but that might be the issue. It can't create the files necessary because c drive needs administration rights to be able to write to it. Try running as admin and tell me what happens
Sent from my SGH-M919 using Tapatalk 2
Click to expand...
Click to collapse
so upon further inspection the directories it lists do exist... the files arent written on the c: drive so that wasnt the issue.
https://www.dropbox.com/s/z4veh73u8lgapav/Untitled-2.jpg
theres a pic of the directories open with the folders and latest recompile errors. im about ready to delete everything apktool related and start with something new.
The Illest 619 said:
so upon further inspection the directories it lists do exist... the files arent written on the c: drive so that wasnt the issue.
https://www.dropbox.com/s/z4veh73u8lgapav/Untitled-2.jpg
theres a pic of the directories open with the folders and latest recompile errors. im about ready to delete everything apktool related and start with something new.
Click to expand...
Click to collapse
the directories may exist, but it uses the installed location folder for the tools required. What ROM is this from? I get an error totally different from yours which means i am creating the directories properly. But it seems it is missing some framework files.
elesbb said:
the directories may exist, but it uses the installed location folder for the tools required. What ROM is this from? I get an error totally different from yours which means i am creating the directories properly. But it seems it is missing some framework files.
Click to expand...
Click to collapse
I also tried installing apktools to program files, desktop, and under user but no go. Im on wicked v4, here are my fw files.
https://www.dropbox.com/sh/c4rqo2o2xy4fc4g/1FJae8Fb1H
The Illest 619 said:
I also tried installing apktools to program files, desktop, and under user but no go. Im on wicked v4, here are my fw files.
https://www.dropbox.com/sh/c4rqo2o2xy4fc4g/1FJae8Fb1H
Click to expand...
Click to collapse
Install these files using the "Install proprietary framework" checkbox and you will get different errors but everything is working as should. You will have to use your smali/decompile/recompile skills to figure out the issue you have now I will let you have at it for a day or so as i have been busy lately but if you cannot figure it out i will try and find time to help.

Categories

Resources