[MOD][15 Toggles] How to mod Lidroid framework - Galaxy S II Themes and Apps

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.

Related

[Q] How to decompile/compile Arc Apks

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

problem (de)compiling sense 3.5 systemui

i'm struggling to recompile systemui from rcmix 4.0
1st of all, no edits have been made, so there is no issue in that direction.
the problem is i think in recompliling smali, which makes app fc.
i used apk manager 4.9 and apk multitool v 1.0.2. they both give an error about a file not found when compliling:
2012-02-29 02:15:58 (3,98 MB/s) - `apkver.txt' saved [152/152]
A subdirectory or file projects already exists.
A subdirectory or file place-apk-here-for-modding already exists.
A subdirectory or file place-ogg-here already exists.
A subdirectory or file place-apk-here-to-batch-optimize already exists.
A subdirectory or file place-apk-here-for-signing already exists.
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)
I: Framework installed to: C:\Users\Tomi\apktool\framework\1.apk
I: Framework installed to: C:\Users\Tomi\apktool\framework\1.apk
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Loading resource table from file: C:\Users\Tomi\apktool\framework\1.apk
I: Loaded.
I: Decoding file-resources...
I: Loading resource table from file: C:\Users\Tomi\apktool\framework\2.apk
I: Loaded.
I: Decoding values*/* XMLs...
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...
The system cannot find the file specified.
but seem to build apk fine (roughly the same size and structure)
then i tried using apktool 1.4.3, installed framework, decompliled and recompiled with no error at all, drag and dropped classes.dex from recompiled apk to original (because of signatures) and push to phone and it crashes.
C:\Users\Tomi\Desktop\apktool>apktool if C:\Users\Tomi\Desktop\apktool\framework-res.apk
I: Framework installed to: C:\Users\Tomi\apktool\framework\1.apk
C:\Users\Tomi\Desktop\apktool>apktool d SystemUI.apk sysui
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Loading resource table from file: C:\Users\Tomi\apktool\framework\1.apk
I: Loaded.
I: Decoding file-resources...
I: Loading resource table from file: C:\Users\Tomi\apktool\framework\2.apk
I: Loaded.
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...
C:\Users\Tomi\Desktop\apktool>apktool b sysui test3.apk
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
I: Building apk file...
C:\Users\Tomi\Desktop\apktool>
am i doing something wrong? where? any help much appreciated
i figured my problem lies somewhere in signatures of the app. it gets broken even if i drag/drop classes.dex from one original file to another, tried using 7zip and winrar. any suggestions?
since this is a monologue, lets finish it if someone ever bumps into it
i didnt resign it at first and i read several posts against signing system apks
http://forum.xda-developers.com/showthread.php?t=822388

[Q] Help me with Apktool on my ARC!

Guys please help me with apktool! ım freakin out!
before everything, I setted up JDK & JRE, Android SDK Manager too..
ı tried lots of Apktool but having same mistake!
C:\apktool folder i created and put the files in it with my framework-res.apk
Then commanded
apktool if framework-res.apk
I: Framework installed to C:\whatever\your\path\is\framework\1.apk
All is ok. but when I try to DECOMPILE Settings.apk or SystemUI.apk or Browser.apk etc anyway here is the log;
Microsoft Windows XP [Sürüm 5.1.2600]
(C) Telif Hakkı 1985-2001 Microsoft Corp.
C:\Documents and Settings\Hyp>cd c:\apktool
C:\apktool>apktool if framework-res.apk
I: Framework installed to: C:\Documents and Settings\Hyp\apktool\framework\1.apk
C:\apktool>apktool d Browser.apk
I: Baksmaling...
testI: Loading resource table...
I: Loaded.
I: Loading resource table from file: C:\Documents and Settings\Hyp\apktool\frame
work\1.apk
I: Loaded.
I: Decoding file-resources...
I: Decoding values*/* XMLs...
Can't find framework resources for package of id: 2. You must install proper fra
mework files, see project website for more info.
C:\apktool>
I'm on 2.3.4 not ICS! How to fix this damn package of id 2 ?
here you have a video tutorial

[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..

Question to developers about the decompilation

Hello friends! did not get to decompile framework com.lge.sui.widget.apk
someone turned decompile?
Log
Code:
Processing...
I: Using Apktool 2.0.3-b0eb58-SNAPSHOT on com.lge.sui.widget.apk
I: Loading resource table...
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\evgenijya\apktool\framework\1.apk
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
Exception in thread "main" java.lang.ClassCastException: brut.androlib.res.data.
value.ResBoolValue cannot be cast to brut.androlib.res.data.value.ResAttr
at brut.androlib.res.data.value.ResStyleValue.serializeToResValuesXml(Re
sStyleValue.java:65)
at brut.androlib.res.AndrolibResources.generateValuesFile(AndrolibResour
ces.java:502)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:252
)
at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:136)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:102)
at brut.apktool.Main.cmdDecode(Main.java:165)
at brut.apktool.Main.main(Main.java:81)
!!!Aborted!!!
All done!

Categories

Resources