How to add new fonts to fire os 4.6.3? - Amazon Fire Phone

So, I needed to add a new font to my fire phone so that I can view my native language.
Thinking fire os 4.6.3 is just a customization on android KitKat(4.4.4) I went ahead and tried to add my fonts (Noto Sans Sinhala) to /system/fonts directory. But It was a read only sqfs partition. So I unmounted it and copied it's contents to a actual /system/fonts directory. Then I added a new font family with my fonts in /system/etc/fallback_fonts.xml and rebooted which is the trick for JB and later roms. Nothing happened! Still no native language.
Then I tried replacing a default android font I normally don't use(Noto Sans Thai). Still not working. So I changed Droid Sans Fallback font, which is the oldest trick to get new glyphs. Nope, still not working.
After fiddling around a little, I found a fontconfig cache in /system/etc/fonts along with fontconfig configuration files!! Something I haven't seen in any other android roms. Finally, I came to the conclusion that I might have to rebuild the fontconfig cache.
Dose anyone know how to trigger a fontconfig cache rebuild? or some other way around it?

So, as It turns out, Adding fonts to the fire phone is even easier than the rest of the KK devices. Just copy your fonts to /system/fonts and delete /system/etc/fonts/cachedir/[longname].cache-3 reboot and you are done

madushan1000, how did you umount /mnt/sqfs? I tried un-mounting via file manager with root privilege and wouldn't let me un-mount. I'm trying to replace a default android font (droidfallback.ttf) and keep getting permission denied even though I have root. Your help is appreciated.

You don't have to unmount it. Just delete the fonts sqfs image and extract it's content to /system/fonts and reboot. FYI you might have to remove some "system" app to do this. There is not enough space left on the system partition.

madushan1000,
Care to tell detail instruction? Thank you so much.
Rgds,
Kaung

Hi madushan1000,
This is what I did and still not OK. (Need to restore previous version as Font are lost)
1. Copy Fonts to Sdcard
2. Delete /system/sqfs/container.sqfs
3. mkdir fonts folder under /system
4. Copy back fonts to /system/fonts
Please help me advise. Thank you so much in advance..

Hi @kaungmyataung, I'm going to answer your PM here:
Well, madushan1000 and I had the same approach to the "problem", but I deleted only the container and copied the fonts folder to the usual path.
madushan1000 went even further with his custom XML test.
It seems you did everything right: deleted the container, copied the fonts in the correct folder...
I assume, I checked / set the permissions for the "fonts" folder to 755 and that's all I did.
Oh... and I only deleted unwanted fonts, I didn't add new ones.

Bingo Bronson said:
Hi @kaungmyataung, I'm going to answer your PM here:
Well, madushan1000 and I had the same approach to the "problem", but I deleted only the container and copied the fonts folder to the usual path.
madushan1000 went even further with his custom XML test.
It seems you did everything right: deleted the container, copied the fonts in the correct folder...
I assume, I checked / set the permissions for the "fonts" folder to 755 and that's all I did.
Oh... and I only deleted unwanted fonts, I didn't add new ones.
Click to expand...
Click to collapse
Thank you soooooo much, Bingo. Below of your reply save my life. Now All good.
-----I assume, I checked / set the permissions for the "fonts" folder to 755 and that's all I did.------

Can someone help me i cant copy my font in /system/fonts Please help...

