[Q] right way for battery z2 with animation - Sony Xperia M

how to chane battery to battery z2 with animation
plz plz help me

There are two ways you can go about this
1. You can just get the z2 systemui.apk and replace it with yours inb /system/app while setting its permissions to rw-r--r--
Download link: http://forum.xda-developers.com/showthread.php?t=2705713
2. OR you can go about this the more advanced way. Follow this only if ypu have any experience in compiling and decompiling apks. The advantage for this method is that you get to keep your own systemui and just change the battery. First go to the link above and download the systemui.apk. Decompile it. Now also copy your own systemui.apk to the internal sd card. Decompile that also. Copy the battery images from the new systemui to the old on from the /res/drawable-hdpi folder. Recompile your old systemui. Move it into /system. Change its permissions to rw-r--r--. move it to /system/app while overwriting the one that already exists there. Reboot your phone.

paper13579 said:
There are two ways you can go about this
1. You can just get the z2 systemui.apk and replace it with yours inb /system/app while setting its permissions to rw-r--r--
Download link: http://forum.xda-developers.com/showthread.php?t=2705713
2. OR you can go about this the more advanced way. Follow this only if ypu have any experience in compiling and decompiling apks. The advantage for this method is that you get to keep your own systemui and just change the battery. First go to the link above and download the systemui.apk. Decompile it. Now also copy your own systemui.apk to the internal sd card. Decompile that also. Copy the battery images from the new systemui to the old on from the /res/drawable-hdpi folder. Recompile your old systemui. Move it into /system. Change its permissions to rw-r--r--. move it to /system/app while overwriting the one that already exists there. Reboot your phone.
Click to expand...
Click to collapse
thanks but don't work
after reboot systemUI don't show

mohamad khubayb said:
thanks but don't work
after reboot systemUI don't show
Click to expand...
Click to collapse
Are you deodexed?
I don't think you are. If you are not, just replace the systemui.apk again and also delete the systemui.odex. Make sure you delete that odex file. Then reboot.

Related

[Q] Force Close after re-compiling framework-res.apk

Hi,
I'm trying to make some changes to framework-res.apk.
I user APK Manager 4.9 to decompile the file, then made one trivial change to a XML file (changed one auto brightness related value).
I then compiled back to APK without signing and pushed to the phone in recovery mode the deleted Dalvik cache just to be on the safe side.
No matter how I play with it I always get FC from all the system apps immediately after the phone completes the boot process.
Some more information:
1. My original APK had directories like /res/drawable-hdpi-v4 while after decomplie they become res/drawable-hdpi (without the "v4")
2. After I recompile the "v4" directories are not created back and the generated APK contains the directories without the v4
3. If I use the "Reduce errors" feature of the APK manager complie option then I end up with APK that contains both the directories with v4 and those without.
4. I tried with the "reduce errors" option and without it (in which case I manually copied the signature directory into the APK) but got same FC.
5. It seems that once the FCs begin to happen they don't stop until a full nandroid restore. Even if I put the original framework.res.apk file I still get FCs after rebooting.
6. I'm using Revolution HD 2.0.11 ROM
7. The APK file I'm trying to modify was generated by the UOT kitchen.
Any idea what am I doing wrong?
No one knows?
erank said:
No one knows?
Click to expand...
Click to collapse
You dont need to decompile the framework to edit the files, heres the best way, take the the original framework-res.apk, and copy it to your pc, use 7zip to extract the .apk and extract any files you want to edit from the extracted framework, now go back to your original framework-res.apk and right click on it, find 7zip in the contex menu and click open, the contents of the apk will appear in a new window, now just drag and drop your edied files in the right directorys, once done, close 7zip, push the framework back to /system/framework/, wipe the dalvik cache and your done
AndroHero said:
You dont need to decompile the framework to edit the files, heres the best way, take the the original framework-res.apk, and copy it to your pc, use 7zip to extract the .apk and extract any files you want to edit from the extracted framework, now go back to your original framework-res.apk and right click on it, find 7zip in the contex menu and click open, the contents of the apk will appear in a new window, now just drag and drop your edied files in the right directorys, once done, close 7zip, push the framework back to /system/framework/, wipe the dalvik cache and your done
Click to expand...
Click to collapse
The files I want to edit are XML files which are compiled to reasources.arsc, as far as I know 7zip can't extract those, it has to be decompiled.
erank said:
The files I want to edit are XML files which are compiled to reasources.arsc, as far as I know 7zip can't extract those, it has to be decompiled.
Click to expand...
Click to collapse
Too true, the only other thing you could try is to sign the .apk before pushing it....
Sent from my Desire HD using Tapatalk
AndroHero said:
Too true, the only other thing you could try is to sign the .apk before pushing it....
Click to expand...
Click to collapse
Thanks AndroHero.
Everywhere I was looking they always say not to sign system APKs, but just to be sure I also tried signing it and not signing but copying the original META-INF directory - always got the same result - FC in all systems apps after boot.

