Battery Icon Mod - Samsung Galaxy Player 4.0, 5.0

The stock battery icon on Galaxy wifi 5.0 is not very inspiring and it doesn't tell you the battery level. It is quite easy to replace them on other phones with Clockwork Recovery. You just need to go to UOT kitchen http://uot.dakra.lt/kitchen/ , pick the icons you like and it will give you a flashable zip file.
Without Clockwork Recovery on Galaxy wifi, it can still be done but with a bit more manual operations.
Prerequisites:
1. A rooted device.
2. Clockworkmod Recovery (optional).
Step 1:
Use Titanium backup (pro version needed) to free up some spaces in /system directory (There are 0 byte free in stock rom). You can delete some unused system apps or convert some of them to user app. For example converting Flash player and google map to user app free up enough space for me.
Step 2:
Backup the following apk files from your stock rom. You can do that by using some file manager like File Expert. These files will be needed by UOT kitchen
/system/app/SystemUI.apk
/system/framework/framework-res.apk
/system/framework/twframework-res.apk
Step 3:
Go to UOT kitchen http://uot.dakra.lt/kitchen/ and cook your custom UI. Make sure you read their how-to here first http://uot.dakra.lt/how_to/
Step 4a: (follow this if you have Clockworkmod Recovery)
Copy the zip produced by UOT kitchen to your internal SD card. Reboot to CWM Recovery and flash the zip file using the option "Install zip from sd card". Then reboot and you are done.
Step 4b: (follow this if you don't have Clockworkmod Recovery)
Extract the 3 modified apk files from the zip package produced by UOT kitchen and put them into a convenient location on your sdcard, say /sdcard/
Step 5:
The system directory is by default read only. You need to remount it as r/w. I do that through adb shell
Code:
su
mount -o rw,remount /dev/block/mmcblk0p13 /system
Step 6:
Copy your new apk files into /system directory
Code:
cp /sdcard/SystemUI.apk /system/app/
cp /sdcard/framework-res.apk /system/framework/
cp /sdcard/twframework-res.apk /system/framework/
Step 7:
Restart your device. The /system directory should remounted as read only and the new UI will take effect.
Disclaimer:
Certainly there are risked involved and I did corrupted my rom on several occasions when trying this out. So make sure you have a functional ROM around before you give this a try.

thanks for the tips.
hey I wanna ask you about is it can fully modification from http://uot.dakra.lt/kitchen/
I mean don't just modify battery icon but every option that site provide.
thanks in advance.

" Step 1:
Use Titanium backup to free up some spaces in /system directory (There are 0 byte free in stock rom). You can delete some unused system apps or convert some of them to user app. The flash. For example converting Flash player and google map to user app free up enough space for me."
How do you do that with titanium backup? Do you have to get pro?

aillez said:
thanks for the tips.
hey I wanna ask you about is it can fully modification from http://uot.dakra.lt/kitchen/
I mean don't just modify battery icon but every option that site provide.
thanks in advance.
Click to expand...
Click to collapse
I have only experimented with icons so far. Other mod may be possible because UOT kitchen does support gingerbread. Since this device is new, we need some brave soul to try that out

iJimaniac said:
" Step 1:
Use Titanium backup to free up some spaces in /system directory (There are 0 byte free in stock rom). You can delete some unused system apps or convert some of them to user app. The flash. For example converting Flash player and google map to user app free up enough space for me."
How do you do that with titanium backup? Do you have to get pro?
Click to expand...
Click to collapse
Yes, you will need the pro version. If you have the pro version, long press an app will give you the option to do the conversion.

Well, while deleting apps with TI, I decided to get rid of "phone", figuring I didn't need it, but it turns out Google voice needs it! Trying to "restore", but just hangs forever. If someone could give me the "com.sec.android.app.dialertab.apk" located in /system/app/ I would really appreciate it!
EDIT; I just reinstalled voice from market, seemed to fix it, I wouldn't advise removing phone from the apps though!

can you make the display of battery accurate to 1%?thank you!

First make it accurate to 5%, then work on 1%

I think the accuracy of the battery level is deeper down in the system, may be in the kernel?
If you try different types of battery widget on Galaxy Player, they all have very bad accuracy.

I want to edit the framework-res.apk manually, instead of using the kitchen. Do the files need to be deoxed? Would flashing a framework-res compiled with apk manager brick the device?

nice guide!
I've used UOT Kitchen to get ICS transitions, change icons, battery, fonts, and customize the status bar and they all work on my galaxy player 4.0 US.

what are those different icons you have on your notifications like the wifi icon and what launcher is that ADW?

azoller1 said:
what are those different icons you have on your notifications like the wifi icon and what launcher is that ADW?
Click to expand...
Click to collapse
I am using the "Color pack V8 animated" icon set on UOT kitchen. The launcher is GO Launcher.

Stale_bread said:
I want to edit the framework-res.apk manually, instead of using the kitchen. Do the files need to be deoxed? Would flashing a framework-res compiled with apk manager brick the device?
Click to expand...
Click to collapse
There is still an odex file in the system directory. I suppose it is not deoxed but UOT kitchen doesn't seem to bother with that file. I guess it is because these apk files don't contain any executable code.

from OP
Disclaimer:
Certainly there are risked involved and I did corrupted my rom on several occasions when trying this out. So make sure you have a functional ROM around before you give this a try.
Click to expand...
Click to collapse
Two things, if you please:
When you say "corrupted my rom", you can't boot your device but you can still go to dl mode, correct?
"functional ROM" is the fw/md5 file we usually flash via odin/heimdall?
I'd like to try this out (& then some...) but, in the absence of a custom recovery, I don't wanna have to go through the lengths of "resurrecting" my sgp. TIA!

maxq1 said:
from OP
Two things, if you please:
When you say "corrupted my rom", you can't boot your device but you can still go to dl mode, correct?
"functional ROM" is the fw/md5 file we usually flash via odin/heimdall?
I'd like to try this out (& then some...) but, in the absence of a custom recovery, I don't wanna have to go through the lengths of "resurrecting" my sgp. TIA!
Click to expand...
Click to collapse
In my case, it couldn't boot beyond the samsung start up screen, but I can still boot into download mode. Since we are only modifying a file within the file system, it is very unlikely that it will destroy the download mode.
If you can get to download mode, you can flash one of the firmwares you found in this forum using odin. You need to be sure you have the correct firmware for your device though, because there are so many variant of Galaxy Player. What is the version of your device?

nvm that (i was thinking on the same lines too though) but thanks anyway! appreciate it.
thanks to your guide, was able to change my fonts and added that flying in pop up animation as well. for these two, however, i don't think we need the kitchen though and for that matter, we don't need to modify systemui & twframework.
for fonts (you could use font changer apps, but i hate doing so for such things), take any you fancy from anywhere here in xda (WARNING: only extract the downloaded file to your device/pc) then rename (case sensitive) font files accordingly: Clockopia.ttf, DroidSans.ttf, DroidSans-Bold.ttf. copy these to sd & push to /system/fonts/ using similar cp command/s from OP.
for pop up animation, you could follow this guide. no need to sign after replacing files in /res/anim. copy modded framework-res.apk to sd then push to device via same commands in OP.
btw, wouldn't issuing "reboot" within adb shell be more convenient & safer after changing system files while booted to android? it's what i did instead of rebooting via power button, as you'll most likely see an FC fiesta after replacing these files.

maxq1 said:
nvm that (i was thinking on the same lines too though) but thanks anyway! appreciate it.
thanks to your guide, was able to change my fonts and added that flying in pop up animation as well. for these two, however, i don't think we need the kitchen though and for that matter, we don't need to modify systemui & twframework.
for fonts (you could use font changer apps, but i hate doing so for such things), take any you fancy from anywhere here in xda (WARNING: only extract the downloaded file to your device/pc) then rename (case sensitive) font files accordingly: Clockopia.ttf, DroidSans.ttf, DroidSans-Bold.ttf. copy these to sd & push to /system/fonts/ using similar cp command/s from OP.
for pop up animation, you could follow this guide. no need to sign after replacing files in /res/anim. copy modded framework-res.apk to sd then push to device via same commands in OP.
btw, wouldn't issuing "reboot" within adb shell be more convenient & safer after changing system files while booted to android? it's what i did instead of rebooting via power button, as you'll most likely see an FC fiesta after replacing these files.
Click to expand...
Click to collapse
Theses are good suggestions, will definitely give them a try.
As for changing system fonts, I like to use the Font Installer app on the market
https://market.android.com/details?id=com.canvs2321.font_installer&hl=en The nice thing is I can preview the fonts before changing them.
As for the reboot, actually I did try using the reboot command once but it toasted my rom on that occasion. That's why I didn't mention the method in the guide. May be I should give that another try next time.
Hopefully, we will get CWM soon then it will be much easier to flash these mods.

WT Ho said:
I think the accuracy of the battery level is deeper down in the system, may be in the kernel?
If you try different types of battery widget on Galaxy Player, they all have very bad accuracy.
Click to expand...
Click to collapse
Kernel battery driver is very simplistic and only has 5% increments in the numbers it returns.
On my list to look at once I finish CWM - no guarantees.

thhhhhhhhhhhhhhanxx

Related

Fonts: how do i install a font to my phone?

There is a font on another rom that I like, how would I get that installed onto my Eris? I have the file from the other rom.
Have a look at T2noob's batch file font installer for ideas (and fonts, too).
Looks like he takes a pair of True Type (.ttf) files - one regular face, one bold face - and copies them to
/system/fonts/
renaming the (respective) .ttf files to "DroidSans.ttf" and "DroidSans-Bold.ttf"
Then, just reboot.
That was done for rooted 2.1 ROMs; I'm not sure if it the same for AOSP or CM6 Froyo ROMs
good luck
bftb0
bftb0 said:
Have a look at T2noob's batch file font installer for ideas (and fonts, too).
Looks like he takes a pair of True Type (.ttf) files - one regular face, one bold face - and copies them to
/system/fonts/
renaming the (respective) .ttf files to "DroidSans.ttf" and "DroidSans-Bold.ttf"
Then, just reboot.
That was done for rooted 2.1 ROMs; I'm not sure if it the same for AOSP or CM6 Froyo ROMs
good luck
bftb0
Click to expand...
Click to collapse
Thank you so much, this helps. I posted a question to his thread on the other site, but is it possible, since the fonts are in "true type" format that I can use some of mine?
johnny quest said:
Thank you so much, this helps. I posted a question to his thread on the other site, but is it possible, since the fonts are in "true type" format that I can use some of mine?
Click to expand...
Click to collapse
The best way to find out is to try.
Just make a Nandroid backup before you start, and then there is zero risk involved in trying.
bftb0
bftb0 said:
The best way to find out is to try.
Just make a Nandroid backup before you start, and then there is zero risk involved in trying.
bftb0
Click to expand...
Click to collapse
Ok, thanks I will give it a try.
johnny quest said:
Ok, thanks I will give it a try.
Click to expand...
Click to collapse
I used the T2Noobat but it says Device not found but when I go to the folder where my font is, its not there. So I don't know if I have to reboot my phone in order for my font to take effect. Or, the way you said about system/fonts..... I don't know where in my sd would I find the fonts in order to change it.
johnny quest said:
I used the T2Noobat but it says Device not found but when I go to the folder where my font is, its not there. So I don't know if I have to reboot my phone in order for my font to take effect. Or, the way you said about system/fonts..... I don't know where in my sd would I find the fonts in order to change it.
Click to expand...
Click to collapse
If you get errors, it is not reasonable to conclude that the install worked despite the errors. That's what error messages are for - to tell you that something went wrong.
T2noobs .bat file (script) presumes that you have:
1) ADB working on your PC (generally by installing the Android SDK or HTC Sync + adb)
2) That your phone is connected via USB cable
3) That your phone has USB Debugging turned on
4) That your phone is running a rooted ROM.
You don't have to use his script. I mentioned it as an example. You can just use a root-aware file manager (RootExplorer or Estrongs File Manager), and re-mount /system in RW mode, and then drop your two True Type fonts into
/system/fonts/
with the file names "DroidSans.ttf" and "DroidSans-Bold.ttf"
and then reboot. Obviously, there will already be files in there with those names to begin with, so you need to either (a) rename them to something else, (b) move them to some other folder, or (c) delete them.
I don't know how to make this any clearer.
You probably should spend some time learning how to perform Nandroid backups and restores before you do any of this (if you have not already mastered those skills). Having good backups will save your butt.
bftb0
PS. I just did this on my (CELB 3.2) ROM, so I know it works - assuming you are not using some screwy fonts.
bftb0 said:
If you get errors, it is not reasonable to conclude that the install worked despite the errors. That's what error messages are for - to tell you that something went wrong.
T2noobs .bat file (script) presumes that you have:
1) ADB working on your PC (generally by installing the Android SDK or HTC Sync + adb)
2) That your phone is connected via USB cable
3) That your phone has USB Debugging turned on
4) That your phone is running a rooted ROM.
You don't have to use his script. I mentioned it as an example. You can just use a root-aware file manager (RootExplorer or Estrongs File Manager), and re-mount /system in RW mode, and then drop your two True Type fonts into
/system/fonts/
with the file names "DroidSans.ttf" and "DroidSans-Bold.ttf"
and then reboot. Obviously, there will already be files in there with those names to begin with, so you need to either (a) rename them to something else, (b) move them to some other folder, or (c) delete them.
I don't know how to make this any clearer.
You probably should spend some time learning how to perform Nandroid backups and restores before you do any of this (if you have not already mastered those skills). Having good backups will save your butt.
bftb0
PS. I just did this on my (CELB 3.2) ROM, so I know it works - assuming you are not using some screwy fonts.
Click to expand...
Click to collapse
Thank you so much, I've been living on backups and restores. believe me I've learned my lesson. I will give this a try.
Your method worked great with the Root Manager. I bought it on the market. Ok, my biggest problem now is that my font is microscopic small. I don't know why. But I can't see the letters of which folder I'm in to take that font out.
I need a favor: can you post up screenshots or the number of folders to scroll down to get to the system/fonts/droidsans.tff
I can't see it, really its that small its the universal acc font.
Never mind I got it. Took a lot of squinting but I got it. Thanks.

