Font change during rom modifying causes issues... - Droid Eris Android Development

I've been playing with the ThemePorter app and loving it. But while I have the new rom open and swapping the .pngs from the old theme to the new rom I thought I could change the fonts too. I picked a font I liked (.tft format), deleted the old fonts and installed the new ones with all the same names as the old ones (Clockopia, DroidSans, etc etc) but once I zip the rom back together and sign it, it won't load. ADB logcat gives me issues like media_flinger died, and the other media stuff in that library has died warnings too. This makes the boot screen hang and the rom won't load despite complete install. Obviously there are other ways to change the font, so that's not a big deal. I'm just trying to understand how this stuff is connected. I did double check and this can be the only problem. I just unzipped the rom, replaced the original font folder, signed, and rebooted just fine. Any ideas?

Related

[MOD] Font Changer v1.4 (24/09)

Instructions in this thread only apply to the old 1.4 version which works with S-ON. Nothing from this thread is needed for the newer Market versions.
With the release of the Market versions (free and paid) I have created a newer thread in the general app section of XDA forums. Those versions work with S-OFF and have many additions and fixes. If you have any issues with those versions, please head over there. LINK. Otherwise stay here as I will still be providing support, but no more updates for the old one.
Description
This is a simple update and application which creates a symlink from /system/fonts into /data/local/fonts for the regular and bold font used by Android (sorry, no Arabic and others yet). The update just makes the necessary changes on the partition, and the application allows for fairly simple switching of the fonts. The update comes with some fonts already, but they can be added manually as well (read more to see how).
- Inspired from the Galaxy S
Requirements
recovery
root
busybox
also reported to be working on a Motorola Droid with CM6
Installation
do a nandroid backup first, just in case
flash fontchanger_update_basic*.zip (doesn't contain any extra fonts, so they will have to be added manually) or fontchanger_update_basic*.zip (contains lots of fonts, but requires ~15MB of free space during installation) in recovery
install FontChanger*.apk on your device
and you're ready to change the font now!
How to Add Fonts
Fonts need to be in TrueType (.ttf), and to ensure a smoother ride you should have two files. One for the regular typeface, and the second for the bold one. If you have just the regular one, the overall look may not be so pleasing and also it may cause a force close too.
Make sure that both fonts have the same common filename (and no spaces please), but append "bold", or "bd" or "bi" at the end of the filename for the bold font. Otherwise the application may not detect the fonts correctly. So for example:
Font.ttf and Font-Bold.ttf, or Font.ttf and Fontbd.ttf, and so on.
Once that is done you can push the files with adb to /data/local/fonts/ or /sdcard/.fontchanger/ (if you moved the fonts to external storage in the settings). Another way is to place the fonts on your SD card and then just move them using Root Explorer. Now just refresh the application and the new fonts should be there.
How to Remove
remove Font Changer from your applications
go into recovery and flash fontchanger_remove_defaultsense*.zip
Note that at the moment the fonts will get restored to the ones used in the stock Sense ROMs. So if you had previously used a theme like NexTang, which uses its own font, then you will have to reapply the update to get the same font back (something that I'll work on).
Known 1.4 Bugs
force closes sometimes (try making font names start with a capital, make sure the SD card is mounted on the phone, try to avoid single fonts and spaces in font filenames)
font sorting
Changelog
Code:
v1.5+ (market only)
v1.4 (24/09/2010)
- minor UI tweaks
- removed previews
- reboot now works (only when ROM Manager is installed)
v1.3.1 (18/09/2010)
- more force close fixes
v1.3 (18/09/2010)
- some force close fixes
v1.2.1 (17/09/2010)
- UI change for non-Desire devices and more minor UI tweaks
v1.2 (16/09/2010)
- added settings (refresh on start-up, fonts location, bold behaviour)
- move fonts to external/internal memory
- UI changes and speed improvements
- space savings when bold fonts are missing
v1.1 (12/09/2010)
- updated fonts to 1.2 with new additions (thanks to Beppemi and Moe5508)
v1.1 (05/08/2010)
- updated remove zip to fix some errors in the update script
v1.1 (04/08/2010)
- added more fonts (thanks to Che123)
- added previews of fonts (not all, still work in progress)
- minor tweaks
v1.0 (03/08/2010)
- initial release
great mod..will try it at home..thanks!
Really nice
Going to try this one.
Maybe you can implement some more default fonts- take a look at the ones, I integrated in my suite >>
Che123 said:
Really nice
Going to try this one.
Maybe you can implement some more default fonts- take a look at the ones, I integrated in my suite >>
Click to expand...
Click to collapse
Didn't know about that before, but thank you. I'll take a look at it and add the fonts once I'll have the time
I'll be going on holiday for 5 weeks on Friday, so I made this application really quickly to suit my needs and also published it in case it might be of use to others too. But I'll see what I can do in the next two days.
martino2k6 said:
Didn't know about that before, but thank you. I'll take a look at it and add the fonts once I'll have the time
I'll be going on holiday for 5 weeks on Friday, so I made this application really quickly to suit my needs and also published it in case it might be of use to others too. But I'll see what I can do in the next two days.
Click to expand...
Click to collapse
yeah, it's kind of hidden for desire users, since it's only posted in the g1 forum
np, enjoy your holiday
This is actually a really COOOL mod,
Fair shout
5 weeks holiday???? wtf???
nikosrs4 said:
5 weeks holiday???? wtf???
Click to expand...
Click to collapse
Updated to v1.1. Main changes are that more fonts were added (thanks to Che123) and some minor fixes and UI changes. Remaining previews for the other fonts might come in the next day or two, or after my holiday.
martino2k6 said:
Updated to v1.1. Main changes are that more fonts were added (thanks to Che123) and some minor fixes and UI changes. Remaining previews for the other fonts might come in the next day or two, or after my holiday.
Click to expand...
Click to collapse
Now that was fast...
thx
This is awesome! Very easy to use and has some great fonts! Thanks a lot, great mod!
For the few people that have used this, are there any requests for minor modifications before I leave?
I haven't tried this yet, but I think it looks amazing. Excellent idea and well made. Full props to you.
Sounds like a nice idea, but I've tried it on Roufianios V5 and Pinky 0.4 and each time I flash the zip, at the next boot the system completely hangs up, can't do anything but removing the battery...
Maybe it's a conflict with another app, don't know
bightf said:
Sounds like a nice idea, but I've tried it on Roufianios V5 and Pinky 0.4 and each time I flash the zip, at the next boot the system completely hangs up, can't do anything but removing the battery...
Maybe it's a conflict with another app, don't know
Click to expand...
Click to collapse
I'll take a look at those two ROMs and see if I can find the problem. I use LeeDroid, and I haven't tested it on any others... I guess I should have done that earlier...
This killed my build good, I'm running ieftm's Official 2.2, with: busybox, old A2SD+, OpenVPN (TUN), EXT4 support, 802.11N.
If you're on that rom proceed with caution!
Ok so I'm not the only one in that case... hopefully I did a nandroid backup before trying it !
The remove zip file should remove the symlinks and restore the default fonts (and therefore removing the need for a restore), but I never tried it after a failed font changer update as I didn't encounter one myself.
I'll take a look at the problems later today.
Using DeFrost 2.5a here and it works like a charm!.. Have changed my fonts at least 6 or 7 times as i cant decide. Some previews dont work (can live with that) and the ability to add more fonts (havent a clue how to push via adb yet) would be nice.. Other than that - Top Work!!
wingnutta said:
Using DeFrost 2.5a here and it works like a charm!.. Have changed my fonts at least 6 or 7 times as i cant decide. Some previews dont work (can live with that) and the ability to add more fonts (havent a clue how to push via adb yet) would be nice.. Other than that - Top Work!!
Click to expand...
Click to collapse
The previews are done in a stupid way, and I should do something smarter (with time). You can also copy the fonts to your sdcard and then use Root Explorer to copy/move them to the directory specified in the first post.
bightf said:
Sounds like a nice idea, but I've tried it on Roufianios V5 and Pinky 0.4 and each time I flash the zip, at the next boot the system completely hangs up, can't do anything but removing the battery...
Maybe it's a conflict with another app, don't know
Click to expand...
Click to collapse
I just tried it on a clean Pinky 0.4 and Roufianios V6 install and it worked fine, so I'm afraid I can't reproduce the error. Must be a conflict with something in that case... ~_~ Any errors during the installation of the zip file?
P.S. Uploaded new remove zip which should have some errors fixed.
nice so cool working on od 3.3 with HandOfSean

[Q] New member/ Droid Owner - I can has help!?

Ok so I picked up my Droid X about a month ago and haven't been able to put this thing down, I never thought about rooting it because it did everything I needed/wanted it to do, then one day I log into my car forum and all the OT guys are posting cool print screen's of their phones. I was intrigued, so I rooted my phone and have been trying to figure out a few things but I'm not really up on the terminology and/or logic behind doing certain things. I would greatly appreciate any help in regards to explaining the following:
1) Rooting - Takes off restrictions on the phone so that developer apps can be installed... Is there more to this or is that pretty much it?
2) Flashing - I see this term often but I'm not sure what it is exactly, I tried installing a theme once and the directions said to flash something somewhere and looked at it the same way my dog looks at me while I'm working out at home.. lol
3) ROM - !?
4) apk's - What are they, what do they do, and how do you install them!?
5) Installing themes - I'm thinking has to do with all of the above...
6) Locating and moving downloaded content...
7) How do all of these things tie together? I'm completely clueless as to what does what on the phone and would like to become as knowledgeable as I was when the iPhone first came out and I figured out how to jailbreak/unlock it...
As a reward for your time and effort I leave you Final Fantasy VII fan's with a cool wallpaper I found at work today.. Thanks for any/all input and again, your time is most appreciated!!
Initial GT3 said:
Ok so I picked up my Droid X about a month ago and haven't been able to put this thing down, I never thought about rooting it because it did everything I needed/wanted it to do, then one day I log into my car forum and all the OT guys are posting cool print screen's of their phones. I was intrigued, so I rooted my phone and have been trying to figure out a few things but I'm not really up on the terminology and/or logic behind doing certain things. I would greatly appreciate any help in regards to explaining the following:
1) Rooting - Takes off restrictions on the phone so that developer apps can be installed... Is there more to this or is that pretty much it?
2) Flashing - I see this term often but I'm not sure what it is exactly, I tried installing a theme once and the directions said to flash something somewhere and looked at it the same way my dog looks at me while I'm working out at home.. lol
3) ROM - !?
4) apk's - What are they, what do they do, and how do you install them!?
5) Installing themes - I'm thinking has to do with all of the above...
6) Locating and moving downloaded content...
7) How do all of these things tie together? I'm completely clueless as to what does what on the phone and would like to become as knowledgeable as I was when the iPhone first came out and I figured out how to jailbreak/unlock it...
As a reward for your time and effort I leave you Final Fantasy VII fan's with a cool wallpaper I found at work today.. Thanks for any/all input and again, your time is most appreciated!!
Click to expand...
Click to collapse
First off- that is a lot to bite off as an opener. lol. I have to get in a minute- plus I am a newb as well but here a couple of things...
1) You sound pretty on track. Root gives you access to more options with your phone. It also voids your warranty.
2) Flashing. A term used loosely. Normally it is used in conjunction with "flashing a rom". It simply means to install something (basically).
3) Rom. It is the image (not in the photo-graphical sense) that is embedded/burned on your phones hard drive with all the information of your operating system. For instance: you are on the stock 2.2 ota "rom". But you could "flash" the new "AOSP rom" that was just released. That means you would be removing the factory image that came on your phone and replacing it with a modified image. Theme's and .apk's -those are not "burned" into the phone. If you do a factory reset- those will be wiped. The rom image stays put. If you flash from 2.2 ota to AOSP and then did a factory reset- you would not return to the original state your phone came from Motorola bc that image is completely removed and replaced by the new image you flash. Instead you would return to a clean AOSP.
4) .apk's - .apk is simply the name of the file extension used for android applications. I came from Windows Mobile and they were called .cabs. So any app can be referred to as an .apk. You can download an apk from XDA, place it on your sdcard, tap the file, and i think you will be prompted with "do you want to install" (some where along those lines). There is a setting in the "Settings" that allows you to install 3rd party (non-market) .apk's.
5)Installing themes. This refers to modifying the images (and this time I do mean in the graphic sense) of certain .apk's and other whatchamajiggies. You can install a simple theme that just changes your lockscreen, or you can install a huge theme that changes almost every part of every image so the entire phone looks similar. Here is the tricky part about using themes- your phone has to be deodexed.
deodexed. When you get your phone all of the system files come with a few different parts to them. One of those parts is an odexed file. Apparently the theme building types do not like working with these files so they run this process called de-odexing in which all of the system files are somehow manipulated in a way where they no longer need their odex file. So you end up "de-odexed". There is a program called "xultimate 2.2" that enables regular folk like you and me to deodex our phones. I tried running it yesterday and it errored out on me. So I used another method that worked fine. There are some threads on here about deodexing- if you want themes you will have to do it.
6) locating and moving downloaded content. When you have root you can get Root Explorer from the market. I am sure there are other good file exploreres- but I can't speak to them- I use Root Explorer. As far as locating downloaded content- whenever I download something from my phone, it always (normally) goes to /sdcard/downloads. If it is not there, I guess you just do a search for it. If you want to move it- long press the item, copy, move.
And you will need to google "ADB" (android device bridge). Many of these activities will require the use of ADB. You plug in your phone through USB (make sure phone settings are set to "USB debugging") and... well there is just way to much on this one. Google this one and you will find a lot of stuff- or search it here on XDA
have a great weekend. got to go.