[Q] Problems with theming Framework

Hi everyone,
I'm having a few questions regarding the theming of framework-res.apk on Android Revolution (No-Sense/Sense)..
After I pull the .apk, and decompile it, I edit the images so that the .9.png files stay intact. Then after that I compile the entire .apk and use WinRar to only push the images to the origional framework-res.apk..
But everytime I flash it I get bootloops and it won't boot into Android, any idea what I do wrong in the proces?
Thanks in advance!
if your using apk manager when you recompile the framework-res.apk it will ask you if its system app click yes then it will ask if you want to keep signature also click yes then you will have to delete the icons you changed in the keep folder then press enter in cmd window
it will compile and be called unsignedframework-res.apk rename to framework-.apk then open the rom using winrar (DO NOT EXTRACT) then just drag and drop the new framework-res.apk into the framework folder click ok let it do its thing then close winrar drop it on sd card and flash
leith51 said:
if your using apk manager when you recompile the framework-res.apk it will ask you if its system app click yes then it will ask if you want to keep signature also click yes then you will have to delete the icons you changed in the keep folder then press enter in cmd window
it will compile and be called unsignedframework-res.apk rename to framework-.apk then open the rom using winrar (DO NOT EXTRACT) then just drag and drop the new framework-res.apk into the framework folder click ok let it do its thing then close winrar drop it on sd card and flash
Click to expand...
Click to collapse
Or do what i do, make a copy of the zip file then extract the files you want to view, put them in a folder, then the icons you wanna swap put straight into the orig zip folder in there place, this method works for me fine & without any bootloops
deanr1977 said:
Or do what i do, make a copy of the zip file then extract the files you want to view, put them in a folder, then the icons you wanna swap put straight into the orig zip folder in there place, this method works for me fine & without any bootloops
Click to expand...
Click to collapse
I too do all my mods this way.. I find apk manager way to complicated to use lol when its so much easier to just swap the icons back into the original apk using 7zip...
apaquette420 said:
I too do all my mods this way.. I find apk manager way to complicated to use lol when its so much easier to just swap the icons back into the original apk using 7zip...
Click to expand...
Click to collapse
I find it much easyer this way. Can i ask you a question if you know abit about framework modding can you see were i have gone wrong here - http://forum.xda-developers.com/showthread.php?t=1195549
I can live with it but i would rather change it to a light gray or a different color? Any help would be very nice & not had a reply about this yet? Can you help?
i had the same issue and i found it easier to update the old framework and overwrite existing files. once you have completed compiling your new framework APK extract the contents and copy into the old framework... and that seems to work fine

how to replace SystemUI.apk ??

