modding framework-res.apk - Xperia Z Q&A, Help & Troubleshooting

this is my 1st modding so bare with me. ive tried few times today with sending framework to my phone and always ended with bootloop
so i gave up after few reflashes of rom (stock)
here is what i did so far
1. read many pages here and round web
2. pulled framework-res.apk via adb
3. copied my customized pngs to appropriate folders
4. pushed framework back to phone using adb shell...
5. bootloop.... .... ....
im adding my modified framework if any of more capable mods are willing to help
framework-res.zip
framework-res.rar -> rename to framework-res.z01

indycar said:
this is my 1st modding so bare with me. ive tried few times today with sending framework to my phone and always ended with bootloop
so i gave up after few reflashes of rom (stock)
here is what i did so far
1. read many pages here and round web
2. pulled framework-res.apk via adb
3. copied my customized pngs to appropriate folders
4. pushed framework back to phone using adb shell...
5. bootloop.... .... ....
im adding my modified framework if any of more capable mods are willing to help
framework-res.zip
framework-res.rar -> rename to framework-res.z01
Click to expand...
Click to collapse
Here is what you do
1- forget ADB
2- copy framework-res.apk from /framework to the sd card
2- move it from sd card to pc
3-using winrar or 7zip, click on add, and select your new icons ( make sure they are the same dimensions aka width and length)
4- move the app to your sd card
5- now on your phone, move the apk to /system and set permissions
6- move th apk to /system/framework and overwrite the existing apk
Press thanks if I helped

blakstar said:
3-using winrar or 7zip, click on add, and select your new icons ( make sure they are the same dimensions aka width and length)
Press thanks if I helped
Click to expand...
Click to collapse
they are same size i just used different colour instead boring white
will try tomorrow after i get home from work

ok i think i managed to get it work
i made recovery zip and i think it worked
expected more icons to be changed :\

Related

Blur Animation