Are there any actual themes yet?

Is anyone working on a custom theme or have any info available? I think we desperately need one, to at least clear up the issue with white text on white background in some apps.
I don't know anything about theming, but I read in a post that there might be something in /system/framework/framework-res.apk. At least that is a starting point. Maybe someone can post more info to get us going.
im running froyo on emmc all i did was pull framework change the icons to ones i like and push it back i can shoot you a copy and some directions if you would like?
fyi if your still on the nook stock or just rooted framework these can not be changed in this manner.... i tryed
misfit343 said:
fyi if your still on the nook stock or just rooted framework these can not be changed in this manner.... i tryed
Click to expand...
Click to collapse
Yeah, I'm on 2.1 with the 1.1.0 Pre-rootered ROM. I guess we'll need a custom ROM for themes?
Not positive what it would take to theme the barns and noble ui.... tryed without any sucess. I think its just a little too much over my head. Thats why i jumped at having an internal 2.2 on here
Sent from my Nook Color (zoom2) using Tapatalk
I'm working on a Froyo theme right now. Not sure if there's a way to theme the B&N framework though. I have a really good link that explains how to theme and will post it in a bit.
I will say, it is definitely time consuming.
EDIT:
Here is the link. The How-To is a little vague, but the tools are what's most important.
My method of editing:
- is to pull the /system/framework/framework-res.apk using APK Manager
- extract the apk
- decompile the apk so you can edit it
- Use Photoshop or GIMP to edit the images you want to change
- Save (in PS, I use Save For Web), making sure you save without meta data
If the image is going to be a stretched image:
- Go to the Tools folder in the Android SDK folder and launch the draw9patch.bat script
- Drag your newly edited image into the draw9patch program. This will create a 1px border around your image
- Click the left mouse button and draw a black line along the portions of the image you want to be stretched. If you mess up, right click (Macs: ctrl+click) to erase if needed
- Save the image
- The images are located under the res/drawable-mdpi folder so save back to that folder and overwrite the old files (make back-ups of course)
- Going back to the APK Manager program, select option 11 to compile the apk. Select Y and then Y again.
- The script will stop mid-way and tell you what to do. Follow those directions
- Using ADB, mount the Nook's /system ('adb shell mount -o remount,rw /dev/block/mmcblk0p1 /system')
- Back to APK Manager, select option 8 to push the package to the Nook
- Using ADB, type 'adb reboot'
With any luck, the Nook will reboot without problems.
An additional tip:
When you compile the apk, you have to delete the files you edited. If you go through and edit files and then compile the apk, instead of having to go back through and delete all those you've already deleted before, pull a fresh, new copy of the framework-res.apk before continuing on to your next edits. It will keep your list of files to delete from growing out of control.
http://forum.xda-developers.com/showthread.php?t=916814
sent from my rooted Captivate using the XDA App

