changing battery in notification bar cm 6 - Android Themes

I have the release candidate for cm 6.0 and was working on personalizing the interface. as i am trying to change the battery to a circular theme i am coming across this error in my terminal
C:\androidSDK\tools>adb push framework-res.apk /system/framework
failed to copy 'framework-res.apk' to '/system/framework/framework-res.apk': No
space left on device
is this a known issue? or is there a more efficient way of handling themes

Install "Android Mate" from the market, use the explorer to go in /system/framework and delete framework-res.apk
Try your command one more time, it should work.

Or just go into recovery, mount system, and adb push it to /system/framework/
I had the same problem and did it that way, and it worked smoothly.

youngalumni said:
I have the release candidate for cm 6.0 and was working on personalizing the interface. as i am trying to change the battery to a circular theme i am coming across this error in my terminal
C:\androidSDK\tools>adb push framework-res.apk /system/framework
failed to copy 'framework-res.apk' to '/system/framework/framework-res.apk': No
space left on device
is this a known issue? or is there a more efficient way of handling themes
Click to expand...
Click to collapse
use
adb remount
adb push [...]
if you were using Metamorph, it would be easier

Related

Changing fonts on a rooted phone

Hi,
I need help updating the fonts on my rooted Incredible. The way I understand it, all that needs to be done is to replace the font(s) in /system/fonts with something else. Easier said than done...
I opened an SU shell via "adb shell", and then tried to remount the /system in "rw" mode, I also updated the permissions for the font files so that I can override them. So good so far...
But when I try to copy or replace the files, I run into all kinds of problems:
* First of all, the rooted phone doesn't have "cp" so I can't do the usual copy operations like a regular *nix machine (did I miss something during the root process).
* Then I saw examples of using the "cat" command to replace the old files, but that resulted in "write: No space left on device" error, which I think has to do with how the memory image is loaded/packed??
* Then I saw examples of using the "dd" command, to copy the new files over the old files. This went further, since I can see the new timestamp when using "ls -l /system/fonts". However, when I reboot the phone, the old fonts show back again.
* I also saw an example in another thread titled "Hebrew support" in this forum (sorry, don't know how to cross-post URLs), but I didn't know how to follow the instructions there.
I would really appreciate it if someone can help me out.
- how can I update the system image? (do I really need a signed ZIP file?)
- is it too late for me to add "cp" to my rooted phone?
- the 10 minutes rooting video had us copy the "busybox" file to the sdcard, but it didn't say what to do with it. can I use it as a replacement for "cp"? (do I have to go back to "adb recovery"?)
You can only modify /system while in clockwork recovery after you're rooted and have run the unrevoked recovery flash tool
Yea, you have to push them to the phone in clockwork recovery.
you can put them in your tools folder where adb is located or put them on your SDcard and push them from there.
I attached the fonts I used. I used these on my Moto Droid I used to have and now they are on my dInc. This font is not as bold as the stock font and a little smaller. This font i believe is the "Droid" font. It looks pretty nice, see my screenshot and look under icons and at the clock and then compare to your phone.
Here is the commands you would do at command prompt, not from ADB shell.
For these commands to work, you have to place the fonts in your tools folder where ADB is.
Code:
adb push Clockopia.ttf /system/fonts/
adb push DroidSans.ttf /system/fonts/
adb push DroidSans-Bold.ttf /system/fonts/
adb push DroidSansFallback.ttf /system/fonts/
adb push DroidSansMono.ttf /system/fonts/
adb push DroidSerif-Bold.ttf /system/fonts/
adb push DroidSerif-BoldItalic.ttf /system/fonts/
adb push DroidSerif-Italic.ttf /system/fonts/
adb push DroidSerif-Regular.ttf /system/fonts/
you might be able to try this command
adb push *.ttf /system/fonts/
Im not sure if that would work or not, maybe someone else could confirm.
Thank a lot for the reply...
So is this the correct thread that I should follow now: "Unrevoked team: Recovery reflash tool (updated!)" to install the "clockwork recovery"? I am assuming this will allow the phone to start recovery with adbd running, so that I can connect to it from my PC while in recovery. Correct?
It took me forever to get the adbd running in recovery as part of rooting my phone, and I am not sure that I can replicate these steps again (at least not easily). I was this close to copying the font files while in "adb recovery" mode, but then I chickened out, because I didn't want to risk the rooting process by doing something that doesn't match the root instructions.
yes, as long as you have actually gained root and have the superuser/busybox properly installed. just follow that thread and you'll have new fonts in no time, and I can assure you that it will work because I changed mine too.
If using clockword recovery, dont forget to mount system.
Put them all in a folder named fonts. Put the folder in tools. Boot into recovery, mount system. Then: adb push fonts /system/fonts. Unmount system then reboot.
Sent from my ADR6300 using XDA App
TNS201 said:
Yea, you have to push them to the phone in clockwork recovery.
you can put them in your tools folder where adb is located or put them on your SDcard and push them from there.
I attached the fonts I used. I used these on my Moto Droid I used to have and now they are on my dInc. This font is not as bold as the stock font and a little smaller. This font i believe is the "Droid" font. It looks pretty nice, see my screenshot and look under icons and at the clock and then compare to your phone.
Here is the commands you would do at command prompt, not from ADB shell.
For these commands to work, you have to place the fonts in your tools folder where ADB is.
Code:
adb push Clockopia.ttf /system/fonts/
adb push DroidSans.ttf /system/fonts/
adb push DroidSans-Bold.ttf /system/fonts/
adb push DroidSansFallback.ttf /system/fonts/
adb push DroidSansMono.ttf /system/fonts/
adb push DroidSerif-Bold.ttf /system/fonts/
adb push DroidSerif-BoldItalic.ttf /system/fonts/
adb push DroidSerif-Italic.ttf /system/fonts/
adb push DroidSerif-Regular.ttf /system/fonts/
you might be able to try this command
adb push *.ttf /system/fonts/
Im not sure if that would work or not, maybe someone else could confirm.
Click to expand...
Click to collapse
Where can I get/download these font files?
EDIT im a retard and didnt see the .zip sorry
so where can i go to download other font types?
Perhaps this is an obvious questions to some... Can I use any TTF font? I have a font I created that is my own handwriting. This would be pretty cool to have available in my Phone... It is a standard TTF font.
Possible? I tried to search but didn't see anything specifically mentioned if a font has to be a specific type or if I can use anything.
Thanks!
compnird said:
Perhaps this is an obvious questions to some... Can I use any TTF font? I have a font I created that is my own handwriting. This would be pretty cool to have available in my Phone... It is a standard TTF font.
Possible? I tried to search but didn't see anything specifically mentioned if a font has to be a specific type or if I can use anything.
Thanks!
Click to expand...
Click to collapse
it should work fine, you just need to rename the file to DroidSans.ttf and DroidSans-Bold.ttf and replace the ones that are in /system/fonts
Thanks for the help seanhassars and TNS201: I am using the ClockworksMod recovery, and I was able to update the fonts (using the "update from ZIP" option).
I can see Arabic letters, but unfortunately, they don't look correct (they are disjoined, when they actually should be connected together). Now I am looking around for patched libwebcore.so to fix this issue, and thanks to nandroid backup, I can experiment with changing the libraries as much as I can.
shamidude can you please let me know which fonts you used? I am desperately needing to install arabic on my phone and could use the help. If possible could you upload the proper ones? Also which libwebcore.so did you use?
I tried to install Arabic fonts from another website but my phone froze on the splash screen and wouldn't boot. Please let me know what works for you, especially if you get the reshaper working.
edit- also if you could post general instructions of what you did to push the fonts onto the phone, how you mounted/dismounted, etc would be good
I don't think that was supposed to be an update.zip he just zipped the fonts he's using for easier access, you still have to push them manually.

Hide Battery Status

is there a way to hide the android battery status or display the % on it? there are plenty of apps that show % but its kinda redundant to have both displaying on the task bar.
i am runing rooted stock rom. any ideas are apreciated, thanks
You can do both with CyanogenMod. Or you can just replace the images in framework-res.apk
Here is a red round battery with percentages:
thanks everyone
thank you, i just deleted the images from framework-res and installed a battery indicator from market. so now i have 1 battery with correct %. too bad i cant move it to the right
dkhait said:
thank you, i just deleted the images from framework-res and installed a battery indicator from market. so now i have 1 battery with correct %. too bad i cant move it to the right
Click to expand...
Click to collapse
How do you do this? Do you copy the original framework-res.apk to PC and then open and remove the battery pictures then move the modified framework-res.apk back to the device and install? I tried this but the apk wont install.
nfcrockett said:
Here is a red round battery with percentages:
Click to expand...
Click to collapse
How do you install this file? I tried installing it from clockwork mod recovery, but it didn't take.
Asterdroid said:
How do you install this file? I tried installing it from clockwork mod recovery, but it didn't take.
Click to expand...
Click to collapse
you cant install that file. you have to pull framework-res.apk from the /system/framework. then open it with 7zip and overwrite the exiting images with those. then push it back into the phone.
adb pull /system/framework/framework-res.apk
then after injecting new images
adb push framework-res.apk /system/framework/
dkhait said:
you cant install that file. you have to pull framework-res.apk from the /system/framework. then open it with 7zip and overwrite the exiting images with those. then push it back into the phone.
adb pull /system/framework/framework-res.apk
then after injecting new images
adb push framework-res.apk /system/framework/
Click to expand...
Click to collapse
Worked like a charm. Thanks!
Any idea where I can get my hands on red-themed 3g/location/clock/wifi/gps/alarm etc. notification icons?
I can't get the file to push. I am connected via USB with USB debugging on in charge only mode. At CMD prompt I can adb shell and su.
adb push framework-res.apk /system/framework/
gives error adb: not found
I have edited the file by removing some png and then saving it back to the sdk root and the sdk/tools folders.
If I get this to push do you have to then install the apk from the device?
wpbear said:
do you have to then install the apk from the device?
Click to expand...
Click to collapse
-Install 7zip (just google it)
-Reboot phone into recovery.
-Connect USB cable
-Go into Partitions menu in recovery
-Mount /System
-Open your command prompt on your PC
-Change the directory to wherever your sdk/tools are located
-type the following command line: adb pull /system/framework/framework-res.apk
Now the file is in your sdk/tools folder
-Right click on framework-res.apk and open with 7zip
-Copy the files from the round battery zip folder to the corresponding folder with the 7zip archive. They will automatically overwrite
-Exit 7zip
-Back in the command prompt type the following command line: adb push framework-res.apk /system/framework/
-On your phone, unmount /system, then back out of the partitions menu and reboot your phone.
Should be all set!
wpbear said:
I can't get the file to push. I am connected via USB with USB debugging on in charge only mode. At CMD prompt I can adb shell and su.
adb push framework-res.apk /system/framework/
gives error adb: not found
If I get this to push do you have to then install the apk from the device?
Click to expand...
Click to collapse
I think you need to mount the system folder in the partitions menu of recovery. My instructions are one post up.
Thanks got it. I switched back to the orignal apk though. I wanted the status hidden, and while deleting the png worked, it still leaves a blank space instead of moving the icons over so it doens't look good. Thanks for the help.
nfcrockett said:
Here is a red round battery with percentages:
Click to expand...
Click to collapse
I really like this icon, but is there any way to use this without the percentages in the middle? It makes it look more cluttered, and it's not very useful as they only change between 100, 80, 60, etc.
So is there any way to either make them more accurate, or remove them completely? I really like this indicator otherwise, more neat-looking than the one that comes with the jonnybueno theme (which rocks otherwise!)
Thanks all.
I made a white round battery meter if you don't care for the red.
Why can't this be packaged up into a zip for us to just go into recovery and clockwork and install zip. Don't really understand why we have to go through all the steps of adb to get this to work. So if possible could someone please put it all together to make it easier to use. Thanks
wpbear said:
How do you do this? Do you copy the original framework-res.apk to PC and then open and remove the battery pictures then move the modified framework-res.apk back to the device and install? I tried this but the apk wont install.
Click to expand...
Click to collapse
you cant install it, you have to overwrite it in recovery mode.
adb pull /system/framework/framework-res.apk
modify
then
adb push framework-res.apk /system/framework/
corywf said:
I made a white round battery meter if you don't care for the red.
Click to expand...
Click to collapse
Is there one for blue please?
What color blue do you want? Just regular blue?
WingHater said:
Why can't this be packaged up into a zip for us to just go into recovery and clockwork and install zip. Don't really understand why we have to go through all the steps of adb to get this to work. So if possible could someone please put it all together to make it easier to use. Thanks
Click to expand...
Click to collapse
It probably could be packaged, but it is a pretty simple change so I doubt anyone would go through the trouble.
Do not fear ADB. Follow the steps. It is as easy as 1. 2. 3... 4567.
nfcrockett said:
Here is a red round battery with percentages:
Click to expand...
Click to collapse
Is there anyway to do this so it is like the old days where a zip could be installed through clockwork recovery? I hate doing anything through ABD half the time my phone is not recognized?

How: can I mod the stock phone.app?

Ok, I must have posted this question somewhere but I would like to know the answer cause no one has answered it. "how do I get the stock phone app to modify?. How would I get it and put it back into my phone? please I would like to know.
38 views and no response?
the .png files for the phone are actually in the contacts.apk.
Are you asking how to modify the apk, or just specifically where are the phone images?
To copy the app from your phone just do: adb pull /system/app/Phone.apk
That will put a copy of the file in your "tools" directory in the android sdk folder
Then when you want to put it back on you should be able to overwrite it with: adb push /system/app/Phone.apk
What exactly are you planning on doing with this file?
Thank you. I want to create my own images to make it look different then the stock colors.
There are 2 apks that contain dialers, one is the Contacts.apk as stated bfore that brings up the phone when the phone icon is pressed the second is in the Phone.apk appears once a call is placed, and the persons picture appears of the person you are calling.
I don't know how to do a adb pull. can you explain?
johnny quest said:
I don't know how to do a adb pull. can you explain?
Click to expand...
Click to collapse
In terminal or command prompt, navigate to the tools directory in the android SDK and run the following commands:
Code:
adb remount
adb pull /system/app/Phone.apk
That will dump the file in you tools directory.
If you are having trouble with this, let me know what operating system you are using and if you have the android SDK installed.
synesthete said:
In terminal or command prompt, navigate to the tools directory in the android SDK and run the following commands:
Code:
adb remount
adb pull /system/app/Phone.apk
That will dump the file in you tools directory.
If you are having trouble with this, let me know what operating system you are using and if you have the android SDK installed.
Click to expand...
Click to collapse
This is confusing. I didn't think it would be so hard. I do UI's for iphone and ipod touch and this is way different. There are so many different things. Its discouraging in some ways. Sorry. I would love to create an app but of course its different. So, I stick to creating themes.
I would love to take a ROM and mod it myself or even modifying Launcher pro but it has that 9.pngs which makes it hard.
Ok, I have the Eris 2.1 rooted with Tenzo Rcmix2.0 installed. I have the SDK installed but don't know what to do with it. I appreciate you taking the time to help me out. I really want to create and mod lots of apps.
this is what I've done to a phone app I downloaded from the market:
-I created my images through Photoshop and saved them to a folder with its correct name used.
-I opened draw9patch and saved the images with the correct name again to a folder.
-I named the folder drawable-hdpi that belongs in the Res folder
-took the files and folder and created a zip out of it.
-opened the AvaboxV2 and signed it.
-loaded to my phone and changed the name to the correct name and installed it
but it keeps saying application not install, I just don't get it. What step did I messed up on?
Anybody? anybody?...............................
This is what you need to do:
1. Open Contacts.apk in 7-zip
2. Copy the images over top of the original images in drawable, drawable-mdpi, and drawable-mdpi-finger (notice I didn't say anything about hdpi)
3. Close the archive.
4. Copy it back onto the device with:
Code:
adb remount
adb push Contacts.apk /system/app
Your phone may not appreciate you pushing Contacts.apk while it is running, so it may become unstable at this point. I would recommend restarting.
icbeer said:
This is what you need to do:
1. Open Contacts.apk in 7-zip
2. Copy the images over top of the original images in drawable, drawable-mdpi, and drawable-mdpi-finger (notice I didn't say anything about hdpi)
3. Close the archive.
4. Copy it back onto the device with:
Code:
adb remount
adb push Contacts.apk /system/app
Your phone may not appreciate you pushing Contacts.apk while it is running, so it may become unstable at this point. I would recommend restarting.
Click to expand...
Click to collapse
thank you but I'm trying to understand what you mean by push ADB. is that the one in the sdk folder? if so, I open it and it just flashes for a few seconds then closes.
ADB is a command line program that allows you to debug and move/edit files on your phone. You need to run those commands from a command prompt (should be a link in the Accessories folder on the Start menu if you can't right-click on the sdk folder and open one). Navigate to the tools folder, then run the remount and push commands like icbeer said to get your modified .apk on your phone:
Code:
C:\users\brtnbrdr> cd c:\android-sdk-windows\tools
C:\android-sdk-windows\tools> adb remount
C:\android-sdk-windows\tools> adb push Contacts.apk /system/app

[Req] Black Statusbar for Vanilla Fr15 Rom

Hello, you know give me a black stock statusbar mod for the vanilla rom Fr15?
Just flash a mod with black statusbar (or just the framework-res.apk from Fr15). You must also push services.jar from the Fr15 standard to the framework folder. If not your clock will be black together with the statusbar.
Novek said:
Just flash a mod with black statusbar (or just the framework-res.apk from Fr15). You must also push services.jar from the Fr15 standard to the framework folder. If not your clock will be black together with the statusbar.
Click to expand...
Click to collapse
I could change the rom zip files putting framework-res.apk and services.jar in vanilla from normal and install it by recovery?
Sorry for my bad English, i'm Italian.
You could if you do it right, but I wouldn't recommend it. The easiest is to install the vanilla ROM, then push the two files like this:
to push make sure you've got adb, then:
adb remount
adb push framework-res.apk /system/framework/
adb push services.jar /system/framework/
adb reboot
Novek said:
You could if you do it right, but I wouldn't recommend it. The easiest is to install the vanilla ROM, then push the two files like this:
to push make sure you've got adb, then:
adb remount
adb push framework-res.apk /system/framework/
adb push services.jar /system/framework/
adb reboot
Click to expand...
Click to collapse
I did it by changing the zip and it works Thanks for the help
I'd like to use the LG lockscreen, you know what file should Pushar? And you can do with the method you have described above?

Editing framework-res.apk

I got to be fairly efficient at editing the framework-res.apk on my D1. Nothing major, just a handful of custom PNG's. I could boot into recovery, pull the APK, edit it in 7Ziip, then push it back and set permissions. Will that process work on the D3 the same?
Boot into recovery
Mount System
Open command prompt on computer and typ the following commands
adb push framework-res.apk /system/framework /framework-res.apk
adb shell "/system/bin/chmod 644 /system/framework /framework-res.apk"
adb reboot
-Mike
Also, trying to figure out where the icons and PNGs for the text messaging app are. This Blur UI is really throwing me for a curve.
Hopefully someone out there can point me in the right direction.
-Mike
Any ideas guys/gals?
-Mike

Categories

Resources