Add one or more fonts to your system easily - LG Optimus G Pro

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
My English is a little weak, drafting errors may occur.
Hi there. Old dilemma on how to expand the number of Android phones into a pre-made fonts (4-6-8 pieces which normally used to be) just a piece of your favorite font, or even at 20-40. There are several possibilities for this already; flash recovery from flash zip from the XDA,fonts changer applications in the Play Store, etc, etc. Our current solution for our good, that we can not install the fonts chosen by the type and number of pieces of others, but what we want, and as much as we want. Lollipop and KitKat operating system as well, so far I have tested LG phones. I did not feel harmful slowdowns or system errors after 30-40 font. Finding the appropriate fonts on the Internet will take much more time than the change itself. TTF fonts look for.
What it needs for this operation:
1: Root
2: Root file manager
3: Notepad ++
4: A new font or fonts lack, and a few minutes of your life
By default it looks something like the font selection menu, depending on your phone / rom 4-10 pieces chosen from the letter:
After the change is then this:
Take the letter or letters you want to use a file manager to copy the system / fonts folder, and then modify the permissions to this: rw- r-- r--. If you enter more letters copying, modification group should be done faster. Feel free to highlight all the letters as well. Do not just folders, folder if the fonts folder.
Now, you can edit the file fonts_lge.xml, which is located in the system / etc folder. Because even copying the letters in the fonts folder, depending on the system still will not see it, but after editing this file.
Notepad ++ looks like the original xml file's:
​
After the change this way:
​
As you can see, but that's all that we need so that we insert name of copied letters:
<family name="Arial">
<font weight="400" style="normal">arial.ttf</font>
<font weight="700" style="normal">arialbd.ttf</font>
<font weight="400" style="italic">arialbi.ttf</font>
<font weight="700" style="italic">ariali.ttf</font>
</family>
Since the type arial four species were also found, (normal, bold, italic, bold italic) should therefore enter and inserted into the original xml file. But where there are only two (normal, bold), there's this:
<family name="Tahoma">
<font weight="400" style="normal">tahoma.ttf</font>
<font weight="700" style="normal">tahomabd.ttf</font>
</family>
Which entries are nothing but a plain ttf, there is this:
<family name="Hwedding">
<font weight="400" style="normal">hwedding.ttf</font>
<font weight="700" style="normal">hwedding.ttf</font>
</family>
It may find that some letters than we can find only three kinds of (normal, bold, italic), the more so, enter:
<family name="Garamond">
<font weight="400" style="normal">GARA.ttf</font>
<font weight="700" style="normal">GARABD.ttf</font>
<font weight="400" style="italic">GARAIT.ttf</font>
</family>
The editing syntax pay attention to the layout, images and Notepad ++ help him. When you are done, you copy the modified xml file in the system / etc folder, but not before the original file, create a backup or just rename example fonts_lge.xm away. The new set fonts_lge.xml file permissions: rw-r--r--.
Here you only need to reboot the phone, and if everything went well, the letters appear. It is not hard on the whole, it can be done in a few minutes, and you can use any fonts out what we want .... enjoy ....

Related

(GUIDE)(MOD)Changeable Lockscreen text like Galaxy4.

