[Q] I would like to go to editing .apk for creating my own themes: what do I need?? - Galaxy S I9000 Themes and Apps

Hi! I would like to edit some .apk files of mt SGG, but not editing only icons or so, but trasparencies and backgrounds.
Can please someone help me on finding the tools I need and how to setup my computer with all the things I need??
Thank you.

PIRATA! said:
Hi! I would like to edit some .apk files of mt SGG, but not editing only icons or so, but trasparencies and backgrounds.
Can please someone help me on finding the tools I need and how to setup my computer with all the things I need??
Thank you.
Click to expand...
Click to collapse
Hi, for the tools needed see post 2 in my theme thread. Report back when you've got them installed and we can progress. Don't ask me to find the download links for you. lol

Jumba said:
Hi, for the tools needed see post 2 in my theme thread. Report back when you've got them installed and we can progress. Don't ask me to find the download links for you. lol
Click to expand...
Click to collapse
dena994 said:
....................
-------------------
Tools Needed:
Android SDK package - add the (sdkpath)/tools folder to your windows environment variable. -> DONE!
Version 1.3.1 (not 1.3.2) of APKTool. -> DONE!
Adobe Photoshop and Fireworks (or other advanced image editing software). -> I don't want to edit images! I use images I found from other themes!
PSPad Editor (or other valid xml editor). -> DONE! ..but I prefere NotePad++ Editior
Latest version of the NeonGT theme. -> I have your Jumba's_NeonGT_JPY_1.8.3_bb.zip theme you told me to use as teamplate: is it ok?
PNGOptimizer. -> I don't want to edit images! I use images I found from other themes!
7-zip. -> DONE!
..................
Click to expand...
Click to collapse
Am I ok for starting?
All I need is managing with replacing images and related trasparencies.
An example: I have a trasparent Dialer and would like to change the trasparency, the look of some tabs getting images from other dialers, and then importing all the work done in the Dialer of last Darky's ROM.
I have already putted all the neutral/dummy/trasparent images from the trasparent dialer into the dialer that I want to edit, but now I see all those images as black with no trasparency.
Am I correct if I say that now I need to make changes to some .xml files to set the trasparency??
Ps: I already decompiled the .apk I would like to edit and I get errors decompiling this dialer using APKTool 1.3.1:
Code:
=======================================================
::::::: Auto-APKTool Decompile Created By Yanzi :::::::
=======================================================
Compile all APKs Exist Here
U want to Use Additional Resource?[y/n]n
Start...
Premere un tasto per continuare . . .
I: Baksmaling...
I: Loading resource table...
I: Decoding resources...
I: Loading resource table from file: C:\Users\pirata\apktool\framework\1.apk
S: Could not decode file "drawable-hdpi/call_default_btn_normal.9.png" to "drawa ble-hdpi-v4/call_default_btn_normal.9.png"
S: Could not decode file "drawable-hdpi/call_default_btn_pressed.9.png" to "draw able-hdpi-v4/call_default_btn_pressed.9.png"
S: Could not decode file "drawable-hdpi/call_default_btn_selected.9.png" to "drawable-hdpi-v4/call_default_btn_selected.9.png"
S: Could not decode file "drawable-hdpi/dialer_tab_button_bg_focus.9.png" to "drawable-hdpi-v4/dialer_tab_button_bg_focus.9.png"
S: Could not decode file "drawable-hdpi/dialer_tab_button_bg_press.9.png" to "drawable-hdpi-v4/dialer_tab_button_bg_press.9.png"
S: Could not decode file "drawable-hdpi/listview_focus_bg.9.png" to "drawable-hdpi-v4/listview_focus_bg.9.png"
S: Could not decode file "drawable-hdpi/listview_press_bg.9.png" to "drawable-hdpi-v4/listview_press_bg.9.png"
W: Could not decode attr value, using undecoded value instead: ns=android, name=textColor, value=0x0205009a
W: Could not decode attr value, using undecoded value instead: ns=android, name=textColor, value=0x0205009a
W: Could not decode attr value, using undecoded value instead: ns=android, name=color, value=0x02050097
Can't find framework resources for package of id: 2. You must install proper framework files, see project website for more info.
Premere un tasto per continuare . . .
Pps: I putted a PAUSE in the APKTool_Decompile.bat file so to see the errors.

You need to set your framework-res.apk as the file used to decode... like so:
apktool if c:\whatever\yourframework-res.apk sgs
Then:
apktool d -t sgs c:\whatever\DialerTabActivity.apk c:\decoded\dialer
Then make your edits and compile using:
apktool b c:\decoded\dialer c:\out\DialerTabActivity.apk
After this don't forget to copy the META-INF folder over from the old apk into the new one.
If you're looking to make it transparent there's a guide around here somewhere. You need to change some xmls too. Sometimes some 9.png images don't decompile properly... you'll need to recreate those somehow.

