Modding Poweroff.apk - T-Mobile LG G2x

I moved the poweroff.apk so that I wouldn't have a power off animation. But now I want to change the .png and poweroff sound..... Could anybody point me in the right direction on how to do this
Sent from my LG-P999 using XDA App

Download and install 7zip open power off.apk with 7zip and pull the drawable folder (might be drawable hdpi but I'm pretty sure weapon uses drawable pull both to be sure.). Look through the images find the ones for T-Mobile. Change those images with the ones you want there is 10 I think. Make sure they are 480x800 and name them the same as the images in the folder. After you switch the images open the power off.apk with 7zip again and add the altered folders back and put the new apk on your phone.
This is the easiest way without decompiling the apk
Sent from my Galaxy Nexus using xda premium

Related

Revert back to stock font?

I just installed the incognito theme and love it but was wondering how to switch the font back to stock. Is there an easy way to do this?
Sent from my DROIDX using XDA App
I'm also intrested in changing up a few fonts? And font colors too. I've browsed around most of the apk files to see if anything stands out to me but no luck... Mostly .png image files. Which ive successfully modified. But can't seem to find straight forward answers floating around for fonts in the any of the forums.
Any help pointing to the right files locations??
Why would you want to go back to the old font
If you wanna do that, the best way is to repackage the Incognito zip file with the fonts you wanna use. You can do that by:
1 Extract the files in the .zip file to some location on your computer (there should be 2 folders and a file, I think).
2 From your extracted files, go to the font folder located inside the system folder
3 Replace the fonts in that folder with any fonts you want (in your case, you'll have to download the stock fonts from somewhere) and make sure that the fonts are renamed to match the ones before
4 Once that's done, repackage the files/folders as a .zip file by jumping back out to the location of where you originally extracted the files, selecting all 3 files/folders(ctrl+ click each one), right click and "send to compressed folder (zip)".
5 Put that file on your sd card and install it the same way you installed the theme the first time.
Sent from my DROIDX using XDA App
PS: Thank you Android gods for Swype

Help with 10% increments on Blur 3.4.2

Reading another thread I found out how to successfully get the battery icons to drop by 10% increments, but when I go into settings I can not go into settings and select battery manager. It causes the settings to force close.
I must missing something somewhere. Here are my steps I took.
1. Decompile framework-res.apk
2. Edit stat_sys_battery.xml in both /drawable a drawable-hdpi.
Added in all of the stat_sys_battery.png's
3. Recompile framework-res.apk
4. Using win-rar replace META-INF and AndroidManifest.xml from the original framew res.apk
5. Pushed the framework-res.apk to my phone
Now it seems the phone functions properly, but most of all the options in settings cause settings to force close.
Any help on this matter would be greatly appreciated.
Sent from my DROIDX using DroidForums App
Sent from my DROIDX using XDA App
I personally find it hilarious that even on 3.4.2 which is the newest release, motorola still has not fixed the battery manager force close issue... theyve had like four OTA updates now since it originally came out and still nothing
is 3.4.2 an official release from Moto and Verizon?
sent from the xda premium app for android
1. Decompile framework-res.apk (save a copy for modifications later)
2. Edit stat_sys_battery.xml in both /drawable a drawable-hdpi.
3. Added in all of the stat_sys_battery.png's
4. Recompile framework-res.apk
5. Using win-rar copy everything, with the exception of the res folder, that's changed from the newframework-res.apk to the original you saved for Modding. Your goal is to end up using the ORIGINAL .apk not the recompiled one. I think you need resource.arsc and android manifest only (not sure).
6. Replace the xmls in the original fw with the new ones and do the same with the pngs. You should have slightly more pngs (additional percentages) than before.
5. Pushed the modified OLD framework-res.apk to my phone
GL
Thank you for the response. I did get it to work correctly, my big mistake, was during the recompile. I used apk manager and it asks if you would like to keep all unchanged files from the original, them makes a keep folder and you delete what you changed. And if an xml gets edited to also delete the resources file. Then use the new apk and replace the meta and androidmanifest. Works great now. Now I just need to make new battery meter that is easier to read hout or make new battery icons as these were made for
Sent from my DROIDX using XDA App
Doh! I thought you were trying to modify a themed framework-res.apk (stock framework can be decompiled/recompiled with no issues).
Glad you got it working.

[Q] How to manually edit Frame-res

I currently run Revolution w/ Thyparancy on top of it. I've tried installing different notification mods (battery, 4g or H, etc.) but when I do it seems as if Thyparancy is uninstalled.
I'm familiar w/ sdk and pulling files from system but after that I'm at a loss.
Any helpers?
You need a program like 7 zip to open (NOT extract) the contents. Drag the res folder into a new folder on your desktop. Names it something like my custom theme so that you don't get confused. Now you can navigate into drawable-hdpi and see the images. You can swap them out or just edit them in your photo program. I use gimp because I'm not a graphic deisgner. I just edit other graphics. Once you are finished just drag the whole drawable-hdpi folder back into your 7 zip window. It will ask you to confirm. Confirm it and then you are done.
Thank you muchos!
Sent from my HTC Sensation 4G using xda premium

Shut Down Animation

Is there any way to remove or change the shut down animation? Im currently running Weapons 3.0 RC1 with the ICS theme
Sent from my LG-P999 using XDA App
I believe under settings under Tweaks you can disable both the screen on and off animation.
Oh whoops you meant shutdown animation, my bad. Is anything listed under system/media?
Sent from my LG-P999 using XDA App
If it's anything like the original LG rom, the shutdown animation is controlled by an apk. Try looking for and removing that.
redmonke255 said:
I believe under settings under Tweaks you can disable both the screen on and off animation.
Oh whoops you meant shutdown animation, my bad. Is anything listed under system/media?
Sent from my LG-P999 using XDA App
Click to expand...
Click to collapse
Naw, there isn't anything under system/media
Sent from my LG-P999 using XDA App
As wewo said, the shutdown animation on the g2x is controlled by poweroff.apk it works pretty much the same as a boot animation but is controlled by a XML instead of a txt file. You might be able to delete the apk but idk what will happen if you do.
You could also pull the image folder out with 7zip and make them all black. I have a power off.apk made from weapons boot animation in my weapon new clip mod. Feel free to pull it and use it if you want.
Sent from my Galaxy Nexus using xda premium
kwes1020 said:
As wewo said, the shutdown animation on the g2x is controlled by poweroff.apk it works pretty much the same as a boot animation but is controlled by a XML instead of a txt file. You might be able to delete the apk but idk what will happen if you do.
You could also pull the image folder out with 7zip and make them all black. I have a power off.apk made from weapons boot animation in my weapon new clip mod. Feel free to pull it and use it if you want.
Sent from my Galaxy Nexus using xda premium
Click to expand...
Click to collapse
Where can I find just the power off.apk you made?
Sent from my LG-P999 using XDA App
Milton515 said:
Where can I find just the power off.apk you made?
Sent from my LG-P999 using XDA App
Click to expand...
Click to collapse
Download the rom and pull it from system/app
Sent from my Galaxy Nexus using xda premium
You can disable it in the build.prop as well I believe. something like lg.poweroff=true changed to false.. but I'm going by memory here.
LG-P999 Edit PowerOff.apk
lotherius said:
You can disable it in the build.prop as well I believe. something like lg.poweroff=true changed to false.. but I'm going by memory here.
Click to expand...
Click to collapse
First of all, excuse me in advance for my english, I didn’t my best !!
I have the same problem. I have a LG-P999 (optimus G2X) with Videotron.
I easely change my bootanimation, but for the Poweroff animation, I didn’t find the way to change the animation after 3 days of recherche on the web….
If I desinstall the app with ‘’SystemApp remover’’ and I take the original APK file in ‘’/system/app/PowerOff.apk’’ the installation work well and when I closer the phone all is ok and the logo of videotron appear.
So I tried the tricks I saw on the web :
1 - Take the original ‘’PowerOff.apk’’ file, open it with ‘’winzip’’.Replace the .png file by other one in same format. Deleter the file ‘’/system/app/PowerOff.apk’’ and replace it by the modified one. Result, when I close the phone, the phone close and restart with no image. If I try to install the file, the installation doesn’t work.
2 - Take the original ‘’PowerOff.apk’’ file, open it with ‘’apkmanager’’. In the folder ‘’PowerOff.apk’’, I replace the .png file by other one in same format. After I Zip the modified folder ‘’PowerOff.apk’’ with ‘’apkmanager’’ and select system file. Deleter the file ‘’/system/app/PowerOff.apk’’ and replace it by the modified one. Result, when I close the phone, the phone close and restart with no image. If I try to install the file, the installation doesn’t work.
3 - If I take ‘’apkmanager’’ I extract the APK for code file (option 9) and after ZIP it (option 11) for system file, they ask me to select the file in the original apk file for the files who are not modified. If I select that the program import anything from the original file (with the logo of videotron). If I try to install the file, the installation works, but it’s a copy of the original…. If I didn’t choose the option the copy from the original file, I have the same problem of point no.2.
4 - If I dont desinstall the original ‘’PowerOff.apk’’ file but I remove it from the folder file ‘’/system/app/’’, the shutdown of the cell phone work normally with the logo of videotron…
So my question is, do they have anybody here who can read the code of the original file and say me if when I install it, it extract the ‘’.png’’ file in an other file in the cell phone ?? (Because of the point no.4)
Can you say me why I create a new apk file with ‘’apkmanager’’ I cannot install it on the phone, it give me an error and it only write ‘’the app have been not installed’’ or simething like that… Maybe, if I modify the file, the phone don’t recognize the news signature on it or something like that ???
Here is the link of the original file and the modified file :
w.w.w70.zippy share.com /v/35597416 /file.h.t.m. l

Adding my own 1% battery icons

So as in my earlier thread I have moved back to eagles blood 4.0.4 AOSP rom. One of the drawbacks is that the hdpi drawable folder in my systemui does not have 1% icons. I've read a few tuts on how to make my own....or add them from a downloadable zip.
My question to those who are more knowledgeable about development is this: will opening the drawable hdpi folder from my systemui.apk with 7-zip and replacing all my stock sys_batt PNG images with the custom 1% images and then saving those to the folder and pushing the systemui.apk back to my phone do the trick?
Sent from my LG-P999 using xda premium
Pain-N-Panic said:
So as in my earlier thread I have moved back to eagles blood 4.0.4 AOSP rom. One of the drawbacks is that the hdpi drawable folder in my systemui does not have 1% icons. I've read a few tuts on how to make my own....or add them from a downloadable zip.
My question to those who are more knowledgeable about development is this: will opening the drawable hdpi folder from my systemui.apk with 7-zip and replacing all my stock sys_batt PNG images with the custom 1% images and then saving those to the folder and pushing the systemui.apk back to my phone do the trick?
Sent from my LG-P999 using xda premium
Click to expand...
Click to collapse
Should add long as those are referenced (I think in the xml, but then, I have never done this myself). Would need a nandroid for sure .
-- The noob says:
From first-hand experience, a smartphone is incapable of making you smarter!
Nope, they're not. I have to manually reference them in the sys_bat icon XML file located in drawable folder. Then I have to swap in the images in the drawable hdpi folder once they're referenced. However, I'm having issues. Once I extract the files from the apk with 7zip, specifically the drawable folder to get to the sys_bat icon XML file, I cannot open it in notepad++ to edit it. I'm getting an error. Any ideas mansa?
Edit- LOL nandroid was the first thing I did!
Now I have to crank out this stupid paper for class so I can continue tinkering with my Android lol
Sent from my LG-P999 using xda premium
Ok, So I've come to learn that in order to edit XML files within the APK, that the APK needs to be decompiled with APK Tool, not simply extracted using 7zip. I downloaded APK tool and set everything up according to this tut----> http://forum.xda-developers.com/showthread.php?t=1989533
I have the APKTOOL folder placed on the root of my C:/ drive. Inside that folder I have placed the following aapt (the apktool exe or application file), apktool (batch file), apktool.jar, and my framework-res.apk (I know I need to use systemui.apk, I'm just using this as I follow the tutorial on how to get this program working before I try anything on my own files). When I get to the command c:\apktool>apktool if system.apk to install the APK on my system so I can decompile I get an error saying it's not a recognized command. Any ideas dev-friendly users?
So I realized I didn't have the JDK installed on my pc since I did a system wipe on it the other day. Reinstalled it but it's still not working. Very frustrating. I'm also using win 8 if that means anything.
Giving up on apktool as I cannot seem to get a way around the error. However, apk manager seems much more user friendly and have seen tuts using the program specifically for ics roms. I've only seen tuts for apktool using jelly bean roms so maybe that's the issue. I won't be home until late tonight as I have class. If anyone has any tips/suggestions please let me know.
Sent from my LG-P999 using xda premium
Not that many people are in here anyway but I figured I'd give it a shot. So I went to use apk manager instead of apk tool which seemed to be a much more "newb friendly" program. I can successfully decompile my framework-res.apk but cannot decompile my systemUI.apk afterward. I get an error....here's my log if anyone can help me with it:
EDIT- deleted log as I was able to decompile systemUI with a different apk program. That was a huge headache getting it to decompile. Now editing the XML should be no problem, along with swapping out the PNG's. Recompiling on the other hand will most likely be another headache!

Categories

Resources