So I was wondering, is there anyway for me to edit the base and accent colours of the framework.apk in the system files so I can make my phone look different from others. I know this can be done using Cyanogenmod's theme engine but I'd prefer to stay on a stock version of android which is more stable and up to date.
I have android 7.1.1 beta with root and an unlocked bootloader, I have tried taking the framework.apk from other device to put on my own but it always causes a stuff up in the data partition (which is kind of expected) meaning that I need to factory reset my phone to get it working again.
Thank you in advance.
Images of some extreme examples are available below
Substratum legacy works on stock roms, but ypu need root from ive read! Ive never tried! Always make backup first
Jackio987 said:
So I was wondering, is there anyway for me to edit the base and accent colours of the framework.apk in the system files so I can make my phone look different from others. I know this can be done using Cyanogenmod's theme engine but I'd prefer to stay on a stock version of android which is more stable and up to date.
I have android 7.1.1 beta with root and an unlocked bootloader, I have tried taking the framework.apk from other device to put on my own but it always causes a stuff up in the data partition (which is kind of expected) meaning that I need to factory reset my phone to get it working again.
Thank you in advance.
Images of some extreme examples are available below
Click to expand...
Click to collapse
Yes it is possible. Decompile your framework-res.apk and change the accent colors in your res/values/colors . XML and your Systemui.apk and your Settings Google.apk for the switchbar background.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Tulsadiver said:
Yes it is possible. Decompile your framework-res.apk and change the accent colors in your res/values/colors . XML and your Systemui.apk and your Settings Google.apk for the switchbar background.
View attachment 3925511 View attachment 3925512 View attachment 3925513
Click to expand...
Click to collapse
So I have taken a look at the framework-res.apk/res/values/color folder and extracted a few of the .xml files to take a look at them. I opened the files using notepad++ but nothing comes up correctly and I can't find any number values to represent the colors. So I was wondering if there were any special programs that I have to open the .xml files in and if there is can you also point me to the .xml file that edits the colors of the quick settings.
I have also taken a look at Substratum and it says that android 7.1.1 is unstable for use with the application.
Jackio987 said:
So I have taken a look at the framework-res.apk/res/values/color folder and extracted a few of the .xml files to take a look at them. I opened the files using notepad++ but nothing comes up correctly and I can't find any number values to represent the colors. So I was wondering if there were any special programs that I have to open the .xml files in and if there is can you also point me to the .xml file that edits the colors of the quick settings.
I have also taken a look at Substratum and it says that android 7.1.1 is unstable for use with the application.
Click to expand...
Click to collapse
What are you using to decompile the apk? If you haven't already, try using apktool. Install apktool and then in a terminal use:
Code:
apktool decode framework-res.apk
That should spit out proper xml files.
screenshot:
[IMG]http://i.imgur.com/ap6auRM.png[/IMG]
Jackio987 said:
So I have taken a look at the framework-res.apk/res/values/color folder and extracted a few of the .xml files to take a look at them. I opened the files using notepad++ but nothing comes up correctly and I can't find any number values to represent the colors. So I was wondering if there were any special programs that I have to open the .xml files in and if there is can you also point me to the .xml file that edits the colors of the quick settings.
I have also taken a look at Substratum and it says that android 7.1.1 is unstable for use with the application.
Click to expand...
Click to collapse
Yes, you are looking at files that have not been decompiled Apktool is a great tool. Take a look at "tickle my android" if you want the best and easiest one around.
And, for the QS background, you will need to decompile Systemui.apk I believe it is in the layout folder, a XML file called qs_background_primary. XML change the solid color from ?android color primary to the hex code color of your choice
http://forum.xda-developers.com/showthread.php?t=1633333
synesthete said:
What are you using to decompile the apk? If you haven't already, try using apktool. Install apktool and then in a terminal use:
Code:
apktool decode framework-res.apk
That should spit out proper xml files.
screenshot:
[IMG]http://i.imgur.com/ap6auRM.png[/IMG]
Click to expand...
Click to collapse
Thank you for your help. Now I just want to make sure because this is my first time actually playing around with system apk's, Do I need to do anything special to package the apk back together and onto my device other than applying the right permissions?
Also the reason why the xml's weren't working at first was because I just used winrar to extract the files because that worked on iOS's IPA's when I used to work with them and my current guess would be that if I was to put the apk back onto my phone I would need to do more than package it as a .zip and rename it as an .apk.
I would test this on my Moto G first but it's super stuffed up at the moment.
Jackio987 said:
Thank you for your help. Now I just want to make sure because this is my first time actually playing around with system apk's, Do I need to do anything special to package the apk back together and onto my device other than applying the right permissions?
Also the reason why the xml's weren't working at first was because I just used winrar to extract the files because that worked on iOS's IPA's when I used to work with them and my current guess would be that if I was to put the apk back onto my phone I would need to do more than package it as a .zip and rename it as an .apk.
I would test this on my Moto G first but it's super stuffed up at the moment.
Click to expand...
Click to collapse
To recompile,
Code:
apktool b systemui
(or framework-res) You will want to replace the meta-inf and android manifest of your newly recompiled apk with the original ones.
First, before you do any decompiling you must install your framework
Code:
apktool if framework-res.apk
Tulsadiver said:
To recompile, Apktool b systemui (or framework-res) You will want to replace the meta-inf and android manifest of your newly recompiled apk with the original ones.
Click to expand...
Click to collapse
Thank you I'll try it now
Ok it worked. Thank you so much for your help. With this new found knowledge I probably won't do much but it's just something useful to know just in case I have a sudden urge to make my operating system's main colours yellow and brown. Also editing just the colour values in the framework edited the colours in the quick settings and the settings application because they all refer to the framework for that colour.
Things I have learned:
How to decompile apk's properly
How to edit system ui/ framework/ settings colours
How to recompile an apk
How to make sure that the apk works when your device boots up.
Thank you everyone I couldn't of done it with out you.
EDIT: Oops. Just saw that someone else replied (and with better info). You can disregard this post. I'm glad you got your answers.
Jackio987 said:
Thank you for your help. Now I just want to make sure because this is my first time actually playing around with system apk's, Do I need to do anything special to package the apk back together and onto my device other than applying the right permissions?
Also the reason why the xml's weren't working at first was because I just used winrar to extract the files because that worked on iOS's IPA's when I used to work with them and my current guess would be that if I was to put the apk back onto my phone I would need to do more than package it as a .zip and rename it as an .apk.
I would test this on my Moto G first but it's super stuffed up at the moment.
Click to expand...
Click to collapse
The apktool decode command will spit out a folder tree. After making your edits, you should be able to use the apktool build command to recompile to an apk file again. If you don't specify a specific output path, it will probably dump it in a "dist" subfolder within the decompiled apk folder. If you just type "apktool" in the terminal, it should give you more detailed instructions for its options. Once you have an apk, you might need to sign it. You should be able to do that easily on your android device with the app zipsigner: https://play.google.com/store/apps/details?id=kellinwood.zipsigner2
Once you have the signed apk you should be able to replace the original with the same permissions and group policy settings and reboot. I would recommend making a nandroid backup to revert to in case you get stuck in a bootloop. It has been a long time since I have done this, so I might have missed something. Maybe I will give it a try when I have some time later.
how to add pixel icons in system apk
hilla_killa said:
Substratum legacy works on stock roms, but ypu need root from ive read! Ive never tried! Always make backup first
Click to expand...
Click to collapse
Unfortunately Substratum isn't really working too well on the 7.1 DP and it will notifiy you when using the app that modifying anything may very well cause bootloop, which in my case was very true. Tried to install the Pixel Theme that worked flawlessly on 7.0, then bootlooped after the required reboot. However, you can still try it and revert back fairly easily. The dev created 2 .zips in the Substratum folder to fix the bootloop if it does happen (the legacy zip is what fixed mine).
A$h!$h said:
how to add pixel icons in system apk
Click to expand...
Click to collapse
Which icons are you referring to? Navbar or apps?
Jackio987 said:
So I was wondering, is there anyway for me to edit the base and accent colours of the framework.apk in the system files so I can make my phone look different from others. I know this can be done using Cyanogenmod's theme engine but I'd prefer to stay on a stock version of android which is more stable and up to date.
I have android 7.1.1 beta with root and an unlocked bootloader, I have tried taking the framework.apk from other device to put on my own but it always causes a stuff up in the data partition (which is kind of expected) meaning that I need to factory reset my phone to get it working again.
Thank you in advance.
Images of some extreme examples are available below
Click to expand...
Click to collapse
Hey Jackio987,
Yeah! that's true
Refer to my post for better customizations! That's here
Related
MetaMorph has been updated so that all old MetaMorphs that use a .thm control file WILL NOT WORK! This guide has been updated to instruct you on how to convert your themes to the new format
MetaMorph uses .zip files for its themes which the app unzips and places in a folder.
Inside the .zip is a .xml file and several folders for the apps you want to edit. (For example, you'll see com.htc.resources and Rosie folders in themes that change the bottom bar.) Treat these folders as if they were the .apks themselves. They use the same folder structure. So if you have a file in the folder Rosie/res/drawable/ in your theme's .zip, then MetaMorph will open up Rosie.apk and stick it in the /res/drawable/ folder. Get it?
So that's how you place the files. And the great part about MetaMorph is that you only need to put in the files that you're changing. That's all it needs. This keeps the themes very small and easy to edit, since you can see exactly which files need to be changed!
To create your theme control file, download the attached theme_control_template.xml.txt (rename it to remove the .txt extension) and fill in the required fields using any xml editor (I recommend Notepad++). Name the .xml file the EXACT SAME NAME as the name of the theme. If they do not match they the theme won't work.
Once you have your .xml file created, zip up the folder, place it in the AndroidThemes folder on your sdcard and start MetaMorph. MetaMorph will unzip it, create a new, unzipped folder in AndroidThemes, and add a .nomedia file in there.
This is a very simple process that can easily be done in as little as 5 minutes.
Here is a more in-depth guide if you so desire (by the author of the app): http://forum.xda-developers.com/showthread.php?t=591329
And here is a collection of MetaMorphs created (Note: most of these WILL NOT work on Sense ROM's! Read what ROM each theme is created for carefullly! If you have a question, ask and someone will tell you if the theme is usable on your Hero): http://forum.xda-developers.com/showthread.php?t=589315
Thanks for the tutorial. I've always wondered why more people don't use metamorph (for the Hero at least). It's such a great application. Hopefully we'll see some new themes popping up soon. Thanks!
So If I wanted to change a file in rosie.apk I would only need to place the modded file in the apk into metamorph? All the other junk can be left out?
Just did a little more reading and looking at some examples and looks like I got it. Thank for the information
Yea I hope to see more themes using this, seems alot easier and more flexible for designers/themers
I have a few font replacements that I found within the G1 forums:
SonySketch - Credit teradaz
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Custom_Font - Credit DeadBody79 *(note that this font causes some stacking in the text, such as the alarm clock time and some app names)*
Please Nandroid before installing. Both were verified with Damage Control v.2.05. Should work for any ROM based on DC v2.05, not verified on 1.5/6 ROMs although I think they would work if the font files are in the /system/fonts directory and named the same as the Morphs. Stock fonts have also been provided.
I am having bit a problem with MetaMorph. After I open up Metamorph, it says that it needs to check a few things to make sure the phone meets all the requirement. After I press "Start Checks" it opens up Superuser but does nothing. I know superuser is working fine cuz it works for wifi tether. What am i doing wrong?
What ROM version do you have installed? After it checked for updates did you get the option to select "allow", "Always Allow", etc.? If there was something wrong Metamorph would probably have given you and error.
Re: [Guide] MetaMorphing!
so use meta to change those fonts you zipped. wondering if there is a way to apply the font changes to only certain parts of the phone. would this make it easier to change the colors of backgrounds and menus etc?
souless poet said:
so use meta to change those fonts you zipped. wondering if there is a way to apply the font changes to only certain parts of the phone. would this make it easier to change the colors of backgrounds and menus etc?
Click to expand...
Click to collapse
Not sure if you could change certain fonts without it affecting all fonts on the phone.
srkmagnus said:
What ROM version do you have installed? After it checked for updates did you get the option to select "allow", "Always Allow", etc.? If there was something wrong Metamorph would probably have given you and error.
Click to expand...
Click to collapse
I am using Fresh 2.0d. I just get a blank screen on superuser. It doesn't show the option to "Allow" just blank screen!
skhonda said:
I am using Fresh 2.0d. I just get a blank screen on superuser. It doesn't show the option to "Allow" just blank screen!
Click to expand...
Click to collapse
I have the same issue on my phone, using DCv2.05. Most of the time SU force closes.
skhonda said:
I am using Fresh 2.0d. I just get a blank screen on superuser. It doesn't show the option to "Allow" just blank screen!
Click to expand...
Click to collapse
Hey I'm new to these forums but I had a previous issue that did the same thing on Fresh's 2.0d. I did a search on here and it told me to make sure USB Debugging was on. It wasn't but once it was problem solved. Hope I could help!
OsNaYa said:
Hey I'm new to these forums but I had a previous issue that did the same thing on Fresh's 2.0d. I did a search on here and it told me to make sure USB Debugging was on. It wasn't but once it was problem solved. Hope I could help!
Click to expand...
Click to collapse
Yeah, that did it. Just turned on USB debugging and everything worked. Thanks
Does anybody have a good resource for metamorph themes?
Edit: nevermind, missed the link on the first post. Any other suggestions are welcomed
Every theme I download and put on my sd card gives me a invalid theme or theme is missing error. I would know exactly what it said if it stayed up for more than a second and 1/2. I am downloading themes based on the Rom I have yet NOTHING will work. Am I missing a step here. I download, put it in the AndroidThemes dir on the sd card then open Metamorph Pro and extract. I then get the message about it being invalid or it is missing.
redram38 said:
Every theme I download and put on my sd card gives me a invalid theme or theme is missing error. I would know exactly what it said if it stayed up for more than a second and 1/2. I am downloading themes based on the Rom I have yet NOTHING will work. Am I missing a step here. I download, put it in the AndroidThemes dir on the sd card then open Metamorph Pro and extract. I then get the message about it being invalid or it is missing.
Click to expand...
Click to collapse
I'm getting the same message? I have no idea what I am doing wrong, I followed the guides?
Running Dammage 2.06ROM
Looking for a little help here. I want to change my bluetooth images in the framework-res.apk.
I keep getting this error.....
"The theme you selected is invalid because the the theme control file could not be read and may be missing"
This is what I have in my .thm file...
framework-res.apk
/system/framework/
This is the directory structure for my zip file (test.zip)....
-test
- framework-res
- res
- drawable-mdpi
My .thm file is in the test directory my images are in the drawable-mdpi directory.
Any idea what I might be doing wrong? Is BusyBox required for this to work? I saw some posts that led me to believe it was but others don't say anything about it. I am rooted and downloaded Metamorph and it seem to run okay accept for the error when trying to load my zip file.
Thanks.
Ok, for the people who are getting invalid theme messages:
Recently, Stericson changed MetaMorph - Donate to MetaMorph Pro. MetaMorph Pro uses a different theme format than MetaMorph free does! Instead of using .thm files, it uses .xml files. This means that any themes that were made for MetaMorph free WILL NOT work for MetaMorph Pro! Kinda lame, I know, but that's the case for right now.
My best advice for you is to just install the free version for now. I know you paid $3 for the Pro version and I don't want you to waste your money, so as soon as I am able to I will look into converting these into themes compatible with MetaMorph Pro.
Sorry for the inconvenience.
Gregalous said:
Ok, for the people who are getting invalid theme messages:
Recently, Stericson changed MetaMorph - Donate to MetaMorph Pro. MetaMorph Pro uses a different theme format than MetaMorph free does! Instead of using .thm files, it uses .xml files. This means that any themes that were made for MetaMorph free WILL NOT work for MetaMorph Pro! Kinda lame, I know, but that's the case for right now.
My best advice for you is to just install the free version for now. I know you paid $3 for the Pro version and I don't want you to waste your money, so as soon as I am able to I will look into converting these into themes compatible with MetaMorph Pro.
Sorry for the inconvenience.
Click to expand...
Click to collapse
I saw that and also tried a xml file.
"<?xml version="1.0"?>
<item>framework-res.apk</item>
<path>/system/framework/</path>
"
That's what I had. Very basic but thought it was enough to work but got the same message.
I am running the free version 1.9.4 I think?
.
Does anyone still have instructions/required files for changing the notification bar on a 2.2 Droid X?
Before it is linked, I have already looked at teenfaces' thread; if you look, you'll notice that teenfaces has edited the initial post (presumably where the instructions were).
Just to cover all of my bases, I have tried the pre-2.2 post. (A boot loop says it doesn't work.)
Any suggestions?
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
If that is what you mean by notification bar, then changing that is pretty simple. I modify mine almost everyday. If you are rooted and have ninjamorph. The file is in System/Framework/Framework-res.apk/res/drawable-hdpi and is called status_bar_background.png. Simply modify that in photoshop, save as png and swap out with ninjamorph.
Alternatively I'm sure you could pull this out with adb. Commands would be
adb pull system/Framework/Framework-res.apk/res/drawable-hdpi/status_bar_background.png
then modify and save over that file
then adb push status_bar_background.png system/Framework/Framework-res.apk/res/drawable-hdpi/status_bar_background.png
then reboot.
williams37 said:
If that is what you mean by notification bar, then changing that is pretty simple. I modify mine almost everyday. If you are rooted and have ninjamorph. The file is in System/Framework/Framework-res.apk/res/drawable-hdpi and is called status_bar_background.png. Simply modify that in photoshop, save as png and swap out with ninjamorph.
Alternatively I'm sure you could pull this out with adb. Commands would be
adb pull system/Framework/Framework-res.apk/res/drawable-hdpi/status_bar_background.png
then modify and save over that file
then adb push status_bar_background.png system/Framework/Framework-res.apk/res/drawable-hdpi/status_bar_background.png
then reboot.
Click to expand...
Click to collapse
That is what I mean.. However, in teenfaces' pre-2.2 post, it mentions changing the services.jar file.. Which is why I thought that simply changing the background image in the framework apk wouldn't work.
I have no experience with Ninjamorph. I'm not going to even try to play it off - I've only recently decided to take the plunge and root. (And I only decided to root because I wanted to change the font, phone-wide.) So, I'm pretty new to all of this.
Well welcome to theming. I am new to this as well. I have a few things on my modifying to-do list that I am completely stuck at. I will test out the adb codes I just posted and let you know for sure before you attempt.
{EDIT}Ok, this is best done with ninjamorph. I just tried through adb and got stuck in a bootloop. In photoshop create a document thats 480 x 770. This will be your statusbar background. Do what you want to it and save it as status_bar_background.png on your sd card where you can find it. I keep mine in a folder called THEMES.
In ninjamorph (free from market) Select:
Start Checks (will ask for root)
New Project
System
framework
framework-res.apk (it will extract the files)
res
drawable-hdpi
status_bar_background.png
then select the file you created from your sd card
hit the back button until you are on the main ninjamorph screen
select finish project
select framework-res
click yes
click no
click yes
it will reboot
when you reboot you may get a forceclose
hold your power button and reboot again
have fun!
williams37 said:
Alternatively I'm sure you could pull this out with adb. Commands would be
adb pull system/Framework/Framework-res.apk/res/drawable-hdpi/status_bar_background.png
Click to expand...
Click to collapse
I'm impatient. -Blush.- I decided to give it a try myself. I just grabbed the framework-res.apk (that way I'll have a backup copy if something goes wrong. However, the code you posted didn't work. Turns out, the path should be /system/framework/framework-res.apk
Anywho. I'm interested in modifying the images for the battery, etc. I'm hoping to find those images in the framework-res.apk (I haven't looked yet.) Any words of caution before modifying those as well?
paramnesya said:
I'm impatient. -Blush.- I decided to give it a try myself. I just grabbed the framework-res.apk (that way I'll have a backup copy if something goes wrong. However, the code you posted didn't work. Turns out, the path should be /system/framework/framework-res.apk
Anywho. I'm interested in modifying the images for the battery, etc. I'm hoping to find those images in the framework-res.apk (I haven't looked yet.) Any words of caution before modifying those as well?
Click to expand...
Click to collapse
just make backups before attempting changing system files. I really do think ninjamorph takes the guess work out of a lot of things. I didn't have good luck pushing my framework-res.apk back in adb and that may be because of the rom I'm using. But there are lots of good batteries floating around on these forums. Good luck
williams37 said:
just make backups before attempting changing system files. I really do think ninjamorph takes the guess work out of a lot of things. I didn't have good luck pushing my framework-res.apk back in adb and that may be because of the rom I'm using. But there are lots of good batteries floating around on these forums. Good luck
Click to expand...
Click to collapse
Thanks for getting me started in the right direction!
You need to edit services.jar to change your font color to white. There is a video on youtube showing how to do this. Then the images are in the framework-res.apk open it with 7zip and move the new images into the .apk then boot to clockwork and push it with adb while in clockwork recovery. Then reboot. It should work, if not post back and I am sure someone here will try to help.
The actual .png for the status bar is statusbar_background.9.png. Since I don't know how to compile my own .9 png's I usually borrow somelses.
Sent from my DROIDX using Tapatalk
XDRDX said:
You need to edit services.jar to change your font color to white. There is a video on youtube showing how to do this. Then the images are in the framework-res.apk open it with 7zip and move the new images into the .apk then boot to clockwork and push it with adb while in clockwork recovery. Then reboot. It should work, if not post back and I am sure someone here will try to help.
The actual .png for the status bar is statusbar_background.9.png. Since I don't know how to compile my own .9 png's I usually borrow somelses.
Sent from my DROIDX using Tapatalk
Click to expand...
Click to collapse
There is two files almost the same name. But the one I edited and got my name and fox logo on was Status_bar_Background.png... NOT the .9.png
Thats how it is on my rom anyways. I am realizing I have different system files than many people on here.
do you need to be deodexed for this to work? I've tried it twice now, and no dice.
williams37 said:
Well welcome to theming. I am new to this as well. I have a few things on my modifying to-do list that I am completely stuck at. I will test out the adb codes I just posted and let you know for sure before you attempt.
{EDIT}Ok, this is best done with ninjamorph. I just tried through adb and got stuck in a bootloop. In photoshop create a document thats 480 x 770. This will be your statusbar background. Do what you want to it and save it as status_bar_background.png on your sd card where you can find it. I keep mine in a folder called THEMES.
In ninjamorph (free from market) Select:
Start Checks (will ask for root)
New Project
System
framework
framework-res.apk (it will extract the files)
res
drawable-hdpi
status_bar_background.png
then select the file you created from your sd card
hit the back button until you are on the main ninjamorph screen
select finish project
select framework-res
click yes
click no
click yes
it will reboot
when you reboot you may get a forceclose
hold your power button and reboot again
have fun!
Click to expand...
Click to collapse
dougivks said:
do you need to be deodexed for this to work? I've tried it twice now, and no dice.
Click to expand...
Click to collapse
you know what, i'm sorry guys, I didnt even consider that. I am running ApeX 1.3.1. which is a deodexed rom. That may have to do with some of the trouble you guys are running into.
dougivks said:
do you need to be deodexed for this to work? I've tried it twice now, and no dice.
Click to expand...
Click to collapse
I haven't tried anything yet (other than pulling the framework-res.apk). I'm still doing research. From what I've read, though, you definitely have to be deodexed.
I plan on attempting it this week.. If all goes well, I intend on writing some instructions up. In the meantime, if anyone else gets it done, feel free to post some helpful pointers!
Just so I'm clear, what I want to do is modify the notification bar and pull-down without using a rom.
williams37 said:
you know what, i'm sorry guys, I didnt even consider that. I am running ApeX 1.3.1. which is a deodexed rom. That may have to do with some of the trouble you guys are running into.
Click to expand...
Click to collapse
I deodexed and tried a third time, still nothing. I think I'm deodexed that is. Is there any test to know for sure if your deodex process worked for sure? I used the OTA Auto-Deodex
to expand on part of your instructions
yes
no
yes
the actual questions I get are
Confirm action - overwrite with finished project -yes
confirm action - zip align -no
reboot phone - OK (no yes or no option)
and then only once did i get a last yes/no about cleaning up files. i said yes.
are these the correct answers? and on the hit back button until main ninjamorph menu, is that the phone back button, or the on screen back button?
I like Official Korean Froyo, it runs good and smooth.
And i like the stock SMS app on that release, it has a bubble conversation type, and it run smooth (even when compared to GO SMS).
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
But, it has disadvantages for who lived outside Korea, which there is no limitation 80 character each SMS.
Okay, because Korean Froyo has limitation 80 character while sending SMS.
I am trying to decompile Conversations.APK from /system/app with APKTool
I am using framework-res.apk, blur-res.apk and moto-res.apk as the framework.
It was successfuly decompiled.
I am trying to search XML which responsible limiting the character while sending SMS.
I might found it, the name is public.XML inside \res\values of that decompiled APK
I found this line:
<public type="string" name="convert_max_chars_reached" id="0x7f0b0174" />
I think, that is the line i'm searching..
But what is "0x7f0b0174"
is it hexadecimal or something..?
if it's hexadecimal, is 7f0b0174 the hexadecimal of "80"?
because if it's true, then that is the exact line i am searching,
and i want to change it with proper character limitation just like another region.
thank you,
i'm just a noob.. please forgive me if it's just stupid thing to ask
This is more complicated. It is an id, leading to location of the value you are searching for. It should be located somewhere in classes.dex as some .smali programmed in java.
peetr_ said:
This is more complicated. It is an id, leading to location of the value you are searching for. It should be located somewhere in classes.dex as some .smali programmed in java.
Click to expand...
Click to collapse
okay..
it's not that simple as i thought.
it's not a value i could simply change.
so, i have to change the value in classes.dex right?
where i can find classes.dex?
because i can't find it on my decompiled folder...
If you decompile with APKmanager, then you should have both, resources.arsc and classes.dex decompiled.
But after decompilation, there is no classes.dex, but folder with many .smali files.
And that's all I know. No java programming
if there were a switch to this in the said apk, it should be in arrays/integers/values.xml, just saying.
its an hex pointer or identifier of a part of string xml file where all the string values are stored. i know that this might sound more complicated than you expected, but if you can decode the smali files or the dex file, you might be able to get an file with all the strings on the apk. that is where you need to change the char limit. And just for your information, if you grab the Conversation.apk from a froyo tmobile us rom and replace the default one on /system/app using root explorer or adb, you might actually be able to change the limitation. i haven't tried it yet, but as far as i know, it should work. good luck
ksubedi said:
its an hex pointer or identifier of a part of string xml file where all the string values are stored. i know that this might sound more complicated than you expected, but if you can decode the smali files or the dex file, you might be able to get an file with all the strings on the apk. that is where you need to change the char limit. And just for your information, if you grab the Conversation.apk from a froyo tmobile us rom and replace the default one on /system/app using root explorer or adb, you might actually be able to change the limitation. i haven't tried it yet, but as far as i know, it should work. good luck
Click to expand...
Click to collapse
I think he knows that but he wants the korean app because of the bubbles conversation.
peetr_ said:
If you decompile with APKmanager, then you should have both, resources.arsc and classes.dex decompiled.
But after decompilation, there is no classes.dex, but folder with many .smali files.
And that's all I know. No java programming
Click to expand...
Click to collapse
um.. i think there is no DEX file here..
because i realize it is system apps, which come in pair:
an .APK file and his pair .ODEX file
i think classes.dex is lies within .ODEX file.
is that true? if it's true how to extract classes.dex from that?
racca said:
if there were a switch to this in the said apk, it should be in arrays/integers/values.xml, just saying.
Click to expand...
Click to collapse
um.. i didn't find that XML file..
i'll try to attacth my decompiled folder, you can see there there's no that file.
ksubedi said:
its an hex pointer or identifier of a part of string xml file where all the string values are stored. i know that this might sound more complicated than you expected, but if you can decode the smali files or the dex file, you might be able to get an file with all the strings on the apk. that is where you need to change the char limit. And just for your information, if you grab the Conversation.apk from a froyo tmobile us rom and replace the default one on /system/app using root explorer or adb, you might actually be able to change the limitation. i haven't tried it yet, but as far as i know, it should work. good luck
Click to expand...
Click to collapse
i google it an i found something, it is system apps, which the DEX file is not lies within the APK itself, but inside ODEX file.
there's two file named Conversation in /system/app/, it is Conversation.APK and Conversation.ODEX
so how to extract the classes.dex from that ODEX file?
about change the APP from the other SBF release,
um... maybe this is the last option for me
but i might reconsider that. i have to change two file right? the APK and ODEX?
hirano said:
I think he knows that but he wants the korean app because of the bubbles conversation.
Click to expand...
Click to collapse
hahhaa... i know it sound childish about that bubble-bubbles...
but i like it. i prefer the bubble than the normal list...
and i think stock sms apps in another release have a some glitch.
in a conversation (which in list mode, not bubbles ),
the photo/avatar of me is not shown, but the photo/avatar of the person you text to is shown.
here i attach the decompiled folder of Korean Conversation.APK using APKTool.
and i might attacht the ODEX file too...
If you want just bubbles, try the conversations.apk app from 3.4.3.11.
Sent from my MB525 using XDA App
hirano said:
If you want just bubbles, try the conversations.apk app from 3.4.3.11.
Sent from my MB525 using XDA App
Click to expand...
Click to collapse
what? i didn't knew that.
before i am using korean froyo, i am using pays 5.1 which based from 3.4.3-11.
i didn't check it though, i straight apply pays zip after flashing.
and when i am on pays rom, default sms apps is not bubbles
maybe pays edit that on his rom
um.. what is the safest way to change the conversation.APK and conversation.ODEX?
when i try to delete something from \system\app with root explorer,
suddenly the app cannot be started again,
even though i have been copy-paste the new one to the \system\app
I think you should deodex that rom first. Then you'll have all classes.dex in all apk files and no odex files.
marhensa said:
um.. what is the safest way to change the conversation.APK and conversation.ODEX?
when i try to delete something from \system\app with root explorer,
suddenly the app cannot be started again,
even though i have been copy-paste the new one to the \system\app
Click to expand...
Click to collapse
Delete the old ones first using root explorer, then copy the new ones there using root explorer again, and change permissions of all files (you need to copy odex files too) to rw-r-r using root explorer. Then reboot Sometimes, the app doesnt start if you dont reboot. I've tried it.
peetr_ said:
I think you should deodex that rom first. Then you'll have all classes.dex in all apk files and no odex files.
Click to expand...
Click to collapse
it gets more difficult..
okay i give up
maybe i just have to use 3rd party sms apps..
ksubedi said:
Delete the old ones first using root explorer, then copy the new ones there using root explorer again, and change permissions of all files (you need to copy odex files too) to rw-r-r using root explorer. Then reboot Sometimes, the app doesnt start if you dont reboot. I've tried it.
Click to expand...
Click to collapse
i've tried that just before you reply..
and now i restore my nandroid backup, because it fail, the sms apps doesn't show anywhere, even when i try to reboot..
glad i have a the nandroid backup.
At least you tried
peetr_ said:
At least you tried
Click to expand...
Click to collapse
is there any thread about learning how to deodexing rom for defy?
I have no guide but I used a tool called auto deodexer (google it) to deodex a few apps for barebone rom. Havn't tried to deodex a full rom with it.
But I have the SMS app from 3.4.2-115-002 deblur and that one have bubbles.
Febernacke said:
I have no guide but I used a tool called auto deodexer (google it) to deodex a few apps for barebone rom. Havn't tried to deodex a full rom with it.
But I have the SMS app from 3.4.2-115-002 deblur and that one have bubbles.
Click to expand...
Click to collapse
thanks for the info..
i found that on http://forum.xda-developers.com/showthread.php?t=598026
but certainly i have no idea about what they say...
i'm trying to understand..
This is from Official Chinese 2.21 (1.11) ROM
http://rapidshare.com/files/455899839/sms.rar
Just push the contents of the rar to /system/app/
It have 2 modes to choose, bubbles and traditional mode. Hope this works for you.
unrafa said:
This is from Official Chinese 2.21 (1.11) ROM
http://rapidshare.com/files/455899839/sms.rar
Just push the contents of the rar to /system/app/
It have 2 modes to choose, bubbles and traditional mode. Hope this works for you.
Click to expand...
Click to collapse
thank you mate..
is it any limitation of character like korean?
i hope not..
once again.. thank you..
Hi, this is a minor issue but it's starting to bug me.
Is there any way to change the color of the little check mark that appears when you select something?
On many of the apps that I use (but not all?) this check mark appears as a very light green color on a white background and is virtually invisible. I asked about it on a forum for one of the apps and was told that my phone must not be using standard android colors.
For example, on the Maps app that came with the phone, if I go to Settings and try to select something I will see the very light green color check mark. On the other hand, other apps, like the stock mail app, use a medium blue which is quite visible.
If I could get them all to use the blue that would be great. Changing the theme does not seem to affect the check mark.
Thanks!
-- Jon
This has been bugging me since I got XL.
My guess would be editing framework-res.apk
Just wanted to give this a bump in case somebody may have run across a solution. Thanks!
OP are you rooted? I thought you could change simple things like this inside framework-res.apk if you pull it from /system/framework.
If you open it using 7zip or winrar you should find the graphic in one of the drawable folders (i think the one youre after is called "drawable-xhdpi") which contain all of the graphics and icons that are displayed on your phone whenever you interact with it. Simply change the color of the check mark graphic to the color of your choice and reinsert it back where it was originally located within the zipped file. DO NOT UNZIP THE ENTIRE FILE! Just browse inside of it to modify the files inside so you don't break the files signature verification.
Back up your original framework file though as messing this up WILL result in bootloops. In fact, doing a nandroid couldnt hurt if you arent familiar with this.
Then just replace the original with your modified one.
Change your skin to matte in the personalization settings. It will change the checkmark to dark purple/black in MOST apps.
beaups said:
Change your skin to matte in the personalization settings. It will change the checkmark to dark purple/black in MOST apps.
Click to expand...
Click to collapse
LOL much easier solution :thumbup:
Here's a picture of the display menu within the maps app after modifying the appropriate file in framework. MUCH more visible. I just did black for this example.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Loneeagle14 said:
Simply change the color of the check mark graphic to the color of your choice and reinsert it back where it was originally located within the zipped file. DO NOT UNZIP THE ENTIRE FILE! Just browse inside of it to modify the files inside so you don't break the files signature verification.
Click to expand...
Click to collapse
This doesn't make any sense to me. Changing even one bit of a file will break a digital signature. Altering the color of a check mark will change many bits. So either the file is not signed, or the signature doesn't matter, or this won't work at all.
You must have unlocked bootloader of course. No signature check.
beaups said:
Change your skin to matte in the personalization settings. It will change the checkmark to dark purple/black in MOST apps.
Click to expand...
Click to collapse
I tried this, and it only changed the check marks in Settings as far as I could tell. I checked 4 other apps including Twitter, Subsonic, and some others and they all still had the green check mark. Maybe I need to reboot?
I also just made a black check mark icon, and I'm going to try replacing the framework APK just as soon as my nandroid backup finishes.
gunnyman said:
You must have unlocked bootloader of course. No signature check.
Click to expand...
Click to collapse
Thanks. That's kind of what I meant. I was seriously out of it when I typed that originally. So yeah unlocked bootloader. Basically, so long as you don't decompress the original .apk and only swap files in and out from the COMPRESSED version, you should be good to go. Trying to use winrar or 7zip to recompile it will result in bootloops i promise
Sorry for the confusion.
Loneeagle14 said:
LOL much easier solution :thumbup:
Here's a picture of the display menu within the maps app after modifying the appropriate file in framework. MUCH more visible. I just did black for this example.
Click to expand...
Click to collapse
Thanks, I'll give that a try!
-- Jon
Originally Posted by beaups
Change your skin to matte in the personalization settings. It will change the checkmark to dark purple/black in MOST apps.
Click to expand...
Click to collapse
I tried this, and it only changed the check marks in Settings as far as I could tell. I checked 4 other apps including Twitter, Subsonic, and some others and they all still had the green check mark. Maybe I need to reboot?
I also just made a black check mark icon, and I'm going to try replacing the framework APK just as soon as my nandroid backup finishes.
Click to expand...
Click to collapse
What's actually kind of funny is I had the opposite problem. My check marks inside of the settings menu stayed green, but any check marks inside of apps are now the modified color.
Edit: nvm didn't read that right. I see you were referencing the other guy.
beaups said:
Change your skin to matte in the personalization settings. It will change the checkmark to dark purple/black in MOST apps.
Click to expand...
Click to collapse
That does not work for me. I have been on the matte skin since I got my device. I don't see any dark purple or black checkmarks in any apps. Most of mine are the light (invisible) green, a few are a medium blue, which is decent. Are you sure there is not something else making your checkmarks black?
So I edited my framework-res.apk using drag&drop into 7zip without unzipping the file, as suggested. And then I did horrible things: I simply overwrote the file in /system/framework using Root Explorer. The phone immediately rebooted and won't boot now. Time to do a restore!
I guess I have to push the file using ADB while in Recovery/Fastboot? Or else make my own flashable zip? I'm definitely a modding noob.
Didn't back up the original huh? Sorry dude that sucks.
If you're comfortable with adb you can go that route but I have so far used the file manager function within TWRP to manually delete my old framework-res and the move the modified one to /system/framework. In order for you to be able to access the system partition you'll need to manually mount it using the mount function within recovery. Then go to advanced-->file manager and that should let you access up to root. Also, it never hurts to run fix permissions after changing something in the system directory.
This method is always easier for me since I'm not an expert with adb. That's strange you had problems though. The only time I've ever had bootloops was when I decompiled the .apk or changed the compression settings when replacing files inside of it. Hope you get it sorted out..
Loneeagle14 said:
Didn't back up the original huh? Sorry dude that sucks.
Click to expand...
Click to collapse
I had a backup in the form of nandroid. I also do have the file itself backed up, I just realized. I probably didn't need to do a restore. It's just that when my phone wouldn't boot I got scared and I wanted to make sure I could restore it!
I didn't realize how easy it is to fix permissions on a file in TWRP. I can run the batch command, and there is a permissions fixer in the file browser that just does chmod 755. It grants execute permissions as well as the other ones, but it's no big deal. Also, it's easy enough to change in Root Explorer once the system actually boots. Then you don't have to wait for the whole permissions fixer to run.
If you're comfortable with adb you can go that route but I have so far used the file manager function within TWRP to manually delete my old framework-res and the move the modified one to /system/framework. ]In order for you to be able to access the system partition you'll need to manually mount it using the mount function within recovery.
Click to expand...
Click to collapse
Thanks, I was just exploring this functionality. I forgot I had to manually mount system, so I was a bit confused why I couldn't see anything in there.
Hey, it just booted up with my modded file. Look at those nice, black check marks! The ones in Settings are still green. I guess they are using different resources, which explains why they changed when I changed skins, but none of the others did. I only changed the color of the "on" check mark, and not the "on disabled", or "on focused" ones, so they'll still be green. I don't really care if the check mark is green while I'm clicking the button, but I would like to change the disabled one.
Looking good sir. I was a bit worried my method was wrong or something. Good to see someone was able to get it done! :thumbup:
So if I flash a new rom, will I need to do this again?
snowkilts said:
So if I flash a new rom, will I need to do this again?
Click to expand...
Click to collapse
Yes, unless you modify the rom before you flash it. Personally, I'm hoping to learn enough about flashable zips to make this idea into a flashable mod. At which point I'll fix all the icons.
Success! I have created a flashable zip that changes the check marks to black. I also created an Undo version that restores the original framework-res.apk.
If anyone would like to test it out, send me a PM. It only changes the "on" checkmark, but that's the only one you really need. In the future, I will fix the other icons. This is my first Android mod, so I don't want to release it publicly until at least a couple of people have tested it.
If it matters, the framework-res.apk which I changed is the one that comes with CleanROM 4.1 LE. I don't know if Scott modified the stock version in any way, and I don't know if other Sense roms have changed this file, so I can't gurantee that this APK is 100% compatible with roms other than CleanROM 4.1. I would need to download the other roms and compare their file with mine.
The MD5 of the original /system/framework/framework-res.apk is d6d3f7f3808dd7d01ba2dd11babd3b64. So if your APK has the same MD5 then this mod will work for you.
NOTE: I'm probably not going to make any new versions of this. There are simply too many rom versions. Instead, I have provided complete instructions in this post on how to do this yourself. Check the DIY section.
This is a modification of the framework-res.apk that turns the green check marks into black ones. The green ones don't have enough contrast and are very hard to see with the phone held at a normal distance from your eyes, or in bright sunlight. I made a point not to change the aesthetics of the existing icons. I just wanted to make them darker.
I tested the new icons in a variety of apps, and every app I tested that used the old icons now shows the new ones. Some apps like Gmail use square, holo-style check marks and aren't affected by this mod. The check marks in the HTC settings are also not affected. I'm not sure where those icons are stored, or else I would change them, too. Those ones can be changed by picking a different HTC skin. The "Matte" skin, in particular, makes those check marks dark blue.
I have created different versions for different Sense-based roms here on XDA.
CleanROM 4.5
CleanROM 4.2 LE/SE
I have not tested the versions for Sick Sense or Xi40 r119, however, there's not much that could go wrong with them. I extracted the framework-res.apk from those roms, stuffed in the new PNGs, added them to my flashable mod structure, zipped them up, and signed them. Please let me know if you try them out. Make a nandroid backup first, though!
If you are currently running a theme that already modifies framework-res.apk for your rom then this mod will eliminate those changes. This is meant to be applied over the default theme of the specific versions above. If your rom gets updated then this may or may not work with the new version. These best way to check this is to compare the MD5 hash of the unaltered framework-res.apk from one of the above rom versions to the unaltered framework-res.apk from whatever new version has come out. If the checksums are the same then the rom maker hasn't updated framework-res.apk and you can freely overwrite it again with the Black Check Marks Mod.
Screenshots
Here's a set of 25% resolution before and after screenshots. This sort of simulates difficult viewing conditions, and shows how hard it can be to see the green check marks, and how much easier it is to see the black ones.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Here's a large screenshot from Windows showing the icons in detail:
I also edited the smaller "zzzhtc holo" version of the icons which are used by some apps. They aren't shown here, but are used by "reddit is fun" in the screenshot above.
Notes About Flashing
This is a flashable mod. I've only flashed it with TWRP 2.2.0, but it doesn't use Aroma or anything particularly unusual, so I don't see why you couldn't flash it with CWM. Obviously, you are flashing this at your own risk. Do a nandroid backup first!
Undo
If you want the ability to easily undo this mod, then just backup your current /system/framework/framework-res.apk. If you forget, you can always extract it again from the rom itself without having to reflash the whole rom. Or, just restore the nandroid backup you obviously made before applying this!
Source Graphics
I have included a zip file containing the source graphics. This will let you modify the icons further to make your own, or to add these icons to a different version of framework-res.apk. This includes the PSD files I created to make the icons. The PSD files use adjustment layers with masks. It would be quite easy to make versions that were some dark color instead of black by only changing the adjustment layers.. All the icons for a given size are in one file in layers. (Two PSD files total.)
DIY!
There are simply too many roms and rom versions for me to keep up with them all, so from now on, I'm not going to provide any new versions. I might provide versions for the ROMs I use, but starting with 2.23.707.2 the size of framework-res.apk is 18MB. Even when zipped it's still 12MB and too big to attach here on XDA. So, you can make your own mods from now on. It's super easy! There are a lot of steps here because I want to explain it in enough detail so everyone can do it. This whole process takes under two minutes once you know what you're doing.
Things you will need
A Windows PC.
7-Zip
Java (to sign the zip file at the end.)
The attached template file, "BlackCheckMarksMod_Custom.zip", which contains the source PNGs, the updater-script, and testsign.jar.
Step by step instructions
1. Extract framework-res.apk
You need a copy of framework-res.apk from your rom. Most of the time you can simply open the rom zip file in 7-Zip, navigate to /system/framework and drag the file from there to your desktop. Some rom makers use an Aroma installer with multiple versions of framework-res.apk and none of them are in /system/framework until after you install the rom. You can either find the right file somewhere inside the rom first, or wait until you install the rom then extract it from your phone. The second idea is the most foolproof. You just need a file explorer on your phone capable of navigating to your /system/framework folder, and you copy framework-res.apk from there to /sdcard. Then mount the SD card on your PC and copy the file to your desktop.
2. Copy framework-res.apk into the template
Download and unzip the template zip file, "BlackCheckMarksMod_Custom.zip". (When unzipping there is no need to unzip it into a containing folder because the root of the zip file only contains one folder.) This contains everything you need to make a flashable zip. Inside you will find the following structure:
(Directories in bold)
BlackCheckMarks_Custom
____BlackCheckMarksMod
________META-INF (contents not shown)
________system
____________framework
________sign.bat
________testsign.jar
____PNG files
________A bunch of check mark icons
Copy your framework-res.apk into BlackCheckMarks_Custom\BlackCheckMarksMod\system\framework. At this point, this is still the unaltered version from your rom.
3. Replace the stock check marks
There are two ways to open the APK with 7-Zip.
The easiest way to do it -- but hardest to demonstrate because of differences in versions of Windows and their various dialog boxes -- is to simply associate the .apk extension with 7-Zip. This involves using the Open With... command from the right-click menu on the APK file, or just double clicking it then selecting 7-Zip as the app to use for APK files.
The second way to do it is to launch the 7-Zip File Manager and then navigate to the APK. This is the process I will show here.
In your Start menu, locate and open 7-Zip File Manager.
When it opens, navigate to the folder where you placed the APK: BlackCheckMarks_Custom\BlackCheckMarksMod\system\framework
Alternatively, you can just paste in the path that you copy from the Explorer window.
It should now look something like this:
Now, double click on framework-res.apk. You will see a file listing from inside the APK.
Double click on the "res" folder and you should see more folders.
Double click on the "drawable-xhdpi" folder and stop there.
You should now see a bunch of icons. Now we need to copy our custom icons over the ones inside this folder.
In Windows Explorer, go back up to the root of the "BlackCheckMarks_Custom" folder and you should see a "PNG files" folder.
Open the "PNG files" folder.
Make sure you can see both the 7-Zip window and this Windows Explorer window.
In Windows, Press Ctrl-A to select all the files in the "PNG files" folder, or just select them all manually.
Drag and drop the PNG files into the 7-Zip window.
7-Zip will confirm that you want to add these files to the zip. (It doesn't always come to the front, so you may have to click on 7-Zip to see the prompt.)
Click "Yes" to confirm adding the files.
After a split second it should be complete and you can now close the 7-Zip window.
4. Make the mod zip file
You are ready to make the flashable zip file.
In Windows, navigate to the BlackCheckMarks_Custom\BlackCheckMarksMod folder.
Select just the META-INF folder and the system folder. (If you don't know, to select both you click on one then hold down Ctrl and click the other.)
When they are both selected, right click one of them and choose 7-Zip > Add to "BlackCheckMarksMod.zip" (See screenshot)
After a few seconds you should have a BlackCheckMarksMod.zip in the BlackCheckMarksMod folder. (See screenshot)
5. Make sure the batch file can find Java
You may or may not have the Java binary path in your PATH environment variable. If you don't know what this means, it doesn't matter. I will tell you how to find out, and what to do in either case.
How to find out if Java is in your PATH:
Press WindowsKey-R, or chose Start>Run... from the Start Menu.
Type in cmd and press enter. This will open a command line.
In the command window, type in java and press Enter.
You will see one of two things. See the screenshots below.
This output means Java IS in your PATH variable:
This output means Java is NOT in your PATH variable:
If Java is NOT in your path variable then you need to edit the batch file in step 6. Otherwise, proceed to Step 7.
6. Edit the batch file only if Java was not in your PATH in step 5
We need to edit the batch file so that it points directly at your copy of java.exe which is probably in your Program Files folder. (Or perhaps your Program Files (x86) folder if you are on a 64-bit machine.
The likely places to find java.exe are:
C:\Program Files (x86)\Java\jre1.6.0_22\bin\java.exe
C:\Program Files\Java\jre1.6.0_22\bin\java.exe
Perhaps you will have a slightly different version number, or maybe you installed Java in some other location. To modify the batch file:
Go to the BlackCheckMarks_Custom\BlackCheckMarksMod folder
Right click on Sign.bat and choose Edit. This should open the file in Notepad.
In Notepad, replace the first word, java, with the full path to your java.exe. It should look like one of the two paths above.
You must surround the whole path to java in double quotes! See the example of the whole batch file below:
Code:
"C:\Program Files (x86)\Java\jre1.6.0_22\bin\java.exe" -classpath testsign.jar testsign BlackCheckMarksMod.zip BlackCheckMarksMod-signed.zip
pause
Once you've edited the file, save it and close Notepad.
6. Sign the zip file
Now that you've made sure the batch file is OK, you just double-click it. This will run testsign.jar on the zip file you made. The command window that opens will pause to let you see any errors that occur. You will have to close it manually when it finishes.
If it worked, you won't see much:
If all went well you should now see BlackCheckMarksMod-signed.zip in your folder.
You are done! Stick this file on your phone, do a nandroid backup, then flash this zip and see if it works!
MD5s
CleanROM 4.2: 445d07b8112bce8a090d43940951ae9b
CleanROM 4.5: 993c96203d895d97c02e66a69ec39080
Thank you!
Sent from my HTC One X using Tapatalk 2
EDIT: Doesn't work on xi40, based off of Sense. Won't get past the boot screen. Oh well.
theking_13 said:
EDIT: Doesn't work on xi40, based off of Sense. Won't get past the boot screen. Oh well.
Click to expand...
Click to collapse
That's odd. I'll check it out tonight.
EDIT: The Xi40 framework-res.apk is quite a bit different from the one in CleanROM. I wonder if the CleanROM one is even the same as the stock one. I'll have to look inside a stock rom. For now, I'm going to label this mod as designed for CleanROM.
It's really easy to change the check marks yourself if you'd like. Making it a flashable zip is a bit more work, but that's not necessarily needed. You can just use the file manager in your recovery to push the modified file into the system folder.
Copy framework-res.apk from your rom's /system/framework to somewhere on your computer.
Download the zip file of icons from up above.
Open the APK in 7zip. Do not unzip it into a folder. Just open it in 7zip.
Navigate in 7zip to the folder within the APK: \res\drawable-xhdpi
Drag and drop the PNG checkmark icons from my icon pack into the drawable-xhdpi folder in 7zip. It will ask you to confirm adding them to the APK.
Close 7zip.
Now you just put this file on your /sdcard storage and reboot into your bootloader. Use the file manager to copy it into /system/framework. Perhaps you should backup the old file by renaming it to framework-res.apk.bak or something. It's easier to undo this change with that file than it is to restore a nandroid backup. Then you need to fix the permissions on the file. In TWRP's file manager there is a button to set permissions to 755 ("chmod 755") This will grant unneeded execute permissions, but that can be changed later in any root file explorer, like Root Explorer. It can probably even be left as-is with no harm. Ideally it should be 644, though. (rw-r--r--)
Alternatively, unzip my mod and replace the framework-res.apk that's inside of it with the one you just edited, and zip it back up. Then use the Android Signer to sign the new zip file. Note: the signer won't work unless you have the path to the java bin folder in your PATH environment variable. You also need .Net 2.0 installed.
Either method can be a little tricky. Personally, I find making the flashable zip to be easier. Especially since I already wrote the updater-script for it.
Good work on this! I've been thinking a lot about the check marks located in some of the system settings areas, and I'm thinking the respective pngs to change them are located within the framework-htc-res.apk in system/framework but I could be wrong.
Digging into a few of the xml files in original framework-res.apk yielded some hex color codes for certain ui elements as well. Could be that changing the right one of those may have the desired effect for the rest of the check marks. Just a few random leads to investigate.
I haven't had much time otherwise I'd look more into it. But thanks for taking the time to make this a flashable. :good:
theking_13 said:
EDIT: Doesn't work on xi40, based off of Sense. Won't get past the boot screen. Oh well.
Click to expand...
Click to collapse
I created a version for Xi40. If you would like to try it, let me know if it works.
QQNoob said:
I created a version for Xi40. If you would like to try it, let me know if it works.
Click to expand...
Click to collapse
No problem, will be more than happy to test.
Sent from my HTC One X using Tapatalk 2
theking_13 said:
No problem, will be more than happy to test.
Sent from my HTC One X using Tapatalk 2
Click to expand...
Click to collapse
+1
Sent from my HTC One X using xda premium
Thanks, guys. Let me know if it works.
I just upgraded to CleanROM 4.2 and had to make a new version of this mod for that.
You think the r119 mod will work on r122?
Eh, to hell with it. Backing up now and coming back with results.
Sent from my HTC One X using Tapatalk 2
theking_13 said:
You think the r119 mod will work on r122?
Eh, to hell with it. Backing up now and coming back with results.
Sent from my HTC One X using Tapatalk 2
Click to expand...
Click to collapse
You could always just unzip each mod and compare the MD5s of the two framework-res.apk. If they are the same, then you're good to go. If they're different, then it still might work, but the rom designer probably changed those resources for a reason. You'd lose whatever changes they made.
EDIT: Considering that Xi40 r122 doesn't even have a framework-res.apk, I'd assume that it won't work.
How do I check the MD5 sums?
EDIT: I'll try it in the morning, so tired and took forever to back up lol
Sent from my HTC One X using Tapatalk 2
theking_13 said:
How do I check the MD5 sums?
Click to expand...
Click to collapse
There's no point now. r122 doesn't even have a framework-res.apk, as I mentioned in my last post. If it did, you would simply open each ROM in 7zip or some other zip tool, and drag framework-res.apk out of the rom to somewhere handy. Then use a tool like http://www.winmd5.com/ to generate the MD5 hash for each copy of the file. If the values are the same, then it's the exact same file. If they are different, then something was changed in that APK for the new rom version. But there is no framework-res.apk in r122, so it's moot.
Damn, wish there was. I would love to try your mod, the green check marks are so deceiving sometimes.
Sent from my HTC One X using Tapatalk 2
I hope Jelly Bean fixes these check marks for us. I'd love to try this but I'm stock but rooted.
Sent from my HTC PG09410 using xda premium
theking_13 said:
Damn, wish there was. I would love to try your mod, the green check marks are so deceiving sometimes.
Click to expand...
Click to collapse
It turns out that there are no less than four versions of framework-res.apk in this rom. One for the three carriers of this phone, and one generic one. None of them match the MD5 of the r119 one. I assume this rom gives you a choice during install of what carrier branding you want. Which one are you using? I can make a flashable version of Back Check Marks for them all, anyway.
EDIT: Done and uploaded.
FYI: Tried ATT and Generic for r122. Neither worked for me.
Sent from my HTC One X using Tapatalk 2
phatboypat said:
FYI: Tried ATT and Generic for r122. Neither worked for me.
Click to expand...
Click to collapse
That's a pity. Guess I'll might have to flash it myself and take a look. Can you look in your /system/framework/ directory and tell me if framework-res.apk is in there?
QQNoob said:
That's a pity. Guess I'll might have to flash it myself and take a look. Can you look in your /system/framework/ directory and tell me if framework-res.apk is in there?
Click to expand...
Click to collapse
Yes, it is.
Sent from my HTC One X using Tapatalk 2
phatboypat said:
Yes, it is.
Click to expand...
Click to collapse
When you say it didn't work. Would it not boot, or were the check marks simply still green?
QQNoob said:
When you say it didn't work. Would it not boot, or were the check marks simply still green?
Click to expand...
Click to collapse
Check marks were still green.
Sent from my HTC One X using Tapatalk 2