Well... I wanted to make my own modded version of the stock X10 mini lockscreen. I like the design of the stock but it doesn´t match the theme I´m using. So with a lot of help from dj_deez and draco_ag I made my own mod.
This is what I did: I made a backup of my "framework-res.apk" with Root Explorer and copied it to my SD. I connected to my PC and moved the file to a folder on my PC. For safety I made another backup of the file once on the PC and put it away for safe keeping.
I opened my "framework-res.apk" with 7zip (ONLY 7zip!!!) and navigated to the folder "res/drawable-ldpi" and left it open. In a explorer window I had the folder open with the modded files corresponding to the "res/drawable-ldpi". I dragged and dropped the files into the open 7zip window and answered YES. In 7zip I went back to the "res"-folder and opened "drawable-land.ldpi". There I dropped the files in my corresponding folder on my PC and answered YES. To be sure I backed up in 7zip until I was back to the root of the "framework-res.apk" and then closed 7zip.
For me the safest way to get the modded "framework-res.apk" to the phone was to download the theme I was using and open it with 7zip. There I replaced the "framework-res.apk" the same way as above and then used xRecovery to "flash" it to the phone. For me this was the only way. How You do it is up to you!
It has been mentioned before... ONLY USE IF YOU KNOW HOW!!!! I had to get help to understand this... so I can´t give any support myself!
RAR contains resources (png´s) ONLY.
All credits go to "dj_deez"" for helping me and to "draco_ag" for giving me the original sliders to play with.
Download resources: http://www.mediafire.com/?e46dc6ncbynae5r
Very nice
Related
Okay Guy's i want to change the Color of the Lockscreen Look of this sliding Tabs. In default it is green and i want to put it in a more like cyan color. Is there any Tutorial? Or could someone tell me which files i must edit and where the files are located?
Greets
I want that too but without widgetlocker or another program.
How can i edit framework-res.apk?
I've copied the frameworkres apk via root explorer to my sdcard, put it on my pc, and unpacked it via APK Manager, i see the icons now, i can edit the png's right? How do i get the frameworkres apk back and working?
Widget locker never worked on my optimus. :/
k i've managed it by my own, it's working now.
It's really easy, copy the /system/framework/framework-res.apk via root explorer to your sd, and get it on your pc.
On your PC rename it: framework-res.apk.zip and open it, unextract the folder you want, and edit the png's you need with photoshop or stuff like that, then back in the zip, rename it back, back to the phone with it, rename the old file in system and put the new one in it. Finished.
underdog2k9 said:
k i've managed it by my own, it's working now.
It's really easy, copy the /system/framework/framework-res.apk via root explorer to your sd, and get it on your pc.
On your PC rename it: framework-res.apk.zip and open it, unextract the folder you want, and edit the png's you need with photoshop or stuff like that, then back in the zip, rename it back, back to the phone with it, rename the old file in system and put the new one in it. Finished.
Click to expand...
Click to collapse
Or you can do it with apk manager.But that's also a good way to do it.
I got this figured out already, sorry about that.
Who ever thanked me, I wasn't posting a guide but a question.
I am trying from a fresh firmware base to learn from scratch but no idea how to get that framework to compile correctly.
did you install framework first?
Code:
apktool if framework-res.apk
Easy
I had problems with the apk tool and recompiling. The way I ended up doing it is:
I didnt decompile the framework-res.apk.
rename the file framework-res.apk.zip
open it with 7zip.
Extract the files you are wanting to work on
Do what ever work on the files you need done
Drag and drop the files back in the directories they go into while file is open in 7zip
Close 7zip
Rename file back to framework-res.apk
push to phone with adb
No decompile or recompile.
Hope this helps
Chadw1985 said:
I had problems with the apk tool and recompiling. The way I ended up doing it is:
I didnt decompile the framework-res.apk.
rename the file framework-res.apk.zip
open it with 7zip.
Extract the files you are wanting to work on
Do what ever work on the files you need done
Drag and drop the files back in the directories they go into while file is open in 7zip
Close 7zip
Rename file back to framework-res.apk
push to phone with adb
No decompile or recompile.
Hope this helps
Click to expand...
Click to collapse
If you just want to modify one of the 'normal' XML files or an image then that approach will work fine. The problem is he wants to edit the bool.xml file and that is contained in the 'resources.asrc' file and you need to decompile it first.
I am in the same situation although someone managed to edit the file for me and recompile it so I got there in the end, just not by doing it myself.
I followed the instructions you describe and the file never recompiled properly - or at least my device never booted with the one I recompiled
Try it like this:
1. Place APK in "place-apk-here-for-modding"
2. Choose "9" to Decompile
3. Grab resource "resources.arsc" from framework-res.apk
4. Do my edit in projects\framework-res.apk\res\values\bools.xml
5. Compile - Yes (system app) - Yes (copy files)
6. Go to "keep" folder and delete "resources.arsc" and the bools.xml file
7. Press any key
8. Either push by ADB or Root Explorer or Flash
nickiberli said:
Try it like this:
1. Place APK in "place-apk-here-for-modding"
2. Choose "9" to Decompile
3. Grab resource "resources.arsc" from framework-res.apk
4. Do my edit in projects\framework-res.apk\res\values\bools.xml
5. Compile - Yes (system app) - Yes (copy files)
6. Go to "keep" folder and delete "resources.arsc" and the bools.xml file
7. Press any key
8. Either push by ADB or Root Explorer or Flash
Click to expand...
Click to collapse
I have tried exactly like this and it didn't work for me. I downloaded lots of different APK tools and tried them all - there were comments about using older versions of apktool.jar etc. I kept getting different sizes of the output file depending on which one I used. I gave up in the end as someone edited the file for me and it was only one specific entry in bool.xmls I wanted changing. As far I could tell we were both doing exactly the same thing.
The last thing I said I was going to do was wipe the PC I was attempting to do this on. I never got round to doing it... I'd be interested to know why I could never get this working though
Andy
Give me the framework and tell me what u want to do.
I will do that for u
Btw is the framework ICS based?
Sent from my Micromax_A70 using Tapatalk 2 Beta-4
You have resigned?
Greets!
Hello
How can i get back "AllShare Play" for my Galaxy S3? I installed another firmware and a rom and don't really know when it was deleted. I tried to find a solution but I couldn't find anything to solve the problem.
Cance
Go find a Stockish Rom that still has the bloatware........and just extract the System/app folder and put the apks that you want back into your current system/app folder.
Yeh useful tools are bloatware
Thanks for the fast answer but I don't know how to extract the folder when I have a ROM with the needed APK. Can I do this on my computer or do I have to do this on my phone?
Download the Rom to your phone or Computer.
Extract the Rom using a File explorer on your phone or a 7zip/winzip program on your PC and go through the folders...Find the
System/App folder it will be filled with every system app you can need......pick out the apks you want to add into your current set up.
save them to a folder and put them back on your phone....or if on your phone just copy them from the extracted location and navigate back to your Local System/App folder, make the Folder R/W so you can add and remove the system files.....and just paste them back in your current system folder overwriting the current ones. and set the premission to match the rest of the folder most of the time i think its rw-r-r
and reboot. sounds long.....but it only takes me 2 min to copy and replace the files and reboot.
its really simple once you do it a couple times.
hope this helps
Thank you very much, didn't know that it is this easy. I never opened the zip file of a rom ^^
What's the name of the apk? I don't see an obviously named app?
Hi,
So the situations is like this:
Just got a new LG Nexus 4, NFC enabled, GREAT!!!!
But then I start using it, and the NFC sound (everytime the phone reads a nfc-tag it makes an sound) annoys me beyond belief.
So I start looking around, it seems there's no solution, except recompiling the app.
So I learn how to compile an app (noob here), using this guide: http://forum.xda-developers.com/showthread.php?t=1860115
I'm up to the point where my apk is decompiled, and I have modified the sound files, located in my decompiled files folder respectively at res/raw/start.ogg & res/raw/end.ogg.
I modded the files using audacity, lowering the volume to zero, used them to replace the original .ogg files. The file size is a bit smaller as the original ones (1Kb difference).
Next I use the recompile command: apktool b decompiled_apk_folder_with_modified_files modded_apk_file.apk
So now I have the new nfc apk file, called NfcNci.apk, with which I replace the original file in /system/app.
Next up I reboot my phone into recovery, wipe all cache and dalvik cache, and reboot again.
First thing that pops up on my screen is a force-close message, saying that the nfc-service force closed.
Anyone who can tell me what I did wrong? Or how I can fix this?
Attached are: my decompiled-files-folder (compressed to zip)
the original NfcNci.apk file
my modded NfcNci.apk file which causes the FC's.
Any help will be greatly appreciated!!!!
S.
Looks like you're still on 4.2
The latest NfcNci.apk has some more files.
And your apk is missing the META-INF folder.
I guess that this is the problem.
But you should use "adb logcat" to ensure we're on the right track.
Micky
1 thing i would recomend is not using the actual apk you just built. instead, open your new apk with a file manager such as 7zip and remove your newly compiled files out of it, then put them into the original apk from your rom using 7zip as well! thus keeping the apk's original signature
try to copy the least amount of files from one to another, so to be safe only pull out your new .ogg files, then put them into your original apk! hope this helps
ldrifta said:
1 thing i would recomend is not using the actual apk you just built. instead, open your new apk with a file manager such as 7zip and remove your newly compiled files out of it, then put them into the original apk from your rom using 7zip as well! thus keeping the apk's original signature
try to copy the least amount of files from one to another, so to be safe only pull out your new .ogg files, then put them into your original apk! hope this helps
Click to expand...
Click to collapse
Hi, I tried this, installed 7zip, and double clicked the original apk, I opende the res/raw/ directory, and only copied the files I was using: start.ogg & end.ogg. Then I close 7zip, and send the file to my phone. But as soon as I it them to /system/apps on my phone, and reboot to recovery, wiping the dalvik cache. I get FC's on reboot (NFC-service has FC'd).
Any reasons for this?
Thanks for the help, both of you!
BTW: I'm on Android 4.3 JB
Hello,i find an easiest way by searching google to edit apk's for theming,modifying etc so i am sharing
by this trick more user can make and share thier own mods(system ui,secsettings,ROMS etc)
what we need:
root explorer,rooted phone,sib icon editor
steps:
take an apk ex-system ui.apk from system>app>systemui.apk
hold it then select Extract all
then got to extracted folder i.e sdcard0>speedsoftware>Extracted>Systemui
then in systemui folder
TO edit or change PNGS>
systemui>res>drawable-ldpi OR drawable-mdpi OR drawable-sw320dp-ldpi>Edit what u want
then
go back and hold systemui folder then select zip this folder
then go back and go to archieves in speed software folder
then hold systemui.zip and select rename then change extension to .apk
like-systemui.apk
Done
just copy this apk to sytem>app folder replace it
thats all
finish
.:fingers-crossed::good:
plz thanks me.
Thanks
That's useful, thank you! :good:
good job