Jumba said:
You need to set your framework-res.apk as the file used to decode... like so:
apktool if c:\whatever\yourframework-res.apk sgs
Then:
apktool d -t sgs c:\whatever\DialerTabActivity.apk c:\decoded\dialer
Then make your edits and compile using:
apktool b c:\decoded\dialer c:\out\DialerTabActivity.apk
After this don't forget to copy the META-INF folder over from the old apk into the new one.
If you're looking to make it transparent there's a guide around here somewhere. You need to change some xmls too. Sometimes some 9.png images don't decompile properly... you'll need to recreate those somehow.
Click to expand...
Click to collapse
Mmmmm...what is the problem??
Code:
=======================================================
::::::: Auto-APKTool Decompile Created By Yanzi :::::::
=======================================================
Compile all APKs Exist Here
U want to Use Additional Resource?[y/n]y
What Resource (Tag) U Want to Use: sgs
I: Baksmaling...
I: Loading resource table...
I: Decoding resources...
I: Loading resource table from file: C:\Users\stefano\apktool\framework\1-sgs.ap
k
S: Could not decode file "drawable-hdpi/call_default_btn_normal.9.png" to "drawable-hdpi-v4/call_default_btn_normal.9.png"
S: Could not decode file "drawable-hdpi/call_default_btn_pressed.9.png" to "drawable-hdpi-v4/call_default_btn_pressed.9.png"
S: Could not decode file "drawable-hdpi/call_default_btn_selected.9.png" to "drawable-hdpi-v4/call_default_btn_selected.9.png"
S: Could not decode file "drawable-hdpi/dialer_tab_button_bg_focus.9.png" to "drawable-hdpi-v4/dialer_tab_button_bg_focus.9.png"
S: Could not decode file "drawable-hdpi/dialer_tab_button_bg_press.9.png" to "drawable-hdpi-v4/dialer_tab_button_bg_press.9.png"
S: Could not decode file "drawable-hdpi/listview_focus_bg.9.png" to "drawable-hdpi-v4/listview_focus_bg.9.png"
S: Could not decode file "drawable-hdpi/listview_press_bg.9.png" to "drawable-hdpi-v4/listview_press_bg.9.png"
W: Could not decode attr value, using undecoded value instead: ns=android, name=textColor, value=0x0205009a
W: Could not decode attr value, using undecoded value instead: ns=android, name=textColor, value=0x0205009a
W: Could not decode attr value, using undecoded value instead: ns=android, name=color, value=0x02050097
Can't find framework resources for package of id: 2. You must install proper framework files, see project website for more info.
Premere un tasto per continuare . . .

My guess is you need to set twframework-res as package 2 somehow? But I've never seen that error...
Try replacing the 1.apk and 2.apk files in the install folder with your renamed framework and twframework-res.apk's. Then you don't have to use the -t switch when decompiling.

Jumba said:
My guess is you need to set twframework-res as package 2 somehow? But I've never seen that error...
Try replacing the 1.apk and 2.apk files in the install folder with your renamed framework and twframework-res.apk's. Then you don't have to use the -t switch when decompiling.
Click to expand...
Click to collapse
When I installed the app, in Document and Setting I only have the 1.apk file..no 2.apk one.
I'll try with what you say.
About the residencies, applying it is it all the same technique for write all menu or every menu has different file involving and I must go searching for them?

PIRATA! said:
When I installed the app, in Document and Setting I only have the 1.apk file..no 2.apk one.
I'll try with what you say.
About the residencies, applying it is it all the same technique for write all menu or every menu has different file involving and I must go searching for them?
Click to expand...
Click to collapse
From my unserstanding you need to use the frameworks that the file you're decoding depends on... I've always just used the fw-res and twfw-res from the rom I'm using without issues.
It seems to be looking for dependencies that aren't available in the frameworks you are using. Perhaps try and get the files that match the dialer you downloaded, or try another dialer.

Jumba said:
From my unserstanding you need to use the frameworks that the file you're decoding depends on... I've always just used the fw-res and twfw-res from the rom I'm using without issues.
It seems to be looking for dependencies that aren't available in the frameworks you are using. Perhaps try and get the files that match the dialer you downloaded, or try another dialer.
Click to expand...
Click to collapse
The fact is that I have tryed with Darky's ROM v9.1 Dialer and its frameworks files, and I get the same problem.
This means he used different files mixed together for making the theme??
In the mean time I'll try with a stock rom files and let you know if it is like you say.