xaamaa said:
Can someone help me i cant copy my font in /system/fonts Please help...
Click to expand...
Click to collapse
You can't copy fonts because it's not a real folder, just a mounted container (read only). Follow Madushan's lead:
madushan1000 said:
locate the sqfs image ('./system/sqfs/container.sqfs') and extract its content to './system/fonts'
you can create the 'fonts' folder manually, just be sure to set permission to 0755 for the folder and 0644 for the font files
FYI: you might have to remove some "system" apps / files to do this. There is not enough space left on the system partition
Easiest way to gain enough free space is to delete the language files for Ivona TTS ('./system/tts/ivona')
One folder for each language, for example "eng.usa.nina_1418201400000". Folders can be deleted if you don't use Ivona TTS.
Click to expand...
Click to collapse
Or you can just delete the sqfs file, create the 'fonts' folder and use this flashable zip via Safestrap / TWRP.
I deleted the CN and JP fonts*, etc. so it's less than 20 MB compared to over a 100 MB from the default sqfs container and you wouldn't be forced to delete system files in order to make enough room.
*Deleted fonts:
STKai
STYuanMedium
TBGothic_213
TBMincho_213
TsukuMinPr5
MYingHeiSMedium
STBShusong
STYuanMedium
MTChineseSurrogates
MHeiM-Big5HKSCS_E
Code2000
DroidNaskh
DroidSansEthiopic
DroidSansHebrew
NotoSansThai
NotoSansThaiUI
DroidSansArmenian
DroidSansGeorgian
NotoSansDevanagari
NotoSansTamil
NotoSansMalayalam
NotoSansBengali
NotoSansTelugu
NotoSansKannada
NotoSansKhmer
NotoSansLao
NanumGothic
Padauk-book
NotoSansSymbols
NotoColorEmoji
MTLmr3m
After creating the real 'fonts' folder, you can spam your phone with iFont.

Bingo Bronson said:
You can't copy fonts because it's not a real folder, just a mounted container (read only). Follow Madushan's lead:
Or you can just delete the sqfs file, create the 'fonts' folder and use this flashable zip via Safestrap / TWRP.
I deleted the CN and JP fonts*, etc. so it's less than 20 MB compared to over a 100 MB from the default sqfs container and you wouldn't be forced to delete system files in order to make enough room.
*Deleted fonts:
STKai
STYuanMedium
TBGothic_213
TBMincho_213
TsukuMinPr5
MYingHeiSMedium
STBShusong
STYuanMedium
MTChineseSurrogates
MHeiM-Big5HKSCS_E
Code2000
DroidNaskh
DroidSansEthiopic
DroidSansHebrew
NotoSansThai
NotoSansThaiUI
DroidSansArmenian
DroidSansGeorgian
NotoSansDevanagari
NotoSansTamil
NotoSansMalayalam
NotoSansBengali
NotoSansTelugu
NotoSansKannada
NotoSansKhmer
NotoSansLao
NanumGothic
Padauk-book
NotoSansSymbols
NotoColorEmoji
MTLmr3m
After creating the real 'fonts' folder, you can spam your phone with iFont.
Click to expand...
Click to collapse
locate the sqfs image ('./system/sqfs/container.sqfs') and extract its content to './system/fonts'
you can create the 'fonts' folder manually, just be sure to set permission to 0755 for the folder and 0644 for the font files
How can i Extract container.sqfs content to /system/fonts..
Where i can create a font folder i mean in which directory...

kaungmyataung said:
Hi madushan1000,
This is what I did and still not OK. (Need to restore previous version as Font are lost)
1. Copy Fonts to Sdcard
2. Delete /system/sqfs/container.sqfs
3. mkdir fonts folder under /system
4. Copy back fonts to /system/fonts
Please help me advise. Thank you so much in advance..
Click to expand...
Click to collapse
@kaungmyataung
@madushan1000
I deleted /system/sqfs/container.sqfs and then tried to copy the fonts to /system/fonts since it rejected for "unmounted folder" even being root user, I dont remember the exact error message but I just rebooted the Kindle Fire HD 3rd gen, now it bricked Boot loop, no matter factory reset at the boot recovery, it simply stays at the boot loop, any suggestion to at least recover it?

Related

DroidSansFallback.ttf + Softbank Emoji font (See Emojis on your Android!)