[GUIDE][HOWTO] theme for the Nook

I've seen it asked quite a few times now, so I thought I would share how I've been creating my own themes for the Nook. This is a quick and dirty guide as I've almost got it down to a science for quick, keyboard shortcut, theming.
Things you'll need
Photoshop or The Gimp for editing files
Android SDK so you can push and pull files to/from the Nook.
draw9patch app in the Android SDK /tools folder for creating 9.png files
APK Manager (http://forum.xda-developers.com/showpost.php?p=6703735&postcount=1)
Notepad++ or some other text editor for editing XML files. After using Notepad++ on this, I'd highly recommend it though
An attention span
Some restraint
This is a rather good guide that helped me get started. My only complaint is that it is almost to complicated and includes more information than what is needed for a basic theme.
http://forum.xda-developers.com/showthread.php?t=916814
​
Getting Started:
Download the Android SDK and get it installed.
Download APK Manager
ADB pull /system/framework/framework-res.apk
Make a copy of the framework-res.apk files as a back-up in case you need to revert
Copy the framework-res.apk file to the /place-apk-here-for-modding folder under the APK Manager folder
Launch the APK Manager Script.bat file
Type in 22 to select the default project
Type in the number next to framework-res.apk in the list to select it as your project
Select 1 to extract the files
Select 9 to decompile (this is what makes the XML files readable)
Go to the /projects/framework-res/res folder under the APK Manager folder to view all the files from the theme
Images are located in the /drawable-mdpi folder. XML files are located throughout, but the files specific to layout are under the /layout folder. To change global settings, such as color codes and strings, edit the XML files under the /values folder.
Creating custom PNG files: If you are using Photoshop, use the Save For Web feature when saving. Save the image as PNG-24. Select None under the Matte option. Select None under Metadata.
A word on 9.png files: 9.png files are files that can be stretched by the OS. There is a 1 pixel border all the way around the image. In that 1 pixel border, you'll notice solid black lines here and there. The black pixels indicate which portions of the image are to be stretched. You can add this border and the black pixels in Gimp or Photoshop, or you can open the file the draw9patch app under the Android SDK /tools folder. The draw9patch app will actually display how the image will look when stretched as you add the black pixels around the border, so it can come in handy and it's what I prefer to use. You can open and edit .9.png files in draw9patch and edit the border even after you save the file.
​
Once you have all your files edited, recompile the APK package with APK Manager
Option 11
y
y
It will tell you to delete the files under the /keep folder that you have edited. Delete any images and XML files, from the /keep folder, you edited under the /projects folder. If you edited XML files, delete the /keep/res/resources.arsc file as well
Press any key to continue and let the script finish
In a separate command line window, mount your Nook's /system folder (adb shell mount -o remount,rw /dev/block/mmcblk1p2 /system)
back in APK Manager, select 8
/system/framework/framework-res.apk
Reboot your Nook
Boot Loop: If you messed something up and are stuck in a boot loop, most of the time you can still mount your Nook, push the original framework-res.apk to it and reboot. Or, you can use an unedited version of the CWM flashable zip file from the link below.
NOTE: it is not smart to push your framework-res.apk file to the Nook. I've learned the hard way that you can only do this about 10 times before you run out of memory and can no longer boot your Nook until you reflash Froyo again.
I'd recommend only a few flashes on a bare bones copy of Froyo until you feel comfortable with working on the framework theme. After that, I'm attaching a base, flashable zip for you to use in CWM so you can flash the theme instead of pushing. This will prevent you from getting stuck in a boot loop (unless you do something wrong yourself).
To add your framework-res.apk file to the zip, just open the zip and replace the /system/framework/framework-res.apk file (I'd recommend 7zip).
​
A Few Goodies
I'm including all of the PSD files I use to edit and create themes. If you want to create your own, custom theme, these will get you started. The only downside to these PSD files is that they are at the MDPI scale. If you want to create an HDPI theme, you'll need to increase the sizes.
Link to PSD files for creating your own theme, plus the flashable CWM zip file:
http://jjis.me/android-theme-templates
​
Hey man, I know you theme the froyo roms, but Im attempting a theme for the Phiremod CM7 and I cant seem to get anything but splash hangs and bootloops. I theme CM7 for the hero so I know my way around that, but Im wondering if theres something about the Nook that I have to do differently. For instance what is the mount.sh file you have in the tools folder on your themes? Is that only for froyo? Any help you could give me would be appreciated.
PMDColeslaw said:
Hey man, I know you theme the froyo roms, but Im attempting a theme for the Phiremod CM7 and I cant seem to get anything but splash hangs and bootloops. I theme CM7 for the hero so I know my way around that, but Im wondering if theres something about the Nook that I have to do differently. For instance what is the mount.sh file you have in the tools folder on your themes? Is that only for froyo? Any help you could give me would be appreciated.
Click to expand...
Click to collapse
CM7 is a little different than the stock builds of Froyo and others. They use the theme manager for it. If you are looking to theme for CM7, I'd suggest learning what it is needed to package it for the theme manager. I spent about an hour one day trying to find documentation, but couldn't. If can, or have it, please let me know where to find it so I can link to it and use it myself.
With that said, it appears that CWM does not flash, or at least mount, the same on the Nook. I'm assuming it's because it's on the external SD card and not internal. The mount.sh file was borrowed from samuelhaff's flashable ROMs. It actually tells CWM to mount the internal memory and flash to it.
If you are flashing without the mount.sh, it could be why you're getting the boot loops.
CWM uses edify language instead of amend. Again, it took me forever to find little to no documentation on it.
If you are using the mount.sh file and you are still getting stuck in a boot loop, I did discover a little issue with it yesterday. I was trying to use it to flash my new theme without the Vending.apk mod and I kept getting stuck in a black screen during start up. I forgot my edify code deletes the Vending.apk file so that was causing my problem. If you know how to edit the file, go for it. If not, I'm planning on updating it to correct this. If you need to, for now, just copy the Vending.apk to your flashable zip file.
It deletes the services.jar file as well. This was a requirement on Froyo since the status bar text is black by default. The services.jar file has to be edited to change the status bar text to white. Since CM7 does not need that change, try pushing just the framework-res.apk file, reboot and see if you boot successfully. If so, that is more than likely your problem.
wretchedlocket said:
CM7 is a little different than the stock builds of Froyo and others. They use the theme manager for it. If you are looking to theme for CM7, I'd suggest learning what it is needed to package it for the theme manager. I spent about an hour one day trying to find documentation, but couldn't. If can, or have it, please let me know where to find it so I can link to it and use it myself.
With that said, it appears that CWM does not flash, or at least mount, the same on the Nook. I'm assuming it's because it's on the external SD card and not internal. The mount.sh file was borrowed from samuelhaff's flashable ROMs. It actually tells CWM to mount the internal memory and flash to it.
If you are flashing without the mount.sh, it could be why you're getting the boot loops.
CWM uses edify language instead of amend. Again, it took me forever to find little to no documentation on it.
If you are using the mount.sh file and you are still getting stuck in a boot loop, I did discover a little issue with it yesterday. I was trying to use it to flash my new theme without the Vending.apk mod and I kept getting stuck in a black screen during start up. I forgot my edify code deletes the Vending.apk file so that was causing my problem. If you know how to edit the file, go for it. If not, I'm planning on updating it to correct this. If you need to, for now, just copy the Vending.apk to your flashable zip file.
It deletes the services.jar file as well. This was a requirement on Froyo since the status bar text is black by default. The services.jar file has to be edited to change the status bar text to white. Since CM7 does not need that change, try pushing just the framework-res.apk file, reboot and see if you boot successfully. If so, that is more than likely your problem.
Click to expand...
Click to collapse
Thanks for the reply! I actually took yours apart and was able to correct my script and I noticed that the delete services.jar line was causing issues as well. If you can I'd like you to take a look at the updater script after I edited it and see if you see any errors. It's attached below. I have gotten the framework and other themed apps to flash fine, but for some reason the themed market will not install. After flash it is in the /system/app folder as vending.apk. but it doesn't actually replace the stock market anywhere else. I actually spent several hours today trying to get the market back because I got frustrated and went all delete happy in root explorer, lol.
As far as Theme Chooser goes, here is a decent tutorial, but I haven't taken the time to really try and change my whole MO to use it. I theme the aospCMod for the heroc without using the chooser app. You can also get some good tips on building themes for the chooser in the #aospbot irc channel. A few of the guys in there build themes for it.
View attachment updater-script.zip
PMDColeslaw said:
Thanks for the reply! I actually took yours apart and was able to correct my script and I noticed that the delete services.jar line was causing issues as well. If you can I'd like you to take a look at the updater script after I edited it and see if you see any errors. It's attached below. I have gotten the framework and other themed apps to flash fine, but for some reason the themed market will not install. After flash it is in the /system/app folder as vending.apk. but it doesn't actually replace the stock market anywhere else. I actually spent several hours today trying to get the market back because I got frustrated and went all delete happy in root explorer, lol.
As far as Theme Chooser goes, here is a decent tutorial, but I haven't taken the time to really try and change my whole MO to use it. I theme the aospCMod for the heroc without using the chooser app. You can also get some good tips on building themes for the chooser in the #aospbot irc channel. A few of the guys in there build themes for it.
View attachment 546902
Click to expand...
Click to collapse
Stupid question, but you are copying the vending file as Vending.apk and not vending.apk, correct?
Also, if you're using my themed market, there are only two icons that are customized. The rest looks stock.
Sent from my SAMSUNG-SGH-I897 using Tapatalk
wretchedlocket said:
Stupid question, but you are copying the vending file as Vending.apk and not vending.apk, correct?
Also, if you're using my themed market, there are only two icons that are customized. The rest looks stock.
Sent from my SAMSUNG-SGH-I897 using Tapatalk
Click to expand...
Click to collapse
Yeah the file is Vending.apk but its my themed market.
Sent from my NookColor using Tapatalk
PMDColeslaw said:
Yeah the file is Vending.apk but its my themed market.
Sent from my NookColor using Tapatalk
Click to expand...
Click to collapse
Sorry for the delay in response. I had too many things to do with the family yesterday.
If you haven't got this working yet, I'd suggest trying to start with removing just the /system/app/Vendind.apk file via the updater-script. If it works, then go back in and add each additional line until you run into problems again. At that point, you'll know what your problem is.
Since everything else (framework-res.apk, services.jar, etc.) gets replaced successfully, leave those lines alone. I'd just start with the basics of replacing the Vending.apk first and then work your way back up from there.

[Mod][Tool] Gingerscript - Framework mod tool

I dusted off a script I had been working on to allow easy customization on my original EVO.
It all still works on my rooted Evo 3D without many changes!
The script automates the use of adb. Downloads and decompiles the frameworks from your evo/evo 3d. Then you can make any desired changes (examples provided). Recompiles and uploads back to device.
Offering it for people to play with. I also included precompiled framework-res.apk and SystemUI.apk for those that like my choices. Otherwise use the script and create your own.
Enjoy
NEW! 1.1 Beta. Now creates flashable update zips
Beta update posted for new OTA
After recompiling your frameworks select option 5 from the Main Menu. An update.zip will be created in a directory called "flash" Try it out and please give feedback.
1 - Extract GingerScript to a folder on your desktop.
2 - Connect your phone via USB cable to your computer.
3 - Open the GingerScript folder you created and doubleclick on GingerScript.bat.
4 - Select item 1. (Process Framework-res.apk) This will download your framework-res.apk as well as create a back up in the /tools folder. When prompted, select yes to decompile this framework. This will create a folder called extracted-framework.res.
5 - This is where it gets tricky. Inside the extracted-framework.res folder, there is a folder called res. Inside THAT folder are multiple directories. The two you are concerned with are marked drawable and drawable-hdpi. *NOTE* In some builds the "drawable-hdpi" folder is named "drawable-hdpi-v4" Thats why it's best to modify your own framework.
6 - In the GingerScript folder, we will work with the Example.Icon.Framework-res.Circle.Battery folder. In this folder, you will find two directories: drawable and drawable-hdpi. Copy and paste the contents of the two directories from the Example folde into the corresponding folders in the extracted-framework.res/res directory. This may overwrite some of the files in each directory. This is okay!
7 - Go back to the script; it should still be on the gray screen. Select option 3 - recompile framework. This will take a minute or two so go grab a drink while it does its magic. It will seem to be hung; I don't have a progress bar created in the script so just hold tight while it finishes.
8 - Next, select option 4 - Upload new framework to phone. This will prompt you to put the phone in recovery mode; I'm not going to explain that part. Once the phone is in recovery mode Mount the /system partition using the recovery mount feature then press any key in the script window to push the file to your phone.
9 - At this point, clear the Dalvik Cache at a minimum and press a key once finished. the phone will reboot. Now, this provides the battery mod. To modify the other status bar icons, return to the main Menu and select option 3 to modify the systemUI.apk. The process is EXACTLY the same as the framework-res.apk but it uses the contents of the Example.Icons.SystemUI.mod directory. If problems occur, recover the backups from the /tools directory and push them to your phone.
I hope this helps. If you are still running into issues, please post what step you having issues with and remember, black and white goes with everything! *grin*
Do you install the apps or push them with abd, a little more clarity on how to install
Sent from my PG86100 using XDA App
dog44 said:
Do you install the apps or push them with abd, a little more clarity on how to install
Sent from my PG86100 using XDA App
Click to expand...
Click to collapse
Extract the Gingerscript.zip on your Windows PC with your phone connected via USB.
Inside the folder double click on Gingerscript.bat. It's fairly easy to figure out from there, It creates a backup of the files before modification as a safety precaution. This just makes all of the framework compiliing/decompiling less of a hassle
Everything needed is in the zip file so you will need nothing except a text editor and a program to manipulate the png images. There are example folders in the zip that contain my modified png images and edited xml files
Note: The script references the use of Clockwork Mod Recovery, but TWRP works just as well. Just clear the Dalvik cache after uploading the framework. Then Reboot. I'll clean up the scripts wording at a later date
I will give it a shot here in a minute, and I will let you know how well it works.
I like your icons. Which APK does what?
The framework-res.apk contains the battery mod and a few minor icons. The rest of the status bar icons are in the SystemUI.apk.
The com-htc.resource.apk wasn't modified in my example, but it does contain images.
I wish there was a easy way to determine what resources are used but there isn't. Some status icons are located in the individual applications resource file as well (My script can't handle those)
I'm going to give this a go in a little bit when I can. Can anyone else confirm their success and any additional steps required (eg - clearing cache and dalvik). Thanks.
Can you please make a clear taskbar...thanxs
Can you make it simple zip file? so I can just flash it.
Thx
one up on this i like your blue battery ya got there, can ya make a zip for us
to flash please?
justwonder said:
Can you make it simple zip file? so I can just flash it.
Thx
Click to expand...
Click to collapse
That didnt work
Can you make a stock % battery?
Send from my Rooted HTC Evo 3D
nabbed said:
That didnt work
Click to expand...
Click to collapse
What part of "That" didn't work?
townsenk said:
What part of "That" didn't work?
Click to expand...
Click to collapse
After pushing the files, wiping dalvik cache, and rebooting, there was no status bar at all.
This is viper rom rc1.1, netarchy test3 kernel.
jayjay7411 said:
one up on this i like your blue battery ya got there, can ya make a zip for us
to flash please?
Click to expand...
Click to collapse
I've never been successfull creating a update.zip. I can never seem to get the syntax correct on the update-script.
If someone more experienced wants to create one, I'd love to take a look at it and see what I'm doing wrong.
nabbed said:
After pushing the files, wiping dalvik cache, and rebooting, there was no status bar at all.
This is viper rom rc1.1, netarchy test3 kernel.
Click to expand...
Click to collapse
Did you modify *Your* framework files or use the ones provided? The ones I used as examples are from a stock rom that is still odexed
I recommend you modify a copy of your own framework files since there may have been changes in the viper rom. It should still work. If you want you can send me a copy of your unaltered framework files and I can take a look.
mexiking713 said:
Can you make a stock % battery?
Send from my Rooted HTC Evo 3D
Click to expand...
Click to collapse
That requires the creation of about 60 new icons.
Easier method. Find me the icons..or even a Original Evo mod package and I can extract the icons from that.
townsenk said:
Did you modify *Your* framework files or use the ones provided? The ones I used as examples are from a stock rom that is still odexed
I recommend you modify a copy of your own framework files since there may have been changes in the viper rom. It should still work. If you want you can send me a copy of your unaltered framework files and I can take a look.
Click to expand...
Click to collapse
Ah! Viper is deodexed, so there's the problem right there.
Ill try to modify...
I have stock rom, if I do Push command and restart it should work right?
adb push new_SystemUI.apk /system/app/SystemUI.apk
adb push new_framework-res.apk /system/framework/framework-res.apk
justwonder said:
I have stock rom, if I do Push command and restart it should work right?
adb push new_SystemUI.apk /system/app/SystemUI.apk
adb push new_framework-res.apk /system/framework/framework-res.apk
Click to expand...
Click to collapse
That is correct - You'll still have to wipe the Dalvik and let it rebuild on boot
Let me know if it works for you

How to zip a ROM to be flashed

Okay so I've spent about 2 days tweaking my stock deodexed Rom to my liking and It's super fast and responsive. Faster scrolling and speed hacks. Quadrants in the 2000s. And much more. How do I take this Rom and zip it so other people can flash it if they want?
Sent from my Beastly EVO.. And did I mention it has 3D?
youngpro83 said:
Okay so I've spent about 2 days tweaking my stock deodexed Rom to my liking and It's super fast and responsive. Faster scrolling and speed hacks. Quadrants in the 2000s. And much more. How do I take this Rom and zip it so other people can flash it if they want?
Sent from my Beastly EVO.. And did I mention it has 3D?
Click to expand...
Click to collapse
packaging up a ROM is fairly simple.
for a ROM .zip there are a few main components:
1) *required* /system directory (contains all your ROM files)
2) *required* META-INF/com/google/android/ with two files, updater-script and update-binary. updater-script file instructs the update-binary on how to process/install your ROM. the custom recovery will look for these two files and execute them.
3) *optional* a kernel in the .zip to be flashed
hope that helps! good luck on publishing your ROM!
joeykrim said:
packaging up a ROM is fairly simple.
for a ROM .zip there are a few main components:
1) *required* /system directory (contains all your ROM files)
2) *required* META-INF/com/google/android/ with two files, updater-script and update-binary. updater-script file instructs the update-binary on how to process/install your ROM. the custom recovery will look for these two files and execute them.
3) *optional* a kernel in the .zip to be flashed
hope that helps! good luck on publishing your ROM!
Click to expand...
Click to collapse
So could I just take a ROM and just change certain files and apps? And how do you make the Rom do cool stuff while flashing like spell your Rom name while it flashes? Sorry for all the questions but I appreciate ur help.
Sent from my Beastly EVO.. And did I mention it has 3D?
youngpro83 said:
So could I just take a ROM and just change certain files and apps? And how do you make the Rom do cool stuff while flashing like spell your Rom name while it flashes? Sorry for all the questions but I appreciate ur help.
Sent from my Beastly EVO.. And did I mention it has 3D?
Click to expand...
Click to collapse
Usually, at least from what I know...
The more In depth stuff is done with the ROM Kitchen through a computer!
youngpro83 said:
So could I just take a ROM and just change certain files and apps? And how do you make the Rom do cool stuff while flashing like spell your Rom name while it flashes? Sorry for all the questions but I appreciate ur help.
Sent from my Beastly EVO.. And did I mention it has 3D?
Click to expand...
Click to collapse
yes, you could take a ROM and only replace certain files / apps with the ones you've modified.
the ROM "cool stuff" while it flashes is all done in the updater-script file i mentioned in #2 of the required ROM files in my previous post above.
the ROM I maintan and publish for EVO 3D is 100% stock with root/su binary added, busybox and a bunch of linux arm developer binaries in /system/xbin.
my stock ROM would be a great base for you to start modifying and experimenting with!
1) swap out the apk/files in the .zip with the ones you've modified.
2) modify the updater-script file with your syntax
3) let us know how it goes!
[ROM] joeykrim-original-1.2.0 Odex *Stock Rooted 2.08.651.2* Aug 21st 2011
on windows, 7zip is a great GUI application for swap/editing files inside a .zip without having to extract the whole thing.
on linux, i'd just unzip the whole .zip to a directory and then swap out the files/edit the files in that directory, then zip up. also, i think ubuntu archive manager (default GUI for .zip files) lets you modify/edit files inside the .zip without having to extract the whole thing.
hope that helps!
joeykrim said:
yes, you could take a ROM and only replace certain files / apps with the ones you've modified.
the ROM "cool stuff" while it flashes is all done in the updater-script file i mentioned in #2 of the required ROM files in my previous post above.
the ROM I maintan and publish for EVO 3D is 100% stock with root/su binary added, busybox and a bunch of linux arm developer binaries in /system/xbin.
my stock ROM would be a great base for you to start modifying and experimenting with!
1) swap out the apk/files in the .zip with the ones you've modified.
2) modify the updater-script file with your syntax
3) let us know how it goes!
[ROM] joeykrim-original-1.2.0 Odex *Stock Rooted 2.08.651.2* Aug 21st 2011
on windows, 7zip is a great GUI application for swap/editing files inside a .zip without having to extract the whole thing.
on linux, i'd just unzip the whole .zip to a directory and then swap out the files/edit the files in that directory, then zip up. also, i think ubuntu archive manager (default GUI for .zip files) lets you modify/edit files inside the .zip without having to extract the whole thing.
hope that helps!
Click to expand...
Click to collapse
Thanks a lot. So ill experiment with ur base. What is syntax?
Sent from my Beastly EVO.. And did I mention it has 3D?
youngpro83 said:
Thanks a lot. So ill experiment with ur base. What is syntax?
Sent from my Beastly EVO.. And did I mention it has 3D?
Click to expand...
Click to collapse
fancy word i used in place of code/text. you can open the updater-script inside of the .zip file with a text editor. the updater-script file uses the edify scripting language.
there are a lot of guides on how to use edify and what each phrase means. google the terms, "edify android guide" and there should be a bunch of results. one of the results which looks fairly decent - Edify Script Syntax Explained
hope that helps! good luck!
youngpro83 said:
Okay so I've spent about 2 days tweaking my stock deodexed Rom to my liking and It's super fast and responsive. Faster scrolling and speed hacks. Quadrants in the 2000s. And much more. How do I take this Rom and zip it so other people can flash it if they want?
Sent from my Beastly EVO.. And did I mention it has 3D?
Click to expand...
Click to collapse
Cool man! Good luck! Hope to see ya on the dev page.
Sent from my SPH-P100 using xda premium
Alright so progress is being made and its going very well. Only things Im stuck on now is:
1. How do I add certain apps like astro or ES file explorer WITHOUT putting them into the system/apps folder??
2. How do I change the background at boot so that its not the colorful flares that Sprint has on there.
3. How do I remove the 3D apps game apk?
Once I have those figured out I think my ROM will be ready for the public.
youngpro83 said:
Alright so progress is being made and its going very well. Only things Im stuck on now is:
1. How do I add certain apps like astro or ES file explorer WITHOUT putting them into the system/apps folder??
2. How do I change the background at boot so that its not the colorful flares that Sprint has on there.
3. How do I remove the 3D apps game apk?
Once I have those figured out I think my ROM will be ready for the public.
Click to expand...
Click to collapse
1. android package manager monitors two locations for .apk files and will install them as soon as they appear in these two directories: /system/app and /data/app. if you want your rom to install .apk files to /data/app, you'll need to add the package_extract_dir command to your updater-script for /data and also create a data/app directory in the ROM zip file and put whatever apk files you want added in the data/app dir of the ROM zip file.
2. For Android boot animations the system looks in 3 locations in this order. 1) /data/local/bootanimation.zip, 2) /system/media/bootanimation.zip and 3) framework-res.apk . Since there are no bootanimation.zip files on our device, I'm assuming the sprint boot animation is stored in the framework-res.apk file. No worries, as placing any bootanimation file in either /data/local or /system/media will take priority over the Sprint animation in framework-res.apk.
3. 3D Games apk file is located here: /system/app/PGAWidget_HTCEvo3D_Sprint_v100.apk . Simply remove that apk file from /system/app inside the ROM .zip and it will not be loaded.
Let us know if you have any other questions. Hope that helps and good luck in the publishing!
joeykrim said:
1. android package manager monitors two locations for .apk files and will install them as soon as they appear in these two directories: /system/app and /data/app. if you want your rom to install .apk files to /data/app, you'll need to add the package_extract_dir command to your updater-script for /data and also create a data/app directory in the ROM zip file and put whatever apk files you want added in the data/app dir of the ROM zip file.
2. For Android boot animations the system looks in 3 locations in this order. 1) /data/local/bootanimation.zip, 2) /system/media/bootanimation.zip and 3) framework-res.apk . Since there are no bootanimation.zip files on our device, I'm assuming the sprint boot animation is stored in the framework-res.apk file. No worries, as placing any bootanimation file in either /data/local or /system/media will take priority over the Sprint animation in framework-res.apk.
3. 3D Games apk file is located here: /system/app/PGAWidget_HTCEvo3D_Sprint_v100.apk . Simply remove that apk file from /system/app inside the ROM .zip and it will not be loaded.
Let us know if you have any other questions. Hope that helps and good luck in the publishing!
Click to expand...
Click to collapse
Man you are the BOMB.COM!!!!
And for 2. I wasnt looking to replace the boot animation. I kinda like the Sprint one. I was trying to replace the actual wallpaper that the phone boots into. So at the home screen I can have my own wallpaper that I choose for my ROM.
Also for 1. Do I need to create a unmount script like the one for /system? Or do I just add the script you mentioned and that is it?
Thanks so much for your help man. I dont think I would have gotten this far without you!!
youngpro83 said:
Man you are the BOMB.COM!!!!
And for 2. I wasnt looking to replace the boot animation. I kinda like the Sprint one. I was trying to replace the actual wallpaper that the phone boots into. So at the home screen I can have my own wallpaper that I choose for my ROM.
Also for 1. Do I need to create a unmount script like the one for /system? Or do I just add the script you mentioned and that is it?
Thanks so much for your help man. I dont think I would have gotten this far without you!!
Click to expand...
Click to collapse
Oh, I misunderstood for 2. For the actual wallpaper .. I did a few quick google searches and haven't come up with anything super helpful. Based on this blog post Appears there are two possible locations for the default wallpaper images to be stored, either in the Launcher.apk or in /system/frameworks/framework.jar. Unfortunately, I'm not able to experiment on the device and search more thoroughly. If nobody posts back a better answer I'll look into this tonight.
1. Yea, it would be best practice to mount data, package extract dir /data and then unmount data. You should be able to copy the mount/unmount commands used for system and change the mount points to data and for the mount command change the device point for data .. off the top of my head I think its one number higher, but not positive. cat /proc/partitions to see the exact device mount point.
Hope that helps!
joeykrim said:
Oh, I misunderstood for 2. For the actual wallpaper .. I did a few quick google searches and haven't come up with anything super helpful. Based on this blog post Appears there are two possible locations for the default wallpaper images to be stored, either in the Launcher.apk or in /system/frameworks/framework.jar. Unfortunately, I'm not able to experiment on the device and search more thoroughly. If nobody posts back a better answer I'll look into this tonight.
1. Yea, it would be best practice to mount data, package extract dir /data and then unmount data. You should be able to copy the mount/unmount commands used for system and change the mount points to data and for the mount command change the device point for data .. off the top of my head I think its one number higher, but not positive. cat /proc/partitions to see the exact device mount point.
Hope that helps!
Click to expand...
Click to collapse
Helps a bunch!!! I will have to dig deeper because I tried flashing after creating those scripts and I got error 6 when trying to flash. Ill add the mount/unmount commands and see if that fixes it.
youngpro83 said:
Helps a bunch!!! I will have to dig deeper because I tried flashing after creating those scripts and I got error 6 when trying to flash. Ill add the mount/unmount commands and see if that fixes it.
Click to expand...
Click to collapse
To debug flashing errors while in the recovery, open adb shell and type:
Code:
cat /tmp/recovery.log
The recovery log has more details and usually the exact line of code where it failed. Feel free to paste this into pastebin and link up here, or paste into the thread and we can help troubleshoot.
Another step deeper into troubleshooting and debugging land of ROM development! Hope that helps!
Joeykrim, learned more from this thread then searching chefs central..
life64x said:
Joeykrim, learned more from this thread then searching chefs central..
Click to expand...
Click to collapse
I Agree... This Thread could be on its way to being a little STICKY, Lol!
Nah but Good Thread guys!

Categories

Resources