hi all
i dont know if it is an error or not when i recompile framework-res.apk all id="0x01xxxxxx" changed to id="0x03xxxxxx" such as :
<public type="string" name="global_action_power_off" id="0x01040193" />
changed to <public type="string" name="global_action_power_off" id="0x03040193" />
notice at RED number. So all the reference id in android.policy.jar will be different with id in framework-res.apk
that mean it will wont work
So your trying the way to properly de/recompile framework-res.apk right?
Don't delete the original public.xml, just edit it and add the new ID for the new variable you introduced.
I know exactly that error you just encountered coz I had those the first time I compiled my framework file last time.
Edit: this is actually a special case only, we're always aware that we need to delete public.xml and it will regenerate, not on this framework-res.apk(SysteUI.apk is fine), Sony f'd us too much already.
Tapatalked from my bricked TX
Rycon33 said:
So your trying the way to properly de/recompile framework-res.apk right?
Don't delete the original public.xml, just edit it and add the new ID for the new variable you introduced.
I know exactly that error you just encountered coz I had those the first time I compiled my framework file last time.
Edit: this is actually a special case only, we're always aware that we need to delete public.xml and it will regenerate, not on this framework-res.apk(SysteUI.apk is fine), Sony f'd us too much already.
Tapatalked from my bricked TX
Click to expand...
Click to collapse
thank you. i thought so , keep original public.xml then add new id. but i want to sure about that.
anyway i want add reboot,recovery option to power menu so could you help me. i search a lot and found some guides but for samsung, i think it is different
with xperia.
devilmaycry2020 said:
thank you. i thought so , keep original public.xml then add new id. but i want to sure about that.
anyway i want add reboot,recovery option to power menu so could you help me. i search a lot and found some guides but for samsung, i think it is different
with xperia.
Click to expand...
Click to collapse
Apologies mate, I've only done reboot mod but not "reboot to recovery". On a stock Sony ROM, I haven't seen anybody have done it before ever since I had my first Sony phone since x8 , arc, P, until TX.
Tapatalked from my bricked TX
thanks.
i just add new id in original public.xml to recompile, and then decompile new framework-res.apk but why all id in public.xml had changed ? i'm not clearly about that.
please explain more. thanks.
and some *.png files had changed too (smaller file size) i used apktool 1.5.2
and do i need to follow this http://forum.xda-developers.com/showthread.php?t=2321207
to avoid bootloop ?
You need to follow that guide the first time, otherwise it will only cause the phone to bootloop. Then after that you can de/recompile easily. Not sure about your question on public.xml. And it's better to post there if you got problem on recompile, more help you will get from there.
Tapatalked from my bricked TX
Related
I'm sorry if this question had been asked already, but I've been googling for 2 days and I'm going crazy...
I found tutorials such as this one, but I don't have a statusbar_background.png file in the drawable folder, in there I only have status_bar_background.hml. I have statusbar_background.9.png in the drawable-mdpi folder where the other requested files are also located, but I'm reluctant to use it since I don't exactly know whats the difference between .png and .9.png. Another tutorial , besides statusbar_background.png, also asks for classes.dex, extracted from services.jar, and I don't have this one either. I guess it's a Froyo thing all these little differences, but I don't want to improvise, so can anyone, please, help out with a tutorial or suggestions on how to edit the status bar for this built?
All useful help much appreciated! Thanks!
P.s. I'm uploading the framework-res.apk, extracted from my phone, in case someone needs to see what it consists of and how things are organized inside.
Do I have to deodex? If so, how?
Anybody?
There are some apks that when I decompile and recompile them, they don't work, even if I decompile and and then without changing anything recompile them again, they don't work. I think the person who made those kind of apps does something so others can't change their apps and publish them under their own name, which is a good thing and I respect that, but sometimes there is an app which is really cool but there are some problems like bad images which need to be changed.
I'm changing some picture in Handcent SMS which is a free app, but after decompiling I can not install it.
I also asked the owner for his help, and I thought I ask you guys, too.
Has anyone ever had any experience like this?
It would be great if someone could help.
Thanks in advance.
Hi
Well if these apk's u mention are not grabbed from the /system/app folder you'll need to sign them every time you edit them.
biopsin said:
Hi
Well if these apk's u mention are not grabbed from the /system/app folder you'll need to sign them every time you edit them.
Click to expand...
Click to collapse
Yeah, I know. I always sign the apks which are not from /system/app, and they work just fine but in this case there is something wrong.
My guess is they have a protection agains tampering.
biopsin said:
Hi
Well if these apk's u mention are not grabbed from the /system/app folder you'll need to sign them every time you edit them.
Click to expand...
Click to collapse
Got there before me!
I'm trying to edit the status_bar.xml in systemui.apk/res/layout/ to direct to an image (statusbar_background.png)
Iv'e edited lines 2 and 19:
<com.android.systemui.statusbar.StatusBarView
<com.android.systemui.statusbar.DateView
From
android:background="#ff000000"
To
android:background="@drawable/statusbar_background"
The image shows on boot but instantly force closes.
Have i missed something completely obvious
The systemui in question is taken from a Touchwiz based Rom.
Hopefully someone can shed some light.
Here are my before and after xml's
Anybody........
Its lonely in here.
dully79 said:
Anybody........
Its lonely in here.
Click to expand...
Click to collapse
hey man , i know its lonely, nobody ussually see these general sections (unspefic to any phone)
.. try posting in ur own phones general section !!
My knowledge about the android development is mediocre....I have Samsung galaxy tab 2 P3100.....I rooted that myself and i can flash different roms.....thats all i know about android....Any help will be appreciated...
Is there any way i can edit .apk file. I want to change the GUI of a particular application. The name of the application is 7notes with mazec.
the attachment contains 2 images.
1) This is how the original app looks like [red square]
2) I want the app to look like this...
I can send the .apk file or only instructions also will do...
Thanks in advance!!
Similarly can i edit the GUI of any application..
You can edit the .apk but you have to decompile with apktool and edit .xml files to accomplish this. I'm no programmer but I have learned how to decompile and recompile .apk and make minor adjustments. If you know how to write xml then it shouldn't be that difficult but first you should search the forums for how to use apktool.
Steeleio said:
You can edit the .apk but you have to decompile with apktool and edit .xml files to accomplish this. I'm no programmer but I have learned how to decompile and recompile .apk and make minor adjustments. If you know how to write xml then it shouldn't be that difficult but first you should search the forums for how to use apktool.
Click to expand...
Click to collapse
Thnx Steeleio....i will try that.....i dont know xml....i will search on that too.....can u suggest me some forums to learn apktool?
I have done THIS guide which should be of some help, but repositioning buttons and icons is something you'll need to Google for and experiment with.
AkshayGTP3100 said:
Thnx Steeleio....i will try that.....i dont know xml....i will search on that too.....can u suggest me some forums to learn apktool?
Click to expand...
Click to collapse
XperienceD said:
I have done THIS guide which should be of some help, but repositioning buttons and icons is something you'll need to Google for and experiment with.
Click to expand...
Click to collapse
Akshay, your welcome. The link Xperience provided seems to be an excellent guide to apk edits. Once you learn how to decompile and start relating the xml coding with how things are laid out in the UI, you should be able to figure out how to produce the output that you want. Good luck.
XperienceD said:
I have done THIS guide which should be of some help, but repositioning buttons and icons is something you'll need to Google for and experiment with.
Click to expand...
Click to collapse
I read your entire post and it was very helpful to get started.....I successfully decompiled the .apk using apktool.....found out where the .img images are.....now i guess i will have to edit the xml code related to the .imgs i want to be relocated....right?.... just point me in the right direction.... i can send you the apk file of the application....
AkshayGTP3100 said:
I read your entire post and it was very helpful to get started.....I successfully decompiled the .apk using apktool.....found out where the .img images are.....now i guess i will have to edit the xml code related to the .imgs i want to be relocated....right?.... just point me in the right direction.... i can send you the apk file of the application....
Click to expand...
Click to collapse
Great stuff. It is now about figuring out how to go about repositioning the images, but that task is something you're going to have to do I'm afraid as it can be a time consuming process, especially when learning, plus repositioning is above my skill set.
AkshayGTP3100 said:
I read your entire post and it was very helpful to get started.....I successfully decompiled the .apk using apktool.....found out where the .img images are.....now i guess i will have to edit the xml code related to the .imgs i want to be relocated....right?.... just point me in the right direction.... i can send you the apk file of the application....
Click to expand...
Click to collapse
Look in /res/layout/
Send me the APK, I'll see if I can guide you in the right direction.
DemonWav said:
Look in /res/layout/
Send me the APK, I'll see if I can guide you in the right direction.
Click to expand...
Click to collapse
Here is a link for the .apk file...... https://www.dropbox.com/sh/xnm0f7qax191raw/KZRRuJSsh-
I found the layout folder already.....i think the related xml code is in the /res/layout/keyboard_handwriting.xml file.... am i correct?
i dnt know anything about the xml.....mean while, i will try to find out how to relocate the layout for the buttons.....
This might be the completely the wrong place, but can someone do my a huge favor and modify my SystemUI.apk to remove the clock and possibly the battery. I have tried using baksmali and apktool but i must be doing something wrong, thanks.
Yep, it's the completely wrong place.
-> http://forum.xda-developers.com/showthread.php?t=2233991
Thanks guys, but thats the issue, I cant use Apktool.
nintendolinky said:
Thanks guys, but thats the issue, I cant use Apktool.
Click to expand...
Click to collapse
I can guide you on IRC
nintendolinky said:
This might be the completely the wrong place, but can someone do my a huge favor and modify my SystemUI.apk to remove the clock and possibly the battery. I have tried using baksmali and apktool but i must be doing something wrong, thanks.
Click to expand...
Click to collapse
Did you have a look there ? ( v-b-n thread)
http://forum.xda-developers.com/showthread.php?t=2233991
Cheers.
Yeah I looked at that, and i can decompile the apk, but i get errors, im thinking it might have something to do with, proprietary framework files i need, which i don't have. And thanks Mike1986, I will go on your IRC now.
Can anyone do me a huge favour, could someone please remove the clock and the battery from the statusbar. Looking at this Remove Clock it guides people through on how to do it, I cant as I seem to be unable too, can anyone help.
This isnt asking for help, this is asking for someone to do it for you which is different. If you dont wanna understand the process, you probably shouldnt be asking for the mod
Talk to mike on IRC to begin with
Make sure you install the framework files for the One (pull it from /system/framework) to apktool and THEN try decompiling it
Hi try this one.
Dont work mate, but thanks anyways.