How do I edit/theme APK's? - Verizon HTC One (M8)

Back when I had my HTC EVO 4G on Sprint I used something that I was able to edit apk's and change colors on some parts of the apk's then reflash that apk. I don't remember what is was. Is this possible on the HTC One M8? I think it was apktool. Is that right?
Thanks!

vacoray said:
Back when I had my HTC EVO 4G on Sprint I used something that I was able to edit apk's and change colors on some parts of the apk's then reflash that apk. I don't remember what is was. Is this possible on the HTC One M8? I think it was apktool. Is that right?
Thanks!
Click to expand...
Click to collapse
Use apk multi tool just google for it

Once you get it set up you will need to install the correct framework if you will be working with sense.

MR H3LLMAN said:
Once you get it set up you will need to install the correct framework if you will be working with sense.
Click to expand...
Click to collapse
correct framework? I am using sense. how do I install correct framework? I did see a screen with different options, res-framework?

vacoray said:
correct framework? I am using sense. how do I install correct framework? I did see a screen with different options, res-framework?
Click to expand...
Click to collapse
Should be something like this:
apktool if framework-res.apk
You'll want to have the framework red from whatever ROM you are worming with in the root of the apktool folder

Related

[Tutorial] How to add CRT TV off effect:

First off this is for people that know how to decompile/compile apk's..
What this is = Watch here
1: Decompile framework-res.apk using something like apk manager
2: Edit the file \res\values\bools.xml
3: Change value of bool name='config_animateScreenLights' from 'true' to 'false'
4: Compile framework-res.apk
5: Push new framework-res.apk to your phone with root explorer or adb push.
6: Profit...
~~~~~~~~~~~~~~~~~~
How to change the statusbar color:
1: Decompile SystemUI.apk
2: Edit the file \smali\com\android\systemui\statusbar\Clock.smali
3: Search for the line with ->setTextColor comment it and the line above out with a # infront of the two lines.
4: Compile the SystemUI.apk
5: Decompile framework-res.apk and edit the file \res\values\styles.xml
6: Find the style name 'TextAppearance.StatusBar' and change the textColor item to the color you want
7: Compile framework-res.apk
8: Profit More.
These guides will work with about any 2.3 rom out. Thanks to various sources for help on finding these..
(Will add more to this later)
do you have the compiled version of the CRT TV effect?
I will post a version later as the one I got is tweaked and would more and likely cause you guys bootloops.
I decompiled framework but I don't have a values folder in res. Am I missing something? Thanks!
dubntz said:
I decompiled framework but I don't have a values folder in res. Am I missing something? Thanks!
Click to expand...
Click to collapse
are you sure you "decompiled"? or just extracted?
I used APK Manager. Does that not decompile it?
c19932 said:
are you sure you "decompiled"? or just extracted?
Click to expand...
Click to collapse
Going to update my guide so people know to decompile and not extract
I used APK Manager. Does that not decompile it?
Click to expand...
Click to collapse
if you used the decompile option it should have.
Yeah, I just extracted and did not decompile it. Now that I did it right I see the file. Thanks for the help! Much appreciated!
I'm a little curious. Chris mentioned they left the screen-off animation disabled because of issues they were having. Have you experienced any issues at all?
tweezit said:
1: Decompile framework-res.apk using something like apk manager
2: Edit the file \res\values\bools.xml
3: Change value of bool name='config_animateScreenLights' from 'true' to 'false'
4: Compile framework-res.apk
5: Push new framework-res.apk to your phone with root explorer or adb push.
6: Profit...
Click to expand...
Click to collapse
What would you suggest to look into if the setting is already set to false?
Have you got this to work for Cm7 yet?
Sent from my LG-P999 using XDA App
Thanks! Now I gotta reflash 2.3 so I can try to get the status bar vanilla.
MWBehr said:
I'm a little curious. Chris mentioned they left the screen-off animation disabled because of issues they were having. Have you experienced any issues at all?
Click to expand...
Click to collapse
Yes on some roms you will get wake lag bad & others it will work fine.. On the 2.3 leak it will go to a black screen for a while. (that's due to 2.2.2 drivers though from what I can tell.)
Have you got it to work on cm7?
Is it possible to clarify what framework-res.apk is referred this tutorial?
I read these posts and seems like it has not mentioned so far. However, in my case (i am running MoDaCo Fr16 CR) after decompiling framework-res.apk i cannot see that config inside res->values->bool.xml.
Maybe i'm missing something
Thanks in advance.
name="config_annoy_dianne"
lol, just thought that was amusing. let's not annoy dianne.
anyways,trying this now on bionix.
i'm no expert at decompiling etc. just figured it out today lol. i'm pretty positive i did it correctly using apktool. however, after copying the compiled apk back to phone, it just hangs at a black screen on reboot. maybe i did it right and it's just not compatible with bionix? i did read on the apktool site that it won't be signed after recompiling. is this why it won't work? anybody successful here?
crazythunder said:
name="config_annoy_dianne"
lol, just thought that was amusing. let's not annoy dianne.
anyways,trying this now on bionix.
Click to expand...
Click to collapse
Bionix? For the g2x?
Sent from my HTC Vision using XDA Premium App
drewtang said:
Bionix? For the g2x?
Sent from my HTC Vision using XDA Premium App
Click to expand...
Click to collapse
shhhh, it's a secret.
crazythunder said:
shhhh, it's a secret.
Click to expand...
Click to collapse
Ahhhhhhh I WANTS IT.

[Q] framework-res.apk problem

In "framework-res.apk/res/layout" when I edit the "status_bar_expanded.xml",
even if I add one dot and delete it again and save the file, it doesn't work
anymore and it stucks on my bootanimation, and loops over and over.
I use "apk manager" for decompiling and compiling the framework-res.apk.
Does any one know what the problem is?
Thank you?
sohrab1985 said:
In "framework-res.apk/res/layout" when I edit the "status_bar_expanded.xml",
even if I add one dot and delete it again and save the file, it doesn't work
anymore and it stucks on my bootanimation, and loops over and over.
I use "apk manager" for decompiling and compiling the framework-res.apk.
Does any one know what the problem is?
Thank you?
Click to expand...
Click to collapse
what do you mean add one dot?
kay_kiat88 said:
what do you mean add one dot?
Click to expand...
Click to collapse
To the code obviously. ie he cant seam to save file without it breaking, even if removing what he added prior to saving.
TheATHEiST said:
To the code obviously. ie he cant seam to save file without it breaking, even if removing what he added prior to saving.
Click to expand...
Click to collapse
i know it's obviously to the code. upload your .xml let me take a look.
also ensure that the /(yourdirectory)/apktool/framework/1.apk where 1.apk is your original framework-res.apk and /(yourdirectory)/apktool/framework/2.apk where 2.apk is your original tw-framework-res.apk
statusbarexpanded
Hey
Do any know what @id/plmnLabel and @id/spnLabel refers to? Im speculating it has something to do with service provider.. Since the theme of framework is set to Black, the service provider text color is black as well, so ive made edits to
...Color=?textColorSecondary on both (removed Inverse) ive not tested this, maybe u have Kay?
biopsin said:
Hey
Do any know what @id/plmnLabel and @id/spnLabel refers to? Im speculating it has something to do with service provider.. Since the theme of framework is set to Black, the service provider text color is black as well, so ive made edits to
...Color=?textColorSecondary on both (removed Inverse) ive not tested this, maybe u have Kay?
Click to expand...
Click to collapse
nope i haven't tested it but u can read here: http://forum.xda-developers.com/showpost.php?p=9066440&postcount=1
android:id="@id/plmnLabel". This is the Carrier name
android:id="@id/spnLabel". This is the Provider name
this post is useful for froyo.
but i'm already on gingerbread. for gingerbread, read: http://forum.xda-developers.com/showpost.php?p=9978779&postcount=62
all working great ..
Tnx k - ur right still on froyo
kay_kiat88 said:
what do you mean add one dot?
Click to expand...
Click to collapse
I mean you even can't make a small change in that xml.
kay_kiat88 said:
i know it's obviously to the code. upload your .xml let me take a look.
also ensure that the /(yourdirectory)/apktool/framework/1.apk where 1.apk is your original framework-res.apk and /(yourdirectory)/apktool/framework/2.apk where 2.apk is your original tw-framework-res.apk
Click to expand...
Click to collapse
Here is my "status_bar_expanded.xml"
I just want to change some colors. I did the same thing for other xmls like
"status_bar_latest_event_content.xml" and it works perfectly, but for that
one, it stucks on my bootanimation. when I compile the xml I get no error
but I don't know what the problem is.
For that 1.apk and 2.apk, no I didn't do that.
I'll try it and report back.
sohrab1985 said:
Here is my "status_bar_expanded.xml"
I just want to change some colors. I did the same thing for other xmls like
"status_bar_latest_event_content.xml" and it works perfectly, but for that
one, it stucks on my bootanimation. when I compile the xml I get no error
but I don't know what the problem is.
Click to expand...
Click to collapse
If u use wrong definisions it wil stall.. What color is this in your file android:textColor="#ff7bad00" ?
After compiling did u copy the manifest and metainf folder to the new framework Res?
Sent from my GT-P1000 using XDA Premium App
biopsin said:
If u use wrong definisions it wil stall.. What color is this in your file android:textColor="#ff7bad00" ?
Click to expand...
Click to collapse
it's the color of operator name in status bar and that "clear" button, and I changed it to "#ff000000"
zenkinz said:
After compiling did u copy the manifest and metainf folder to the new framework Res?
Sent from my GT-P1000 using XDA Premium App
Click to expand...
Click to collapse
Honestly, I don't know what those "manifest" and "metainf" are, because I changed some xmls and I'd had no problem with them, So I thought that's the way to compile and decompile framework-res.apk.
Could you plz tell me what should I do? Thanks.
sohrab1985 said:
Honestly, I don't know what those "manifest" and "metainf" are, because I changed some xmls and I'd had no problem with them, So I thought that's the way to compile and decompile framework-res.apk.
Could you plz tell me what should I do? Thanks.
Click to expand...
Click to collapse
I thought u already have this covered because it sounded like you have no problem with other XML except this.
But if u have not heard of the two files/folder I have hightlighted chances are you don't have them in your newly compiled apk which will cause bootloop.
After compiling ur apk you should see that meta-inf folder is missing. U need to copy that from the original API, along with manifest.XML to the new apk.
Sent from my GT-P1000 using XDA Premium App
zenkinz said:
I thought u already have this covered because it sounded like you have no problem with other XML except this.
But if u have not heard of the two files/folder I have hightlighted chances are you don't have them in your newly compiled apk which will cause bootloop.
After compiling ur apk you should see that meta-inf folder is missing. U need to copy that from the original API, along with manifest.XML to the new apk.
Sent from my GT-P1000 using XDA Premium App
Click to expand...
Click to collapse
that's right, I've had no problem with any xmls without copying those files until now, but thanks to you I can edit this one, too.
Thank you so much.

[MOD]Center Clock Mod and More

I am putting this together for anyone interested in having your clock centered and if you are so inclined a bit of advice on how to change out some statusbar icons I will not be providing the actual icons but will explain how to do so if you are interested.
This should work on any one xl using stock deodexed sense but has only been tested on the att version.
First off you must be rooted and have a deodexed rom installed.
You will need some type of file explorer I use root explorer
You will need this app Zip Themer installed on your phone LINK
Once you have Zip Themer installed grab the attached file and place it in the folder on your sd card named zip themer.
Whats inside the zip? It is a compiled status_bar.xml with the center clock mod applied.
Now run zip themer select +theme and then select the zip you just placed in the folder then select build it when complete you will find two zip files on the root of your sd one called update and one called undo take the the one name update and unzip it inside you will find a systemui.apk.
Take the apk and navigate to system app folder and create a folder name temp.
Place the apk inside now fix the permissions to match the existing systemui.apk
Once you have done that move it to the system app folder it will ask you if you wish to overwrite the current apk say yes and reboot phone and you will have your clock centered.
If something goes wrong the undo folder contains a original copy of your systemui.apk so can replace it.
Now if your feeling more adventurous and wish to change out some icons as well you will need a copy of your systemui on your pc unzip it inside navigate to
res drawable-xhdpi folder you will need this as reference to name your new icons. Unzip the file attached to this post on your pc as well.
Find the icons you wish to use and place them in the systemui res drawable-xhdpi folder that is in the zip I provided make sure to name them exactly as they are named in the origional systemui folder when you have all your icons zip the xml file and the folder and follow the instructions above.
Please do this at your own risk I am not responsible if you brick your phone or anything else.
Updated
Statusbar icons that were used in my set up are now attached
For data signal only 4g is themed because that is all I needed I don't get lte and very seldom drop of 4g well actually I have never dropped off 4g since I had the phone. The saturn icons were made by me the other icons were from various sources so credt to those who made them.
Here's a screen shot of mine to show what can be done.
Using nova launcher and stock deodexed sense
what rom are you running?
Any chance you could upload the Icons you're using there?
h_zee13 said:
what rom are you running?
Click to expand...
Click to collapse
It's just the stock sense
Edit
By the way huge fan of your miui lock screens nice to see you have the one x
Sent from my Rooted Hox
taylor.fowler said:
Any chance you could upload the Icons you're using there?
Click to expand...
Click to collapse
Out at the moment but will do when I get home later
Sent from my Rooted Hox
E.Cadro said:
Out at the moment but will do when I get home later
Sent from my Rooted Hox
Click to expand...
Click to collapse
Awesome! Thanks much.
E.Cadro said:
It's just the stock sense
Edit
By the way huge fan of your miui lock screens nice to see you have the one x
Sent from my Rooted Hox
Click to expand...
Click to collapse
oh so I guess this mod will work on my Rogers OneX which is rooted and has an unlocked bootloader?
oh and i'll be a fan of yours if this mod works on my phone with my current setup
EDIT: I guess I don't have a deodexed rom so it won't work
h_zee13 said:
oh so I guess this mod will work on my Rogers OneX which is rooted and has an unlocked bootloader?
oh and i'll be a fan of yours if this mod works on my phone with my current setup
EDIT: I guess I don't have a deodexed rom so it won't work
Click to expand...
Click to collapse
I never tried it on a odexed file but I read through the entire manual for zip themes and no where did it say deodexed just root required. Let me look into some more when I get home.
Edit
It should work h_zee I can't find anything that says it won't.
Sent from my Rooted Hox
taylor.fowler said:
Awesome! Thanks much.
Click to expand...
Click to collapse
Statusbar icons added to first post
Do you happen to know how to make the clock disappear when a notification comes in?
Cryosx said:
Do you happen to know how to make the clock disappear when a notification comes in?
Click to expand...
Click to collapse
I don't think it's possible and if it is it far beyond my skills.
Sent from my Rooted Hox
E.Cadro said:
I don't think it's possible and if it is it far beyond my skills.
Sent from my Rooted Hox
Click to expand...
Click to collapse
ah well, i'll just wait for aokp (if it ever comes)

[Q] Will Themes from the International One X work for us?

Shouldn't the themes for the International One X work for us as well? Especially since there's a new way of theming that just replaces the graphical stuff and not the actual apk. They say it should work on most devices with same sense versions. We have the same sense version, same resolution same buttons etc. I've tried a few but the developers have a model check and they abort. The one that i found over there that did not do a model check worked fine. Could someone with experience with themes chime in please? thanks!
EDIT. I'm only talking about themes With the villain theming system. It does not replace the apks, only mods them.
http://forum.xda-developers.com/show....php?t=1207017
http://www.villainrom.co.uk/forum/th...e-system.4971/
seshmaru said:
VillainTheme System 0.4.0
As a user, you don't need to know much - just flash this zip like a regular zip, and you'll get your theme running. But you should be able to apply themes to any device, ROM, and version of the ROM, without it causing adverse effects. That means less time spent by themers making the original theme, and less time spent modifying it constantly for new versions of ROMs.
Features..
Will modify APKs in a ROM, without changing signatures, and can be used on any ROM where the filenames of themed files is the same.
Should not need updated between versions of a ROM
Zipaligns all APKs before installation
Stores a backup of all files being modified in /cache/vrtheme-backup/
Requires no coding abilities or editing of files - just drag and drop
Can copy "raw" files, though at risk of not working on other devices
Click to expand...
Click to collapse
What "new theming method" are you talking about?
The only type of themeing I've seen is replacing system files, like SystemUI.apk and stuff.
It that's the case, then no it won't work.
rohan32 said:
What "new theming method" are you talking about?
The only type of themeing I've seen is replacing system files, like SystemUI.apk and stuff.
It that's the case, then no it won't work.
Click to expand...
Click to collapse
Well its not real new. And i'm not a themer so i could have misunderstood.
http://forum.xda-developers.com/showthread.php?t=1207017
http://www.villainrom.co.uk/forum/threads/about-villaintheme-system.4971/
seshmaru said:
VillainTheme System 0.4.0
As a user, you don't need to know much - just flash this zip like a regular zip, and you'll get your theme running. But you should be able to apply themes to any device, ROM, and version of the ROM, without it causing adverse effects. That means less time spent by themers making the original theme, and less time spent modifying it constantly for new versions of ROMs.
Click to expand...
Click to collapse
I changed text to red that i thought pertained to this subject
I installed this theme without issues. Was made using villain theme system for the International one X
Quote from changelog of this theme
UPDATE 21 May: After a lot of tweaking and tinkering, have managed to make the theme work with the VillainTheme system. This means that it should now work with any ROM, and shouldn't affect any of the ROM dev's individual tweaks.
The theme modifies the following system apks:
framework-res.apk
SystemUI.apk
com.htc.resources.apk
fusion.apk
Click to expand...
Click to collapse
Anyone?
only way to know is to try.
---------- Post added at 01:37 PM ---------- Previous post was at 01:25 PM ----------
I was able to flash the glass dialer from http://forum.xda-developers.com/showthread.php?t=1601719
so it looks like we may be good to go
EDIT:
I just tried the bubble battery mod it didn't work
gunnyman said:
only way to know is to try.
---------- Post added at 01:37 PM ---------- Previous post was at 01:25 PM ----------
I was able to flash the glass dialer from http://forum.xda-developers.com/showthread.php?t=1601719
so it looks like we may be good to go
EDIT:
I just tried the bubble battery mod it didn't work
Click to expand...
Click to collapse
For me a lot of the themes to a model check and since we dont have endeavor it aborts.
Bumpity bump
nugzo said:
Bumpity bump
Click to expand...
Click to collapse
Sense 4 is sense 4 as far as I know. I'm sure you can remove the model check form the update script. link one you'd like to install and I'll check it out
That's definitely not a good idea. Most Sense themes contain the SystemUI.apk, framework-res.apk and com.htc.resources.apk. So if the rom your using on your AT&T One X has any mods done to any of those apk's you will loose them and if the rom that the theme was built for has any mods done to those apk's you will more than likely have issues. If there is a specific theme you like, get me the link and I will try to port it over.
Tiffany84 said:
That's definitely not a good idea. Most Sense themes contain the SystemUI.apk, framework-res.apk and com.htc.resources.apk. So if the rom your using on your AT&T One X has any mods done to any of those apk's you will loose them and if the rom that the theme was built for has any mods done to those apk's you will more than likely have issues. If there is a specific theme you like, get me the link and I will try to port it over.
Click to expand...
Click to collapse
good point. I can be such a noob sometimes.
Here's some I've used.....
http://forum.xda-developers.com/showthread.php?t=1699380
Sent from my HTC One X using xda premium
gunnyman said:
good point. I can be such a noob sometimes.
Click to expand...
Click to collapse
No you're right, not a noob. Tiff didn't realize I was talking about the villain theming system.. This system only replaces graphics, not the entire apk. Unfortunately she said she wasn't familiar ( hasn't used it) so that reply is a little misleading. I'll get you that theme I was talking about to try and change the model.
gunnyman said:
only way to know is to try.
EDIT:
I just tried the bubble battery mod it didn't work
Click to expand...
Click to collapse
Remember I'm just talking about themes done with villain only. All others will replace system ui etc. We don't want that...just the new school
gunnyman said:
Sense 4 is sense 4 as far as I know. I'm sure you can remove the model check form the update script. link one you'd like to install and I'll check it out
Click to expand...
Click to collapse
See if you can change this to evita. Or remove the model check all together. I'll test it
http://forum.xda-developers.com/showthread.php?t=1635779.
nugzo said:
See if you can change this to evita. Or remove the model check all together. I'll test it
http://forum.xda-developers.com/showthread.php?t=1635779.
Click to expand...
Click to collapse
Ok I've found the model check lines in the aroma installer but I have no idea how to disable them.
It LOOKS like if you unzip the theme you can push the vrtheme folder to your sd card on your phone and then run the installtheme.sh from adb shell.
EDIT:
BZZZZZT thanks for playing try again.
gunnyman said:
Ok I've found the model check lines in the aroma installer but I have no idea how to disable them.
It LOOKS like if you unzip the theme you can push the vrtheme folder to your sd card on your phone and then run the installtheme.sh from adb shell.
EDIT:
BZZZZZT thanks for playing try again.
Click to expand...
Click to collapse
Wouldn't it be a little hard to install a theme while the rom is running? Just thinking it would be A mess changing graphics while active. Unless I misunderstood yooz.
Maybe I could swap the vrtheme folder in the theme that does work, doesn't check the model. That cream theme I posted earlier..mwhat a horrible name lol
nugzo said:
Wouldn't it be a little hard to install a theme while the rom is running? Just thinking it would be A mess changing graphics while active. Unless I misunderstood yooz.
Maybe I could swap the vrtheme folder in the theme that does work, doesn't check the model. That cream theme I posted earlier..mwhat a horrible name lol
Click to expand...
Click to collapse
if you look at updater-script you can change endeavor0 to evita.
Then it will pass the check. but I'm scared to try it myself
but swapping the files in that cream theme might make more sense
I just tried swapping out the vrtheme folder and it dien't work it failed to install in recovery
gunnyman said:
if you look at updater-script you can change endeavor0 to evita.
Then it will pass the check. but I'm scared to try it myself
b
Click to expand...
Click to collapse
Not familiar with this..Which file is it?
nm found it
nm no i didnt thought it was in install theme but it is not.
nugzo said:
Not familiar with this..Which file is it?
Click to expand...
Click to collapse
meta-inf/com/google/android/
gunnyman said:
meta-inf/com/google/android/
Click to expand...
Click to collapse
ok here goes. changed to evita in about 5 places
installed fine..rebooting zipaligning

