[Q] XML file editing - Galaxy S Advance I9070 Q&A, Help & Troubleshooting

Well hi everyone,
I think that several users of you have seen my theme for stock Sammy, but CM themed.
My question here is:
I tried XML editing in Notepad++ and in Editix. But when I open a XML file, I only see strange squares instead of lines of text.
Does anybody know what I can do about this? Because I need it for my upcoming release....
Thanks in Advance

Jeroenvk94 said:
Well hi everyone,
I think that several users of you have seen my theme for stock Sammy, but CM themed.
My question here is:
I tried XML editing in Notepad++ and in Editix. But when I open a XML file, I only see strange squares instead of lines of text.
Does anybody know what I can do about this? Because I need it for my upcoming release....
Thanks in Advance
Click to expand...
Click to collapse
Those files are encrypted, use apktool for decompiling it first
Sent from my GT-I9070 using xda app-developers app

frapeti said:
Those files are encrypted, use apktool for decompiling it first
Sent from my GT-I9070 using xda app-developers app
Click to expand...
Click to collapse
Oh lol, I just unpacked it with 7Zip, but I didn't know I needed to decompile it.

Related

decompiling systemUI.apk?

I'm trying to decompile the systemUI.apk to get into the xml files, but I'm getting errors from both APKtool and APK Manager. Is there a special trick to getting system files to decomp?
Try this
bigrushdog said:
Try this
Click to expand...
Click to collapse
Noob alert: What do I do with those? Just put them in the folder with everything else?
arrtoodeetoo said:
Noob alert: What do I do with those? Just put them in the folder with everything else?
Click to expand...
Click to collapse
It's a custom apktool patched for honeycomb. Use the .jar file with dependencies just just you would with apktool. It currently will not recompile though due to the decompile causing some anomalies. BigRushDog is working on a fix for that.
I actually got a build that works from someone else.
XOOM'd from the XDA app.
Quick tip. When you solve your own problem, you may want to share the solution with others
^^^this
Sent from my Xoom using XDA Premium App

How to port a theme?

I already google searched, but how do I port a theme from that continuum thread to a jv9 base? Thanks!
Sent from my GT-I9000 using XDA App
goob1284 said:
I already google searched, but how do I port a theme from that continuum thread to a jv9 base? Thanks!
Sent from my GT-I9000 using XDA App
Click to expand...
Click to collapse
Decompile every apk in the theme and in the jv9 base and compare all the files and then make changes. You will need to edit png, .9.png (search for it) xml, and smali files if they were edited
goob1284 said:
I already google searched, but how do I port a theme from that continuum thread to a jv9 base? Thanks!
Sent from my GT-I9000 using XDA App
Click to expand...
Click to collapse
search the Themes and Apps section for Theme Porter. There was a link provided a while back to another thread in the Android Themes section with a tool that uses scripts so you don't have to decompile the apk unless you need to do xml edits.
zelendel said:
Decompile every apk in the theme and in the jv9 base and compare all the files and then make changes. You will need to edit png, .9.png (search for it) xml, and smali files if they were edited
Click to expand...
Click to collapse
What programs do I need? And regarding that app, I did see it but I thought it wouldn't work for gingerbread
Sent from my GT-I9000 using XDA App
goob1284 said:
What programs do I need? And regarding that app, I did see it but I thought it wouldn't work for gingerbread
Sent from my GT-I9000 using XDA App
Click to expand...
Click to collapse
the key thing with that app is that the folders in the apk have the same names. So if one has the -v4 end to it; then the other has to as well. It does work with gingerbread just fine. I used it myself to port some themes over while I was running a few gingerbread builds. You could also try to UOT kitchen. It works very well with Gingerbread.

How to change text below the toggle buttons