The original thread with the files is located here
Basically this will allow your Android phone to display Softbank Emoji encoding. This is not limited to just your text messages, but will also allow applications to display emojis that people have in their profiles or whatever.
Things needed before you install:
1)Root Explorer (from the Market) You can use a different file explorer app, but it must be able to mount your system folder as read/write
2)A program that can open a 7z file (you can find that online here The file that is provided is compressed with 7z format. There is probably an app that can extract that on the market, but I haven't looked for it.
3)Your phone MUST be rooted!!!
To install:
1)Download the droidsansfallback.7z file to your computer
2)Uncompress the file and move the droidsansfallback.ttf to your SDCard somewhere
3)Go /system/fonts with root explorer
4)Click "Mount R/W" at the top
5)Long-press on Droidsansfallback.ttf and click delete and then Yes to confirm
7)Navigate back to where you placed the droidsansfallback.ttf
8)Long-press on droidsansfallback.ttf and click "Move"
9)Go back to /system/fonts
10)Click "Paste" at the bottom
You're done!
moved, this is belong more into Theme-ing than Development
Make sure you give permission 644 or rw-r--r--
Works on Desire HD
Thanks man, works on HTC Desire HD, CM7:good:
Problem
while Im pasting it,there is an error,that 'this is read only.' help pls :silly:
akashb97 said:
while Im pasting it,there is an error,that 'this is read only.' help pls :silly:
Click to expand...
Click to collapse
Yo must press [R/W]bottom at the right corner

Accidently deleted GoogleServicesFramework.apk, how can I fix the problem?

I searched the forum. It seems a rare case that misdeleting the service application.
The story is quite simple. I wish to maximize the use of internal memory so I moved some applications from /system/app to /vendor, where roughly has 120mb unused space. All these files had been created symbol links under /system/app. Most of them worked fine, except the GoogleServicesFramework.apk, which I reckon verifying its physical path.
So I moved it back. The sad part was that I forgot the symbol link was still there. The file overrode the symbol link which linked to itself therefore axed it to 0 byte. Soon I found how serious it was. All google related service were down, the play store, the talk, the map, etc. The google service must do some verification so I can't simply find a GoogleServicesFramework.apk to replace it. I can't install it either. It failed instantly.
I don't know the background of GoogleServicesFramework.apk. Maybe I should remove all related applications then find a package to install all of them. Is there anyone knowing how to fix this problem?
My Xperia Play is 800a, version 2.3.4 kernel 2.6.32.9-perf build 4.0.2.A.0.42. It is my first andriod device and here is my first post so please be kind.
Wait for someone here to upload the file for you or back up your files and reflash.
well as you said you tried to install it and it instantly failed, it will
you should get that app and copy paste it to system/framework and before that CHANGE ITS PERMISSIONS
how? copy it to system folder go to permissions using root explorer and change them to r-w-r-r i.e tick first three row buttons and 2 column buttons
creative_md said:
well as you said you tried to install it and it instantly failed, it will
you should get that app and copy paste it to system/framework and before that CHANGE ITS PERMISSIONS
how? copy it to system folder go to permissions using root explorer and change them to r-w-r-r i.e tick first three row buttons and 2 column buttons
Click to expand...
Click to collapse
yeah, I've checked the permission. It's rw-r-r. But every GoogleServicesFramework.apk I've downloaded are slightly different in size. I suspect this file is highly sensitive to versions.
xiyue077 said:
yeah, I've checked the permission. It's rw-r-r. But every GoogleServicesFramework.apk I've downloaded are slightly different in size. I suspect this file is highly sensitive to versions.
Click to expand...
Click to collapse
i think you should try them and what you have got to lose? if you want your system (without GSF.apk) back just make a nandroid backup.
and you always got option of flashing stock firmware......
Another thing you can try is download a stock .ftf file, extract it and look for the file within the system files.. Copy paste and Bobs your uncle!
albanezi said:
Another thing you can try is download a stock .ftf file, extract it and look for the file within the system files.. Copy paste and Bobs your uncle!
Click to expand...
Click to collapse
The problem has been fixed. Thanks to every one. You guys gave me a lot of hints. The solution was like that:
1, uninstalled the play store from setup and removed the incorrect version GoogleServicesFramework.apk under /system/app
2, extracted the GoogleServicesFramework.apk from a ftf package carried 2.3.4 version. It should be 2MB around. The previous downloaded one was only 1MB. Maybe that's the reason it failed to install.
3, installed it, not to copy to /system/app! Then there will be a file like com.xxx.gsp.apk under /data/app directory.
4, rebooted the phone and would see the google store appeared. All services returned normal. Hooray!
I didn't try to move it back to /system. Most apps in /data had been moved to /system and /vendor so there are 200mb left in /data, fare enough to me

[Q] Editing /system/etc/hosts file - restores itself after reboot