I am currently using the Latest Cyan Mod ( 4.1.999 something ) and I really miss the blur transition animation. Can you guys tell me if there is a way I can push it manually ?
Thanks in advance
go to spare parts and enable window animations
Well I guess u have no idea what am I talking about ! I know how to perform those simple steps ( I have been flashing mah phones and doing all kinda stuffs for a long time ). What I am asking is" the new BLUR transition animation found in some new themes ! I just wanna know if I can push it manually without actually installing the theme
Thanks btw
haven't used the blur animations myself, so i may be wrong, but take the theme with the animations, pull the folder framework-res.apk/res/anim (the first one can't recall exact name). take that folder and drag it over into an unthemed version of your rom into the same location. sign the .zip file, then flash it.
david1171 said:
haven't used the blur animations myself, so i may be wrong, but take the theme with the animations, pull the folder framework-res.apk/res/anim (the first one can't recall exact name). take that folder and drag it over into an unthemed version of your rom into the same location. sign the .zip file, then flash it.
Click to expand...
Click to collapse
Thanks a lot for the info, but can you tell me how to sign the .zip file since I have not done this b4. Thanks
this is probably one of the easiest ways to set it up.
for framework-res (at least in Hero builds) you are not required to resign the apk after editting...easiest way to edit an apk is within winrar...on your computer (PC as I don't own a mac) right click on the apk and set it to open with winrar (set it as default program)
now you can edit the contents of the apk without ever extracting the contents.
So after you open take the /res/anim from file A and move it into the framework-res.apk from the build you wish to use simply ADB push (or a root file explorer or some terminal method I don't know) the file to /system/framework
reboot...and viola.

help modifing system/framework/framework-res.apk

Hi Everyone
I hope this is the right place for this posting.
I pulled system/framework/framework-res.apk from my phone. I was trying to find the launcher button images that my rom (Aloyuis) uses (turns out the images aren't in this particular apk nore are they in htc.com.resource) Any ways, I didn't like the direction the battery indicator was pointing in on the status bar so I rotated all the images. I then zipped the file back up keeping the name (framework-res.apk) and then pushed it back to phone (adb push <path to file on computer> /system/framework/framework-res.apk)
No problems occurred pushing the file to the phone. I then issued the reboot command from the sdk. The phone rebooted but I could not get past the HTC load screen. Any ideas on why this is and what I am doing wrong?
Don't re zip it. Use 7 zip, pull out the files you want to modify, while leaving the apk intact, modify, then use 7 zip to open (right click on the apk, go to 7 zip then open), navigate to the applicable res folder, drag and drop your modified files on top of the stock ones. Then push your modified apk. As for the launcher, look in system/app for launcher.apk (or he might be using adw)
-------------------------------------
Sent via the XDA Tapatalk App
danaff37 said:
Don't re zip it. Use 7 zip, pull out the files you want to modify, while leaving the apk intact, modify, then use 7 zip to open (right click on the apk, go to 7 zip then open), navigate to the applicable res folder, drag and drop your modified files on top of the stock ones. Then push your modified apk. As for the launcher, look in system/app for launcher.apk (or he might be using adw)
-------------------------------------
Sent via the XDA Tapatalk App
Click to expand...
Click to collapse
dana I really want to thank you for your reply to my post. Since you were so awesome to help me out the first time maybe you can help me out a second time. I am not entirely sure what happened. I was able to modify the png files I wanted to and push the package back to the phone. All the changes were present last night. They were also present again this morning when I turned my phone on. Though here is the confusing part. I went to check my phone and something seemed different, after looking at my status bar more closely all the changes I made were gone. The battery indicatore had gone back to its original right facing image with a blue level metter. Do you know what could have caused this? Should I pull the package again to see of the png files reverted back some how (not sure how since I replaced them so not sure where they came from) and if so push the changes back?
BTW if its the sense launcher then the png's u want r in htcresources /Res/mdpi port. Also some r in Rosie app. If Modding the files open up app. Copy and paste Res file out to a place u can work on it. Mod the files. Drag and drop back into app. Either push files back to phone via adb or create a folder. Name it update inside folder create another folder...call it system. In that make another folder. Name it app the put the app or apps in there that u modded. Now back in update folder itself...go find a theme or mod someone else did and open it up with 7zip. Take the Meta file out of it and put it into the update folder. Zip up update folder via 7zip. Next find app on forum via a search called avabox. Dl it. If in a zip take out of zip. Open it. In there is a file called auto sign. Drag the update zip into the auto sign folder. Click on sign. Put new signed zip onto SF card(u can rename file now if u want). Go into recovery and flash the file. Reboot. LOL really it isn't hard
you may have to repush the file, then reboot to recovery and clear dalvik cache. It's reloading images from the cache

[Guide] Simple guide to theming ANY ROM

A lot of people have asked in various threads lately about getting this theme on x rom, or can someone port this theme for me, etc. It really isn't that hard. It actually is pretty much a simple matter of copying and pasting. This will work on any ROM, and it only takes a few minutes, easy enough for an amateur to do it.
1. First, download the ROM that has the theme that you want on your current ROM.
2. Extract framework-res.apk from /system/framework and rename it to framework-res-old.zip and then right click it, and click extract all. Just extract them to currentdirectory\framework-res-old, which should be the default option anyway.
3. Take your current ROM, and extract framework-res.apk from /system/framework, and repeat step 2 except name it framework-res-new.zip.
4. Browse to the framework-res-old\res folder and select all of the folders starting with "drawable", such as "drawable-mdpi"
5. Browse to the framework-res-new\res folder and paste those folders, it should prompt you to merge and replace files and all that jazz, just click yes and do for the next x conflicts. It will copy and replace all of the image files.
6. Go back to the root of your framework-res-new folder, highlight all of the contents, right click, Send to > Compressed (zipped) archive
7. Windows will re-zip framework-res-new. When it finishes, rename the new zip file to framework-res.apk and push it to /system/framework. If you haven't gotten s-off on your phone, you have to do this while in clockwork recovery (make sure you mount /system in the partitions menu, or if you are s-off and booted, type adb shell mount -o rw,remount /system if it gives you memory errors)
For other operating systems, the steps are similar. If you use a linux distro, I'm going to assume you are smart enough to figure out the compression tools and menu items to unzip and rezip the apk files.
NOTE: You don't actually have to change the extensions to .zip, in fact, you won't be able to unless you unchecked hide known file extensions in the windows folder options in control panel. I just thought it would be easier. If you don't want to unhide extensions, just use a tool like 7-zip or winrar to open and extract the APK. In simple terms, all you are doing is replacing the res folder of your new framework-res.apk with the one from the theme you want. Not very hard.
ANOTHER Note: Sense roms are a bit more difficult to theme, since all of the HTC apps are themed from images in com.htc.resources.apk in /system/framework. But if you are on a sense ROM, you probably can just use a MyModes theme. If you do however choose to try this on a sense ROM, it will only theme user and non-HTC apps. This guide will technically work for any ROM but it works best for AOSP based ROMs, like CyanogenMod or ArayrayMod. The only thing is that if there is a change in the color of text, then you have to decompile both framework-res APKs and copy styles.xml from the old one to your new one and recompile it. APKtool or APK Manager both work great for that.
DO A NANDROID BACKUP BEFORE PUSHING THE NEW FRAMEWORK! Sometimes you can get boot loops from screwing with other files in framework-res, or if it is not signed properly. But you shouldn't get boot loops as long as you stay away from XMLs.
how do i extract an apk? it shows up as an apk and when i click extract it does nothing
Sometimes pushing new frameworks cause boot loops fyi..
Happened to me twice :/
Sent from my T-Mobile myTouch 3G Slide using XDA App
purple1 said:
how do i extract an apk? it shows up as an apk and when i click extract it does nothing
Click to expand...
Click to collapse
Did you try renaming it to framework-res.zip rather than .apk? If you have 7-zip or winrar you can also right click, open with, and choose 7-zip or winrar from the choose default program option.
arayray said:
Sometimes pushing new frameworks cause boot loops fyi..
Click to expand...
Click to collapse
Only if you screw with the non-drawable folders. If you leave the XMLs intact and only change the images it boots fine. The boot loops are caused by incompatible or conflicting XML files, which happens when you just push a random framework-res from another ROM, you have to just move the images over.
I use apkmanager for linux and its immensely helpful. Also you can loop one even without modifying the xmls. Least I have that's why the most important part of theming is knowing how to backup/restore or flash sbf or w/e.
Only if you screw with the non-drawable folders. If you leave the XMLs intact and only change the images it boots fine. The boot loops are caused by incompatible or conflicting XML files, which happens when you just push a random framework-res from another ROM, you have to just move the images over.
Click to expand...
Click to collapse
I think you should state that in the OP
Added a note at the bottom, thanks

[Rom]Newts Kingdom v1.0.0 stock sense 3.0

I have had alot of people wanting just a stock sense 3.0 rom. this may or may not be supported i havent decided yet.... if you want to use this as your base you must ask my self and aamikam. this is just a quick post screenshots and other things will come later
Features
Stock Kingdom build
complete sense 3.0
Odex and opted for best performance
emmc music works
emmc mount to pc works
extra quick settings
havent got rid of 4g yet will come maybe
mainly just stock forthose who like that
Click to expand...
Click to collapse
You guys try it let me know what you think if enough of you do ill try to support it further
Download​
Firsties cool
Downloading now...will report back
Edit- awesome if your looking for stock sense 3.0 this is it
Sent from my Droid INCREDIBLE
This is a very stable ROM so far.
sweeeet. nothing but time at work tonight too!
Something new to try...yay!
Sent from my Droid Incredible Running MIUI
I could not get the EMMC to mount to my PC but other than that everything seems good.
Now if I could just change the 3G icon to the one that comes with the Inc 2 I will be all set. I have tried Ninjamorph and flashing a zip file but cannot get it changed.
kevman8396 said:
Now if I could just change the 3G icon to the one that comes with the Inc 2 I will be all set. I have tried Ninjamorph and flashing a zip file but cannot get it changed.
Click to expand...
Click to collapse
The icons you're looking for are in the SystemUI.apk, in res/drawable-hdpi. The pngs you are looking for are called stat_sys_data_*_3g_lte.png
You should be able to extract those images (should be 3-4), and remove the "_lte" from the filenames, and then drag these images back into the res/drawable-hdpi folder, and use adb or root explorer to push the SystemUI.apk to the data/*-System/system.app folder (look into how the rom is set up, that's just a default path). Once you have it in place, reboot, and you should be set.
Make a nandroid before doing this, as I'm no themer lol. If you have any trouble, let me know and I'll hook you up.
wdfowty said:
The icons you're looking for are in the SystemUI.apk, in res/drawable-hdpi. The pngs you are looking for are called stat_sys_data_*_3g_lte.png
You should be able to extract those images (should be 3-4), and remove the "_lte" from the filenames, and then drag these images back into the res/drawable-hdpi folder, and use adb or root explorer to push the SystemUI.apk to the data/*-System/system.app folder (look into how the rom is set up, that's just a default path). Once you have it in place, reboot, and you should be set.
Make a nandroid before doing this, as I'm no themer lol. If you have any trouble, let me know and I'll hook you up.
Click to expand...
Click to collapse
Ok you really confused me there LOL
wdfowty said:
The icons you're looking for are in the SystemUI.apk, in res/drawable-hdpi. The pngs you are looking for are called stat_sys_data_*_3g_lte.png
You should be able to extract those images (should be 3-4), and remove the "_lte" from the filenames, and then drag these images back into the res/drawable-hdpi folder, and use adb or root explorer to push the SystemUI.apk to the data/*-System/system.app folder (look into how the rom is set up, that's just a default path). Once you have it in place, reboot, and you should be set.
Make a nandroid before doing this, as I'm no themer lol. If you have any trouble, let me know and I'll hook you up.
Click to expand...
Click to collapse
Do I do the extraction on my PC or on the phone itself. Also, where would I get the files to extract as this ROM does not have the 3G icons I wan and I would not be able to extract from this ROM
kevman8396 said:
Do I do the extraction on my PC or on the phone itself. Also, where would I get the files to extract as this ROM does not have the 3G icons I wan and I would not be able to extract from this ROM
Click to expand...
Click to collapse
No bud put the apk on your pc's desktop, extract it and inside the extracted folder go to the path that fowty named out and look for the exact file names as well. Rename them like he said. Now open the apk on your desktop...the actuall apk and drop the renamed images into there proper path. and then push that apk back to data/*-System/system.app
Just wanted to report that emmc mount to pc does not appear to work for me, either. Emmc music works fine.
Just curious, joelz kingdom rom appears to have a modified mail.apk that bypasses the Exchange mail security. If I wanted to apply that apk to this rom, should it work? I tried replacing just the mail.apk, and the app opens, but fc's when I select the mail provider to add. Just wondering you guys' thoughts, didn't know if I needed to also copy other files, or if it just won't work. Thanks.
wildstang83 said:
No bud put the apk on your pc's desktop, extract it and inside the extracted folder go to the path that fowty named out and look for the exact file names as well. Rename them like he said. Now open the apk on your desktop...the actuall apk and drop the renamed images into there proper path. and then push that apk back to data/*-System/system.app
Click to expand...
Click to collapse
Ok I found the four icons in a systemui.apk folder that I had on the SD card of the phone. How do I get the renamed icons back onto the phone? Do I do it on the SD card or the phone's internal memory. On this stock 3.o ROM, I cannot mouth the phone's internal memory to my PC
kevman8396 said:
Ok I found the four icons in a systemui.apk folder that I had on the SD card of the phone. How do I get the renamed icons back onto the phone? Do I do it on the SD card or the phone's internal memory. On this stock 3.o ROM, I cannot mount the phone's internal memory to my PC
Click to expand...
Click to collapse
Sorry for the misspelled word "mount"
kevman8396 said:
Sorry for the misspelled word "mount"
Click to expand...
Click to collapse
That's what the edit button is for
The easiest way to do this is on a pc with 7zip, as you just drag and drop and done. If you can shoot me the SystemUI.apk from the rom I'll get it set up for you.
wdfowty said:
That's what the edit button is for
The easiest way to do this is on a pc with 7zip, as you just drag and drop and done. If you can shoot me the SystemUI.apk from the rom I'll get it set up for you.
Click to expand...
Click to collapse
How do I get the systemui.apk from the ROM if I cannot mount the emmc to my pc. The system info will not be on the SD card correct?
If the rom is on your computer open the rom in 7zip and find it that way..
Sent from my ADR6300 using XDA Premium App
thebasuke said:
If the rom is on your computer open the rom in 7zip and find it that way..
Sent from my ADR6300 using XDA Premium App
Click to expand...
Click to collapse
Ok and which ROM am I getting the systemui.apk from. The one I am currently running does not have the Inc 2 3G icons or does it?
Sorry to be off topic bit the Inc 2 thread is locked, has development ceased on that?
Sent from my ADR6300 using Tapatalk

Modify SGS3 Photowall Livewall paper to add own pictures

Hi Devs,
I was wondering if there is a way to modify the photowall live wallpaper and add your own pictures, I tried to look for a guide & modified app, however no luck.
Found 1 modified apk with batman pics but that didnt work.
Please let me know if anyone has been able to modify or is working on this.
Regards,
[email protected]
If at beginning of your title you put " (REQUEST) "then you might get better and faster answer.
Sent from my SGH-I897 using xda premium
Steps To Modify SGS3 Photowall Live Wallpaper
Hi All,
I had tried multiple roms and when used the Photowall Live Wallpaper, I could not point it to the photo gallery to use my own pics. The gallery would never open and I had to do with the default pics which came with the SGS3. (Not sure if anyone has faced this issue).
After playing around with the apk files I did find a way to use my own pics in the PhotoWall Live Wallpaper. I hope you would like this.
A: Uploading your pictures in the Photowall.apk file.
1. Select a maximum of 8 pictures that you wish to use in the Photowall and move them to a folder on your desktop.
2. Rename the 8 pictures as follows: g1p1.jpg / g1p2.jpg / g1p3.jpg / g1p4.jpg / g1p5.jpg / g1p6.jpg / g2p1.jpg / g2p2.jpg
3. Extract the Photowall.apk from ICS ROM onto a folder on your desktop. (I used RemICS v1.3, haven’t tried this is on any other ROM).
4. Open the apk file using winrar. (Do not extract, just open)…. Navigate to the PhotoWall.apk\res\raw folder.
5. You should be able to see the files as shown in the screenshot 1.jpg
6. Click on “Add” and navigate to the folder where you have stored the pictures (remember to rename them as mentioned in step 2).
7. Select the files and click “OK”. This will replace the original files in the Photowall.apk.
8. Once this is done, exit/close the apk file opened in winrar.
You can try installing this file directly by copying it to your phone, however that didn’t work on my phone.
B: Uploading your customized Photowall.apk file in your ROM. (Tested on RemICS v1.3).
1.Open the Rom that you wish to flash (I used RemICS UX v1.3) using winrar (do not extract)
2.Navigate to \data\app folder.
3.Click on “Add” and navigate to the folder where you have saved your customized Photowall.apk. (Make sure that the name is “Photowall.apk”).
4.This will replace the original Photowall.apk with your customized file.
5.Exit and save the zip file.
6.Use the new edited Rom and copy it to the root of your “Internal SD” card.
7.Reboot the phone to “Recovery” and flash the new Rom. (I did not lose my data & settings as I did not wipe cache partition or Data/Factory, however this may or may not work for you. To be on a safer side please backup your data and applications. I will not be responsible for any data loss or bricked devices while trying this procedure. Try at your own risk.).
You can watch the video on the link below (sorry for the poor quality)
http://www.youtube.com/watch?v=Yd2VCzvphu8&feature=youtu.be
Special thanks toTeam RemICS for the beautiful Rom.
If you liked my work, please use the thanks meter.
- Disclaimer -
This product/steps is/are free to use at your own risk. I take no
responsibility for any conflict, fault, data loss or damage caused by this procedure.
No warranties, implied or otherwise, are given if you agree to use this product.
No problems were found while testing this on my Samsung Captivate device. your experience may vary.
maqbulsayed said:
B: Uploading your customized Photowall.apk file in your ROM. (Tested on RemICS v1.3).
1.Open the Rom that you wish to flash (I used RemICS UX v1.3) using winrar (do not extract)
2.Navigate to \data\app folder.
3.Click on “Add” and navigate to the folder where you have saved your customized Photowall.apk. (Make sure that the name is “Photowall.apk”).
4.This will replace the original Photowall.apk with your customized file.
5.Exit and save the zip file.
6.Use the new edited Rom and copy it to the root of your “Internal SD” card.
7.Reboot the phone to “Recovery” and flash the new Rom.
Click to expand...
Click to collapse
I think you over complicated the install process by a bit...
Why not just use a file explorer with root permissions and place the new Photowall.apk back to /system/app where it actually belongs, reboot the phone and be done with it? (/system/app is where live wallpapers that come with the phone are located by default, not /data/app)
As you can see here on my GS3, two of the several live wallpapers (phase beam and photo wall) are in /system/app
And these are the proper permissions for the apk
I tried that, but that wont work..... that the reason i mentioned
" You can try installing this file directly by copying it to your phone, however that didn’t work on my phone. "
Unfortunately wht u menitioned didnt work for me...
correct me if I am wrong... did u mention SG3... for SG3, you dont need to modify the photowall.apk, if you go to the wallpaper settings you can select pics from your gallery..
maqbulsayed said:
I tried that, but that wont work..... that the reason i mentioned
" You can try installing this file directly by copying it to your phone, however that didn’t work on my phone. "
Unfortunately wht u menitioned didnt work for me...
correct me if I am wrong... did u mention SG3... for SG3, you dont need to modify the photowall.apk, if you go to the wallpaper settings you can select pics from your gallery..
Click to expand...
Click to collapse
Yes, I understand that on the SG3 you don't need to do this, but on a Captivate, I don't see why you wouldn't be able to place it in /system/app and still have it work.

Categories

Resources