How to add the Lockscreen Text to any lockscreen.
As most know I have implemented this feature inside the Touchwiz Resurrection rom for galaxy ace i.
As seen below.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Basicly this mod was very easy to add .
What is inside the resources.zip ?
LifeCompanionText.apk ( App to change the text )
LifeCompanion smalis for the framework.jar
SpaceFont.ttf for the CoolJazz font from S3/4
Basicly what you would need to do is:
Download Resources Attachement.
Extract it
Decompile you’re framework.jar
Go to the extract smali folder from the resources.zip and copy the smali folder to the smali folder of you’re framework.jar.
Compile framework.jar
Now we are going to add it to the frameworks location/allocate the text.
Decompile framework-res.apk
Find a lockscreen layout to you’re likes.
I used “zzz_keyguard_screen_clockwidget.xml” but you would be able to put it inside : “keyguard_screen_tab_unlock.xml” for the normal sliding tab lockscreen and such.
Open the layout you wanted and simply add this line above the clock layout or where you want
Code:
<com.touchwizres.lifecompaniontext.LifeCompanionTextView android:textSize="40.0dip" android:textColor="#ffffffff" android:id="[COLOR="RoyalBlue"]@id/life_companion_tag[/COLOR]" android:layout_width="wrap_content" android:layout_height="wrap_content" android:shadowColor="#7f000000" android:shadowDx="1.0" android:shadowDy="1.0" android:shadowRadius="2.0" />
I placed this code just below
Code:
<view android:gravity="left" android:orientation="vertical" android:id="@id/clock_time_and_date" android:paddingLeft="7.0dip" android:paddingTop="2.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" class="com.android.internal.policy.impl.ClockWidget$TimeAndDate">
of the "zzz_keyguard_screen_clockwidget.xml"
Add this to the ids.xml
Code:
<item type="id" name="[COLOR="RoyalBlue"]life_companion_tag[/COLOR]">false</item>
Compile framework-res.apk
Decompile ur compiled framework-res.apk
Now we are going to fix the ID Values. From the smali .
Decompile ur compiled framework.jar
Open
Code:
com/touchwizres/lifecompaniontext/[COLOR="RoyalBlue"]LifeCompanionTextView.smali[/COLOR]
that’s inside the framework.jar
Find
Code:
const v3, 0x[COLOR="Red"]10202cc[/COLOR]
This is the “life_companion_tag” ID (
Code:
<public type="id" name="life_companion_tag" id="0x0[COLOR="Red"]10202cc[/COLOR]" />
) inside public.xml
We need to fix this to yours
Now when u have changed the code from 0x10202cc to something like 0x1020299 or something depends on ur framework-res.apk
U can compile the framework.jar
Now zip the files together and make sure these are set properly.
SpaceFont.ttf inside /system/fonts/**
LifeCompanionText.apk inside /system/apps/**
And then ofcourse you’re modified framework.jar and framework-res.apk inside /system/framework/**
Now you are done
Happy modding
On what roms can u apply this mod ?
Basicly it can be applied to ALL Roms atleast if u know what u are doing.
As Most of you all know i am a HUGE HUGE Open Source fan so in this case i fully opensourced this aswell
Here is the sourcecode: https://github.com/spacecaker/LifeCompanionLockscreentext
Import in Eclipse.
Compile app.
Export unsigned apk.
Sign apk.
Decompile apk.
Retrieve ur smali codes.
Implement in framework
Some helpers who helped me on some knowledge and ideas:
B16H22
MarioZaWa
Pineappleowl
and testers
thanks sir for your guide
sir i want to know how to port Samsunng default clockwidget to our Non tw device.
i ported but not getting hour and minute pngs
How to remove? Keep getting infinite boot whenever I remove it..
Works well.But after reboot,the text will back to"life companion".How to fix?
Android小楼阁-QQ群 439637151
来自搭载Android 2.3 GingerBread的华为Y220-T10

[App 2.3+] Wallpaper Gallery | [Guide] Make your own Gallery!

[App 2.3+] Wallpaper Gallery | [Guide] Make your own Gallery!
I'm here by present you a Wallpaper Gallery Application for your android phone.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Features:-
Light weight, use less ram.
Easy to use.
Direct Wallpaper applying.
You can use it in any android version above 2.3.x
Compatible with Stock, CM or any AOSP Builds.
Can be installed on both Rooted & Un-Rooted devices.
Install as normal apk. Also you can include it in ROMs.
Screens:-
Attention ROM Developers!
No need to ask for permission to include this app in your roms, just give proper Credits & Thanks ...
Download Wallpapers.apk (1.17 MB) (Attached on xda thread)
Guide: Make your own Gallery!
You can decompile this application and then you can replace, add more wallpapers. You can also add HD/High Quality wallpapers if you wish. Remember, the compiled apk size depends on the size of the wallpapers added. If the wallpapers are big, the apk also become big.
Want to download High Quality Wallpapers?
Instructions:-
►Step:1 - DeCompile apk
Download the Wallpapers.apk to your PC/Laptop
Decompile apk with APK Tool / Virtuous Ten Studio (VTS) Tool for Windows.
VTS Screens:
►Step:2 - Choosing Wallpapers
Go to decompiled folder.
\Data\res\drawable-ldpi - folder contains wallpaper files and application icon.
These represent each set of wallpaper,
wallpaper_xx.jpg - The original wallpaper file.
wallpaper_xx_small.jpg - Resolution reduced preview image for the wallpaper.
you can replace 'xx' by '01, 02, 03,....' numbers.
This app contains 10 default wallpapers. You can append more wallpapers by adding 'wallpaper_11.jpg' & 'wallpaper_11_small.jpg'
You can use some Image Resizer tools for making previews.
(Small files about resolution reduced to 20% of the original files)
Search Google for such tools
I use FastStone Image Viewer for batch resize images.
►Step:3 - Adding Wallpaper Names to arrays.xml
Go to \Data\res\values-ldpi - folder
Open 'arrays.xml' file with Notepad++ / Wordpad or any other text editor.
<item>wallpaper_11</item> - This line adds the newly added wallpaper to the list.
Do not touch any other text in the xml file. Edit BLACK text only (Notepad++)
Code:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string-array name="wallpapers">
<item>wallpaper_01</item>
<item>wallpaper_02</item>
<item>wallpaper_03</item>
<item>wallpaper_04</item>
<item>wallpaper_05</item>
<item>wallpaper_06</item>
<item>wallpaper_07</item>
<item>wallpaper_08</item>
<item>wallpaper_09</item>
<item>wallpaper_10</item>
<item>wallpaper_[COLOR="Blue"]11[/COLOR]</item>
</string-array>
</resources>
Now save the xml file.
►Step:4 - Setting Application Icon
'brijeshep_icon.png' - This image is the application icon. You can replace it with any png file with 48x48 pixels. Do not rename the icon file.
►Step:5 - Setting Application Label and Title
If you want to change the application title "Wallpapers",
Go to \Data\res\values - folder
Open 'strings.xml' file with Notepad++
Edit the Application Name: <string name="app_name">Kitkat Gallery</string> like...
Edit the Wallpaper Setting title: <string name="app_label">KK-Wallpapers</string>
Save the xml file.
Code:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">Kitkat Gallery</string>
<string name="app_label">KK-Wallpapers</string>
<string name="set_wallpaper">Set Wallpaper</string>
<string name="no_wallpaper">No Wallpaper</string>
</resources>
►Step:6 - Compile the Project files
If you have finished modding, Compile the project to make the modified apk.
You can compile the project by clicking 'Build all' button if you are in VTS.
Go to project's 'Binary' folder to get the recompiled apk.
Credits:-
elelinux for the base app.
Google for Android Version History wallpapers.
Virtuous Ten Studio (VTS) Tool
FastStone Image Viewer
Adobe Photoshop
Notepad++
Thanks
Thanks brijeshep.
Very good tutorial.
All the best.

[MOD] [KitKat] [ROOT] Apple Emoji Replacement for KitKat

first time I saw this way is here and the original thread was here.
This mod will replace your current "flat" KitKat emoji with Apple emoji. Here is the instruction by angelsel :
(remember to backup your current fallback_fonts.xml before do this.)
1. Grab AppleColorEmoji.ttf and place it into /system/fonts/
2. Set /system/fonts/AppleColorEmoji.ttf to have permissions 644 (rw-r--r--) and owner:group root:root.
3. Modify /system/etc/fallback_fonts.xml like so:
find :
Code:
<family>
<fileset>
<file>AndroidEmoji.ttf</file>
</fileset>
</family>
screenshot
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Above this block, add
Code:
<family>
<fileset>
<file>AppleColorEmoji.ttf</file>
</fileset>
</family>
screenshot
4. Set /system/etc/fallback_fonts.xml to have permissions 644 (rw-r--r--) and owner:group root:root.
5. Reboot.
if you enjoy it, give Thanks to angelsel for the instruction here at his own original thread [MOD] Apple Color Emoji system-wide for KitKat
screenshot (sorry if large )
i download the ttf file and push into system/font
then i rename "AndroidEmoji.ttf" to "AndroidEmojiOLD.ttf"
and "AppleColorEmoji.ttf" to "AndroidEmoji.ttf" and set to rw-r-r and reboot.
and it changed without edit the fallback_fonts.xml
makankaki said:
i download the ttf file and push into system/font
then i rename "AndroidEmoji.ttf" to "AndroidEmojiOLD.ttf"
and "AppleColorEmoji.ttf" to "AndroidEmoji.ttf" and set to rw-r-r and reboot.
and it changed without edit the fallback_fonts.xml
Click to expand...
Click to collapse
really? thanks for the info
and if anyone have installed keyboard that make by Shaftamle, you must rename the "AppleColorEmoji.ttf" to "NotoColorEmoji.ttf"
and the original "NotoColorEmoji.ttf" rename to "NotoColorEmoji.bak" just in case you want to use old emoji back.
set permission to rw-r-r and reboot. :good:
Why would I double copy the thread...?
I've already did the flashable zips of Apple and Samsung emojis here:
http://forum.xda-developers.com/showthread.php?t=2737653
Moreover there's app that does all that process easily here:
http://www.xda-developers.com/?p=97319
LeroViten said:
Why would I double copy the thread...?
I've already did the flashable zips of Apple and Samsung emojis here:
http://forum.xda-developers.com/showthread.php?t=2737653
Moreover there's app that does all that process easily here:
http://www.xda-developers.com/?p=97319
Click to expand...
Click to collapse
I think that if you only want iPhone emojis, you can avoid installing a nearly 50mb app for LG and S4 emoji sets that you probably will never use...
ty !

Get Roboto font back in LG's Lollipop UI

LG decided to switch to their own Roboto-like font for Lollipop. All of the Roboto fonts are actually still on the phone and all that is needed to get them back is a simple edit to an xml file. The file in question is /system/etc/fonts_lge.xml. Here are the contents of that file:
Code:
<?xml version="1.0" encoding="utf-8"?>
<!--
Added System Default Fonts Family.
-->
<familyset version="22">
<alias name="newlggothic" to="sans-serif" />
<family name="lgtravel">
<font weight="400" style="normal">HYTravel_Regular.ttf</font>
<font weight="700" style="normal">HYTravel_Bold.ttf</font>
</family>
<family name="hyfonxrain">
<font weight="400" style="normal">HYFoxrain_Regular.ttf</font>
<font weight="700" style="normal">HYFoxrain_Bold.ttf</font>
</family>
<family name="hycoffee">
<font weight="400" style="normal">HYCoffee_Regular.ttf</font>
<font weight="700" style="normal">HYCoffee_Bold.ttf</font>
</family>
<family name="hypure">
<font weight="400" style="normal">HYPureWhite_Regular.ttf</font>
<font weight="700" style="normal">HYPureWhite_Bold.ttf</font>
</family>
<family name="lgserif">
<font weight="400" style="normal">HYSerif_Regular.ttf</font>
<font weight="700" style="normal">HYSerif_Bold.ttf</font>
</family>
</familyset>
You need to add a new family element for Roboto (or any other font you would like to use).
Code:
<family name="roboto">
<font weight="400" style="normal">Roboto-Regular.ttf</font>
<font weight="700" style="normal">Roboto-Bold.ttf</font>
</family>
I don't know how to make a flash-able zip, but you can update the file with a few adb commands.
Code:
adb push fonts_lge.xml /sdcard/
adb shell
su
cp /sdcard/fonts_lge.xml /etc/
exit
exit
adb reboot
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
I tried this with a few fonts to make sure it works without any problems. One thing I noticed is that the NewSmartGothic font looks identical to Roboto. I suspect this is because of the alias at the top of the file. The sans-serif family is defined in the /etc/fonts.xml as:
Code:
<!-- first font is default -->
<family name="sans-serif">
<font weight="100" style="normal">Roboto-Thin.ttf</font>
<font weight="100" style="italic">Roboto-ThinItalic.ttf</font>
<font weight="300" style="normal">Roboto-Light.ttf</font>
<font weight="300" style="italic">Roboto-LightItalic.ttf</font>
<font weight="400" style="normal">Roboto-Regular.ttf</font>
<font weight="400" style="italic">Roboto-Italic.ttf</font>
<font weight="500" style="normal">Roboto-Medium.ttf</font>
<font weight="500" style="italic">Roboto-MediumItalic.ttf</font>
<font weight="900" style="normal">Roboto-Black.ttf</font>
<font weight="900" style="italic">Roboto-BlackItalic.ttf</font>
<font weight="700" style="normal">Roboto-Bold.ttf</font>
<font weight="700" style="italic">Roboto-BoldItalic.ttf</font>
</family>
Hope this helps!
Is there any way to get the LG home theme settings back as well? It has to be there. I have no idea why this was left out for the sprint lollipop G2 update ?
EROMITLAB said:
Is there any way to get the LG home theme settings back as well? It has to be there. I have no idea why this was left out for the sprint lollipop G2 update
Click to expand...
Click to collapse
I'm not sure. I haven't looked into it. I never messed with the home theme on KK as I was using LiquidSmooth for KK.

Add one or more fonts to your system easily

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
My English is a little weak, drafting errors may occur.
Hi there. Old dilemma on how to expand the number of Android phones into a pre-made fonts (4-6-8 pieces which normally used to be) just a piece of your favorite font, or even at 20-40. There are several possibilities for this already; flash recovery from flash zip from the XDA,fonts changer applications in the Play Store, etc, etc. Our current solution for our good, that we can not install the fonts chosen by the type and number of pieces of others, but what we want, and as much as we want. Lollipop and KitKat operating system as well, so far I have tested LG phones. I did not feel harmful slowdowns or system errors after 30-40 font. Finding the appropriate fonts on the Internet will take much more time than the change itself. TTF fonts look for.
What it needs for this operation:
1: Root
2: Root file manager
3: Notepad ++
4: A new font or fonts lack, and a few minutes of your life
By default it looks something like the font selection menu, depending on your phone / rom 4-10 pieces chosen from the letter:
After the change is then this:
Take the letter or letters you want to use a file manager to copy the system / fonts folder, and then modify the permissions to this: rw- r-- r--. If you enter more letters copying, modification group should be done faster. Feel free to highlight all the letters as well. Do not just folders, folder if the fonts folder.
Now, you can edit the file fonts_lge.xml, which is located in the system / etc folder. Because even copying the letters in the fonts folder, depending on the system still will not see it, but after editing this file.
Notepad ++ looks like the original xml file's:
​
After the change this way:
​
As you can see, but that's all that we need so that we insert name of copied letters:
<family name="Arial">
<font weight="400" style="normal">arial.ttf</font>
<font weight="700" style="normal">arialbd.ttf</font>
<font weight="400" style="italic">arialbi.ttf</font>
<font weight="700" style="italic">ariali.ttf</font>
</family>
Since the type arial four species were also found, (normal, bold, italic, bold italic) should therefore enter and inserted into the original xml file. But where there are only two (normal, bold), there's this:
<family name="Tahoma">
<font weight="400" style="normal">tahoma.ttf</font>
<font weight="700" style="normal">tahomabd.ttf</font>
</family>
Which entries are nothing but a plain ttf, there is this:
<family name="Hwedding">
<font weight="400" style="normal">hwedding.ttf</font>
<font weight="700" style="normal">hwedding.ttf</font>
</family>
It may find that some letters than we can find only three kinds of (normal, bold, italic), the more so, enter:
<family name="Garamond">
<font weight="400" style="normal">GARA.ttf</font>
<font weight="700" style="normal">GARABD.ttf</font>
<font weight="400" style="italic">GARAIT.ttf</font>
</family>
The editing syntax pay attention to the layout, images and Notepad ++ help him. When you are done, you copy the modified xml file in the system / etc folder, but not before the original file, create a backup or just rename example fonts_lge.xm away. The new set fonts_lge.xml file permissions: rw-r--r--.
Here you only need to reboot the phone, and if everything went well, the letters appear. It is not hard on the whole, it can be done in a few minutes, and you can use any fonts out what we want .... enjoy ....

Categories

Resources