[Q] Anyone know the font folder? - Ubuntu Touch Q&A, Help & Troubleshooting

I want to replace the default fonts to add support to Chinese. So, can anyone tell me where is the font folder on Ubuntu OS?
Thx

Normally it should be /usr/share/fonts
usr (unix system resources) share (available to all users)

Oh yes, I solved it myself.
use adb ( must be adb root mode)
and then push font (renamed to Ubuntu-R.ttf, etc) to /data/ubuntu/usr/share/fonts/truetype/ubuntu-font-family/

Related

APK Manager v4.9 (Easy way to edit APKs)

Hey guys...heres the APK manager v4.9 by daneshm90.....its an easy way to edit apks......​
So i have written a simple script to ease the process of editing apks. Got a lot of downloads so thought its in demand
Whether you're doing basic image editing or editing the smali or xml files, on average u have to use (Brut.all or JF's smali/baksmali) awesome tool to extract the apk, edit it, then sign the apk and then adb push/install it. This process is quite tiresome if you are testing a method that needs fine tweaking.
This script should make the process a LOT smoother.
Theres an option of compiling/signing/installing all in one step
Thanks:
Goes to Brut.all for his awesome tool.
Goes to JF for ofcourse, smali/baksmali
Goes to farmatito for porting this script to linux
Features:
- Extract, Zip apk's.
- Optimize pngs (ignores .9.pngs)
- Zipalign apks
- Sign apks
- Push to specific location on phone
- Incorporates brut.all's apktool
- Pull apk from phone into modding environment.
- Batch optimize apk (Zipalign,optipng,or both)
- Quick sign an apk (Batch mode supported)
- Batch Ogg optimization
- Compression level selector (monitor status above menu)
- Batch install apk from script (option 16)
- Logging on/off has been removed. Instead a log.txt is created which logs the activities of the script organized using time/date headers
- User can change the max java heap size (only use if certain large apks get stuck when decompiling/compiling apks) (Option 19)
- Improved syntax of questions/answers
- Error detection. Checks if error occured anytime u perform a task, and reports it
- Read log (Option 20)
- U can now set this script as ur default application for apks. When u do, if u double click any apk it will install it for u.
- Supports batch installation, so if u drag multiple apks into the script (not while its running) it will install them all for u. U can ofcourse drag a single apk as well
- Added framework dependent decompiling (For non propietary rom apks). (Option 10). Checks whether the dependee apk u selected is correct.
- Allows multiple projects to be modified, switch to and from.
- Allows to modify system apk's using apktool but ensures maximum compatibility in terms of signature / manifest.xml
- Stuff i forgot i guess
Instructions (Windows):
- Place apk in appropriate folder (Any filename will work, if running for first time folders will not be there, you must run and then the folders will be created)
- Run script
- Minimize the script
- Edit files inside the project folder
- Maximize the script
Instructions (Linux):
- Place apk in appropriate folder (Any filename will work, if running for first time folders will not be there, you must run and then the folders will be created)
- Open terminal and change-directory to apkmanager (Easiest way is to type "cd ")
- Chmod 755 Script.sh
- Chmod 755 all files apps inside other folder (thanks for the tip bkmo )
- Run script by typing ./Script.sh
- Minimize the script
- Edit files inside the out folder
- Maximize the script
Requirements:
Java
Adb
Future Improvements:
- Manage multiple simultaneous apk edits (choose which apk to extract/build)
- Option to optimize the apks
- Option to adb push to user defined location
- Other stuff i dont know yet.
Windows (v4.9): Download Here
Linux (v4.3): Download Here
Here's the video!!
Got problems ?
1. Make sure your path has no spaces
2. Your filename has no wierd characters
3. Java/adb are in your path
4. It's not a proprietary rom's apk (aka Sense,Motorola,Samsung) (If u are, then use option 11 and drag the required framework, eg com.htc.resources, twframework-res...etc)
5. It's not a themed apk (if it is, expect .9 png errors, use as close to stock as possible)
6. Look at the log to know whats happening
7. If all else fails, post as much info as possible and we will try to assist you.
If U like my post, press the Thumbs Up button, i.e, Thank Me!
Bad download link. Please fix?
Please download to mediafire or multiupload
thanks
actually its not death214 link or project..and all thread he started was project by others and he just copy and paste..i remember u've been scolded by owain becoz of this,right death?=)
please upload files to other site.i cant download from rapidshare.
change link
Please click here:
http://lmgtfy.com/?q=apk+manager+xda
Nice. Rapidshare link working flawless.

Where are the alternative fonts located ?