Jumba said:
................
Try replacing the 1.apk and 2.apk files in the install folder with your renamed framework and twframework-res.apk's. Then you don't have to use the -t switch when decompiling.
Click to expand...
Click to collapse
I tryed to get framework files from Darky's ROM v9.2 and rename framework-res.apk in 1.apk and twframework-res.apk in 2apk, place them in the Documents and Settings folder of apktool and try them on the DialerTabActivity.apk from same Darky's v9.2.
Here is what I got:
Code:
=======================================================
::::::: Auto-APKTool Decompile Created By Yanzi :::::::
=======================================================
Compile all APKs Exist Here
U want to Use Additional Resource?[y/n]n
Start...
Premere un tasto per continuare . . .
I: Baksmaling...
I: Loading resource table...
I: Decoding resources...
I: Loading resource table from file: C:\Users\stefano\apktool\framework\1.apk
S: Could not decode file "drawable-hdpi/tw_tab_selected_bar_left.9.png" to "drawable-hdpi-v4/tw_tab_selected_bar_left.9.png"
S: Could not decode file "drawable-hdpi/tw_tab_selected_bar_right.9.png" to "drawable-hdpi-v4/tw_tab_selected_bar_right.9.png"
I: Loading resource table from file: C:\Users\stefano\apktool\framework\2.apk
I: Copying assets and libs...
Premere un tasto per continuare . . .
What do you think? Is it ok, regardless for those two files??
EDIT: This is what I get from the dialer I would like to decode using those same framework files:
Code:
=======================================================
::::::: Auto-APKTool Decompile Created By Yanzi :::::::
=======================================================
Compile all APKs Exist Here
U want to Use Additional Resource?[y/n]n
Start...
Premere un tasto per continuare . . .
I: Baksmaling...
I: Loading resource table...
I: Decoding resources...
I: Loading resource table from file: C:\Users\stefano\apktool\framework\1.apk
S: Could not decode file "drawable-hdpi/call_default_btn_normal.9.png" to "drawable-hdpi-v4/call_default_btn_normal.9.png"
S: Could not decode file "drawable-hdpi/call_default_btn_pressed.9.png" to "drawable-hdpi-v4/call_default_btn_pressed.9.png"
S: Could not decode file "drawable-hdpi/call_default_btn_selected.9.png" to "drawable-hdpi-v4/call_default_btn_selected.9.png"
S: Could not decode file "drawable-hdpi/dialer_tab_button_bg_focus.9.png" to "drawable-hdpi-v4/dialer_tab_button_bg_focus.9.png"
S: Could not decode file "drawable-hdpi/dialer_tab_button_bg_press.9.png" to "drawable-hdpi-v4/dialer_tab_button_bg_press.9.png"
S: Could not decode file "drawable-hdpi/listview_focus_bg.9.png" to "drawable-hdpi-v4/listview_focus_bg.9.png"
S: Could not decode file "drawable-hdpi/listview_press_bg.9.png" to "drawable-hdpi-v4/listview_press_bg.9.png"
I: Loading resource table from file: C:\Users\stefano\apktool\framework\2.apk
I: Copying assets and libs...
Premere un tasto per continuare . . .
Again: what do you think? Is it ok, regardless for those undecoded files?? Can I just extract from the apk manually and overwrite the undecoded?? They are only images...

Much better, yes, but you'll still need to replace those files at some stage. APKTool will have replaced those with dummy files. See for yourself - they will be there but are probably 0 bytes. You can most likey compile the dialer as-is then copy those .9.png files back into the apk afterwards or replace them with new ones.

Jumba said:
Much better, yes, but you'll still need to replace those files at some stage. APKTool will have replaced those with dummy files. See for yourself - they will be there but are probably 0 bytes. You can most likey compile the dialer as-is then copy those .9.png files back into the apk afterwards or replace them with new ones.
Click to expand...
Click to collapse
Oh..but can't I just replace them now before compiling? Do I have to do this after when the apk file is already done?!?
Ps: I have to edit 2 images. Do I have to use Adobe Photoshop and Fireworks + PNGOptimizer?? I don't have Photoshop and Fireworks, and never used them, so I'm a little bit noob with those....

If you want to replace. 9.png images before compiling you'll need to re-create the 9-patch info (the thin black lines around the edges of the image) else it won't compile. If this isn't possible for some reason then you can add the original compiled ones in afterwards. I can send you the pre-compiled images that you are missing when I get home later if you like... but take some time to read up on how 9-patches work, it could save you some headaches in the future.

Jumba said:
If you want to replace. 9.png images before compiling you'll need to re-create the 9-patch info (the thin black lines around the edges of the image) else it won't compile. If this isn't possible for some reason then you can add the original compiled ones in afterwards. I can send you the pre-compiled images that you are missing when I get home later if you like... but take some time to read up on how 9-patches work, it could save you some headaches in the future.
Click to expand...
Click to collapse
The fact is that those images are modded images from the creator of the modded Dialer: in the thumbs they look all like a big black square, but if I open them they look all blank trasparent.
Probably he added them after compiling the .apk as you say.
I think I'd better do the same.
About modding the images I told you up here, I aldready did with a free tool

