[MOD REQUEST] Remove Power Off Confirmation Popup - Galaxy S I9000 Android Development

Hi.
Just wondering if it's possible for me to remove the Power Off popup which appears just before the phone restarts, goes into recovery etc.
I'm not shy with having to alter files either, so whatever it takes I'd like to know...
This is for a Deodexed JVT 2.3.5.
Thanks in advance.

are you using an app to get to recovery,download,etc...?

You can get it from my Mod, get stock files and comare the files to see what is changed.
Have fun.

playerzking said:
are you using an app to get to recovery,download,etc...?
Click to expand...
Click to collapse
No, I'm actually using the mod by Perka, but it might be an old version.
Perka said:
You can get it from my Mod, get stock files and comare the files to see what is changed.
Have fun.
Click to expand...
Click to collapse
Cool I'll take a look. If you could tell me the files that are changed that would narrow it down a little for me.

OK I did a file compare and there are WAY too many files which are different (including the framework-res.apk file).
Can you please narrow it down for me.

Worked it out finally.

Can you please explain how did you do it?
Thanks!

I just took Perka's advice and it worked out.
The files that needed editing are in the android.policy.jar file located in /system/framework/
I compared Perka's android.policy.jar file against mine and updated GlobalActions files that are associated with the Reboot, Shutdown etc.
It's not too hard especially if you have some kind of programming background.
My next project is to work on the 10 lockscreen mod.

Related

Metamorph Force Close Fix

