Hello!
I am not new to these forums.. I am a frequent reader, but I am not much of a poster.
I have a request that I think will benefit alot of galaxy tab 10.1 users running the stock roms.
Would anyone be able to /interested in modding the android.policy.jar file PhoneWindowManager.smali file to enable longpress back to kill foreground app? like the function we get in CM and AOKP roms? There is no need to have a setting for it in system settings. Just an android.policy.jar we could flash if we want the function enabled..
I have found this thread http://forum.xda-developers.com/showthread.php?t=1969499 discussing and explaining how to do this.
I have tried to do this myself, but either it just won't work or I end up in a bootloop. I am new to editing .smali files and understanding their buildup.. So I am asking here to see if anyone is willing to take a look and help me out.
My guess is that I am not the only one who wants this in the stock rom, and I hope that someone is willing to do this to the benefit of not only me but everyone else running the stock ICS and JB roms missing this function.
I am running the "something" JB stock rom by smaw51 with the extended power menu. I will add a link to my android.policy.jar if anyone wants to take a look at it.. If not edit it, maybe explain what strings to change in the .smali file in order to get it working. I know we will probably need a custom .smali with the kill function aswell if the one in this thread won't work...
Download android.policy.jar
Kind regards
Michael
up for this =)
lampz said:
up for this =)
Click to expand...
Click to collapse
I have been in contact through PM's with tdunham... the author of this thread: http://forum.xda-developers.com/showthread.php?t=1971712 and he has agreed to take a look at our android.policy.jar
I will get back with whatever he comes up with
MichaelGroth said:
I have been in contact through PM's with tdunham... the author of this thread: http://forum.xda-developers.com/showthread.php?t=1971712 and he has agreed to take a look at our android.policy.jar
I will get back with whatever he comes up with
Click to expand...
Click to collapse
I finally got this working after numerous edits and tests, and with lots of help from Mirko ddd, tdunham and lyapota.
Does anyone want me to post a tutorial on how to do this?
Will require some modification to the android.policy.jar file.
Might require decompiling and getting a string from framework-res.apk values/public.xml
(Optional) in order to get a toast message saying "Application Killed." we will need to edit some strings in framework-res.apk values/strings.xml and recompiling framework-res.apk using APKTool or Virtuous Ten Studio. If we don't change this we still do get a toast, but it will then say "force app to close", wich (in my opinion) didn't look very stock.
Also, I have only tested this on JB, but it might be very similar for ICS.
Would really appreciate this function!
MichaelGroth said:
I finally got this working after numerous edits and tests, and with lots of help from Mirko ddd, tdunham and lyapota.
Does anyone want me to post a tutorial on how to do this?
Will require some modification to the android.policy.jar file.
Might require decompiling and getting a string from framework-res.apk values/public.xml
(Optional) in order to get a toast message saying "Application Killed." we will need to edit some strings in framework-res.apk values/strings.xml and recompiling framework-res.apk using APKTool or Virtuous Ten Studio. If we don't change this we still do get a toast, but it will then say "force app to close", wich (in my opinion) didn't look very stock.
Also, I have only tested this on JB, but it might be very similar for ICS.
Click to expand...
Click to collapse
Can u post your modded android.policy.jar file
txtmikhail said:
Can u post your modded android.policy.jar file
Click to expand...
Click to collapse
It might not work for your device.. Mine is for 4.1.1 [JB] 8010..
Tutorial is live..
Go here: http://forum.xda-developers.com/showthread.php?p=36102714
Related
Hope posting this here is OK- I never get answers in Q&A...
I have made & modified themes for the SE stock 'rom' and as you know the framework-res and system apks do not need to be recompiled or signed when just exchanging images.
Is it the same for CM 6 'roms'?
I am looking into theming Wolfbreak's rom and noticed the framework-res that I'm using as a base says "signed by SignApk" when I open it in winrar.
Do I need to recompile & sign or not?
Thanks in advance!
AyDee said:
Hope posting this here is OK- I never get answers in Q&A...
I have made & modified themes for the SE stock 'rom' and as you know the framework-res and system apks do not need to be recompiled or signed when just exchanging images.
Is it the same for CM 6 'roms'?
I am looking into theming Wolfbreak's rom and noticed the framework-res that I'm using as a base says "signed by SignApk" when I open it in winrar.
Do I need to recompile & sign or not?
Thanks in advance!
Click to expand...
Click to collapse
Hi,
You dont need to sign regardless of OS if you are only swapping images for system files. But remember to use optimized pngs and zipalign as final step to minimize resources consumption.
If you are modding any resources.arsc you need to decompile to do that and recompile and sing accordingly.
Ok, thanks- just making sure... the winrar message threw me off...
AyDee said:
Ok, thanks- just making sure... the winrar message threw me off...
Click to expand...
Click to collapse
try 7-zip.....hope seeing themes from u soon....
Hi XDA
Im trying to make a battery mod for my HTC Sensation, but i need some help.
I have the framework-res.apk for my rom (Android Revolution HD) and 100 pngs.
I need help with compiling the stat_sys_battery.xml so it uses all the 100 pngs instead of htcs 7
I also need to know if its okay to just replace the files in the framework-res.apk using 7-zip, and replace that with the framework-res.apk in a working battery mod i downloaded, since i dont know how to make the update script
Thank you for you help
frederikh said:
Hi XDA
Im trying to make a battery mod for my HTC Sensation, but i need some help.
I have the framework-res.apk for my rom (Android Revolution HD) and 100 pngs.
I need help with compiling the stat_sys_battery.xml so it uses all the 100 pngs instead of htcs 7
I also need to know if its okay to just replace the files in the framework-res.apk using 7-zip, and replace that with the framework-res.apk in a working battery mod i downloaded, since i dont know how to make the update script
Thank you for you help
Click to expand...
Click to collapse
Sorry, but it's a bit more complicated than just opening the .apk in 7-zip or winrar. You need to decompile the .apk... the easiest way is to use a program called apk manager. Search on XDA, and you will find it.
Then, in the decompiled folder, you will have a /drawable/ folder. You need to re-code the stat_sys_battery.xml to include all the pngs, as well as the zzz_stat_sys_battery_1.xml.
In addition to the 100 pngs you already have, you will also need some charging animation icons and a stat_sys_battery_unknown.png icon that all match your battery icon theme.
After redoing the 3 xmls in the drawable folder, and replacing all the necessary pngs, you then need to recompile and sign your apk with the new files.
I've attached a sample of the 3 xmls for you to use as a reference.
If you are looking to get a battery mod the quick and easy way, then I have a bunch in a thread HERE. If you are looking to learn how to do it yourself (Which I highly recommend for the learning experience it will provide), then search around and look for some guides on compiling and decompiling to help you on your way. You can also download any of the battery mods from the thread I linked to, and decompile them for examples of a working framework-apk that has been modded.
Keep in mind, when experimenting with this, you ABOSLUTELY WILL cause your phone to not be able to boot up. Make sure you have a nandroid backup ready.
Good luck.
Thank you!
Wow, this is gonna take a bit longer than i though B)
Btw, i was using one of your mods, but i found that it wasnt smooth enough + the icon didnt have enough detail
frederikh said:
Hi XDA
Im trying to make a battery mod for my HTC Sensation, but i need some help.
I have the framework-res.apk for my rom (Android Revolution HD) and 100 pngs.
I need help with compiling the stat_sys_battery.xml so it uses all the 100 pngs instead of htcs 7
I also need to know if its okay to just replace the files in the framework-res.apk using 7-zip, and replace that with the framework-res.apk in a working battery mod i downloaded, since i dont know how to make the update script
Thank you for you help
Click to expand...
Click to collapse
go to first link on my sign download a batt mod open framework and use it...
lalitsehgal21 said:
go to first link on my sign download a batt mod open framework and use it...
Click to expand...
Click to collapse
Thanks, but no thanks B)
I think will try to learn how to do it my self
Mod is down: The new thread: HERE
Moderators, feel free to delete this post.
Good Start Man, Hope someone will advise very soon.
Thanks for your effort.:good:
Only de- and recompiling will not really lead to anything.
You have to solve each error here step by step. And as you can see there are many entries missing when recompiling against a framework from a different device and/or Android version.
This means that resolving the missing entries (like simply deleting them in each file) won't help because even if the recompile succeeds it will never run because of errors in the dependencies of the apk etc..
you should specify where you've changed
Tried almost everything but i cant get it working. Also tried VRTheme ZIP but it doesnt work too, it doesn't recognize the 9.png files and show the UI stretched... This is not my work, its for Not-i, Majdinj, Zai89 and other amazing themers for this amazing device (sorry if i forgot other users). I've seen it in S2 forums (Themes and Themed roms too) with the TW2013 UI for 4.1.2 so i dont think it will be very hard to an experienced themer. Thanks for the support. Good Luck to everyone!
You are compiling a a 4.2.2-based apk file with 4.1.2 installed framework, if you see in another thread they must have same version or it is themed apk file.
Can just use X-plore open apk as zip file n copy all the themes but not xml to another apk open as zip file.
not much changes wif just a framework.res.apk n options is alittle too small to fit it..
so no point to make a mod just framework.res.apk
@galaxynote2
The pictures in the attachment aren't useful!
If you want to change the png's, then take them from the original apk out!
Don't decompile it!
So, never use 9.png's from decompiled apk!
Try it again with the 9.png's from the original apk. Just copy them from the apk to your new one. Don't decompile it.
If you try to add some 9.png (from decompiled source), then they looks ugly with the vrtheme system...
(and can't build it with apktool too...)
@tkari4 thank you for the answer! I will try again now..
galaxynote2 said:
@tkari4 thank you for the answer! I will try again now..
Click to expand...
Click to collapse
@galaxynote2
Not working, sorry never made something like that.
The solution for your problem:
Install the 4.2 framework-res.apk (command in the CMD window: apktool if c:/framework-res.apk)
Now decompile your 4.2 framework-res.apk
From the decompiled folders you can add the 9.png's to your 4.1 farmework-res.apk
Install the 4.1 framework-res.apk again
Build your apk and so must work...
tkari4 said:
@galaxynote2
Not working, sorry never made something like that.
The solution for your problem:
Install the 4.2 framework-res.apk (command in the CMD window: apktool if c:/framework-res.apk)
Now decompile your 4.2 framework-res.apk
From the decompiled folders you can add the 9.png's to your 4.1 farmework-res.apk
Install the 4.1 framework-res.apk again
Build your apk and so must work...
Click to expand...
Click to collapse
@tkari4 some progress (attached files). That is my result putting the non-decompiled images in a vr-theme:
Popups are still bugged, 9.png resizing doesnt worked.
Action bars themes (Holo Light and Holo Dark) are now working!
Almost all buttons, checks and ticks are now converted and working.
What to do:
Fix the bugged popups
Convert Text fields (wich are 9.png too so its the same as the popups problems...)
__________________________________________________________________________________________
Can you provide me an S4 framework? Im using the Touchwiz 2013 theme for 4.2.2 Galaxy S3 flasheable zip for converting. I cant find the S4 framework-res to download.
galaxynote2 said:
@tkari4
Can you provide me an S4 framework? Im using the Touchwiz 2013 theme for 4.2.2 Galaxy S3 flasheable zip for converting. I cant find the S4 framework-res to download.
Click to expand...
Click to collapse
Yeah, must have the original apk and decompile it with the 4.2 framework.
You can find it here: http://forum.xda-developers.com/showthread.php?t=2272392
tkari4 said:
Yeah, must have the original apk and decompile it with the 4.2 framework.
You can find it here: http://forum.xda-developers.com/showthread.php?t=2272392
Click to expand...
Click to collapse
@tkari4 Ok, downloaded... (Slow connection).
So, first i need to install the recently downloaded framework in apktool and then decompile my 4.1.2 Note Framework?
Nevermind! Recompiled without problems! I've modified some pngs to se if it works and worked, so now im porting the fully theme. Thank you!
galaxynote2 said:
After all S4 mods for our Note, this is the last touch to have the new Touchwiz Interface in this amazing device.
Click to expand...
Click to collapse
You are gonna be rocked,,
Waiting for download link, As I understand without TW interface out grear Note is useless.
Thanks for your effort and share.:good:
mjrifath said:
You are gonna be rocked,,
Waiting for download link, As I stand without TW interface out grear Note is useless.
Thanks for your effort and share.:good:
Click to expand...
Click to collapse
Could you don't quote the whole thread next time please? Just click the reply button thats all
Juhan Jufri said:
Could you don't quote the whole thread next time please? Just click the reply button thats all
Click to expand...
Click to collapse
Thanks for the info mate. Post edited:laugh:
When you realese this mod?
____________
YES WE SCAN!!!
This thread has to be closed since no updates from OP or there is no any valid MOD
mjrifath said:
This thread has to be closed since no updates from OP or there is no any valid MOD
Click to expand...
Click to collapse
for people who can't wait , you can try flashing this one
http://forum.xda-developers.com/showthread.php?t=2297906
el5arsawi said:
for people who can't wait , you can try flashing this one
http://forum.xda-developers.com/showthread.php?t=2297906
Click to expand...
Click to collapse
Thats for 4.2.2
Please op just provide the s4 style launcher
Sent from my GT-I9100 using xda app-developers app
Didact74's Multi-Tool v2.0
Hello everyone, I have been away from the scene for a little while due to an unGodly work schedule. Since work is slowing just a tad, I figured I would ease back in by trying to finalize my MULTI-Tool that I started a while back. I know there have been a few others who have dropped similar programs recently but I couldn't bare to just throw this thing away, so here it is.
A few things this program will do.....
Pull Files
Push Files
Deodex Files
Odex Files
Pull BootClassPath Info
Pull and set Framework files
Pull Partition Info
Pull Partition Images
Reboot Functions
Logcat Functions
And several variations of each of the above.
Right now its in a BETA stage because I am sure some issues will surface due to the fact that I cant test everything this can do myself without geting side tracked. Give it a whirl, post some feedback, and offer up some ideas that I can add to it if you want. Its a simple Batch File, no fancy GUI or anything yet. Maybe down the road....
A few things to keep in mind.....
This tool is meant for intermediate level developers who are comfortable
reading, writing, and making basic changes to thier phone. There is a lot
of stuff in this program and I have not been able to fully test all the
different possible scenarios. I ask that you have a working backup of your
phone before using this program. I highly doubt you will need it, but I
have to CMA!
Additionally, I ask you read each mini-tutorial at the start of each option
screen. It will give you some direction on how to proceed. If you come
across any issues or problems please let me know and I will do my best to
resolve them.
I am not a programmer! I know just enough JAVA, C++, and batch
script to scrape by. I am absolutley certain there are more efficient ways
to write the code in this program. Feel free to do so if you like.
ENJOY!
XDA:DevDB Information
Didact74's Multi-Tool, Tool/Utility for the Verizon Samsung Galaxy S 5
Contributors
Didact74
Version Information
Status: Beta
Created 2014-07-08
Last Updated 2014-07-26
Change Log
Initial Release
v2.0.0
Pull Files
Push Files
Deodex Files
Odex Files
Pull BootClassPath Info
Pull and set Framework files
Pull Partition Info
Pull Partition Images
Reboot Functions
Logcat Functions
v2.0.1
Added APKTool v2.0
Added baksmali v2.0.3
Added smali v2.0.2
Fixed Compiling Batch errors associated with older APKTool
v2.0.2
Fixed some diectory errors
Fixed some Odexing errors
v2.0.3
Home screen is streamlined
Added the option to deodex entire Odexed Rom from the Deodex menu
Added more efficient Deodex code
Didact74 said:
I see a few downloaders....lol. Hopefully a few will get some use out of it. I got a few PMs asking if they can use it for other devices. I know it works for the S5 and the Xoom, other than that I dont know. Its pretty universal I would assume, but let me know what you find out. Dont be worried about posting up your questions here.....it will help others if you do.
Click to expand...
Click to collapse
Where is the download link?
Misterxtc said:
Where is the download link?
Click to expand...
Click to collapse
See screenshot....
Didact74 said:
See screenshot....
Click to expand...
Click to collapse
Thanks, that looks great. I'll definitely give it a try. I was searching for another multi-tool this morning and it looks like I found a gem here.
Didact74 said:
Hello everyone, I have been away from the scene for a little while due to an unGodly work schedule.
Click to expand...
Click to collapse
welcome back didact!! it has been forever since i have seen you in these parts! did u get yourself an s5?
BeansTown106 said:
welcome back didact!! it has been forever since i have seen you in these parts! did u get yourself an s5?
Click to expand...
Click to collapse
Thanks Beans! Yes, work was nice enough to give me a choice of Android or Apple.....so here i am .
I am hoping to get into some modding in the coming weeks.
Recompiling doesn't work for me. I copied the decompiled framework-res.apk and the deodexed file to the load/framework folder and I get a file not found error. I also tried systemui and it said it compiled but there was no compiled file to be found.
Misterxtc said:
Recompiling doesn't work for me. I copied the decompiled framework-res.apk and the deodexed file to the load/framework folder and I get a file not found error. I also tried systemui and it said it compiled but there was no compiled file to be found.
Click to expand...
Click to collapse
Okay.....i will check in the morning and try to replicate the error. Thank you.
Didact74 said:
Okay.....i will check in the morning and try to replicate the error. Thank you.
Click to expand...
Click to collapse
Ok, I'm running Windows 8.1 if that matters.
I cant test Win8, I am running Win 7 x64 so I will need other feedback for that one.
I fixed an issue with the Batch picking out an .apk in the Framework folder so that should resolve part that issue. Originally I set all framwork folders up to recognize .jar files only, not remembering there are two .apks (framework-res.apk and twframework-res.apk) that reside in the framework folder as well. I have fixed that issue. The other part of that problem is I was not able to recompile framework-res with my version of apktool. All the other files I tried decompile and recompile with no issues. Not sure if there is a known issue recompiling some files in KitKat or not. If there are I will need to find out what they are and build them in to the program.
I was able to decompile and recompile SystemUI with no issues so I am having an issue duplicating that error. When recompiling and decompiling there are several options to choose from. Single files, entire directory, certain folders, etc. When you are performing these functions, which option are you selecting in the menu?
Have you tried any other features?
Didact74 said:
The other part of that problem is I was not able to recompile framework-res with my version of apktool. All the other files I tried decompile and recompile with no issues. Not sure if there is a known issue recompiling some files in KitKat or not. If there are I will need to find out what they are and build them in to the program.
Click to expand...
Click to collapse
What version of apktool did you use? I know that I was not able to use 1.5.2 on my kitkat (S3) framework-res and had to switch to a 2.0+ version to get it to work
CNexus said:
What version of apktool did you use? I know that I was not able to use 1.5.2 on my kitkat (S3) framework-res and had to switch to a 2.0+ version to get it to work
Click to expand...
Click to collapse
I am indeed using 1.5.2. This should be a simple fix then. I will locate 2.0 and add it to the setup.
Thank you sir!
Okay v2.0.1 is up with updated APKTool.
Compiling should be error free now....hopefully
Awesome work
v2.0.2 is up.
I had to post a download link in the changelog thread because the DEV Database is having an issue with uploads right now for some reason. See post #2 for the download link. I will change it back when the site is fixed.
v2.0.3 is now ready.
The downloads tab is now working again so I will be removing the hyperlink from page 2. Just download from the tab at the top of the first post again.
Updating changelog now.....
The legend is back! Nice to see you around again buddy
sbreen94 said:
The legend is back! Nice to see you around again buddy
Click to expand...
Click to collapse
LOL, the legend of never having time to do anything maybe.
Thanks though!
Didact74 said:
LOL, the legend of never having time to do anything maybe.
Thanks though!
Click to expand...
Click to collapse
Haha I feel your pain on that one. I would like an extension on the number of hours in the day
Hi guys,
I spent many hours in searching for this mod with no success (not a fan of Xposed) so I decided, after I made work on Lollipop, to share it with you!
Please note:
this mod doesn't support opengl fix nor script to remove dex file but it is intended to use it with odexed rom anyway. I have no plans to continue developing it so use with caution. If you mess something you can flash the original services whis is found in post #7.
Instructions:
1. just in case, create a backup of your current services.jar (located in system>framework )
2. flash using recovery
3. done!
Apart from the lack of opengl fix I haven't found any other bugs yet, it seems to be working just fine. If you discover a bug or error that has something to do with this mod, I'd be glad to help you out
Odex or Deodex?
Denie46 said:
Hi guys,
I spent many hours in searching for this mod with no success (not a fan of Xposed) so I decided, after I made work on Lollipop, to share it with you!
Instructions:
1. just in case, create a backup of your current services.jar (located in system>framework )
2. flash using recovery
3. done!
I haven't found bugs yet, it seems to be working just fine. If you discover a bug or error that has something to do with this mod, I'd be glad to help you out
Click to expand...
Click to collapse
I dont know how you look for, because there is allready a couple of post with the superusermod for z1.
http://forum.xda-developers.com/showthread.php?t=3122592
http://forum.xda-developers.com/showthread.php?t=3117479
Anyway you should add a líne in your script to delete the services.odex in order to make it work properly.
Hope you did this services.jar following the tutorial to avoid breaking the OpenGL.
http://forum.xda-developers.com/showthread.php?t=3120144
Cheers
juanpirulo said:
I dont know how you look for, because there is allready a couple of post with the superusermod for z1.
http://forum.xda-developers.com/showthread.php?t=3122592
http://forum.xda-developers.com/showthread.php?t=3117479
Anyway you should add a líne in your script to delete the services.odex in order to make it work properly.
Hope you did this services.jar following the tutorial to avoid breaking the OpenGL.
http://forum.xda-developers.com/showthread.php?t=3120144
Cheers
Click to expand...
Click to collapse
Thanks for your guide! I really didn't know about the OpenGL bug so i'll take that into account. Honestly I spent quite a time into searching and wouldn't post this mod if I had found one already.
@geabeack, it is for deodexed, that's why it doesn't have an odex-removing script. I also have no plans to further develop this mod, just wanted to post so there's one, but it seems there are a few already.
Hi can one of u send me the stock odex services.jar that are not modded?Tnx guys.
Denie46 said:
Thanks for your guide! I really didn't know about the OpenGL bug so i'll take that into account. Honestly I spent quite a time into searching and wouldn't post this mod if I had found one already.
@geabeack, it is for deodexed, that's why it doesn't have an odex-removing script. I also have no plans to further develop this mod, just wanted to post so there's one, but it seems there are a few already.
Click to expand...
Click to collapse
You should edit your first post and remove the link to avoid people install that services.jar then. Cheers
juanpirulo said:
You should edit your first post and remove the link to avoid people install that services.jar then. Cheers
Click to expand...
Click to collapse
I know, thanks!
anakdayak said:
Hi can one of u send me the stock odex services.jar that are not modded?Tnx guys.
Click to expand...
Click to collapse
Here you go, you just need to flash it.
If he want to get back to stock he needs also the services.odex inside the framework/arm folder.