I am trying to create a custom theme, by modifying the framework-res.apk. I have been successful in porting some really cool .png files, but my problems start with the de-compiling & recompiling the .apk so I can modify the .xml & .9.png files. It seems every time I recompile my .apk it sends me in to a boot loop. I have used both APKTool and APK Manager with no luck. Here are my steps:
APK Manager:
1. Use a root explorer to copy the framework-res.apk.
2. Paste the file on my sd card.
3. Copy the file and paste it in the "place-apk-here-for-modding" folder.
4. Choose option 9 for compile.
5. Open the .xml file with Notepad++.
6. Recompile .apk using option 11.
7. Yes to "is this a system file?"
8. Yes to "keep original files & signatures"
9. Delete the files I modified from the "keep" folder and the resources.ascr file.
10. Finish the build of the .apk.
11. Copy & paste the modified .apk back to my sd card.
12. Rename the file from unsigned-framework-res.apk to framework-res.apk.
13. Use root explorer to cut & paste the modified to my /system/framework folder.
14. Reboot.
I now end up in a boot loop what am I doing wrong??
Rockstar52 said:
I am trying to create a custom theme, by modifying the framework-res.apk. I have been successful in porting some really cool .png files, but my problems start with the de-compiling & recompiling the .apk so I can modify the .xml & .9.png files. It seems every time I recompile my .apk it sends me in to a boot loop. I have used both APKTool and APK Manager with no luck. Here are my steps:
APK Manager:
1. Use a root explorer to copy the framework-res.apk.
2. Paste the file on my sd card.
3. Copy the file and paste it in the "place-apk-here-for-modding" folder.
4. Choose option 9 for compile.
5. Open the .xml file with Notepad++.
6. Recompile .apk using option 11.
7. Yes to "is this a system file?"
8. Yes to "keep original files & signatures"
9. Delete the files I modified from the "keep" folder and the resources.ascr file.
10. Finish the build of the .apk.
11. Copy & paste the modified .apk back to my sd card.
12. Rename the file from unsigned-framework-res.apk to framework-res.apk.
13. Use root explorer to cut & paste the modified to my /system/framework folder.
14. Reboot.
I now end up in a boot loop what am I doing wrong??
Click to expand...
Click to collapse
You have to sign it with 12
Lenn said:
You have to sign it with 12
Click to expand...
Click to collapse
Tried it, still boot loops at the Archos screen. I then have to do a complete format & wipe reinstalling the SDK, firmware, and the root files. I don't get it.
Lenn said:
You have to sign it with 12
Click to expand...
Click to collapse
Do not sign frameworks! How many time do I have to say this! System apps do not get signed...
Now, as far as the framework, there's two things to check. First, what XMLs have you edited? Second, instead of using root explorer to copy the framework, connect to a pc and use adb to perform these commands:
Code:
su
stop
cp /system/framework/framework-res.apk /system/framework/framework-res.old
cp /sdcard/framework-res.apk /system/framework/framework-res.apk
chmod 644 /system/framework/framework-res.apk
sync
start
If it continues boot-looping, you will still be connected through adb, so you just
Code:
stop
cp /system/framework/framework-res.old /system/framework/framework-res.apk
sync
start
and it will come back up without having to reformat or anything.
If it's bootlooping even when you use the adb method to copy, then your XMLs must be reencoding incorrectly. Post a list of all XMLs you have changed.
msticninja said:
Do not sign frameworks! How many time do I have to say this! System apps do not get signed...
Now, as far as the framework, there's two things to check. First, what XMLs have you edited? Second, instead of using root explorer to copy the framework, connect to a pc and use adb to perform these commands:
Code:
su
stop
cp /system/framework/framework-res.apk /system/framework/framework-res.old
cp /sdcard/framework-res.apk /system/framework/framework-res.apk
chmod 644 /system/framework/framework-res.apk
sync
start
If it continues boot-looping, you will still be connected through adb, so you just
Code:
stop
cp /system/framework/framework-res.old /system/framework/framework-res.apk
sync
start
and it will come back up without having to reformat or anything.
If it's bootlooping even when you use the adb method to copy, then your XMLs must be reencoding incorrectly. Post a list of all XMLs you have changed.
Click to expand...
Click to collapse
I do have my system set up for adb, but for some reason it don't read my A101, it works fine for my phone. The device manager shows my A101 listed as a Gen8 ADB Device, but it don't show up when i use the command: adb devices.
With your help I did manage to replace all of the stock .png's. I also found that I don't need to edit the .xml files to do what I want to. Thanks, for so much of your help! Although I would like to replace the .9.png's also and I understand that you must de-compile the .apk in order to do so. this way I could build a custom theme.
Rockstar52 said:
I do have my system set up for adb, but for some reason it don't read my A101, it works fine for my phone. The device manager shows my A101 listed as a Gen8 ADB Device, but it don't show up when i use the command: adb devices.
With your help I did manage to replace all of the stock .png's. I also found that I don't need to edit the .xml files to do what I want to. Thanks, for so much of your help! Although I would like to replace the .9.png's also and I understand that you must de-compile the .apk in order to do so. this way I could build a custom theme.
Click to expand...
Click to collapse
Have you done this yet(from the archos support site):
Windows: echo 0x0e79 >> "%USERPROFILE%\.android\adb_usb.ini"
Macos: echo "0x0e79" >> ~/.android/adb_usb.ini
Linux: echo "0x0e79" >> ~/.android/adb_usb.ini
And disabled/reenabled debugging on the tablet?
msticninja said:
Have you done this yet(from the archos support site):
Windows: echo 0x0e79 >> "%USERPROFILE%\.android\adb_usb.ini"
Macos: echo "0x0e79" >> ~/.android/adb_usb.ini
Linux: echo "0x0e79" >> ~/.android/adb_usb.ini
And disabled/reenabled debugging on the tablet?
Click to expand...
Click to collapse
No but I will give it a try and report back.
None of my changes are taking effect??!
Still not working, just a question. I am running Win7 64bit could this be the problem?? Do I need to be on a 32bit system to do the decompiling, compiling?
Tried on my wife's 32bit system still the same. For some reason it's not compiling the .apk right.
Rockstar52 said:
I am trying to create a custom theme, by modifying the framework-res.apk. I have been successful in porting some really cool .png files, but my problems start with the de-compiling & recompiling the .apk so I can modify the .xml & .9.png files. It seems every time I recompile my .apk it sends me in to a boot loop. I have used both APKTool and APK Manager with no luck. Here are my steps:
APK Manager:
1. Use a root explorer to copy the framework-res.apk.
2. Paste the file on my sd card.
3. Copy the file and paste it in the "place-apk-here-for-modding" folder.
4. Choose option 9 for compile.
5. Open the .xml file with Notepad++.
6. Recompile .apk using option 11.
7. Yes to "is this a system file?"
8. Yes to "keep original files & signatures"
9. Delete the files I modified from the "keep" folder and the resources.ascr file.
10. Finish the build of the .apk.
11. Copy & paste the modified .apk back to my sd card.
12. Rename the file from unsigned-framework-res.apk to framework-res.apk.
13. Use root explorer to cut & paste the modified to my /system/framework folder.
14. Reboot.
I now end up in a boot loop what am I doing wrong??
Click to expand...
Click to collapse
With ApkManager did you delete the 'public.xml' folder in ..\res\values ?
waterpolo said:
With ApkManager did you delete the 'public.xml' folder in ..\res\values ?
Click to expand...
Click to collapse
No, I did not. Was I supposed to?
EDIT: Ok I did some digging and what I have found is that the file size of the original framework-res.apk is 9.32mb. Once I rebuild it whether I modified anything or not the rebuilt .apk is only 7.34mb. Upon further inspection it seems to leave out all of the "value" named folders from the newly built .apk, and it does this whether I use APKTool or APK Manager(even though I say keep files). Has anyone else had this problem?
IM having the same problem,no solution though ! i edited bools.xml but after recompiling its not there ! Anyone solution ?
Copy your secmms.apk and secmms.odex file then delete both of them from System>App
Copy attached secmms.apk and change permission > reboot.
Check whether attaching emoji in SMS converting them to MMS or not. It should not convert. Working perfectly for me.
Remember only for rooted phone.
Okay so I just tried to install xposed on my Xperia Z and it was a success. All you need to do is be rooted. For that, go to this thread, http://forum.xda-developers.com/xperia-z/development/super-su-xperia-device-lollipop-easy-t3119006. The procedure mentioned here worked like a charm for me.
Once you are rooted, go to this thread: http://forum.xda-developers.com/showthread.php?t=3034811. Download the .zip file and the .apk file. Install the .apk file like any other normal .apk file. Unzip the .zip file using any file explorer (I used root explorer). After you've unzipped the files, all you have to do is move and replace them in the system folders and assign correct permissions.
It's not working for me, the installer keeps saying Xposed isn't currently active
I got boot looped with this solution...bummer!
ahsan530 said:
Okay so I just tried to install xposed on my Xperia Z and it was a success. All you need to do is be rooted. For that, go to this thread, http://forum.xda-developers.com/xperia-z/development/super-su-xperia-device-lollipop-easy-t3119006. The procedure mentioned here worked like a charm for me.
Once you are rooted, go to this thread: http://forum.xda-developers.com/showthread.php?t=3034811. Download the .zip file and the .apk file. Install the .apk file like any other normal .apk file. Unzip the .zip file using any file explorer (I used root explorer). After you've unzipped the files, all you have to do is move and replace them in the system folders and assign correct permissions.
Click to expand...
Click to collapse
Would it be possible to explain the file copying process in more detail. My Xperia Z crashed whilst copying and overwriting the files into the LIB and now is in a boot loop. Copying the appropriate files to BIN and FRAMEWORK worked fine.
Sent from my Samsung Galaxy Note 10.1 using Tapatalk Pro
Done! Its working great! In order to work need to set the correct permissions in relevant files.
Sent from my C6603 using XDA Free mobile app
alexfra said:
Done! Its working great! In order to work need to set the correct permissions in relevant files.
Sent from my C6603 using XDA Free mobile app
Click to expand...
Click to collapse
Did you copy the FRAMEWORK, BIN and LIB files over. My Xperia rebooted whilst copying the LIB files over and the went into bootloop.
Busy re-installing lollipop as we speak.
I have installed the files separately (one by one) in the relevant system's paths
Sent from my C6603 using XDA Free mobile app
alexfra said:
I have installed the files separately (one by one) in the relevant system's paths
Sent from my C6603 using XDA Free mobile app
Click to expand...
Click to collapse
I reinstalled the 5.0.2 firmware. Then did the KingRoot and replaced with SuperSU. The I tried to install Xposed followin the above steps and copied file by file like you did, and if I copy the 3rd file in LIB over, the phone reboots and goes into bootloop.
adrianh_za said:
Did you copy the FRAMEWORK, BIN and LIB files over. My Xperia rebooted whilst copying the LIB files over and the went into bootloop.
Busy re-installing lollipop as we speak.
Click to expand...
Click to collapse
Same, although it rebooted just fine. I then copied the files again, no reboot but also no Xposed.
adrianh_za said:
Did you copy the FRAMEWORK, BIN and LIB files over. My Xperia rebooted whilst copying the LIB files over and the went into bootloop.
Busy re-installing lollipop as we speak.
Click to expand...
Click to collapse
Whizzoo said:
Same, although it rebooted just fine. I then copied the files again, no reboot but also no Xposed.
Click to expand...
Click to collapse
I'm in a bootloop again, so off to re-install lollipop...again. Becoming quite a pro at installing and rooting it now This time around, I had a clean install of 5.0.2 without any updates from Play Store. Also did a KingRoot and the replaced it with Super SU before trying to install Xposed. Not sure how @alexfra got it installed...lucky bum!
Okay do the following, copy the LIB files in the root of the system folder and assign the correct permissions. After you've done that, cut and paste the LIB files in to the LIB folder. That will work for sure. Check images for further assistance. Also check image of Gravity Box attached. Everything running great. Hope it works for you too.
ahsan530 said:
Okay do the following, copy the LIB files in the root of the system folder and assign the correct permissions. After you've done that, cut and paste the LIB files in to the LIB folder. That will work for sure. Check images for further assistance. Also check image of Gravity Box attached. Everything running great. Hope it works for you too.
Click to expand...
Click to collapse
Same problem. As soon as I overwrite libart.so, phone reboots and goes into bootloop.
Sent from my Samsung Galaxy Note 10.1 using Tapatalk Pro
Succeeded with my Xperia Z on official Lollipop ! Thanks !
To all who have troubles : take good care to the PERMISSIONS !!! If you don't change permissiosn IT WON'T WORK !
For LIB folder files use the method described before :
- extract to /system
- change permission to rw-r--r-- (or 0644 in octal)
- move files to /system/lib
For bin folder files permission are rwxr-xr-x (or 0755 in octal) and for framework folder it's rw-r--r-- (or 0644 in octal)
If you don't do EXACTLY this, Xposed won't work !
Howell said:
Succeeded with my Xperia Z on official Lollipop ! Thanks !
To all who have troubles : take good care to the PERMISSIONS !!! If you don't change permissiosn IT WON'T WORK !
For LIB folder files use the method described before :
- extract to /system
- change permission to rw-r--r-- (or 0644 in octal)
- move files to /system/lib
For bin folder files permission are rwxr-xr-x (or 0755 in octal) and for framework folder it's rw-r--r-- (or 0644 in octal)
If you don't do EXACTLY this, Xposed won't work !
Click to expand...
Click to collapse
done exatly that m8...and it caused a bootloop ...flashing lollipop again now.
Howell said:
Succeeded with my Xperia Z on official Lollipop ! Thanks !
To all who have troubles : take good care to the PERMISSIONS !!! If you don't change permissiosn IT WON'T WORK !
For LIB folder files use the method described before :
- extract to /system
- change permission to rw-r--r-- (or 0644 in octal)
- move files to /system/lib
For bin folder files permission are rwxr-xr-x (or 0755 in octal) and for framework folder it's rw-r--r-- (or 0644 in octal)
If you don't do EXACTLY this, Xposed won't work !
Click to expand...
Click to collapse
I did this on my third try over the weekend. Copied the LIB files into system, changed the permissions and the moved the files one by one. Reboot and bootloop occured when moving libart.so.
1) What file manager did you use? I used ES File in root explorer mode.
2) Did you move file by file, or move the files all at once or per folder?
3) Do you remember any specific order when moving the files? I just went alphabetically through the folders.
4) Must the .props file also be copied that is in the zip?
5) Did you do a clean install to Lollipop, or was it an upgrade from KK?
Any help would be appreciated
Sent from my Samsung Galaxy Note 10.1 using Tapatalk Pro
Thanks for your help guys! I figured out what the problem was for me. There were some Xposed files in my lib folder already, I assume from my installation on KitKat (I did not do a clean upgrade). So I removed those, rebooted and presto! Good to have Xposed again
Whizzoo said:
Thanks for your help guys! I figured out what the problem was for me. There were some Xposed files in my lib folder already, I assume from my installation on KitKat (I did not do a clean upgrade). So I removed those, rebooted and presto! Good to have Xposed again
Click to expand...
Click to collapse
Do you know what the files were so I can check?
Should I not install the Xposed installer APK until I have copied the zipped files in?
Sent from my Samsung Galaxy Note 10.1 using Tapatalk Pro
adrianh_za said:
Do you know what the files were so I can check?
Should I not install the Xposed installer APK until I have copied the zipped files in?
Sent from my Samsung Galaxy Note 10.1 using Tapatalk Pro
Click to expand...
Click to collapse
Go to /system/lib and search for all the files that are also in the lib folder in the zip and remove them. I already had the Xposed installer installed when I did it, in fact I used it to reboot the system.
I have done,,thanks for guide sir,,
Sent from my C5502 using XDA Free mobile app
Can anybody comment on which file manager they used to do the copying and setting of permissions and successfully install Xposed? I see the OP used Root Explorer. I personally use ES File Explorer with root mode enabled, but I am thinking that maybe the issue I keep having when copying the files is due to ES File Explorer and maybe I should try Root Explorer.
adrianh_za said:
Can anybody comment on which file manager they used to do the copying and setting of permissions and successfully install Xposed? I see the OP used Root Explorer. I personally use ES File Explorer with root mode enabled, but I am thinking that maybe the issue I keep having when copying the files is due to ES File Explorer and maybe I should try Root Explorer.
Click to expand...
Click to collapse
I used root explorer. Yeah, use root explorer. Root explorer le best.
Unpack and put the apk in system/priv-app/TouchwizHome_MR1 and the libs in system/priv-app/TouchwizHome_MR1/lib/arm then set correct permissions and reboot.
Set Permissions : Please Tell Correct Permissions
Please Post Image ... For Easy Understand
Screenshots aren't necessary for this. Using a file explorer such as ES File Explorer, use its properties menu and change the permissions of each file or folder, one at a time, to the following. Then reboot.
APK, SO files: rw-r--r--
Folders: rwxr-xr-x
Need help urgent.
Accidently delete feature.xml under /system/csc . I tried by flashing MM ROM but feature.xml cant be restore atm i was using feature.xml from my galaxy tab s.
Can anyone upload feature.xml from a510f or a510fd.thanks
I don't have feature.xml under /system/csc...
customer.xml, language.xml, omc.xml and others.xml only
mathlau said:
I don't have feature.xml under /system/csc...
customer.xml, language.xml, omc.xml and others.xml only
Click to expand...
Click to collapse
Its strange i have that. See my attachment
extract from your stock rom
1. download your stock rom : sammobile.com
2. download Ext4 Unpacker : Ext4 Unpacker
3. extract your stock rom *.zip > Open *.md5 (ex: winrar) and extract file cache.img.ext4
4. Run ext4 unpacker > open file cache.img.ext4 > click on root/recovery > right click on sec_csc.zip and extract.
5. Extract file sec_csc.zip and browse system/csc/ your file here (feature.xml/If you do not find this file,then use others.xml instead (just rename it to feature.xml))
My Phone doesn't have this file feature.xml But i have this file after i install wanam xposed for android 5.x.x.