SOLVED Problems creating custom framework

First of all, have searched and tried all the guides I could find, still having the same problem.
So, I am trying to get rid of all traces of green, and there are a few frameworks out there which have done all the hard work for me. However, I am a bit awkward, and don't quite like the complete icon set from any one version!
I am using one of the blue themes as a base, and trying to add other icons for eg GPS, 3G/H connection, wifi connection etc.
I have taken the following steps:
1. obtained framework-res.apk from theme A
2. opened this apk in WinRAR
3. obtained framework apk from theme B and extracted the icons I want
4. added these icons into framework-res.apk A
5. used Update.zip 2.0 Modifier/Creator to convert the apk into a flashable.zip
6. flashed this via clockwork recovery
Now, everything works fine, apart from the battery charging icons. If the phone is running off battery, things are fine, but as soon as I plug the charger in, the battery icon disappears. If I try using battery themes only, or generate one using the UOT theme kitchen, and flash it after my blue themed framework, it reintroduces elements of green.
Have been struggling with this for over a week now!
---EDIT---
So, bashed my head against this brick wall for a week, finally gave in and posted this request for help and....the next framework I cook up works perfectly!! What did I do differently - nothing, as far as I know!
Go figure....gotta love the quirks of gadgets!

[SOLVED] problem - build.prop and framework.jar