I want to make metamorph work on my device without givving me fcs after i reboot. This happns when i try to change the boot animation by writing to framework-res.apk. i have a working busybox and nandroid backups so i am willing to try anything...please help.
i have tried running fix_permissions which didnt help
i have tried the linking solution
the process works fine because u can see the new boot animation load up fine but the phone gets a billions force closes for almost everything as soo as i unlock.
please help me out because i have searched the very depths of the internet onl to come out empty handed. i know many people are facing this issue so it would be nice to give them a step by step fix.
stericson did a good job with the app from wat i hear and once working is supposed to be an essential app.
pleas helppp
olvap377 said:
I want to make metamorph work on my device without givving me fcs after i reboot. This happns when i try to change the boot animation by writing to framework-res.apk. i have a working busybox and nandroid backups so i am willing to try anything...please help.
i have tried running fix_permissions which didnt help
i have tried the linking solution
the process works fine because u can see the new boot animation load up fine but the phone gets a billions force closes for almost everything as soo as i unlock.
please help me out because i have searched the very depths of the internet onl to come out empty handed. i know many people are facing this issue so it would be nice to give them a step by step fix.
stericson did a good job with the app from wat i hear and once working is supposed to be an essential app.
pleas helppp
Click to expand...
Click to collapse
Mine does too.
ahhhhhhhhhhh
What build are you using?
You gotta be careful with what build you are using and what you are changing.
Don't boot animations usually go into /system/media?
1.6 use shine and mask logos
2.x use Boot animations
They are different so...yeah...be careful.
Macrophage001 said:
You gotta be careful with what build you are using and what you are changing.
Don't boot animations usually go into /system/media?
1.6 use shine and mask logos
2.x use Boot animations
They are different so...yeah...be careful.
Click to expand...
Click to collapse
This is true, but! Also their are two Apk's that always give problems when themed (Wrong). MetaMorph doesn't replace files that don't exist, meaning, if the two different roms have two different locations for boot files example: System/media or framework-res.apk/assets/images/ and neither are present. It will skip over both and not copy. So conclusions state that maybe one or more of the images are not accepted by the Android System.
These two apk's, my friends, are the framework-res.apk and the Launcher.apk...
Many of failed themes from the past proves this theory accurate, ask any old skool themer...
Worse case scenario, check the pictures with the (.9.png) extentions.
wow sorry i really lost rack of this thread sorry
i know specifically that the problem is cause by framework.apk and when i said boot animations i meant mask and shine.
p.s also im using latest build available in market
RichieDaze said:
This is true, but! Also their are two Apk's that always give problems when themed (Wrong). MetaMorph doesn't replace files that don't exist, meaning, if the two different roms have two different locations for boot files example: System/media or framework-res.apk/assets/images/ and neither are present. It will skip over both and not copy. So conclusions state that maybe one or more of the images are not accepted by the Android System.
These two apk's, my friends, are the framework-res.apk and the Launcher.apk...
Many of failed themes from the past proves this theory accurate, ask any old skool themer...
Worse case scenario, check the pictures with the (.9.png) extentions.
Click to expand...
Click to collapse
can u expand a little more on this?
how can i check if the theme im trying to flash will work or how can i fix force closes after metamorph or how can i change the theme so it will work with metamorph?
p.s the actual morph works cause i can see the changes on reboot but as soon as i unlock a get a million force closes
please please reply i desperatly need help
olvap377 said:
please please reply i desperatly need help
Click to expand...
Click to collapse
What Rom are you using? Cyan?
Who's MetaMorph theme are you using? Enoch?
Have you tried installing all of themes EXCEPT framework-res.apk to see if you still have the forecloses, or one by one to see which ones are causing the forecloses?
Some Homework:
If you want to test framework, try to remove all the foldes from the theme (make backups first). Add 1 folder back to theme, then run the MetaMorph cycle. Leave the png folders for last. When you reach a folder containing png's, add 3 png's at a time to each MetaMorph cycle. So now you narrow down the culprit(s) faster.
Example:
I am trying to MetaMorph my Zelda theme. My framework-res folder change, for some reason shuts down my Market on TheOfficial TMO rom. I can download, but when its about to install the apk it forecloses. But it works accurately on TheOfficial AOSP. (???) So, I am thinking that maybe it the way some roms are built.
im using cyan 4.2.15.1 with ebi1 port and im trying to metamorph the mask and shine at startup that writes to framework-res.apk
olvap377 said:
im using cyan 4.2.15.1 with ebi1 port and im trying to metamorph the mask and shine at startup that writes to framework-res.apk
Click to expand...
Click to collapse
Are they located in (theme.zip) framework-res/assets/images/???
RichieDaze said:
Are they located in (theme.zip) framework-res/assets/images/???
Click to expand...
Click to collapse
yes they are and they do work cause after reboot i see it but wen i unlock it show a million force closes
any news please?
olvap377 said:
any news please?
Click to expand...
Click to collapse
Did you do the homework to see which folder the problem was in???
I spent days looking for problems in my themes and other themes to solve the FC's issue. The process of elimination all ways worked out, but time consuming. When you find it, You can post the fix for others with the same problem...
olvap377 said:
any news please?
Click to expand...
Click to collapse
I am not running a Cyan mod. So I cant do it for you. Sorry! A logcat can help pin point the problem.
RichieDaze said:
What Rom are you using? Cyan?
Who's MetaMorph theme are you using? Enoch?
Have you tried installing all of themes EXCEPT framework-res.apk to see if you still have the forecloses, or one by one to see which ones are causing the forecloses?
Some Homework:
If you want to test framework, try to remove all the foldes from the theme (make backups first). Add 1 folder back to theme, then run the MetaMorph cycle. Leave the png folders for last. When you reach a folder containing png's, add 3 png's at a time to each MetaMorph cycle. So now you narrow down the culprit(s) faster.
Example:
I am trying to MetaMorph my Zelda theme. My framework-res folder change, for some reason shuts down my Market on TheOfficial TMO rom. I can download, but when its about to install the apk it forecloses. But it works accurately on TheOfficial AOSP. (???) So, I am thinking that maybe it the way some roms are built.
Click to expand...
Click to collapse
how can i do the homework when ive only got 1 folder in the theme and it only contains 2 pngs the mask and shine?
olvap377 said:
how can i do the homework when ive only got 1 folder in the theme and it only contains 2 pngs the mask and shine?
Click to expand...
Click to collapse
??? Its only boot images??? Sorry, I did not know it was only boot images. Are the png's the proper size?
Would you be willing to flash my Zelda boot screen as a test to see if it is the theme. It might be the rom?
Here it is if you want to try:
i will flash yours and tell u the results and im currently on cyan 4.2.15.1 with bcrook's ebi1 port and enoch installed (via flashable zip)
edit: i cant even metamorph yours it says there isnt a valid thm file found? what does that mean?
edit2: nvm i figured it out u had an extra directory in the zip but i fixed
btw these themes do they have to be signed in a special way somehow like the zips or no
ps ur boot looks really nice
edit3 : still getting a million force closs after unlock so i wiped and restored
olvap377 said:
i will flash yours and tell u the results and im currently on cyan 4.2.15.1 with bcrook's ebi1 port and enoch installed (via flashable zip)
edit: i cant even metamorph yours it says there isnt a valid thm file found? what does that mean?
edit2: nvm i figured it out u had an extra directory in the zip but i fixed
btw these themes do they have to be signed in a special way somehow like the zips or no
ps ur boot looks really nice
edit3 : still getting a million force closs after unlock so i wiped and restored
Click to expand...
Click to collapse
Your gonna have to flash the whole framework-res.apk as an update on the recovery to prevent FC's for now.
Post a logcat on this thread so that every one can see and give you ideas...