Hi
So I am looking at blocking a number of websites - no, I don't really want to do this through app's as a mere uninstall can undo the blocks.
I've rooted my phone, I've given +rw mount to /system/ and I'm able to etc hosts under /system/etc/hosts just fine.
However, as soon as I reboot, the system restores the hosts file to it's original state and all my edits to that file are undone.
Is there anything I can do about this? Please be a bit more specific than just "flash the kernel", thanks.
MohamedH93 said:
Hi
So I am looking at blocking a number of websites - no, I don't really want to do this through app's as a mere uninstall can undo the blocks.
I've rooted my phone, I've given +rw mount to /system/ and I'm able to etc hosts under /system/etc/hosts just fine.
However, as soon as I reboot, the system restores the hosts file to it's original state and all my edits to that file are undone.
Is there anything I can do about this? Please be a bit more specific than just "flash the kernel", thanks.
Click to expand...
Click to collapse
any time i edit anything in system folders i copy it to sdcard do my edits then copy it back and make sure the permissions are set correct i think it rw-r--r-- reboot and it should be good to go... for some reason i cant edit them in that folder but moving it to edit then move it back works for me maybe it will work for you too...
buby78 said:
any time i edit anything in system folders i copy it to sdcard do my edits then copy it back and make sure the permissions are set correct i think it rw-r--r-- reboot and it should be good to go... for some reason i cant edit them in that folder but moving it to edit then move it back works for me maybe it will work for you too...
Click to expand...
Click to collapse
I can edit it no probs. I do my changes, test them out and they all work OK.
As soon as I reboot, everything becomes undone. AFAIK this might be some kernel protection.
The system partition is write-protected.
http://forum.xda-developers.com/showthread.php?t=2701816

[Solved] Need a copy of the fonts folder

Disregard, I extracted them from a stock ROM. Here they are in case anyone else needs them (place in "/system/fonts"):
http://uptobox.com/x5degyx5bw5o
Original post:
Can someone please send me their fonts folder? It's in the folder "/system/fonts". I accidentally deleted it after Solid Explorer somehow screwed up a symlink creation attempt. Without this, the device is stuck in a bootloop.
------------------------------------
Edit:
I've partially solved this but still would appreciate the fonts, so I'm removing the "urgent" labels from this post. I was able to piece together all the font files by combining these 2 font packs (in order):
Fonts folder from Samsung-S6-Fonts.zip for the Samsung Galaxy S5, by Edgarf28
Fonts folder from a old version of the stock ROM, stock-e980-10k-tdm1.zip for the LG Optimus G Pro, by bountyman334. That's for version 10k, but my device was 20g, which I adds a few more required fonts that I got from the Samsung pack above.
Booted into recovery to mount /system so that ADB had root, then used ADB to push the font files "/system/fonts/" and set their permissions to 644. If anyone wants a more detailed guide, reply to this thread.
Click to expand...
Click to collapse

[MAGISK][MOD]Custom Boot animation and Fonts

