[Guide][framework-res.apk] - Zenfone 5 General

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:

Related

[Q] how to theme .apk files for flashable theme

since i cant get metamorph to work on cyan i want to make my theme a flashable zip. i know were the images are located and everything in an apk but whats the best easiest way to decompile the apk then recompile with my edited images. should i just rename the apk .zip and then rename .apk wen done or will that unsigne it. or should i use apktool and just "apktool d framework-res.apk" and recompile using apktool? thanks for any help
I'm not sure about the correct way to do it, but I have edited the framework-res.apk fine by just rename to .zip, edit some pictures within the drawable-hdpi folder. Put that folder back in the zip then rename to .apk. Then just adb push to the correct location and reboot and everything is fine and looking good.
It depends. If you're just going to edit images you could just open the apk using z7 or winrar and replace the images. If you're going to edit xml files you'd have to decompile it using apktool.

[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] Apktool Installation?

can anyone give me a step by step guide on how to install apk tool on my windows pc?
i have downloaded windows install file and apktool file but dont know how to install these or where to put them.
plz help i want to mod apks and resize some widgets etc.
any help is apprecitiated thx
All you do is extract em . First one then the last zip. All in one folder.
Then open a cmd window to the folder.
You will also need to place a copy of the framework res.apk and com.htc.resources.apk in the folder. Also whatever apk you wanna decompile. Such as rosie.apk for example .
Apktool if framework.res.apk
Apktool if com.htc.resources.apk
Then whatever apk you wanna decompile
Apktool rosie.apk just using for exp.
When done
Apktool b rosie
You now have it rebuilt . You may need to resign things to have it install right on your phone . Unless Sig check is disabled.
Sent from the REAPER..

[TUT] how to replace the icons of settings

This tutorial is how to replace the icons in the settings.apk
requirements:
brain and apktool :angel:
1.first you need to decompile the settings.apk or use ninjamorph
2. locate the images you want to replace .
3. resize the images like in the original sizes of the images in the settings
4.recompile settings.apk
this how to recompile and decompile
1.install framework , pull it in the system/framework and place it on your sdcard and transfer to apktool folder
apktool if framework-res.apk
2. install twframework , pull it in the system/framework and place it on your sdcard and transfer to apktool folder
apktool if twframework-res.apk
3. decompile settings.apk pull it in the system/app and place it on your sdcard and transfer to apktool folder
apktool d Settings.apk
when it is done editing , its time to recompile your work
type apktool b -f -d Settings
then after that open the original settings.apk using 7zip or winrar
and open also the modded settings.apk that is located at the settings folder/dist
open both settings.apk and from the original settings.apk drag and drop the meta folder and android manifest to your modded settings.apk
and thats all . transfer the settings.apk from the dist folder to your sdcard and push it to system/app
try to see the images on the attached files , it will help you
dont forget to hit thanks :angel:

[Q] right way for battery z2 with animation

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.

Categories

Resources