i have the 15 toggle bar for the note n7000... but the text below them are too big.. can anyone tell me how to change them?
Hey anyone.. No replies yes.... Hmmmm..
I know that it's in the values folder.... String. Xml.... But when I edit the file and recompile the framework... The phone won't boot.
Sent from my GT-N7000 using xda premium
my question is add another language for title icon (i.e. italian) or change the title icon properly (i.e. flash light to flashlight).
i decompiled lidroid-res.apk add values-it and edit strings.xml, recompiled , put the new lidroid-res.apk into zip for cwm,
installed the zip via cwm, reboot but error ...
one week always error...
can someone help us?
Hey Devs.. please give us a hint of how to recompile the -res.apk file cuz we not getting any success.. i have been trying to get this done.. but failing every time... ...
You can try to recompile it, use and learn the tutorial on ApkTool (credits to memnoc) from this link -> http://forum.xda-developers.com/showthread.php?t=1511730
letters_to_cleo said:
You can try to recompile it, use and learn the tutorial on ApkTool (credits to memnoc) from this link -> http://forum.xda-developers.com/showthread.php?t=1511730
Click to expand...
Click to collapse
Thanks for ur response... but i seem to have used all the apktools available... i can recompile the "-res.apk" but when i put it back to \system\framework ... the UI FCs and the notification bar doesnot load.
unfortunately od has stopped. >> is the message i get when i put the modified "-res.apk".
i have noticed one thing that the recompiled apk doesnot have META-INF folder... although i tried to copy it and gave a try but still no go...
what i am trying to do is using a themed apk like lidroid or crikelos res .. decompile .. change some text under the toggle buttons ...
what am i doing wrong... ?
hmm... have you tried setting back the permissions on your modified -res.apk in /system/framework? Mounting it before hand?
If you have, you may indeed try to ask some devs or someone who knows their way in recompiling apks as this is a sensitive matter to touch with and I'm moderately more on contributing stuffs rather than delving into the internal programmings on the android ecosystem.
hmmm.. i have changed permissions as well still... Thanks for taking the time out
Sent from my GT-N7000 using xda premium
Go to apkyool.yml
Edit with notepad++
And below
-1
Add -2
So it would look like
-1
-2
Then compile it lidroid-res again
Also make sure you have twframework-res.apk
And framework-res.apk installed
Sent from my GT-S5830 using xda premium
nokiamodeln91 said:
hmmm.. i have changed permissions as well still... Thanks for taking the time out
Sent from my GT-N7000 using xda premium
Click to expand...
Click to collapse
No problems bud.
Hope somebody can take notice on your issue and give you a lending hand on it.
:victory:
---------- Post added at 10:08 PM ---------- Previous post was at 10:06 PM ----------
nokiamodeln91 said:
hmmm.. i have changed permissions as well still... Thanks for taking the time out
Sent from my GT-N7000 using xda premium
Click to expand...
Click to collapse
CoolCatGetHome said:
Go to apkyool.yml
Edit with notepad++
And below
-1
Add -2
So it would look like
-1
-2
Then compile it lidroid-res again
Also make sure you have twframework-res.apk
And framework-res.apk installed
Sent from my GT-S5830 using xda premium
Click to expand...
Click to collapse
Well there you go.. Cheers and Kudos to CoolCat on this :good:
CoolCatGetHome said:
Go to apkyool.yml
Edit with notepad++
And below
-1
Add -2
So it would look like
-1
-2
Then compile it lidroid-res again
Also make sure you have twframework-res.apk
And framework-res.apk installed
Sent from my GT-S5830 using xda premium
Click to expand...
Click to collapse
do we have to sign the lidroid again?
Sent from my GT-N7000 using xda premium
nokiamodeln91 said:
do we have to sign the lidroid again?
Sent from my GT-N7000 using xda premium
Click to expand...
Click to collapse
Only sign lidroid if you have signed every apk in your rom
I normally do this
Decompile apk
Make changes
Compile apk
Go to original apk
Press right
7-zip
Open as archive
Delete res
Delete resources.arsc
Leave the 7-zip archive open
Go to
The decompiled folder
Go to build/apk
Copy all except androidmanifest.xml to the archive
Then its done you have an apk
Sent from my GT-S5830 using xda premium
CoolCatGetHome said:
Only sign lidroid if you have signed every apk in your rom
I normally do this
Decompile apk
Make changes
Compile apk
Go to original apk
Press right
7-zip
Open as archive
Delete res
Delete resources.arsc
Leave the 7-zip archive open
Go to
The decompiled folder
Go to build/apk
Copy all except androidmanifest.xml to the archive
Then its done you have an apk
Sent from my GT-S5830 using xda premium
Click to expand...
Click to collapse
OMG....!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! It actually worked....
Oh CoolCatGetHome... where were u till today.... i cant thank u enof....
nokiamodeln91 said:
OMG....!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! It actually worked....
Oh CoolCatGetHome... where were u till today.... i cant thank u enof....
Click to expand...
Click to collapse
Xd i had same problem before
But after some experimenting it worked
I self never sign apks except i have urooted device and want to install apps manual like custom launchers
Sent from my GT-S5830 using xda premium
CoolCatGetHome infinite thanks
you saved me from sleepless nights looking for the solution
again thanks
CoolCatGetHome said:
Xd i had same problem before
But after some experimenting it worked
I self never sign apks except i have urooted device and want to install apps manual like custom launchers
Sent from my GT-S5830 using xda premium
Click to expand...
Click to collapse
hey cool cat get home.... another thing.... the app speed test. net.. As u see does not fill the screen... After decompiling.. I changed some dimensions in xml.. wen recompiling the apps do not install.. y is dat..
Sent from my GT-N7000 using xda premium
nokiamodeln91 said:
hey cool cat get home.... another thing.... the app speed test. net.. As u see does not fill the screen... After decompiling.. I changed some dimensions in xml.. wen recompiling the apps do not install.. y is dat..
Sent from my GT-N7000 using xda premium
Click to expand...
Click to collapse
U n eed to sign the apk to install manually
Thats the only time i sign apks
Sent from my GT-S5830 using xda premium
CoolCatGetHome said:
U n eed to sign the apk to install manually
Thats the only time i sign apks
Sent from my GT-S5830 using xda premium
Click to expand...
Click to collapse
so this is wat i do, correct me where i go wrong plz
1 decomiple app..
2. change the dimen.xml
3. recomile app
4. open the original app using 7z
5. go to the build/apk folder
6. copy the res folder and the .asrc file to the opened apk.
7. sign the apk
there is a classes.dex file as well... do i change it or do i keep the original
in this as well do i have to edit the "apkyool.yml" as this seems to be isframework=false
nokiamodeln91 said:
in this as well do i have to edit the "apkyool.yml" as this seems to be isframework=false
Click to expand...
Click to collapse
No that apk doesnt need to have that apktool.yml edit
Only lidroid needs it
But u need to sig it with
Android manager
Or apkmanager
Etc
Sent from my GT-S5830 using xda premium

