I like to use Helvetica, so every time I flash a new cyanogen ROM, I find myself having to hook up USB and copying over the ttf files from my desktop.
Code:
adb remount
adb push ~/android/fonts/Helvetica/DroidSans.ttf system/fonts
adb push ~/android/fonts/Helvetica/DroidSans-Bold.ttf system/fonts
adb shell reboot
Can someone help me figure out how to do this directly on the phone?
I have the ttf files on my SD card, but I can't figure out how to copy them over to /system/fonts.
I tried using Better Terminal Emulator (a) but it's a pain to type it all, and (b) it doesn't allow it.
Is there a way to create a script to do this?
Can the script be made into an app/icon on my home screen?
It would be great if someone wrote up an app that could change fonts in general.
Thanks!
d0g said:
I like to use Helvetica, so every time I flash a new cyanogen ROM, I find myself having to hook up USB and copying over the ttf files from my desktop.
Code:
adb remount
adb push ~/android/fonts/Helvetica/DroidSans.ttf system/fonts
adb push ~/android/fonts/Helvetica/DroidSans-Bold.ttf system/fonts
adb shell reboot
Can someone help me figure out how to do this directly on the phone?
I have the ttf files on my SD card, but I can't figure out how to copy them over to /system/fonts.
I tried using Better Terminal Emulator (a) but it's a pain to type it all, and (b) it doesn't allow it.
Is there a way to create a script to do this?
Can the script be made into an app/icon on my home screen?
It would be great if someone wrote up an app that could change fonts in general.
Thanks!
Click to expand...
Click to collapse
Is there a way to post in the correct section?
Anyways, have them on the root of your sdcard and
Code:
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
cp /sdcard/*.ttf /system/fonts
reboot
That should change the fonts.
Gscript
d0g said:
I like to use Helvetica, so every time I flash a new cyanogen ROM, I find myself having to hook up USB and copying over the ttf files from my desktop.
Code:
adb remount
adb push ~/android/fonts/Helvetica/DroidSans.ttf system/fonts
adb push ~/android/fonts/Helvetica/DroidSans-Bold.ttf system/fonts
adb shell reboot
Can someone help me figure out how to do this directly on the phone?
I have the ttf files on my SD card, but I can't figure out how to copy them over to /system/fonts.
I tried using Better Terminal Emulator (a) but it's a pain to type it all, and (b) it doesn't allow it.
Is there a way to create a script to do this?
Can the script be made into an app/icon on my home screen?
It would be great if someone wrote up an app that could change fonts in general.
Thanks!
Click to expand...
Click to collapse
ever heard of "gscript" .. it's pretty simple to create a script to do whatever you want it to do .. ie. "cp /sdcard/*.ttf /system/fonts" .. no USB needed .. come to think of it i don't use a USB connection for any of my G1 needs
Thanks! That worked!
I found this handy app -- GScripts (on the market) -- that let me set up the script to run with one click.
PS: I'm sorry -- which section should this go in? Regular Q&A?
Related
My text messaging isnt working anymore why is this the rom is super fast for me i love it but i cant get text messages any one having same prob? or know of a solution?
im on this rom and dont have this problem...try pushing a Mms.apk from another hero build
how do you do that?
Code:
adb remount
adb push [directory on your computer that contains the Mms.apk]/Mms.apk /system/sd/app_s/Mms.apk
adb shell reboot
someone correct me if that is the wrong location
since i am going to assume you do not have adb though
go into the recovery terminal and type
Code:
mount -o rw /dev/block/mmcblk0p2 /system/sd/app_s
cd system/sd/app_s
rm Mms.apk
reboot
then have the Mms.apk from another build on your sdcard(fat32) and install it via astro or some other package installer
again someone correct me if that is the wrong location because i am not on a hero build right now or i would confirm the directories myself
Im pretty sure u cant install system apps with astro. Either try the super user file browser from the market, terminal, or adb
pistol4413 said:
Im pretty sure u cant install system apps with astro. Either try the super user file browser from the market, terminal, or adb
Click to expand...
Click to collapse
i have installed AlarmClock.apk and the modified Mms.apk by rgv151 with astro after deleting the original one with astro, but then again maybe i am special lol
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.
hi, i just had an idea and idk if this has been posted before, so if it has been posted, im sorry.
instead of using terminal emulator, is it possible for me to go into the .zip of the ROM and delete the apps i do not want in the /system/app folder? i want to know if it will "screw up" the ROM and make it unflashable in my hero's recovery. it takes me too long to remove all the apps i want in terminal emulator and think it would be faster doing it the way i described.
**if this question sounds extremely stupid, then im sorry, im still somewhat of a noob at all this rooting stuff**
The zip's have to be signed in order to be flashed. You cannot just open them, modify them, rezip and install. Find out how to sign the OS zip and you can modify all you want.
thanks for answering, thats all i wanted to know
make a bat
open note pad and paste this:
Code:
adb remount
adb shell rm system/app/*Stock*
adb shell rm system/app/IM.apk
adb shell rm system/app/*Facebook*
adb shell rm system/app/Flickr.apk
adb shell rm system/app/Sprint_Navigation.apk
adb shell rm system/app/Sprint_NFL.apk
adb shell rm system/app/Sprint_Nscar.apk
adb shell rm system/app/HTCNew.apk
adb shell rm system/app/com.htc.TwitterWidget.apk
adb shell rm system/app/com.htc.FriendStreamWidget.apk
adb shell rm system/app/com.damaged.DConfig.apk
adb shell rm system/app/HtcTwitter.apk
adb shell rm system/app/HtcFacebook.apk
adb shell rm system/app/FriendStream.apk
the add or remove lines accordingly, substitute one apk for another if you want then save as a .bat file (mine is named removeapks.bat) place in the tools folder if you wish, flash a rom once booted run the .bat file and poof theyre gone
alexnaoumi said:
thanks for answering, thats all i wanted to know
Click to expand...
Click to collapse
There's a tool written in Java that makes signing zip's really easy. It's included in a suite of apps called AndroidMod.zip
Once you have it, the syntax to sign the new zip is simple. Just:
java -jar signapk.jar testkey.x509.pem testkey.pk8 Inputfile.zip outputfile.zip
Or you can get "root manager" from market which does a lot including removal of unwanted system apps.
Sent from my HERO200 using XDA App
I think Fresh Pre kitchen does it also.
Titanium backup is what I use. Haven't had any trouble using it.
Moved to Q&A.
alexnaoumi said:
hi, i just had an idea and idk if this has been posted before, so if it has been posted, im sorry.
instead of using terminal emulator, is it possible for me to go into the .zip of the ROM and delete the apps i do not want in the /system/app folder? i want to know if it will "screw up" the ROM and make it unflashable in my hero's recovery. it takes me too long to remove all the apps i want in terminal emulator and think it would be faster doing it the way i described.
**if this question sounds extremely stupid, then im sorry, im still somewhat of a noob at all this rooting stuff**
Click to expand...
Click to collapse
I like Root Manager also because there is a "multi-select" option so you can select all of the files you'd like to delete. For the "/system/app" folder you can mount as "read/write", then delete the files. I then reboot into recovery, wipe the cache and Dalvick cache, and reboot. I've had no issues doing this. It's not so much how you delete, rather than what you delete. The forums here at XDA (as well as others that you can Google) that tell you what apps are safe to delete and which should remain untouched. As long as you don't delete an apk that is critical to ROM, you should be okay.
bombaatomica said:
The zip's have to be signed in order to be flashed. You cannot just open them, modify them, rezip and install. Find out how to sign the OS zip and you can modify all you want.
Click to expand...
Click to collapse
Since this is my first post, and I cannot post links, do a search on "modaco zipsigner". This is the utility I found for re-signing zip files, and it has worked flawlessly for me.
OK, I know how to use ADB to reboot and get into download mode on my phone, but I have a kind of emergency. I was attempting to replace a framework-res.apk file on my phone to change the battery icon, and now I am stuck FCing all over the place. So much that I can't put my backed up framework-res.apk file back in /system/framework via Root Explorer like I normally do.
I am connected to my phone, can list directories, but cannot seem to push the framework-res.apk file.
Can someone give me a step by step on how to do this and soon please...
EDIT: I think I got it. I needed to be in Recovery Mode, and then it seemed to copy fine.
While I do have someone's attention (hopefully), how do you change directories if the directory you want to change to is two names, IE 'Battery Mod'?
Demented71 said:
OK, I know how to use ADB to reboot and get into download mode on my phone, but I have a kind of emergency. I was attempting to replace a framework-res.apk file on my phone to change the battery icon, and now I am stuck FCing all over the place. So much that I can't put my backed up framework-res.apk file back in /system/framework via Root Explorer like I normally do.
I am connected to my phone, can list directories, but cannot seem to push the framework-res.apk file.
Can someone give me a step by step on how to do this and soon please...
Click to expand...
Click to collapse
Is your backed up framework on your sdcard? You could try adb shell.
from pc,
adb shell
su
cp XXXX/framework-res.apk system/framework <<<may need to use busybox cp
exit
exit
adb reboot
bobbylx said:
Is your backed up framework on your sdcard? You could try adb shell.
from pc,
adb shell
su
cp XXXX/framework-res.apk system/framework <<<may need to use busybox cp
exit
exit
adb reboot
Click to expand...
Click to collapse
My backed up framework file was on my PC. The first one I was trying to get to was on my phone, in a folder called Battery Mod, which I could not get into because ADB kept saying wrong substitution or something?
Either way, I was able to get it done, so I learned something new again.
EDIT: I think I got it. I needed to be in Recovery Mode, and then it seemed to copy fine.
While I do have someone's attention (hopefully), how do you change directories if the directory you want to change to is two names, IE 'Battery Mod'?
Click to expand...
Click to collapse
That makes sense, it may not let you Push to the file system while it's in use.
As for 2 names, do you mean from a windows command box or in the android command line. Windows you just type it as is. Linux is a little more picky, I usually try to remove spaces from directory names so I don't run into any problems with that. In linux a backslash works, ie, cd /sdcard/Battery\ Mod
Not sure if it will work on our phones.
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