[DEV QUESTION] APK Decompile Enable Single Screen Non-Scrolling?

Hello,
I have a question about modifying APKs.
I have just decompiled the Apex Launcher APK, and I would like to change the Homescreen Settings to display the wallpaper as a "Single screen non-scrolling"
Does anyone know which XML file this would be under? And what values should I change to make this happen?
Thanks for any help.
troby86 said:
Hello,
I have a question about modifying APKs.
I have just decompiled the Apex Launcher APK, and I would like to change the Homescreen Settings to display the wallpaper as a "Single screen non-scrolling"
Does anyone know which XML file this would be under? And what values should I change to make this happen?
Thanks for any help.
Click to expand...
Click to collapse
Hi,
Maybe you will find some joy HERE
malybru said:
Hi,
Maybe you will find some joy HERE
Click to expand...
Click to collapse
Thanks for the link.
I have found that the Scrolling Settings for Android are within the Workspace.smali file.
Does anyone know exactly what line of code would need to be changed? There is over 19,000 lines in this file, so anyone that has experiance in this would be amazing, thanks. My only goal is to have the OS start with "Single screen non-scrolling" enabled instead of the "Multi screen scrolling" that is enabled by default.
Ok, so I have uploaded a copy of the Workspace.smali I am working with. I have found references at line 4201, 16220, and 18887 that deal with scrolling and wallpaper dimensions. Could someone look over this and let me know if any of these line are able to be modified to change the scrolling? Thanks.
Apex launcher has this in setting to change wallpaper mode. Why are you trying to modify apk then? Just trying to understand your purpose.
webharsh said:
Apex launcher has this in setting to change wallpaper mode. Why are you trying to modify apk then? Just trying to understand your purpose.
Click to expand...
Click to collapse
Because I am developing a ROM, and I am trying to learn how to modify smali files to control certain parts of the system, so that I can have preset settings already activated as soon as a ROM is flashed.
Sent from my HTC Sensation 4G using xda app-developers app
troby86 said:
Because I am developing a ROM, and I am trying to learn how to modify smali files to control certain parts of the system, so that I can have preset settings already activated as soon as a ROM is flashed.
Sent from my HTC Sensation 4G using xda app-developers app
Click to expand...
Click to collapse
It'll be easier for you if you just compiled it from source. It'll also be easier to locate the needed line that would need to be changed.
Sent from my HTC Sensation using xda premium

Categories

Resources