How to change the title bar or actionbar ?

Can anyone describe which PNG needs to be edited to change the action bar (not the status bar) the bar which is blue in tw and shows my files heading when we open my files...
sent from by speedster s advanz
amitnv said:
Can anyone describe which PNG needs to be edited to change the action bar (not the status bar) the bar which is blue in tw and shows my files heading when we open my files...
sent from by speedster s advanz
Click to expand...
Click to collapse
it might be, and I am not totally sure, the tw_quickpanel_top_bg.png in the res/drawable-hdpi folder of your systemui.apk
bobfrantic said:
it might be, and I am not totally sure, the tw_quickpanel_top_bg.png in the res/drawable-hdpi folder of your systemui.apk
Click to expand...
Click to collapse
Will the changes be applied to the whole OS I mean the theme of other apps like root explorer will also change or what ?
Because root explorer uses the default theme of android it looks different on different ROMS
sent from by speedster s advanz
amitnv said:
Will the changes be applied to the whole OS I mean the theme of other apps like root explorer will also change or what ?
Because root explorer uses the default theme of android it looks different on different ROMS
sent from by speedster s advanz
Click to expand...
Click to collapse
I think that while you use tw, it will be the same for apps like root explorer, my files and so on. some of the roms are themed so that may be why it looks different. can't really say as I prefer just plain stock, and even with holo launcher hd it uses the tw colors when opening apps.
bobfrantic said:
I think that while you use tw, it will be the same for apps like root explorer, my files and so on. some of the roms are themed so that may be why it looks different. can't really say as I prefer just plain stock, and even with holo launcher hd it uses the tw colors when opening apps.
Click to expand...
Click to collapse
That was useful
Sent from my GT-I9070 using xda premium
Yesterday I modified secphone images .pngs but even after replacing the modified apk with the one in system/app/ nothing changed can anyone describe why ? Should I theme the sec contact apk also ?
Or is it necessary to decompile the apk even for editing .pngs ? When I extract the apk I can see the changes made but not applied ?can anybody help ? If yes then I would be able to make a nice secphone ..
Sent from my GT-I9070 using xda premium
amitnv said:
Yesterday I modified secphone images .pngs but even after replacing the modified apk with the one in system/app/ nothing changed can anyone describe why ? Should I theme the sec contact apk also ?
Or is it necessary to decompile the apk even for editing .pngs ? When I extract the apk I can see the changes made but not applied ?can anybody help ? If yes then I would be able to make a nice secphone ..
Sent from my GT-I9070 using xda premium
Click to expand...
Click to collapse
Secphone is the phone during call. If you want to change how the app looks then you should edit the SecContacts
Sent from my GT-I9070 using xda premium
Abhinandh Ajay said:
Secphone is the phone during call. If you want to change how the app looks then you should edit the SecContacts
Sent from my GT-I9070 using xda premium
Click to expand...
Click to collapse
I'll try ..but the thing is I only changed the dailer colour from blue to orange and it didn't show up I changed each and every where the colour tell me where I've gone wrong after editing and placing my files ? Should I compulsorily make a flashable zip like the one I made for music player ? Because replacing system apk didn't help....
Sent from my GT-I9070 using xda premium
amitnv said:
I'll try ..but the thing is I only changed the dailer colour from blue to orange and it didn't show up I changed each and every where the colour tell me where I've gone wrong after editing and placing my files ? Should I compulsorily make a flashable zip like the one I made for music player ? Because replacing system apk didn't help....
Sent from my GT-I9070 using xda premium
Click to expand...
Click to collapse
Since you edited the SecPhone.apk check the in-call Dailer. And you don't have to create a flashable zip, you can just push file to /system
In call_dailer_press.9.PNG refers to the pressed button and in call_keypad_BG_01.PNG refers to the keypad I've edited only the later one but changes just don't show up this is the first time I've encountered such an error...
Sent from my GT-I9070 using xda premium
amitnv said:
In call_dailer_press.9.PNG refers to the pressed button and in call_keypad_BG_01.PNG refers to the keypad I've edited only the later one but changes just don't show up this is the first time I've encountered such an error...
Sent from my GT-I9070 using xda premium
Click to expand...
Click to collapse
You should do that in SecContacts.apk
Sent from my GT-I9070 using Tapatalk 4 Beta
Will try..
Sent from my GT-I9070 using xda premium

