replace framework-res.apk on stock rooted 4.3 for wifi tethering
I downloaded the tether_mod rom zip file from the link in post #35. Since stock recovery will not install zip file for me, I will have to figure out ways to do similar steps.
After inspection of the installtheme.sh script in the zip, I figured that the zip will simply patch up the framework-res.apk in /system/framework with the resources.arsc file in the zip. I managed to run the steps in the installtheme.sh script on a PC and created the patched framework-res.apk fie (oops, I cannot attach the file because it is too large. Basically, it is the following commands that needs to be run on your PC):
1. unzip downloaded zip file
2. copy framework-res.apk from phone to pc
3. replace the resources.arsc file in apk with the one in unzipped archive, using either command:
zip -r framework-res.apk resources.arsc
or any zip tool
4. use zipalign command found in android SDK to align the patched framework-res.apk file:
zipalign -f 4 framework-res.apk_patched framework-res.apk_aligned
However, before I use root explorer to replace the default framework-res.apk with the patched one (set permission first, replace the file, then restore permission), I need to know my back-up plan. First, I am confused about deodexed vs odexed, and do not know whether the patch is suitable for my stock rooted 4.3 system. Secondly, I read that replacing system files like framework-res.apk could cause the device to go into boot loop or not boot at all. If I get into that situation, will I be able to restore back and how?
If anyone had or will have success using the patched file, please share your experience.
Thanks.
I downloaded the tether_mod rom zip file from the link in post #35. Since stock recovery will not install zip file for me, I will have to figure out ways to do similar steps.
After inspection of the installtheme.sh script in the zip, I figured that the zip will simply patch up the framework-res.apk in /system/framework with the resources.arsc file in the zip. I managed to run the steps in the installtheme.sh script on a PC and created the patched framework-res.apk fie (oops, I cannot attach the file because it is too large. Basically, it is the following commands that needs to be run on your PC):
1. unzip downloaded zip file
2. copy framework-res.apk from phone to pc
3. replace the resources.arsc file in apk with the one in unzipped archive, using either command:
zip -r framework-res.apk resources.arsc
or any zip tool
4. use zipalign command found in android SDK to align the patched framework-res.apk file:
zipalign -f 4 framework-res.apk_patched framework-res.apk_aligned
However, before I use root explorer to replace the default framework-res.apk with the patched one (set permission first, replace the file, then restore permission), I need to know my back-up plan. First, I am confused about deodexed vs odexed, and do not know whether the patch is suitable for my stock rooted 4.3 system. Secondly, I read that replacing system files like framework-res.apk could cause the device to go into boot loop or not boot at all. If I get into that situation, will I be able to restore back and how?
If anyone had or will have success using the patched file, please share your experience.
Thanks.