hello everybody
each time I try to replace modded "SystemUI.apk" with the previous it crashes and the notification won't working at all ..
even I set the permissions as it should be and reboot ..
this happen in my "arc s" and "tipo dual" .. the both are ICS 4.0.4
please help me what should I have to do
thanks
engnajjar said:
hello everybody
each time I try to replace modded "SystemUI.apk" with the previous it crashes and the notification won't working at all ..
even I set the permissions as it should be and reboot ..
this happen in my "arc s" and "tipo dual" .. the both are ICS 4.0.4
please help me what should I have to do
thanks
Click to expand...
Click to collapse
copy systemui.apk from scdard to /system and apply permissions rw-r--r--. then move it to /system/framework. It will keep crashing after moving, but i just reboot by removing battery then everythings fine after boot.
zgmfx20 said:
copy systemui.apk from scdard to /system and apply permissions rw-r--r--. then move it to /system/framework. It will keep crashing after moving, but i just reboot by removing battery then everythings fine after boot.
Click to expand...
Click to collapse
thanks so much it worked fine
zgmfx20 said:
copy systemui.apk from scdard to /system and apply permissions rw-r--r--. then move it to /system/framework. It will keep crashing after moving, but i just reboot by removing battery then everythings fine after boot.
Click to expand...
Click to collapse
SystemUI.apk belongs to /system/app, not framework folder.
Someguyfromhell said:
SystemUI.apk belongs to /system/app, not framework folder.
Click to expand...
Click to collapse
how it worked well after I've copied to framework folder ???
engnajjar said:
how it worked well after I've copied to framework folder ???
Click to expand...
Click to collapse
lol, u move it to framework folder but the old one is still in system/app so u dont lose the old apk, if im not wrong.
the way to replace without bug is copy to system, set permission, then when u move to system/app, u should better rename the old one or delete them firstly after move new one in. replace directly may cause some bug.
Sent from my LT15i using Tapatalk 4
Someguyfromhell said:
SystemUI.apk belongs to /system/app, not framework folder.
Click to expand...
Click to collapse
oops thanks for correcting
njckjen said:
lol, u move it to framework folder but the old one is still in system/app so u dont lose the old apk, if im not wrong.
the way to replace without bug is copy to system, set permission, then when u move to system/app, u should better rename the old one or delete them firstly after move new one in. replace directly may cause some bug.
Sent from my LT15i using Tapatalk 4
Click to expand...
Click to collapse
I know that SystemUI.apk belongs to System/app but I didn't move it to framework folder only !!
I've moved it to System/app and set its permissions also put another copy of modded file in framework folder
I've requested this because I've seen all the people in this forum can replace this file and worked well but it's not well with me !!!
engnajjar said:
I know that SystemUI.apk belongs to System/app but I didn't move it to framework folder only !!
I've moved it to System/app and set its permissions also put another copy of modded file in framework folder
I've requested this because I've seen all the people in this forum can replace this file and worked well but it's not well with me !!!
Click to expand...
Click to collapse
u should move to system, then set permission before move to system/app, and should rename the old apk or delete it instead of replace directly, DONT move directly to system/app, set permission after.
i do this way all the time and never see any bug. u can try some time
engnajjar said:
I know that SystemUI.apk belongs to System/app but I didn't move it to framework folder only !!
I've moved it to System/app and set its permissions also put another copy of modded file in framework folder
I've requested this because I've seen all the people in this forum can replace this file and worked well but it's not well with me !!!
Click to expand...
Click to collapse
I was wrong in my first post, i meant, copy first custom SystemUI.apk to /system, then apply permissions rw-r--r--. Copy then the respective file to /system/app. Reboot.
If you happened to copy the file to /system/app without applying permissions first, you will get persistent Force Closes even when you reboot. Just Fix Permissions via Recovery.
zgmfx20 said:
I was wrong in my first post, i meant, copy first custom SystemUI.apk to /system, then apply permissions rw-r--r--. Copy then the respective file to /system/app. Reboot.
If you happened to copy the file to /system/app without applying permissions first, you will get persistent Force Closes even when you reboot. Just Fix Permissions via Recovery.
Click to expand...
Click to collapse
njckjen said:
u should move to system, then set permission before move to system/app, and should rename the old apk or delete it instead of replace directly, DONT move directly to system/app, set permission after.
i do this way all the time and never see any bug. u can try some time
Click to expand...
Click to collapse
thanks so much for supporting , I'll do this in future

Deodexing a single system app

I am trying to edit the LGMessage.apk and deodex it aswell
Is it possible to deodex a single system app? My second question is if I am just changing things in the res folder and nothing to do with the odex file do I have to odex it?
The issue I am having is when I replace it in the priv-app folder and set permissions to rw-r-r then reboot. The app doesnt show up as installed.
Questions?
you can edit the apk. no need to deodex. when you replace the original just delete the corresponding .odex file and reboot

[Guide][framework-res.apk]

Someone please guide me on how to recompile framework-res.apk from stock rom
using advanced apktool.
Because when I tried to recompile as other apks and replaced it with older one I got boot-loop:crying: .
[email protected][email protected]@ said:
Someone please guide me on how to recompile framework-res.apk from stock rom
using advanced apktool.
Because when I tried to recompile as other apks and replaced it with older one I got boot-loop:crying: .
Click to expand...
Click to collapse
You must set right permision after copy app to system
First you need to recompile the folder
Code:
ApkTool b (foldername)
after that you need to mod the system permissions or sign with an other system apk
How to do that?
copy meta inf folder and the xml file from the original apk
TecnoTailsPlays said:
First you need to recompile the folder
Code:
ApkTool b (foldername)
after that you need to mod the system permissions or sign with an other system apk
How to do that?
copy meta inf folder and the xml file from the original apk
Click to expand...
Click to collapse
yes, but i now dont understand his problem
My problem is when I recompile framework-res.apk and copied to /system/framework
and changed the permissions to rw-r-r and restarted my phone it stucked on bootloop .
:crying:
Thanks TechnoTailPlays I will try your solution .
Guys use advanced apk tool for editing apk files , after recompile apk file change resources.arsc by using 7-zip or winrar
Thank you so much @technotailsPlays it worked. :good:

Categories

Resources