Hello,
Here is a quick guide on how to replace the boot animation and system font on oos 10.0 (Android Q).
ROOT is required.
Boot animation:
1. Download the attached zip and extract it.
2. Download a custom boot animation of your choice (XDA Boot animations collection).
3. Rename the downloaded boot animation file to "bootanimation.zip" and copy it to "BootAndFont > system > media > bootanimation.zip".
You can skip now if you don't want custom font.
If you don't want to change Fonts, just delete the "fonts" directory.
4. Download custom fonts of your choice.
5. Rename the fonts to their relatives in the "BootAndFont > system > fonts " directory.
6. After everything is in place, using root explorer (such as ES File Explorer) move both "BootAndFont" and "module.prop" into the device to the following location
"/data/adb/modules/"
(You can see the final result in the attached images.)
7. Go to Magisk, refresh the modules and make sure that the new module is now on the last.
Reboot the device and everything should work!
*Tested on OP7T, Should work on every OOS 10.
*Current Font is Germania-one, you can leave it as-is if you want.
Feel free to ask questions.
yaaria said:
Hello,
Here is a quick guide on how to replace the boot animation and system font on oos 10.0 (Android Q).
ROOT is required.
Boot animation:
1. Download the attached zip and extract it.
2. Download a custom boot animation of your choice (XDA Boot animations collection).
3. Rename the downloaded boot animation file to "bootanimation.zip" and copy it to "BootAndFont > system > media > bootanimation.zip".
You can skip now if you don't want custom font.
If you don't want to change Fonts, just delete the "fonts" directory.
4. Download custom fonts of your choice.
5. Rename the fonts to their relatives in the "BootAndFont > system > fonts " directory.
6. After everything is in place, using root explorer (such as ES File Explorer) move both "BootAndFont.zip" and "module.prop" into the device to the following location
"/data/adb/modules/"
(You can see the final result in the attached images.)
7. Go to Magisk, refresh the modules and make sure that the new module is now on the last.
Reboot the device and everything should work!
*Tested on OP7T, Should work on every OOS 10.
*Current Font is Germania-one, you can leave it as-is if you want.
Feel free to ask questions.
Click to expand...
Click to collapse
Hey
Rename the fonts to their relatives in the "BootAndFont > system > fonts " directory.
6. After everything is in place, using root explorer (such as ES File Explorer) move both "BootAndFont.zip" and "module.prop" into the device to the following location
"/data/adb/modules/"
(You can see the final result in the attached images.)
7. Go to Magisk, refresh the modules and make sure that the new module is now on the last.
Too much confusion on this part like should i archive that bootandfont zip again after placing my font which i am trying to apply (rosemary and cooljazz)
And first i did and it happened how to to apply my custom font your...font is pre-applied after reboot? Can you please provide a video or something
yaaria said:
Hello,
Here is a quick guide on how to replace the boot animation and system font on oos 10.0 (Android Q).
ROOT is required.
Boot animation:
1. Download the attached zip and extract it.
2. Download a custom boot animation of your choice (XDA Boot animations collection).
3. Rename the downloaded boot animation file to "bootanimation.zip" and copy it to "BootAndFont > system > media > bootanimation.zip".
You can skip now if you don't want custom font.
If you don't want to change Fonts, just delete the "fonts" directory.
4. Download custom fonts of your choice.
5. Rename the fonts to their relatives in the "BootAndFont > system > fonts " directory.
6. After everything is in place, using root explorer (such as ES File Explorer) move both "BootAndFont.zip" and "module.prop" into the device to the following location
"/data/adb/modules/"
(You can see the final result in the attached images.)
7. Go to Magisk, refresh the modules and make sure that the new module is now on the last.
Reboot the device and everything should work!
*Tested on OP7T, Should work on every OOS 10.
*Current Font is Germania-one, you can leave it as-is if you want.
Feel free to ask questions.
Click to expand...
Click to collapse
What happens if i have a separate font module? Will that get overwritten even if i delete the font folder?
Can confirm this works! I'm running OP7TP5G (TMobile) running the latest Magisk.
If anyone is unclear of the directions, once you bring the custom boot animation zip in the BootandFont folder, you have to just simply take the BootandFont folder and move it to the location OP mentions. Go into Magisk and confirm, once you are done reboot and you should have the new bootanimation (and or font)
This method is better than the other bootanimation thread on this forum as this does not require you to flash in Magisk nor worry about the permission write error you will get. Much appreciated it hella weird too because I was up all night trying to figure this out and then you come up with this guide ???
infamousvincci said:
What happens if i have a separate font module? Will that get overwritten even if i delete the font folder?
Click to expand...
Click to collapse
If you are removing the "fonts" folder, then it will not overwrite your current font.
Keepinitgreen said:
Can confirm this works! I'm running OP7TP5G (TMobile) running the latest Magisk.
If anyone is unclear of the directions, once you bring the custom boot animation zip in the BootandFont folder, you have to just simply take the BootandFont folder and move it to the location OP mentions. Go into Magisk and confirm, once you are done reboot and you should have the new bootanimation (and or font)
This method is better than the other bootanimation thread on this forum as this does not require you to flash in Magisk nor worry about the permission write error you will get. Much appreciated it hella weird too because I was up all night trying to figure this out and then you come up with this guide ?
Click to expand...
Click to collapse
Glad it was helpful
yaaria said:
If you are removing the "fonts" folder, then it will not overwrite your current font.
Glad it was helpful
Click to expand...
Click to collapse
Nice. Worked fine. Didnt overwrite my font. Nice. Lol. Thanks man!
mytechtb said:
Hey
Rename the fonts to their relatives in the "BootAndFont > system > fonts " directory.
6. After everything is in place, using root explorer (such as ES File Explorer) move both "BootAndFont.zip" and "module.prop" into the device to the following location
"/data/adb/modules/"
(You can see the final result in the attached images.)
7. Go to Magisk, refresh the modules and make sure that the new module is now on the last.
Too much confusion on this part like should i archive that bootandfont zip again after placing my font which i am trying to apply (rosemary and cooljazz)
And first i did and it happened how to to apply my custom font your...font is pre-applied after reboot? Can you please provide a video or something
Click to expand...
Click to collapse
Hi,
You are correct, on part 6, I wrote by mistake to move the bootandfont.zip instead of moving the directory only.
To apply your custom font, first, you need to understand that in different scenarios different fonts are used.
for example when tinted or Bold.
if you have a tinted version of your font should replace it according to the font name.
if you have just 1 version of your font, you can duplicate your font file and rename the copies with every one of the "Roboto" file.
You can see in the attached photo that all of the files are the same. (They are all GermaniaOne that was renamed to what the system is looking for).
I hope it works for you, please contact me if you still have troubles
yaaria said:
Hi,
You are correct, on part 6, I wrote by mistake to move the bootandfont.zip instead of moving the directory only.
To apply your custom font, first, you need to understand that in different scenarios different fonts are used.
for example when tinted or Bold.
if you have a tinted version of your font should replace it according to the font name.
if you have just 1 version of your font, you can duplicate your font file and rename the copies with every one of the "Roboto" file.
You can see in the attached photo that all of the files are the same. (They are all GermaniaOne that was renamed to what the system is looking for).
I hope it works for you, please contact me if you still have troubles
Click to expand...
Click to collapse
Gotcha....Thanks alot bro...
I have a noobie question. Can't you just do the simple: move downloaded boot animation to the system file and replace it with the the stock boot animation and change permissions? A reply would be much appreciated
Youranoos said:
I have a noobie question. Can't you just do the simple: move downloaded boot animation to the system file and replace it with the the stock boot animation and change permissions? A reply would be much appreciated
Click to expand...
Click to collapse
Android 10 system is read only so you need to use magisk to do it systemeless
Hey Yaaria,
Is there any way to replace the lock.ogg and unlock.ogg in root/system/product/media/audio/ui or it could be done using magisk systemless? Please suggest.
adeelsmatrix said:
Hey Yaaria,
Is there any way to replace the lock.ogg and unlock.ogg in root/system/product/media/audio/ui or it could be done using magisk systemless? Please suggest.
Click to expand...
Click to collapse
I've got same question here. When i'll have a free moment i'll try to flash this module with ui sounds.
EDIT: nope. There's something wrong with product mount, it's not working
@yaaria thank you for the guide, I installed animation etc. I downloaded font : roboto.medium.ttf
How select the font? must rename the roboto.medium.ttf, to Germaniaone.ttf ? and delete the ( first) Germaniaone.ttf?
Will this mod (font change attribute) work on stock AOSP ROM?
Nevertheless thanks for contribution.
Edit - Never mind it worked flawlessly.... Thanks for awesome tweak.
OMG Thank You! This is so awesome! I was looking for a way to change both of these and you killed 2 birds with one module. At first it didn't work but I then realized that the BootandFont folder was inside another BootandFont folder somehow, all I did was copy the folder containing the module.prop and system folder to the adb modules folder and deleted the duplicate folder it was in but the fonts didn't work. Then I realized I needed to copy the font I wanted running on My phone 18 times and rename them to all those roboto files, so the system loads the file but gets a different font! I now have the glitchy Cyberpunk 2077 Oni/Samurai mask boot image and the OCR-A font running flawlessly on My OnePlus 7T Pro 5G McLaren. You're awesome!
hey when i try to replace the stock animation it keep saying "the read only file error cannot change" stuff what should i do now ??
Why wont this work on OOS 11?
Faizuu[ICODE][ISPOILER][/ISPOILER][/ICODE]

Categories

Resources