how can I open and edit in apps xml files???
Use computer programs like notepad++
Sent From Viperized Sensation Z715e
reddvilzz said:
Use computer programs like notepad++
Sent From Viperized Sensation Z715e
Click to expand...
Click to collapse
I've already tried but files haven't been opened correctly.......another way???
gtamark said:
I've already tried but files haven't been opened correctly.......another way???
Click to expand...
Click to collapse
Best way? Use Linux. And for Windows, Notepad ++ should do just fine if you set it to use Unix for documents (Settings->Preferences->New Document/New Default Directory tab->New Document section->Unix/OSX radio button).
R: [Q] edit android xml files
You MUST decompile the apk first. Then open XML files.
Inviato dal mio GT-I8150 con Tapatalk 2
Yup as the the person above me said........xml files of the apk are UNchangeable untill decompiling the apk not extracting.
Extract only works if you want to edit png files etc...
Not Sent From My Wonder But it Still Runs JB Great, F.U Sams
Related
People are using different rom's , some other are asking for specific mod etc
Could someone write some guide how to do it, to enlight those who are not aware ?
Take the framework-res.apk from your current rom and upload it to http://uot.dakra.lt/kitchen
Once uploaded go to battery mod and select the battery style u want and cook it.
When its cooked extract the framework-res.apk from the downloaded file and either replace it with root explorer or push it with adb back into the phone.
Sent from my GT-I9100 using Tapatalk
Locster126 said:
Take the framework-res.apk from your current rom and upload it to http://uot.dakra.lt/kitchen
Once uploaded go to battery mod and select the battery style u want and cook it.
When its cooked extract the framework-res.apk from the downloaded file and either replace it with root explorer or push it with adb back into the phone.
Sent from my GT-I9100 using Tapatalk
Click to expand...
Click to collapse
This is what I know already, but this is not working and phone is keeping crashing
masi0 said:
This is what I know already, but this is not working and phone is keeping crashing
Click to expand...
Click to collapse
Depends of which rom you are running but if you use VillainRom I think you need to open your modded framework with 7-zip and replace "META-INF" directory with the one found in the original framework of your rom. This is needed to sign the file.
However I'm not sure you use VillainRom (where files must be signed) and I didn't use yet the kitchen ... but your feedback is usefull if you want to try ...
shaolin79 said:
Depends of which rom you are running but if you use VillainRom I think you need to open your modded framework with 7-zip and replace "META-INF" directory with the one found in the original framework of your rom. This is needed to sign the file.
However I'm not sure you use VillainRom (where files must be signed) and I didn't use yet the kitchen ... but your feedback is usefull if you want to try ...
Click to expand...
Click to collapse
I am using stock KE4
masi0 said:
I am using stock KE4
Click to expand...
Click to collapse
Ok so ignore what I said upper ... should be only for signature of the rom (not needed in stock roms).
Anyway ... if someone has the solution ...
I always made that on my own...
Open the decompiled .xml in the framework-res.apk, edit those lines, add my own battery.pngs and that was all...
I didnt test it on my sgs2... But it should be the same way to get it...
Swyped from my overclocked GT-I9100 using XDA Premium App
PoTi_96 said:
I always made that on my own...
Open the decompiled .xml in the framework-res.apk, edit those lines, add my own battery.pngs and that was all...
I didnt test it on my sgs2... But it should be the same way to get it...
Swyped from my overclocked GT-I9100 using XDA Premium App
Click to expand...
Click to collapse
could you tell which .xml to edit and what to add within the file?
I juz grab one of the batt mod out there and replace the .png files under /res/drawable-hdpi-v4 with the ones I want. guess its kind of a lazy way to do it=)
I have KE2 and get a "signature verification failed" error when trying to apply the UOT.zip file :-(
Anyone some idea how to get this applied?
Also my original framework-res.apk file doesn't have any folder called "/res/drawable-hdpi-v4" but the UOT file has!?
masi0 said:
could you tell which .xml to edit and what to add within the file?
Click to expand...
Click to collapse
I dunno exactly which one it was right now but I think the battery.xml somewhere in the first 3 or 4 folders...
sorry idk it anymore ... Long time no use for :/
Swyped from my overclocked GT-I9100 using XDA Premium App
Anyone know if there is a way to add games that are naturally not supported to the xperia play game launcher?
Sent from my R800x using Tapatalk
antispiral said:
Anyone know if there is a way to add games that are naturally not supported to the xperia play game launcher?
Sent from my R800x using Tapatalk
Click to expand...
Click to collapse
You need to decompile the .apk and add the "xperia play optimised" tag to the Androidmanifest.xml
AndroHero said:
You need to decompile the .apk and add the "xperia play optimised" tag to the Androidmanifest.xml
Click to expand...
Click to collapse
This is probably a stupid question but, is there an automatic way to do that? Or some sort of easier way...
http://www.androidng.com/how-to-modify-android-apk
I have to edit it for each game I want to appear on the launcher right?
Sent from my R800x using Tapatalk
antispiral said:
I have to edit it for each game I want to appear on the launcher right?
Sent from my R800x using Tapatalk
Click to expand...
Click to collapse
Yep and again every time the app is updated
Sent from my R800i using Tapatalk
How about creating a "Games" folder and put all your games on it? Faster, better, and stron... easier
You could just use WinRar to open and edit all your apks. Just make a new winrar file in the same folder as your apk is. Then open the empty .rar file you made and hit the back button, you will now see the apps and the .rar file inside a folder. Double click the apk you wanna edit and it will open up for you. Edit the XML and close the rar file window. Your all done.
droiddrums said:
You could just use WinRar to open and edit all your apks. Just make a new winrar file in the same folder as your apk is. Then open the empty .rar file you made and hit the back button, you will now see the apps and the .rar file inside a folder. Double click the apk you wanna edit and it will open up for you. Edit the XML and close the rar file window. Your all done.
Click to expand...
Click to collapse
That won't work. For starters you cannot decomplie .xml files like that. 2nd that method would just end up with a parsing error as the .apk would need resigning. You can only do that with system .apk's like the framework. As the java vm will sign them on boot.
Sent from my R800i using Tapatalk
Hi guys,
Will any of the great themers here be kind enough to create a mod for the stock odexed ROMs that makes the status bar black?
There are mods available but almost all of them are for deodexed ROMs. A lot of people prefer to just have the stock odexed ROM (rooted or otherwise) and I am sure it will make their experience much better.
If it just requires a change of png's, I will be glad to do it myself if given correct directions. I am also slightly educated in terms of vrt theming. Unfortunately, as I am not from a techie background, stuff like XML editing stuff goes over my head..
Look forward to help and assistance. My current set up is LSN odexed stock+rooted..
Sent from my GT-I9100 using Tapatalk 2
Hi
1. decompile SystemUI.apk (dont forget frameworks)
2. edit file drawables.xml in path res\values\
for black color:
<item type="drawable" name="status_bar_background">#ff000000</item>
3. compile modifed apk
4. with 7zip take the 'resources.arcs' file of the "new" apk and copy them into original SystemUI.apk
5. place the SystemUI.apk in the path /system/app - set same premissions for new apk
Where do I put the modified system ui? Preload or system?
Sent from my GT-I9100 using Tapatalk 2
kranti2064 said:
Where do I put the modified system ui? Preload or system?
Click to expand...
Click to collapse
If you're running a JB 4.1.2 rom, it goes in preload\symlink\system\app
Unfortunately, when I tried to flash the modded systemui.. my status bar simply vanished.
Has it got to do something with the systemui in the system app folder still being odexed?
Sent from my GT-I9100 using Tapatalk 2
kranti2064 said:
Unfortunately, when I tried to flash the modded systemui.. my status bar simply vanished.
Has it got to do something with the systemui in the system app folder still being odexed?
Sent from my GT-I9100 using Tapatalk 2
Click to expand...
Click to collapse
are you set permissions for new SystemUI.apk after copying to system/app? set the same permission as original app
Done that.. rw-r-r isn't it?
Sent from my GT-I9100 using Tapatalk 2
kranti2064 said:
Done that.. rw-r-r isn't it?
Sent from my GT-I9100 using Tapatalk 2
Click to expand...
Click to collapse
yes
What file manager do I use to delete/paste files in the preload folder. My friendly es explorer seems to be having issues..
Sent from my GT-I9100 using Tapatalk 2
kranti2064 said:
What file manager do I use to delete/paste files in the preload folder. My friendly es explorer seems to be having issues..
Sent from my GT-I9100 using Tapatalk 2
Click to expand...
Click to collapse
I use ES too
i work only in folder system/app
1. rename original SystemUI.apk to SystemUI.apk.bak
2. copy new SystemUI.apk to folder system/app
3. set permissions
4. rebot
kranti2064 said:
What file manager do I use to delete/paste files in the preload folder. My friendly es explorer seems to be having issues..
Sent from my GT-I9100 using Tapatalk 2
Click to expand...
Click to collapse
I use Root Explorer but I thought you could do it with ES too.
Sent from my GT-I9100 using Tapatalk 2
MifkoKE said:
I use ES too
i work only in folder system/app
1. rename original SystemUI.apk to SystemUI.apk.bak
2. copy new SystemUI.apk to folder system/app
3. set permissions
4. rebot
Click to expand...
Click to collapse
Tried and failed.. again..:silly:
Will you be kind enough to make a version for me.. It appears that I am doing something wrong and I don't even know what it is..
kranti2064 said:
Tried and failed.. again..:silly:
Will you be kind enough to make a version for me.. It appears that I am doing something wrong and I don't even know what it is..
Click to expand...
Click to collapse
ok, no problem, but i need your framework-res.apk system/framework
I do not know if it will work with my framework-res.apk
attached your new SystemUI.apk with my frameworks
It worked.. I swear I could have kissed you right now..
Thanks a lot mate..
You're welcome
Odoslané z Galaxy S2 cez Tapatalk 2
I installed all apk found under system/framework with apktool.
*framework-res.apk & another apk
Then decompiled Settings.apk of Xperia pro stock ics Rom.
After that ,without making any change I compiled the apk. Then I surprisingly noticed that the size compiled apk is 1/3 of original stock settings.apk .
Then I flashed the apk using cwm to my phone to test if it work .after flashing, the setting icon is invisible in launcher menu !
Plz anybody tech me how decompile and re compile stock settings.apk of Xperia pro properly..
----------------****---------------
I'm noob. Help me to be great like U
shouvo said:
I installed all apk found under system/framework with apktool.
*framework-res.apk & another apk
Plz anybody tech me how decompile and re compile stock settings.apk of Xperia pro properly..
----------------****---------------
I'm noob. Help me to be great like U
Click to expand...
Click to collapse
take a look here
cosmyndemeter said:
take a look here
Click to expand...
Click to collapse
On that post I found something like this
"2-STEP hope u guys know how to decompile iam not going to explain it so decompile the settings.apk (make sure u set the compression level 128mb)"
Then explain me how set compression level in apktool??
Sent from my MK16i using xda premium
I know how to decompile and compile. Also know how to mod....but main problem Is ,after re compile, settings.apk's size is decreased...why it's happening !?
Sent from my MK16i using xda premium
shouvo said:
I know how to decompile and compile. Also know how to mod....but main problem Is ,after re compile, settings.apk's size is decreased...why it's happening !?
Sent from my MK16i using xda premium
Click to expand...
Click to collapse
size depends on apktool aapt or other files. ıts not so important. if you truly decompiled and recompiled. Be sure on resources.arsc's compression method is STORE. Generally that causes this problem. run 2 apps (original and unsigned) with winrar. move edited xmls from unsigned to signed with normal compression. Move icons(if you added or changed) with STORE method and finally move resources.arsc with STORE method.
Erhany said:
size depends on apktool aapt or other files. ıts not so important. if you truly decompiled and recompiled. Be sure on resources.arsc's compression method is STORE. Generally that causes this problem. run 2 apps (original and unsigned) with winrar. move edited xmls from unsigned to signed with normal compression. Move icons(if you added or changed) with STORE method and finally move resources.arsc with STORE method.
Click to expand...
Click to collapse
"Be sure on resources.arsc's compression method is STORE. " how can i set it to STORE ??
Sent from my MK16i using xda premium
shouvo said:
"Be sure on resources.arsc's compression method is STORE. " how can i set it to STORE ??
Sent from my MK16i using xda premium
Click to expand...
Click to collapse
as I told you, open 2 apks with winrar. drag& drop resources arsc from unsigned.apk to original.apk, a screen will appear, Check compressin method on left center( generally writes NORMAL) change it to STORE and select OK for copying. thats all
Erhany said:
as I told you, open 2 apks with winrar. drag& drop resources arsc from unsigned.apk to original.apk, a screen will appear, Check compressin method on left center( generally writes NORMAL) change it to STORE and select OK for copying. thats all
Click to expand...
Click to collapse
thanks dude...it worked just like a charm
Sent from my MK16i using xda premium
shouvo said:
thanks dude...it worked just like a charm
Sent from my MK16i using xda premium
Click to expand...
Click to collapse
You r welcom. Im glad
I was just wondering if anyone with the UAMDL software has been able to decompile and recompile the framework on here yet.
I have tried with the APK multi tool and the decompile works fine but when I try to recompile it errors our right away.
Anyone have any luck with this?
If so what tool did you use?
Yes I have.
Sent from my SGH-M919 using Tapatalk 2
I'd like to know this as well, and how people have been successful. I haven't had any luck installing framework-res.apk or recompiling a modified app. From my understanding, it's an issue with apktool and aapt that needs to be updated.
TheArtiszan said:
I was just wondering if anyone with the UAMDL software has been able to decompile and recompile the framework on here yet.
I have tried with the APK multi tool and the decompile works fine but when I try to recompile it errors our right away.
Anyone have any luck with this?
If so what tool did you use?
Click to expand...
Click to collapse
That and SystemUI.apk are both missing files needed for them to decompile and recompile right
evil..............out
elesbb said:
Yes I have.
Sent from my SGH-M919 using Tapatalk 2
Click to expand...
Click to collapse
Can you elaborate on what tools you used and how to set it up please?
I have been stuck trying to get this to work for over a week now.
Sent using xda premium.
evil1art said:
That and SystemUI.apk are both missing files needed for them to decompile and recompile right
evil..............out
Click to expand...
Click to collapse
There are ways for making it work though
TheArtiszan said:
Can you elaborate on what tools you used and how to set it up please?
I have been stuck trying to get this to work for over a week now.
Sent using xda premium.
Click to expand...
Click to collapse
I used the tool in my signature and you have to remove some layout paramaters in the xml files then recompile and copy the originals over to the newly compiled apk.
elesbb said:
There are ways for making it work though
I used the tool in my signature and you have to remove some layout paramaters in the xml files then recompile and copy the originals over to the newly compiled apk.
Click to expand...
Click to collapse
Im the one who figured out the missing style for the systemui
evil..............out
evil1art said:
Im the one who figured out the missing style for the systemui
evil..............out
Click to expand...
Click to collapse
Yeah so did I lol. Ive ran into that issue before and thats all you have to do to get around it.
elesbb said:
There are ways for making it work though
I used the tool in my signature and you have to remove some layout paramaters in the xml files then recompile and copy the originals over to the newly compiled apk.
Click to expand...
Click to collapse
We have our own modified apk manger works good
evil..............out
evil1art said:
We have our own modified apk manger works good
evil..............out
Click to expand...
Click to collapse
Ahhh. That makes life a lot easier lol. How did you modify it? Build it from source or edit the jar file?
elesbb said:
Ahhh. That makes life a lot easier lol. How did you modify it? Build it from source or edit the jar file?
Click to expand...
Click to collapse
Modified the original files and changed memory heap etc
evil..............out
Oh okay that makes sense.
I am editing the framework res apk
Making changes only to the arrays.xml file in the values folder.
Which styles should I be commenting out and then which file should I copy to the original?
I tried putting a + in front of a few lines based on the errors I was getting but that seemed to make it worse.
Sent using xda premium.
I think the arrays and other values xml get compiled into the resources file no?
Sent using xda premium.
TheArtiszan said:
I think the arrays and other values xml get compiled into the resources file no?
Sent using xda premium.
Click to expand...
Click to collapse
Everything in the values directory is found in your resources.arsc file in the apk.
Sent from my SGH-M919 using Tapatalk 2
Ah that makes sense.
The changes made for layouts, does that go into the same area though?
Just wondering if that might cause a problem since that is what I would want to move over.
Sent from my HTC VLE_U using xda premium
That is odd.
I can get this to decompile in apk multi tool but not Elesbb's GUI
I get the following error:
Tue 06/25/2013
0:46:56.39
Decompiling.. "C:\Users\Bill\APK GUI\framework-res.apk"
I: Loading resource table...
Exception in thread "main" brut.androlib.AndrolibException: Multiple resources: spec=0x010802f4 drawable/ic_ab_back_holo_dark, config=-hdpi
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:197)
at brut.androlib.res.decoder.ARSCDecoder.readConfig(ARSCDecoder.java:166)
at brut.androlib.res.decoder.ARSCDecoder.readType(ARSCDecoder.java:131)
at brut.androlib.res.decoder.ARSCDecoder.readPackage(ARSCDecoder.java:106)
at brut.androlib.res.decoder.ARSCDecoder.readTable(ARSCDecoder.java:83)
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:49)
at brut.androlib.res.AndrolibResources.getResPackagesFromApk(AndrolibResources.java:390)
at brut.androlib.res.AndrolibResources.loadMainPkg(AndrolibResources.java:56)
at brut.androlib.res.AndrolibResources.getResTable(AndrolibResources.java:48)
at brut.androlib.Androlib.getResTable(Androlib.java:48)
at brut.androlib.ApkDecoder.getResTable(ApkDecoder.java:166)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:99)
at brut.apktool.Main.cmdDecode(Main.java:131)
at brut.apktool.Main.main(Main.java:68)
-----------------------------------------------------------------
Did I miss something.
Made some progress and decompiling ok now on a different computer.
If I add the + before the layouts would that cause operation issues?
I would like to know too.
Still having trouble.
What did you do too decompile?
Okay I can now get it to recompile adding the +layout to the xml files that were erroring in the compile log and only other change was made was to the arrays.xml file to enable bluetooth tethering like on the GS3 did.
however when I push it to the phone and chmod and try it I get a boot loop.
Did I do something wrong?
Am I supposed to copy out the resource.asrc from the file I compiled like a zip then add it to the original that I pulled using 7zip or something?
Any input would be greatly appreciated.
TheArtiszan said:
Okay I can now get it to recompile adding the +layout to the xml files that were erroring in the compile log and only other change was made was to the arrays.xml file to enable bluetooth tethering like on the GS3 did.
however when I push it to the phone and chmod and try it I get a boot loop.
Did I do something wrong?
Am I supposed to copy out the resource.asrc from the file I compiled like a zip then add it to the original that I pulled using 7zip or something?
Any input would be greatly appreciated.
Click to expand...
Click to collapse
Move the AndroidManifest.xml and Meta-INF folder from the original apk to the modified one.
Sent from my SGH-M919 using xda premium