Jumba said:
... but take some time to read up on how 9-patches work, it could save you some headaches in the future.
Click to expand...
Click to collapse
Any links?
Ps: I edited my previous post:
in the thumbs they look all like a big black square, but if I open them they look all blank trasparent.
Click to expand...
Click to collapse

Jumba said:
............
Then make your edits and compile using:
apktool b c:\decoded\dialer c:\out\DialerTabActivity.apk
After this don't forget to copy the META-INF folder over from the old apk into the new one.
If you're looking to make it transparent there's a guide around here somewhere. You need to change some xmls too. Sometimes some 9.png images don't decompile properly... you'll need to recreate those somehow.
Click to expand...
Click to collapse
Do you refere to this thread? http://forum.xda-developers.com/showthread.php?t=863519

No, that thread is about adjusting dpi.

Jumba said:
No, that thread is about adjusting dpi.
Click to expand...
Click to collapse
Mmmm..I can't find anything.......

http://www.google.com/m?q=xda+dialer+transparent
The answer is in the 2nd result.

Jumba said:
http://www.google.com/m?q=xda+dialer+transparent
The answer is in the 2nd result.
Click to expand...
Click to collapse
......sorry. I haven't made that kind of searhing on xda.
Ps: I realized that you have made Glass Dialers your self.
I have done one based on GlassDialer with Darky's rom icons that works good...but it lags in the Logs and Favourite menues because my LiveWallpaper is heavy, so I was looking for remove trasparency from underneath the 2 squares Logs and Favourites on top of list (between Keypad and Contacts squares) and see if I could even remove trasparency underneath all the Log and Favourite listing, so to have trasparency only when the Keypad is loaded
Do you understand what I'm looking for doing?

Related

APKTool question

I am trying to decompile Rosie.apk but keep getting this error. Could anyone give me some assistance with this? There are alot of lines like the ones listed below. I just listed two of them.
W: Could not decode attr value, using undecoded value instead: ns=android, name=
divider, value=0x02020102
W: Could not decode attr value, using undecoded value instead: ns=android, name=
divider, value=0x02020102
Can't find framework resources for package of id: 2. You must install proper fra
mework files, see project website for more info.
"You must install proper framework files, see project website for more info." I assume that's your problem. You need to install the framework files. http://code.google.com/p/android-apktool/wiki/FrameworkFiles
You need to move the framework apk's to the APKTool folder, and type
Code:
APKTool if com.htc.resources.apk
and
Code:
apktool if framework-res.apk
Thank-you very much.
Sent from my ADR6300 using XDA Premium App
Another question. I used the command apktool d Rosie.apk ./out to decompile it. It decompiled it fine but it created the drawable as drawable-hdpi-v4 and it should be drawable-hdpi how do I get it to decompile it with the correct name?
I don't think that makes a difference does it? Most of my apps like framework and rosie have the v4. I think the v4 is to not show certain things below api level 4. I don't have the slightest clue what that means, but that is what I understand to be the case. I think everything since 1.6 is above that so you should be cool.
Sent from my ADR6300 using XDA App
Newer roms and apks have hdpi-v4 files it is probably correct I wouldn't change that
Sent from my Incredible using XDA App

[Q] Uot Kitchen help