im using mdj 2.3 clean and S6 kernel.
ive done 2 things and android dont go past black screen and HTC logo.
first i put the new build.prop to fix the green camera, while in windows mobile, inside SD/ANDROID/ROOT/SYSTEM/build.prop
i didnt boot android yet, i created a folder inside SD/ANDROID/ROOT/SYSTEM
called FRAMEWORK and i put framework.jar for RTL inside:
SD/ANDROID/ROOT/SYSTEM/FRAMEWORK/framework.jar
now i tryed to boot android and no success.
what i did is remove all changes but still android wont boot.
what might be the problem/solution?
im trying to save my build here cus i did alot of changes and i have no backup.
i think its the build.prop that wasnt compatible, what can i do to fix it?
eeeeeee said:
im using mdj 2.3 clean and S6 kernel.
ive done 2 things and android dont go past black screen and HTC logo.
first i put the new build.prop to fix the green camera, while in windows mobile, inside SD/ANDROID/ROOT/SYSTEM/build.prop
i didnt boot android yet, i created a folder inside SD/ANDROID/ROOT/SYSTEM
called FRAMEWORK and i put framework.jar for RTL inside:
SD/ANDROID/ROOT/SYSTEM/FRAMEWORK/framework.jar
now i tryed to boot android and no success.
what i did is remove all changes but still android wont boot.
what might be the problem/solution?
im trying to save my build here cus i did alot of changes and i have no backup.
i think its the build.prop that wasnt compatible, what can i do to fix it?
Click to expand...
Click to collapse
I had something similar happened to me as well...no changes yet it won't boot all the way anymore. Stuck on green HTC screen. I suspect file corruptions so I redownload the clean build, move my data.img to it, fix! You can give that a go. Good luck.
azzzz said:
I had something similar happened to me as well...no changes yet it won't boot all the way anymore. Stuck on green HTC screen. I suspect file corruptions so I redownload the clean build, move my data.img to it, fix! You can give that a go. Good luck.
Click to expand...
Click to collapse
im doing it right now
EDIT: im trying replacing the rootfs only maybe this will solve it.
EDIT: replacing rootfs with original solved the problem

[Q] Can I fix my nook without a reset? (resolved)

So today I was trying to look up on how to replace the system icons and such, so I extracted some file I cannot rememeber the name of it and replaced the images from in it with the ones I wanted, then I applyed the stuff with an app and it said I should reboot for it to work, however when it was displaying processing it crashed, and rebooted on its own. It will keep looping in the boot animation, and I'm not sure if I'm gonna have to go back to stock. And fyi I am using manualnooter.
I dont understand how it isnt working and all I edited was pictures, plus a few xmls.
Here are the name of the xmls edited if you need (all of them have nav_ in front of the name)
home.xml, jump.xml, library.xml, quickbutton.xml, search.xml, shop.xml, shop_in_store.xml, web.xml
and if your wondering what pictures were replaced from what I can tell only the status bar stuff was replaced. (i.e. c_back.png)
Also, I was trying to use the SystemUi.apk to change it, but i could not find it. so I found something else that had the icons. (trying to find the name of the file right now)
Edit: I replaced files inside of system\framework-res\drawable-mdpi\
(sort of) Resolved: I had booted a couple different recoveries, until it would get stuck on the 'N', then I did the 8 fail boot and it loaded back up to stock. Guess I'll just reflash manualnooter.

Categories

Resources