Trying tro install my own fonts manually on a rooted Galaxy, I have a question:
Using apps changing system fonts (Font changer) don't work.
So I tried to copy other TTF (.e.g. Comic Sans MS, Gothic) to /system/fonts.
But using Settings -> Display -> Screen Display -> Fonts does not show my font even not after reboot.
But the alternative fonts listed there (e.g. 'Choko Cooky') atr NOT in the /system/fonts folder. Where arte these located ?
I'm intrested too
These fonts should be installed as apk. Look for a special thread that indicates how to sign them.

[Q] How to find list of available LOCALES (LANGUAGES) from ROM image (file system)

How to find list of SYSTEM LOCALES (language list that we see in settings) from ROM file system image/file tree
(assuming that /system can be mounted as folder)?
Which files/folders have this information?
omyg said:
Some manufacturer and custom rom builds do not include ALL languanges in their ROMs.
How it is possible to find list of available SYSTEM LOCALES and DEFAULT KEYBOARD input languanges from FILE SYSTEM image (assuming that /system and/or other folders can be extracted or mounted in linux as folder)? Which files/folders have this information?
Click to expand...
Click to collapse
))))
DubbyDum said:
))))
Click to expand...
Click to collapse
so how ?
omyg said:
so how ?
Click to expand...
Click to collapse
+1
1- extract the Framework-res.apk
2- decompile the " framework-res.apk "
3- goto decompiled folder and check this folders.
for example:
framework-res.apk/res
/values-en-rAU
/values-de
/values-it
/values-pl
/values-nl
/Values-GB
/Values-Fa
/Values-Ar
, for example when you add " Values-Fa " to framework-res.apk, the Farsi language will add to locale settings.
if you add "values-it" , the Italian language will add to system and so on.
all languages are defined on android, you need just to create right folders.
this is for system language.
-------------------
for every application you need to create the folder same as framework-res.apk folders, and translate "Strings.xml" file.
every application have a different parameters, and you must know for keyboards some information will defines on lib files.
thanks, now i got it.
but what does it mean if this 3 system files have different sets of languages :
framework-res.apk
twframework-res.apk
Settings.apk
first file will be most accurate source ?
omyg said:
thanks, now i got it.
but what does it mean if this 3 system files have different sets of languages :
framework-res.apk
twframework-res.apk
Settings.apk
first file will be most accurate source ?
Click to expand...
Click to collapse
but how to see this apk code
You use an APK decompiler.

Dna Font change?

Is there anyway to change the font on this beautiful phone?
chipymunk said:
Is there anyway to change the font on this beautiful phone?
Click to expand...
Click to collapse
Assuming you have a system write kernel installed, There are lots of ways to do this. You can find an app that will do this for you, ViperRom has a font changer built-in, or if you want to do the old-school method, just goto /system/fonts and backup DroidSans.ttf and DroidSansBold.ttf. Those are the main fonts that android uses. Find a new font (with its bold counterpart), rename them to DroidSans.ttf and DroidSansBold.ttf, and put them in the /system/fonts folder. Reboot.
EDIT: As v-b-n points out, android doesn't use droidsans as the main font anymore. Use these instead:
Main one is -
Roboto-Regular.ttf
Roboto-Bold.ttf
Roboto-Italic.ttf
Roboto-BoldItalic.ttf
BotsOne said:
Assuming you have a system write kernel installed, There are lots of ways to do this. You can find an app that will do this for you, ViperRom has a font changer built-in, or if you want to do the old-school method, just goto /system/fonts and backup DroidSans.ttf and DroidSansBold.ttf. Those are the main fonts that android uses. Find a new font (with its bold counterpart), rename them to DroidSans.ttf and DroidSansBold.ttf, and put them in the /system/fonts folder. Reboot.
Click to expand...
Click to collapse
Might try the old school method but is font changer compatible with the dna?
Nvm, got it done with font changer lite lol thanks for the reply @BotsOne
Just to clarify so others reading this dont make a mistake, DroidSans is NOT the main font anymore ... its a symbolic link to Roboto fonts.
Main one is -
Roboto-Regular.ttf
Roboto-Bold.ttf
Roboto-Italic.ttf
Roboto-BoldItalic.ttf
Change just those and the whole UI should reflect ...
Here are some package I created -> http://forum.xda-developers.com/showthread.php?t=2113973
v-b-n said:
Just to clarify so others reading this dont make a mistake, DroidSans is NOT the main font anymore ... its a symbolic link to Roboto fonts.
Main one is -
Roboto-Regular.ttf
Roboto-Bold.ttf
Roboto-Italic.ttf
Roboto-BoldItalic.ttf
Change just those and the whole UI should reflect ...
Here are some package I created -> http://forum.xda-developers.com/showthread.php?t=2113973
Click to expand...
Click to collapse
Oops I saw those in that folder and thought that maybe was the case, I think the links that android creates links from droidsans to roboto got me mixed up. I'll edit my older post, thanks!