Hello,
I have tried a few times to change the Icons and status bar icons on my Insert Coin rom but it will not work, I can change the battery icon and pop up window stuff with no problems.
I am uploading the com.htc.resources.apk, framework-res.apk and SystemUI.apk and checking the Data++ box.
Can anybody help?
Cheers
Your compatibility UOT kitchen.
longster10 said:
Hello,
I have tried a few times to change the Icons and status bar icons on my Insert Coin rom but it will not work, I can change the battery icon and pop up window stuff with no problems.
I am uploading the com.htc.resources.apk, framework-res.apk and SystemUI.apk and checking the Data++ box.
Can anybody help?
Cheers
Click to expand...
Click to collapse
Try using the kitchen's original files instead. That always work for me.
I tried to use the kitchen's original ROM files, but still ended up with the ff SHTF error:
Decompiling framework-res.apk UOT-07-01-14-12-1
I: Loading resource table...
I: Loaded.
I: Decoding file-resources...
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...
Decompiling SystemUI.apk UOT-07-01-14-12-1
I: Framework installed to: /home/mendozinas/apktool/framework/1.apk
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Loading resource table from file: /home/mendozinas/apktool/framework/1.apk
I: Loaded.
I: Decoding file-resources...
W: Could not decode attr value, using undecoded value instead: ns=android, name=textSize, value=0x020b001a
W: Could not decode attr value, using undecoded value instead: ns=android, name=textSize, value=0x020b001a
W: Could not decode attr value, using undecoded value instead: ns=android, name=textSize, value=0x020b001a
W: Could not decode attr value, using undecoded value instead: ns=android, name=textSize, value=0x020b001f
W: Could not decode attr value, using undecoded value instead: ns=android, name=textSize, value=0x020b0042
I: Decoding values*/* XMLs...
Can't find framework resources for package of id: 2. You must install proper framework files, see project website for more info.
Compiling framework-res.apk UOT-07-01-14-12-1
W: Could not find sources
I: Building resources...
I: Building apk file...
Compiling SystemUI.apk UOT-07-01-14-12-1
I: Framework installed to: /home/mendoza/apktool/framework/1.apk
Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathNotExist: 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(Abst ractDirectory.java:103)
at brut.androlib.Androlib.readMetaFile(Androlib.java: 138)
... 4 more
If I do have to upload framework-res.apk, SystemUI.apk and com.htc.resources.apk, which directory do I find them in? Been poking around my ROM and could only find framework-res.apk so far. My ROM details are in my signature
Htc resources is with the framework and systemui is in /system/app. I always upload my files since it always works.
Swyped...
I'm also not able to change these icons with GingerVillain (2.6). I tried to push the system-ui and framework-res per adb, but it didn't work too. It should be possible with insertcoin (it is deodexed)
longster10 said:
Hello,
I have tried a few times to change the Icons and status bar icons on my Insert Coin rom but it will not work, I can change the battery icon and pop up window stuff with no problems.
I am uploading the com.htc.resources.apk, framework-res.apk and SystemUI.apk and checking the Data++ box.
Can anybody help?
Cheers
Click to expand...
Click to collapse
same problem here. IC 1.1.0., with CM 3.x recovery. i used kitchen's files, creating and flashing goes well but no change is visible upon boot up...
ok, adb push did work for me...IC GB 1.1.0. rom...
unable to upload com.htc.resources.apk
Ok...so i've been playing in the kitchen and for some reason, it wont let me click the upload button for com.htc.resources.apk and i'm running NilsP Business Gingersense, so it IS a Gingerbread rom with sense, so i do need to upload that file...anyone else having problems with this? maybe what ever i didnt change uses that file, so the fact that i'm not changing anything to that file, it wouldnt let me upload it? i hope thats it.....
Ok..it was because the kitchen was closed for a bit....

[REQUEST] modify dialer

Hi. This question is for the programmers.
It's possible modifiy dialer so the image ?
Thank's.
karug64 said:
Hi. This question is for the programmers.
It's possible modifiy dialer so the image ?
Thank's.
Click to expand...
Click to collapse
yes it posibble
mimivg said:
yes it posibble
Click to expand...
Click to collapse
+1000000000
you need to edit this files
twframework.apk for tabs
phone.apk for connected call editing
DiallerTabActivity.apk for main screen key dialler , like as your attached image.
javistanford said:
you need to edit this files
twframework.apk for tabs
phone.apk for connected call editing
DiallerTabActivity.apk for main screen key dialler , like as your attached image.
Click to expand...
Click to collapse
thanks but I'm not a programmer in android language. can you tell me what program should I
use to make these changes? There is some graphic
tools? thanks
karug64 said:
thanks but I'm not a programmer in android language. can you tell me what program should I
use to make these changes? There is some graphic
tools? thanks
Click to expand...
Click to collapse
You may use 7-zip. You can also decompile and mod using apk manager.
For more info you may check out the link in my signature.
SCIENTYREAL said:
You may use 7-zip. You can also decompile and mod using apk manager.
For more info you may check out the link in my signature.
Click to expand...
Click to collapse
ok. thanks.
i use ubuntu 10.04 on my pc.
I've installed all (java/apktools), i copy framework*.apk and DialerTabActivity.apk from my sgs to pc. but if i lunch apktools for framework-res.apk it's all ok, when i lunch this command:
apktool d DialerTabActivity.apk out
i have this.
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Loading resource table from file: /home/kar/apktool/framework/1.apk
I: Loaded.
I: Decoding file-resources...
W: Could not decode attr value, using undecoded value instead: ns=android, name=textColor, value=0x0205009a
W: Could not decode attr value, using undecoded value instead: ns=android, name=color, value=0x02050097
W: Could not decode attr value, using undecoded value instead: ns=android, name=textColor, value=0x0205009a
I: Decoding values*/* XMLs...
I: Done.
Can't find framework resources for package of id: 2. You must install proper framework files, see project website for more info.
but apktools works only with framework file ?
thanks
kar

[Q] SystemUI.apk / apktool / apkmanager

