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
Can't de-compile apk's in APK Manager. I have installed the proprietary files in apktool, the frameworks, and when I try to de-compile framework-res.apk or Settings.apk it gives an error and it doesn't de-compile.
Code:
LOG
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)
'adb' is not recognized as an internal or external command,
operable program or batch file.
Could Not Find C:\Users\alphasquad32\Desktop\APK Manager\place-apk-here-for-modding\../place-apk-here-for-modding/signedframework-res.apk
Could Not Find C:\Users\alphasquad32\Desktop\APK Manager\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedframework-res.apk
I: Loading resource table...
I: Loaded.
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathNotExist: AndroidManifest.xml
at brut.androlib.res.decoder.ResFileDecoder.decode(ResFileDecoder.java:106)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:114)
at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:93)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:98)
at brut.apktool.Main.cmdDecode(Main.java:120)
at brut.apktool.Main.main(Main.java:57)
Caused by: brut.directory.PathNotExist: AndroidManifest.xml
at brut.directory.AbstractDirectory.getFileInput(AbstractDirectory.java:103)
at brut.androlib.res.decoder.ResFileDecoder.decode(ResFileDecoder.java:98)
... 5 more
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.
hey i been trying to edit apks like HTC_IME.apk and system apk mostly any apk in the rom with apkmanager but keep getting error 21. every time i try to decompile it i tryed to decompile with dependencies but im still getting the same error .
i been trying to tweak virtuous primadonna sense 4.0 rom. last rom i used apk manager was for GB rom. i also looked into this thread
http://forum.xda-developers.com/showthread.php?t=1511730
i been looking over the forums and Google trying to find the answer but im getting half answers and more questions....... does anyone know what i been doing wrong? what i need to change? if more info needed just ask i will deliver. thanks for any help.
edit:
log for apk manager:
--------------------------------------------------------------------------
|11/04/2012 -- 14:04:36.29|
--------------------------------------------------------------------------
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:\apkmanager\place-apk-here-for-modding\../place-apk-here-for-modding/signedHTC_IME.apk
Could Not Find C:\apkmanager\place-apk-here-for-modding\../place-apk-here-for-modding/unsignedHTC_IME.apk
I: Baksmaling...
Exception in thread "main" java.lang.RuntimeException: bad magic value: 64 65 78 0a 30 33 36 00
at org.jf.dexlib.DexFile.<init>(DexFile.java:377)
at org.jf.dexlib.DexFile.<init>(DexFile.java:274)
at brut.androlib.src.SmaliDecoder.decode(SmaliDecoder.java:48)
at brut.androlib.src.SmaliDecoder.decode(SmaliDecoder.java:33)
at brut.androlib.Androlib.decodeSourcesSmali(Androlib.java:68)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:85)
at brut.apktool.Main.cmdDecode(Main.java:120)
at brut.apktool.Main.main(Main.java:57)
after installing ics apktool from this thread to my apk manager it seems to decompile hassle free.
http://forum.xda-developers.com/showthread.php?t=1558171&page=3
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..