[Pace/Stratos] Coloured icons for white background

I colored the icons and changed the fonts for the wachface model_4 widgets - the black ones for the white background. Original for me were ugly
Required access to root to switch assets in the system of the System/app/HuamiWatchFaces/HuamiWatchFaces.apk to change the assets of the model4
All Watchface using model4 will display new colorful icons.
Example watchface https://amazfitwatchfaces.com/pace/view/6123
and my https://amazfitwatchfaces.com/pace/view/5867
To install:
Required access to root to switch assets in the system of the System/app/HuamiWatchFaces/HuamiWatchFaces.apk to change the assets of the model
Connect your watch to the computer. Use ADB or ADBCommander commands. Download to your drive HuamiWatchFaces.apk.
apk is a zip. You change the content of model_4 to my icons and back to the watch.
Or
just replace the apk from the attachment for Pace/Stratos(2 & 3). Tested on Pace with PACEficator.
If you have Startos 3 with the latest PACEficator use this:
https://drive.google.com/open?id=1-HzZdxo0yWWYe1-xQDxldV93vTAjDqoc
https://youtu.be/wcdDKB0KIJY
Adramel said:
I colored the icons and changed the fonts for the wachface model_4 widgets - the black ones for the white background. Original for me were ugly
Required access to root to switch assets in the system of the System/app/HuamiWatchFaces/HuamiWatchFaces.apk to change the assets of the model4
All Watchface using model4 will display new colorful icons.
Example watchface https://amazfitwatchfaces.com/pace/view/6123
and my https://amazfitwatchfaces.com/pace/view/5867
To install:
Required access to root to switch assets in the system of the System/app/HuamiWatchFaces/HuamiWatchFaces.apk to change the assets of the model
Connect your watch to the computer. Use ADB or ADBCommander commands. Download to your drive HuamiWatchFaces.apk.
apk is a zip. You change the content of model_4 to my icons and back to the watch.
Or
just replace the apk from the attachment for Pace/Stratos(2 & 3). Tested on Pace with PACEficator.
If you have Startos 3 with the latest PACEficator use this:
https://drive.google.com/open?id=1-HzZdxo0yWWYe1-xQDxldV93vTAjDqoc
Polish/English
Click to expand...
Click to collapse
Hi,
I've a stratos 3 with the last PACEficator but i don't understand how to have the colored icone. i can't install the .apk from googledrive. don't work.
Can you give me the way to work ? thanks
edit : C:\adb>adb install Stratos3_CN5.17.0.5_HuamiWatchFaces.7z.apk
Performing Push Install
Stratos3_CN5.17.0.5_HuamiWatchFaces.7z.apk: 1 file pushed, 0 skipped. 3.1 MB/s (21405820 bytes in 6.565s)
pkg: /data/local/tmp/Stratos3_CN5.17.0.5_HuamiWatchFaces.7z.apk
Failure [INSTALL_PARSE_FAILED_UNEXPECTED_EXCEPTION]
stephcel said:
Hi,
I've a stratos 3 with the last PACEficator but i don't understand how to have the colored icone. i can't install the .apk from googledrive. don't work.
Can you give me the way to work ? thanks
edit : C:\adb>adb install Stratos3_CN5.17.0.5_HuamiWatchFaces.7z.apk
Click to expand...
Click to collapse
No, you won't install anything here. You only replace files. You download the HuamiWatchFaces.apk from the watch, replace the contents of model4 in it and copy it back to the watch.
apk is a regular zip archive.
Adramel said:
No, you won't install anything here. You only replace files. You download the HuamiWatchFaces.apk from the watch, replace the contents of model4 in it and copy it back to the watch.
apk is a regular zip archive.
Click to expand...
Click to collapse
Sorry, i don't understand where i must copy the contents of model4 on the stratos3 !
my watchface is in .wfz not in .apk
I've installed your watchface : sdc2-82440-4f08e7fd04.wfz without coloured icons
how can i replace with the coloured one (with explication) ?
thanks for your answer
Install Android Commander on your computer. I will connect the watch with a cable. Go to System/app/HuamiWatchFaces / and copy to HuamiWatchFaces.apk do your harddrive.
HuamiWatchFaces.apk is a zip archive. In this archive, replace the graphics in Assetts with those from the first post.
Copy the modified apk file back to your watch. And it's ready.
stephcel said:
thanks for your answer
Click to expand...
Click to collapse
Look at this
https://youtu.be/wcdDKB0KIJY
Adramel said:
Look at this
https://youtu.be/wcdDKB0KIJY
Click to expand...
Click to collapse
Good... work fine ! thanks for android commander

Categories

Resources