Hi,
I have Xperia ARC with 4.0.2.A.0.62 Firmware
I have decompile SystemUI.apk with apktool. No problem.
Code:
C:\Xperia\apktool>apktool d SystemUI.apk
I: Baksmaling...
testI: Loading resource table...
I: Loaded.
I: Loading resource table from file: C:\Users\hadramos\apktool\framework\1.apk
I: Loaded.
I: Decoding file-resources...
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...
I have recompile apk with apktool without changing the source.
Just one test (decompile, recompile, push).
No problem.
Code:
C:\Xperia\apktool>apktool b -f SystemUI unsignedSystemUI.apk
I: Smaling...
I: Building resources...
I: Building apk file...
And i have sign unsignedSystemUI.apk width apkmanager. No problem.
I have push the file with ADB (Rename unsignedSystemUI.apk to SystemUI.apk).
Code:
C:\Xperia\Root>adb push SystemUI.apk /system/app/SystemUI.apk
1897 KB/s (244881 bytes in 0.126s)
And i reboot the phone.
Code:
C:\Xperia\Root>adb reboot
My phone rebooting but i don't have the status bar
You know why ?
Thank you in advance for your help
hadramos said:
Hi,
I have Xperia ARC with 4.0.2.A.0.62 Firmware
I have decompile SystemUI.apk with apktool. No problem.
Code:
C:\Xperia\apktool>apktool d SystemUI.apk
I: Baksmaling...
testI: Loading resource table...
I: Loaded.
I: Loading resource table from file: C:\Users\hadramos\apktool\framework\1.apk
I: Loaded.
I: Decoding file-resources...
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...
I have recompile apk with apktool without changing the source.
Just one test (decompile, recompile, push).
No problem.
Code:
C:\Xperia\apktool>apktool b -f SystemUI unsignedSystemUI.apk
I: Smaling...
I: Building resources...
I: Building apk file...
And i have sign unsignedSystemUI.apk width apkmanager. No problem.
I have push the file with ADB (Rename unsignedSystemUI.apk to SystemUI.apk).
Code:
C:\Xperia\Root>adb push SystemUI.apk /system/app/SystemUI.apk
1897 KB/s (244881 bytes in 0.126s)
And i reboot the phone.
Code:
C:\Xperia\Root>adb reboot
My phone rebooting but i don't have the status bar
You know why ?
Thank you in advance for your help
Click to expand...
Click to collapse
You answered your own question
unsignedSystemUI.apk
is unsigned.
after signing it should be signedSystemUI.apk or something like that. (thats what my version of apkManager does)
also if you have apkmanager why are you using apktool
apkmanager will take care of compiling and stuff for you and preserve the original sigs if you need to. (for system files you do)
this is a good reference http://forum.xda-developers.com/showthread.php?t=834806
for more help a log at boot would be helpfull.
Pvy.
Thanks Pvy.
But my file unsignedSystemUI.apk created by apktool is signed by apkmanager.
Apkmanager just creates a signed file with option 16. It does not rename the file.
I'm use apktool because akmanager me back several errors in decompiling the file SystemUI.apk
Thank for the link... I'll look at it
hadramos said:
Thanks Pvy.
But my file unsignedSystemUI.apk created by apktool is signed by apkmanager.
Apkmanager just creates a signed file with option 16. It does not rename the file.
I'm use apktool because akmanager me back several errors in decompiling the file SystemUI.apk
Thank for the link... I'll look at it
Click to expand...
Click to collapse
Do you have both frameworks installed?
Any chance of seeing what apk manager said?
Pvy
Sent from my TEAM Powered Arc S
Framework installed ?
It's ok with Apkmanager when decompiling SystemUI.apk.
I have modify /res/layout/status_bar.xml and i have adding background image (/res/drawable-hdpi/statusbar_background_transparent.9.png with a transparence)
But when i reboot my phone with this file (compile and sign apk file with apkmanager), the status bar not loading
I have adding the file in my first post !
Very thanks for your help Pvy
I have log my boot.
I found this :
Code:
I/PackageManager( 328): /system/app/SystemUI.apk changed; collecting certs
D/dalvikvm( 328): GC_CONCURRENT freed 572K, 41% free 4409K/7367K, external 1685K/2133K, paused 2ms+5ms
W/PackageManager( 328): Signature mismatch for shared user : SharedUserSetting{2b073e90 android.uid.system/1000}
E/PackageManager( 328): Package com.android.systemui has no signatures that match those in shared user android.uid.system; ignoring!
Why ??? I sign the file with apkmanager...
Ok i have found my problem
I don't sign the file after compile because the file is already been signed !!!
If you sign the file after compile with Apkmanager, it change the file signature and the file will be ignored during the boot...
Hey guys I want change my quicknavigation bar ( in the statusbar for example WiFi, Bluetooth, and so on) the order of that.
How I make that?
Androidseb
Gesendet von meinem R800i mit Tapatalk
** sorry i missed your other post good to see you got it sorted i'll leave this info here anyway.
Package com.android.systemui has no signatures that match those in shared user android.uid.system
Click to expand...
Click to collapse
i already told you
apkmanager will take care of compiling and stuff for you and preserve the original sigs if you need to. (for system files you do)
Click to expand...
Click to collapse
YOU MUST use the same sigs as b4 the sigs that apkamnager uses to resign wont work for system apps.
this is how i edit the file.
Notes:
a. i have a file on my desctop that i edit this is a copy of the file pulled from my phone.
Steps:
1. after all mods are done open up apk manager
2. type 22 hit enter and pick the file you were editing ( SystemUI.apk )
3. type 11 hit enter and the app will recompile.
4. Open a copy of the SystemUI.apk ( see note a ) in winnra or 7zip ect put that window on one side of your screen ( windows 7 snap too (windows key + -> or <- ) is awesome for this )
5. Navigate to the projects folder of APK Manager and then navigate to the app you edited (SystemUI.apk)
6. Navigate to the /build/apk folder ( snap this to the other side of your screen ) ( Note that the build/apk folder has the same structure as the apk file open in winnra / 7zip )
7. you will need these files simply drag the modified files into the same folder location in the open apk in winnra / 7zip
Click to expand...
Click to collapse
Hope that helps
that is from my thread over here (i edited a small bit)
http://forum.xda-developers.com/showthread.php?t=1371330
there are a few pages just like this on there. so have a read there.
androidseb said:
Hey guys I want change my quicknavigation bar ( in the statusbar for example WiFi, Bluetooth, and so on) the order of that.
How I make that?
Androidseb
Gesendet von meinem R800i mit Tapatalk
Click to expand...
Click to collapse
if you are using a variant of TEAMS one ( thomastafacas one or thejaps one ect )
there is a xml in res/layout called quickoptions or something you have to edit that
once you open it you will seee how to change it it is easy.
Pvy.
No problem Pvy
Very thank for all your help !
pvyParts said:
if you are using a variant of TEAMS one ( thomastafacas one or thejaps one ect )
there is a xml in res/layout called quickoptions or something you have to edit that
once you open it you will seee how to change it it is easy.
Pvy.
Click to expand...
Click to collapse
Thx for the answer i use a theme from thomastafacas i decompiled it and edit the xml i compilrd it after that and the quickbar doesnt change.
androidseb said:
Thx for the answer i use a theme from thomastafacas i decompiled it and edit the xml i compilrd it after that and the quickbar doesnt change.
Click to expand...
Click to collapse
Sorry I missed this thread, have you made any progress???
Sent from my TEAM Powered Arc S