[Q] Theming Issues ?

Okay guys,Hello,I am LED 26.
Trying to theme framework-res.apk i recompile it,do all necessary stuff and now AOSP ICS doesn't boot.. It's 99 % bad program used.. Can you tell me what program do ypu use for theming png's ? Thanks in advance
L.E.D 26 said:
Okay guys,Hello,I am LED 26.
Trying to theme framework-res.apk i recompile it,do all necessary stuff and now AOSP ICS doesn't boot.. It's 99 % bad program used.. Can you tell me what program do ypu use for theming png's ? Thanks in advance
Click to expand...
Click to collapse
Photoshop - paid
Gimp - free (almost like ps)
Sent from my BL-S5570 using xda app-developers app
I used gimp sometime ago,and was good,you remember it to me,so thanks!
Sent from my GT-S5570 using xda premium
L.E.D 26 said:
Okay guys,Hello,I am LED 26.
Trying to theme framework-res.apk i recompile it,do all necessary stuff and now AOSP ICS doesn't boot.. It's 99 % bad program used.. Can you tell me what program do ypu use for theming png's ? Thanks in advance
Click to expand...
Click to collapse
i too wanted to decompile framework-res.apk to add reboot options to power menu to aosp ics. Never manged to make it boot :|...
Yep,but i managed TO mod xml correctly with Notepad++ And the mods work very well,like lockscreen rotation!
Sent from my GT-S5570 using xda premium
XDRdaniel said:
i too wanted to decompile framework-res.apk to add reboot options to power menu to aosp ics. Never manged to make it boot :|...
Click to expand...
Click to collapse
The reboot options are located in the framework files, in android.policy.jar if I remember well. It's really hard to add those in smali.
L.E.D 26 said:
Yep,but i managed TO mod xml correctly with Notepad++ And the mods work very well,like lockscreen rotation!
Sent from my GT-S5570 using xda premium
Click to expand...
Click to collapse
I think your problem is the AndroidManifest.xml file. Everytime you recompile a system app, the apktool (or aapt binary) doesn't correctly compile this particular file. So you have to copy and replace inside the new created apk, the AndroidManifest.xml and the META-INF folder from the original apk.
It worked,thanks,now is booting And i just Need to fix SystemUI (statusbar not appearing) !
Sent from my GT-S5570 using xda premium
alin.p said:
The reboot options are located in the framework files, in android.policy.jar if I remember well. It's really hard to add those in smali.
I think your problem is the AndroidManifest.xml file. Everytime you recompile a system app, the apktool (or aapt binary) doesn't correctly compile this particular file. So you have to copy and replace inside the new created apk, the AndroidManifest.xml and the META-INF folder from the original apk.
Click to expand...
Click to collapse
yes, i know...i followed a few tutorials but allways got stuck at framework-res.apk. I compile it without errors but if i use it bootloops my rom :|.
thanks for the tips.
i'll return later to report if it worked for me.
L.E.D 26 said:
It worked,thanks,now is booting And i just Need to fix SystemUI (statusbar not appearing) !
Sent from my GT-S5570 using xda premium
Click to expand...
Click to collapse
SystemUI is very sensitive in XML editing. You have to be really careful to not delete some components from the XMLs (imageview, relative layouts, widgets). Some can be deleted, usually the simple ones like TextView or some drawables. But for the rest, the SystemUI will appear as uninstalled in your system, even after a clean re-compile.
Infact that was what i got,SystemUI not installed. Fixed by rebuilding my ROM (just delete everything and re-start from scratch and it worked. Thanks alin for your precious tips ! :*
Sent from my GT-S5570 using xda app-developers app

Categories

Resources