[REQ][HOWTO] Making your own battery mod?

People are using different rom's , some other are asking for specific mod etc
Could someone write some guide how to do it, to enlight those who are not aware ?
Take the framework-res.apk from your current rom and upload it to http://uot.dakra.lt/kitchen
Once uploaded go to battery mod and select the battery style u want and cook it.
When its cooked extract the framework-res.apk from the downloaded file and either replace it with root explorer or push it with adb back into the phone.
Sent from my GT-I9100 using Tapatalk
Locster126 said:
Take the framework-res.apk from your current rom and upload it to http://uot.dakra.lt/kitchen
Once uploaded go to battery mod and select the battery style u want and cook it.
When its cooked extract the framework-res.apk from the downloaded file and either replace it with root explorer or push it with adb back into the phone.
Sent from my GT-I9100 using Tapatalk
Click to expand...
Click to collapse
This is what I know already, but this is not working and phone is keeping crashing
masi0 said:
This is what I know already, but this is not working and phone is keeping crashing
Click to expand...
Click to collapse
Depends of which rom you are running but if you use VillainRom I think you need to open your modded framework with 7-zip and replace "META-INF" directory with the one found in the original framework of your rom. This is needed to sign the file.
However I'm not sure you use VillainRom (where files must be signed) and I didn't use yet the kitchen ... but your feedback is usefull if you want to try ...
shaolin79 said:
Depends of which rom you are running but if you use VillainRom I think you need to open your modded framework with 7-zip and replace "META-INF" directory with the one found in the original framework of your rom. This is needed to sign the file.
However I'm not sure you use VillainRom (where files must be signed) and I didn't use yet the kitchen ... but your feedback is usefull if you want to try ...
Click to expand...
Click to collapse
I am using stock KE4
masi0 said:
I am using stock KE4
Click to expand...
Click to collapse
Ok so ignore what I said upper ... should be only for signature of the rom (not needed in stock roms).
Anyway ... if someone has the solution ...
I always made that on my own...
Open the decompiled .xml in the framework-res.apk, edit those lines, add my own battery.pngs and that was all...
I didnt test it on my sgs2... But it should be the same way to get it...
Swyped from my overclocked GT-I9100 using XDA Premium App
PoTi_96 said:
I always made that on my own...
Open the decompiled .xml in the framework-res.apk, edit those lines, add my own battery.pngs and that was all...
I didnt test it on my sgs2... But it should be the same way to get it...
Swyped from my overclocked GT-I9100 using XDA Premium App
Click to expand...
Click to collapse
could you tell which .xml to edit and what to add within the file?
I juz grab one of the batt mod out there and replace the .png files under /res/drawable-hdpi-v4 with the ones I want. guess its kind of a lazy way to do it=)
I have KE2 and get a "signature verification failed" error when trying to apply the UOT.zip file :-(
Anyone some idea how to get this applied?
Also my original framework-res.apk file doesn't have any folder called "/res/drawable-hdpi-v4" but the UOT file has!?
masi0 said:
could you tell which .xml to edit and what to add within the file?
Click to expand...
Click to collapse
I dunno exactly which one it was right now but I think the battery.xml somewhere in the first 3 or 4 folders...
sorry idk it anymore ... Long time no use for :/
Swyped from my overclocked GT-I9100 using XDA Premium App

[REQ]% Battery Mod Only

Hi All,
So I have made a few changes to my SystemUI.apk.
There is one thing missing however, a % for the battery.
I would love to include this one: http://forum.xda-developers.com/showthread.php?t=1400114
When I flash it however, I lose all my other mods (obviously).
I have tried removing some things, but I am really unsure what I need for JUST the battery.
If someone could provide me with this I would be very thankful.
Thanks in advanced,
Gavin
Easy peasy, its just a matter of replacing images in your SystemUI.apk
That is if it shows battery percent already.
Just OPEN the SystemUI.apk (not extract) with for example 7-zip, then browse to: res\drawable-xhdpi
Replace the images with the ones you want, and then just close 7-zip.
Look here:
http://forum.xda-developers.com/showthread.php?t=1431618
itdemo said:
Hi All,
So I have made a few changes to my SystemUI.apk.
There is one thing missing however, a % for the battery.
I would love to include this one: http://forum.xda-developers.com/showthread.php?t=1400114
When I flash it however, I lose all my other mods (obviously).
I have tried removing some things, but I am really unsure what I need for JUST the battery.
If someone could provide me with this I would be very thankful.
Thanks in advanced,
Gavin
Click to expand...
Click to collapse
Link me to your SystemUI apk and I'll do it for you
Sent from my Galaxy Nexus using xda premium
EDIT: Got it to work. Found out the ROM I am using already has the XML file set-up for increments.
So it was just a handy copy&paste job.
Thanks again guys!

[Q] How to modify lockscreen transition?

When locking the phone, the screen just simply blackens. What i prefer is the old-tv-like transition that is used in the Galaxy Nexus. Does anyone knows how to make it happen?
SyzwnFrzRdz said:
When locking the phone, the screen just simply blackens. What i prefer is the old-tv-like transition that is used in the Galaxy Nexus. Does anyone knows how to make it happen?
Click to expand...
Click to collapse
Found the XDA thread that give me the enlightenment, this works on my phone, Stock ROM I8150DXLA2, should work on most rom because we modified the framework-res.apk FROM OUR OWN ROM, manually.
Here
Regards,
Reidzeibel
reidzeibel said:
Found the XDA thread that give me the enlightenment, this works on my phone, Stock ROM I8150DXLA2, should work on most rom because we modified the framework-res.apk FROM OUR OWN ROM, manually.
Here, mortal, LOL )
Regards,
Reidzeibel
Click to expand...
Click to collapse
WOW! Thank a bunch dude! Will bear this in mind as i'll look into it!
reidzeibel said:
Found the XDA thread that give me the enlightenment, this works on my phone, Stock ROM I8150DXLA2, should work on most rom because we modified the framework-res.apk FROM OUR OWN ROM, manually.
Here
Regards,
Reidzeibel
Click to expand...
Click to collapse
Lots of errors using this method!
Tried even the crt.zip with CWM but nothing happens.
Well, the only errors I get was force close, after I rebooted my phone, it works normally and the CRT animation is applied.
Did you follow the steps exactly? Do not move the recompiled apk, use the modified original apk.
Regards,
Reidzeibel
Sent from Ridwandroid-2.3.6 : 1804 MHz OC & Customized I8150DXLA2 Stock ROM w/ Cowithgun's kernel & Zeppelinrox V6 Script
reidzeibel said:
Well, the only errors I get was force close, after I rebooted my phone, it works normally and the CRT animation is applied.
Did you follow the steps exactly? Do not move the recompiled apk, use the modified original apk.
Regards,
Reidzeibel
Sent from Ridwandroid-2.3.6 : 1804 MHz OC & Customized I8150DXLA2 Stock ROM w/ Cowithgun's kernel & Zeppelinrox V6 Script
Click to expand...
Click to collapse
Dude,
I have attached the screenshot regarding my problems with the framework-re.apk.
Note :
-There's ONLY "build" folder but no "dist" folder.
Ahh, I see, the problem is that your current framework-res.apk isn't original anymore, that error in the "2.jpg" tells everything, the png files replaced by the theme maker isn't 9-patched (what is 9-patch? here, and here )
Basically, 9-patch allows the image to be stretched by redrawing some parts of the image. if the image isn't 9-patched, it will still displayed correctly on your Phone, but when recompiling the apk files, you'll encounter problems.
I tried decompiling and recompiling the ported ICS theme in the Theme section, all went well, but when I tried to insert a non-9patched png files to the apk, the error shows up.
Thus, in order to enable CRT animations for your phone, the png files on the "2.jpg" screenshot must be 9-patched :
- menu_background.9.png
- status_bar_header_background.9.png
and so on
Hope this helps,
Reidzeibel
reidzeibel said:
Ahh, I see, the problem is that your current framework-res.apk isn't original anymore, that error in the "2.jpg" tells everything, the png files replaced by the theme maker isn't 9-patched (what is 9-patch? here, and here )
Basically, 9-patch allows the image to be stretched by redrawing some parts of the image. if the image isn't 9-patched, it will still displayed correctly on your Phone, but when recompiling the apk files, you'll encounter problems.
I tried decompiling and recompiling the ported ICS theme in the Theme section, all went well, but when I tried to insert a non-9patched png files to the apk, the error shows up.
Thus, in order to enable CRT animations for your phone, the png files on the "2.jpg" screenshot must be 9-patched :
- menu_background.9.png
- status_bar_header_background.9.png
and so on
Hope this helps,
Reidzeibel
Click to expand...
Click to collapse
Ohh no wonder it was always error! Ahaa. So what should i do now? I should do a NinePatch using the Draw-9 patch tool like in the links you gave me? Sorry bro, i am a TOTAL noob.
Yeah, if you want to do decompiling and recompiling your apk files (and modify the png files), you should start learning to draw the 9-patches, it'll be a little complicated though
Hope this helps ,
Reidzeibel
reidzeibel said:
Yeah, if you want to do decompiling and recompiling your apk files (and modify the png files), you should start learning to draw the 9-patches, it'll be a little complicated though
Hope this helps ,
Reidzeibel
Click to expand...
Click to collapse
Ahh shucks! :-( Where do i start actually? :/
Sent from my Super Galaxy White using xda premium

[Q] Edited framework-res.apk

Can anyone edit a framework-res.apk with no mods other than adding the crt animation? I've found guides on how to edit the bools file in the res/values filder inside the apk, but I can't get it to recompile the apk correctly. Can someone tell me how or send me an edited apk or something?
If you want to post your framework file, I'll do it for you and send it back.
I just posted several of these for Caulkulin's 3.0 rom. What are you using now? His framework, but with a stock battery look.
Sent from my SPH-D710 using XDA
kyamora said:
Can anyone edit a framework-res.apk with no mods other than adding the crt animation? I've found guides on how to edit the bools file in the res/values filder inside the apk, but I can't get it to recompile the apk correctly. Can someone tell me how or send me an edited apk or something?
Click to expand...
Click to collapse
You need to check the error and see whats wrong with the framework file. Also you just want a stock framework file with crt on? Also what are you using to compile and decompile
playya said:
You need to check the error and see whats wrong with the framework file. Also you just want a stock framework file with crt on? Also what are you using to compile and decompile
Click to expand...
Click to collapse
I was using apk manager 4.9, and I have no idea how to read the log.
I attached my framework-res. It's stock from FD19, I probably should have specified.
If no one gets to it, I'll mod it when I get home.
Sent from my SPH-D710 using xda premium
All done. I tested on my phone. After I replaced the apk, I had to manually restart the phone for it to work. I placed your apk in a zip file before I uploaded, so make sure you unzip your apk before putting it back on your phone.
Thank you so much, it works very well.
Now I'd just like to know how you did it. Coming from a clean computer with nothing installed, what would I need to decompile an apk, edit it, and compile it again? I'm trying to get a handle on the whole thing to do some development myself.
Try and upgrade to Apk Manager 5.02 since I just de-compiled and then compiled your apk file without an issue. Also try and update everything associated with it like your java... But it seems quite fine to me
Edit: just tried yours again as well as removing animation I lowered autobrightness which is something I do on all my roms for better battery life.. Try that mod next
playya said:
Try and upgrade to Apk Manager 5.02 since I just de-compiled and then compiled your apk file without an issue. Also try and update everything associated with it like your java... But it seems quite fine to me
Edit: just tried yours again as well as removing animation I lowered autobrightness which is something I do on all my roms for better battery life.. Try that mod next
Click to expand...
Click to collapse
Do I have to do anything to set it up or is it good to go from install? Should I restart my computer?
Also where can I find 5.02? I had a lot of trouble finding 4.9 in the first place.
I've never used apk manager, so I'll check that out also. I used apktool to mod your framework along with all the java runtime files it needed to work.
Sent from my SPH-D710 using xda premium
&roid said:
I've never used apk manager, so I'll check that out also. I used apktool to mod your framework along with all the java runtime files it needed to work.
Sent from my SPH-D710 using xda premium
Click to expand...
Click to collapse
Apktool confused me so I used apk manager. I can't figure out how to get apktool to work. Do you have a link to a good guide or anything?
There are some good ones on xda. I'll link you one when I get home.
Sent from my SPH-D710 using xda premium
I was apparently using the gingerbread method for an ICS build. Would that have kept it from compiling correctly?
kyamora said:
I was apparently using the gingerbread method for an ICS build. Would that have kept it from compiling correctly?
Click to expand...
Click to collapse
YES
&roid said:
YES
Click to expand...
Click to collapse
Haha, at least I'm learning.
To be fair, no one specified. Thanks for all the help guys.
Hi. Any help me to on crt effect in this framework ? I try apk menager and apk edit, and always some problem when compile, program loop and only exit work
http://db.tt/W2DKqulN

Categories

Resources