Problems decompiling system apks with Apk manager

Greetings to all firstly... I'm exposing here my problem with Ics apk manager because I don't know what I'm doing wrong....
I'm trying to decompile for example stock settings apk, I have everything installed (I think ...) but I can't. If a decompile framework and compile it I don't have problems... but no way with system apks. I show you the log the tool makes me (I have tryed different ics tools...).
I: Loading resource table...
W: Config flags size > 32. Exceeding bytes: -2FFE0000.
W: Invalid config flags detected. Dropping resources: layout-v13-ERR0
W: Config flags size > 32. Exceeding bytes: 0000D002.
W: Invalid config flags detected. Dropping resources: layout-v13-ERR1
Exception in thread "main" brut.androlib.AndrolibException: Multiple resources: spec=0x7f04003c layout/date_time_settings_setupwizard, config=-v13
at brut.androlib.res.data.ResConfig.addResource(ResConfig.java:65)
at brut.androlib.res.data.ResConfig.addResource(ResConfig.java:58)
at brut.androlib.res.decoder.ARSCDecoder.readEntry(ARSCDecoder.java:196)
at brut.androlib.res.decoder.ARSCDecoder.readConfig(ARSCDecoder.java:165)
at brut.androlib.res.decoder.ARSCDecoder.readType(ARSCDecoder.java:130)
at brut.androlib.res.decoder.ARSCDecoder.readPackage(ARSCDecoder.java:105)
at brut.androlib.res.decoder.ARSCDecoder.readTable(ARSCDecoder.java:82)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:48)
at brut.androlib.res.AndrolibResources.getResPackagesFromApk(AndrolibResources.java:315)
at brut.androlib.res.AndrolibResources.loadMainPkg(AndrolibResources.java:50)
at brut.androlib.res.AndrolibResources.getResTable(AndrolibResources.java:43)
at brut.androlib.Androlib.getResTable(Androlib.java:44)
at brut.androlib.ApkDecoder.getResTable(ApkDecoder.java:148)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:98)
at brut.apktool.Main.cmdDecode(Main.java:120)
at brut.apktool.Main.main(Main.java:57)
Thank you for your time and sorry but I'm getting crazy
Use Wanam ICS Apk Manager or a modified apktool (I don't have the link but you search xda).
I use these two tools without issues but you might find Wanam ICS apktool much easier to use.
Cheers
Jokesy said:
Use Wanam ICS Apk Manager or a modified apktool (I don't have the link but you search xda).
I use these two tools without issues but you might find Wanam ICS apktool much easier to use.
Cheers
Click to expand...
Click to collapse
Thanks man I'll try it
ximotomin said:
Thanks man I'll try it
Click to expand...
Click to collapse
You are welcome
This compiling and decompiling process drove me mad untill i started using GanGs_KiD Kitchen, i use this kitchen for compiling and decompiling and then i use apk manager for signing, when u start GanGs_KiD Kitchen choose option 41 to create a done folder which inside it you'll find two folders one is done app & the second one is done framework, copy framework-res & twframework-res apk from your rom to the done framework folder, now choose option 42 that is going to install the needed resources to compile & decompile the system apk. go here to download the GanGs_KiD Kitchen : http://forum.xda-developers.com/showthread.php?t=1581549
issybel said:
This compiling and decompiling process drove me mad untill i started using GanGs_KiD Kitchen, i use this kitchen for compiling and decompiling and then i use apk manager for signing, when u start GanGs_KiD Kitchen choose option 41 to create a done folder which inside it you'll find two folders one is done app & the second one is done framework, copy framework-res & twframework-res apk from your rom to the done framework folder, now choose option 42 that is going to install the needed resources to compile & decompile the system apk. go here to download the GanGs_KiD Kitchen : http://forum.xda-developers.com/showthread.php?t=1581549
Click to expand...
Click to collapse
Very usefull my friend, thanks... I'm gonna check it out. I'm trying now with Wanam's apk manager and i have the same mistake.... **** I show the log if someone understeands...
I: Loading resource table...
W: Skipping "android" package group
I: Loaded.
I: Loading resource table from file: C:\Users\Ximo\apktool\framework\1.apk
I: Loaded.
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x01030307
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x01030307
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x01030307
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x01030307
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x01030307
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x01030307
W: Could not decode attr value, using undecoded value instead: ns=android, name=theme, value=0x01030307
I: Decoding file-resources...
W: Could not decode attr value, using undecoded value instead: ns=android, name=scrollbarStyle, value=0x010e0031
W: Could not decode attr value, using undecoded value instead: ns=android, name=scrollbarStyle, value=0x010e0031
I: Decoding values*/* XMLs...
Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec: 0x01030307
at brut.androlib.res.data.ResPackage.getResSpec(ResPackage.java:61)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:55)
at brut.androlib.res.data.ResTable.getResSpec(ResTable.java:51)
at brut.androlib.res.data.value.ResReferenceValue.getReferent(ResReferenceValue.java:59)
at brut.androlib.res.data.value.ResReferenceValue.encodeAsResXml(ResReferenceValue.java:46)
at brut.androlib.res.data.value.ResScalarValue.encodeAsResXmlAttr(ResScalarValue.java:43)
at brut.androlib.res.data.value.ResStyleValue.serializeToResValuesXml(ResStyleValue.java:48)
at brut.androlib.res.AndrolibResources.generateValuesFile(AndrolibResources.java:264)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:137)
at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:93)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:98)
at brut.apktool.Main.cmdDecode(Main.java:128)
at brut.apktool.Main.main(Main.java:65)
issybel said:
This compiling and decompiling process drove me mad untill i started using GanGs_KiD Kitchen, i use this kitchen for compiling and decompiling and then i use apk manager for signing, when u start GanGs_KiD Kitchen choose option 41 to create a done folder which inside it you'll find two folders one is done app & the second one is done framework, copy framework-res & twframework-res apk from your rom to the done framework folder, now choose option 42 that is going to install the needed resources to compile & decompile the system apk. go here to download the GanGs_KiD Kitchen : http://forum.xda-developers.com/showthread.php?t=1581549
Click to expand...
Click to collapse
Yes my friend It's done , you're my hero ....
Thanks so much I was getting mad (like you before ). I recommend this tool to everyone.
ximotomin said:
Yes my friend It's done , you're my hero ....
Thanks so much I was getting mad (like you before ). I recommend this tool to everyone.
Click to expand...
Click to collapse
Good to hear that you welcome
issybel said:
Good to hear that you welcome
Click to expand...
Click to collapse
I know the kitchen but i never used... but I think I'm gonna use this more than dsidixa it has a lot of usefull options.
Thanks for help me cause I was stopped in my progression
is there any way of converting a Miui .mtz to an apk?
I like a couple of the picture frames on Miui (taped and polaroids), but cannot find them.
here is another trick,
delete classes.dex before decompiling. keep it somewhwere and copy it again after recompiling.
sometimes you need to delete anything in apk but these to work:
res
androidmanifest.xml
resources.arsc
META-INF
assets
but you should copy them back in compiled apk again.
I have no idea why this works, I just tried it and it worked.

Categories

Resources