Add one or more fonts to your system easily - G2 Themes and Apps

{
"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][GB] Change path thickness of Pattern Lockscreen to ICS style

Guide to changing path thickness of Pattern Lockscreen to ICS style​
I wandered places searching this off. I found some traces in direction of my destiny but none of them worked fully correctly
So, as stated, I searched a lot for this mod and came face to face with failures and smali errors. So, I had to figure it out myself some modification to do in it to make it work.
Note: IT is not COMPLETELY my mod but I have done modifications in it to make it work. This is based on a guide for Froyo outside of XDA.
Pre-Requisites:
1. PC with Java JDK or JRE
2. Deodexed ROM
3. 7-Zip
4. classes.dex decompiling tool
5. Notepad++
6. Patience
7. Carefulness for editing smali files
Let's Start
1. First we would have to decompile classes.dex inside framework.jar
For that, you can use my Tool ROM Tool v2
First using 7zip, Right click on your framework.jar and open it as archive and drag and drop classes.dex in input folder of the tool
(Note: If you don't have classes.dex in framework.jar [only META-INF and preloaded-classes.dex], then your framework isn't deodexed)
Now, open Script.bat and choose 1 (Decompile classes.dex)
2. Now, we will make the changes. Go to decompiled folder and go to \classout\com\android\internal\widget and open LockPatternView.smali in Notepad++
Search for mDiameterFactor:F [Ctrl+F]​
See the code above it.
It should be like this:-
Code:
const[COLOR="Red"]/high16[/COLOR] v2, 0x3f00
If it is, then you will have to remove red part /high16
Because it will not allow the change of code we will be doing which will have a different hexadecimal value which will not be supported till this code is in effect
Now, it will look like this:-
Code:
const v2, 0x[COLOR="Red"]3f00[/COLOR]
Now, we will change the thickness value 3f00 to 3dcccccd
Final code will look like this
Code:
const v2, 0x3dcccccd
Save it
I am attaching final and before smali for comparison below.
View attachment Smali.zip
(Note: If you don't have /high16, it's good , then just just change the value and save)
3. Go to Script.bat again and choose 2 (Recompile classes.dex) and after it's done, you will get classes.dex
Drop it in framework.jar
4. Push framewotk.jar in /system/framework
Eg:
Copy it in platform-tools folder of android SDK and type following with pressing Enter after each command
Code:
adb remount
adb push framework.jar /system/framework/
adb shell chmod 644 /system/framework/framework.jar
adb shell killall system_server
Last command will Hot Reboot your phone to apply changes. It is fast and better than rebooting phone.
5. Enjoy
Screenshots
{
"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"
}
Before
After
Credits​
A member from other forum to answer a question to other member of that forum
Google for letting me search somethings
Samsung Galaxy Ace s5830i members for supporting me so much
RESERVED
Very nice, made here and was show!
thank

[GUIDE] Add search engines to the stock browser (root access required)

Hello, this is my first "guide" and I'm not sure if it's placed correctly so please move it if not.
----------
Now that it's clear that google and all the other big search providers track you and hand out your data to the nsa etc, I wanted to use startpage.com as my default search engine in the android stock browser, but unfortunatly you cannot add any search engines inside the app.
---
After some research I found a method that does let you add search engines though, and I wanted to share it with all of you:
1. Get APKTool (on Windows which I used, you can just download the gui based Tool) - please search the forum for the link
2. Grab your Browser.apk from /system/app/ and the framework-res.apk from /system/framework/ and put them into the apktool directory.
3. Install the framework-res.apk and then decompile the Browser.apk (both with/inside the apktool)
4. Open the following file in the browser directory created by apktool: /res/values/arrays.xml
5. Scroll down until you find an entry like this and copy/paste it below:
Code:
<string-array name="duckduckgo">
<item>DuckDuckGo</item>
<item>duckduckgo.com</item>
<item>https://duckduckgo.com/favicon.ico</item>
<item>https://duckduckgo.com/?q={searchTerms}</item>
<item>UTF-8</item>
<item></item>
</string-array>
6. Edit the copy to whatever search engine you want to add. For example to add startpage.com:
Code:
<string-array name="startpage">
<item>Startpage</item>
<item>startpage.com</item>
<item>https://startpage.com/favicon.ico</item>
<item>https://startpage.com/do/m/mobilesearch?query={searchTerms}</item>
<item>UTF-8</item>
<item></item>
</string-array>
If you dont want the mobile site:
Code:
<string-array name="startpage">
<item>Startpage</item>
<item>startpage.com</item>
<item>https://startpage.com/favicon.ico</item>
<item>https://startpage.com/do/search?query={searchTerms}</item>
<item>UTF-8</item>
<item></item>
</string-array>
7. Now scroll down further until you find:
Code:
<string-array name="search_engines">
8. Add the search engine you just added above (make sure the name matches that name you chose) inside a "<item></item>"-Tag. Example for Startpage.com:
Code:
<item>startpage</item>
9. Recompile the Browser.apk with the apktool. (you will need the android_meta stuff from the old apk - apktool explains that)
10. Push it back onto the device inside /system/app/ and change rights/owner if necessary. (root/root with rw-r-r)
11. Reboot and now you should be able to choose the newly added search engine in the browser.
A little confused, because duckduckgo already exists without the need for me to edit anything, yet it doesn't show up as a search engine option... Yet Ask Jeeves DOES, and it shouldn't.
{
"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"
}
Your phone is country coded or smth - you prolly need to change the arrays.xml in /res/values-en-rGB ?
I'm running Cyanogenmod 10.1.2(stable) on a Nexus 4.
I didn't realise they had UK specific builds...?

[MOD][4.4.2][XT1058 - Brazilian Retail] AOSP-Like Mobile Signal Icons

BASED ON THE WORKS OF:
@chaoslimits : http://forum.xda-developers.com/showthread.php?t=2561560 :good:
@kuz142 : http://forum.xda-developers.com/showthread.php?t=2584351 :good:
This mod removes the icons of the mobile network type used by Motorola, which take up too much space in the status bar, to use the default icons used by AOSP, based on the E icon for 2G, H icon for 3G and the LTE icon for 4G. Also, these icons are no longer displayed when connected to a Wi-Fi network.
WHAT WAS MADE:
Pulled out the framework-res.apk file from /system/framework/ folder, and the SystemUI.apk and SystemUI.odex files from /system/priv-app/ folder to my computer.
Decompiled the SystemUI.apk using Android Multitool (thanks to @Flextrick).
I have made the same changes that @chaoslimits did, to use the AOSP's mobile network type icons instead of the Motorola's ones.
Changed the res/values/bools.xml line: <bool name="config_show4GForLTE">true</bool>, from true to false, to show the LTE icon instead of 4G.
Replaced the icons of signal strength of the mobile network used by the AOSP with the icons that are used by Motorola at the res/drawable-xhdpi folder. These icons are available at the attached file drawable-xhdpi.zip.
Changed all the lines of the res/values/styles.xml that contains: <item name="android:textAllCaps">false</item>, from false to true, to use capital letters at the quick settings and notifications panels like AOSP did.
Recompiled the SystemUI.apk using Android Multitool instructions.
BEFORE:
{
"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"
}
AFTER:
REQUIREMENTS:
Android 4.4.2 Brazilian Retail (161.44.26.ghost_row.Brasil.en.BR);
Root;
A custom recovery (CWM or TWRP), if you want to use the flashable zips.
RECOVERY (UN)INSTALLATION:
Flash the SystemUI-AOSP.zip file, if you want to install, or the SystemUI-AOSP-Restore.zip file, if you want to uninstall;
Reboot.
MANUAL (UN)INSTALLATION:
Unzip and find at the /system/priv-app/ folder the SystemUI.apk from the SystemUI-AOSP.zip file, if you want to install, or the SystemUI-AOSP-Restore.zip file, if you want to uninstall;
Copy this SystemUI.apk to the /system folder of your phone, and set its permissions for rw- r-- r-- (equivalent to chmod 644);
Move the file for /system/priv-app folder of your phone, overwriting the existing one;
Reboot.
really interested in this one, i'm trying to build the closest look to stock as possible on my European XT1052, will this work on it? It has the exactly same icons you have out of the box.
Thanks in advance.
themcfly said:
really interested in this one, i'm trying to build the closest look to stock as possible on my European XT1052, will this work on it? It has the exactly same icons you have out of the box.
Thanks in advance.
Click to expand...
Click to collapse
Hi! I believe that if you use the file attached at the OP, it will not work.
But, you can follow the instructions of the WHAT WAS MADE section, and I believe you can obtain the same results with the SystemUI.apk of your device.
Sorry for my bad english. :good:
I tried this on my Sprint Moto x using the instructions you have in OP, and My LTE icon is offset. It isnt on top of the Signal bars, its to the right
edit: to the left, not the right
EDIT 2: i am not sure if this applies to other carriers but if you're on sprint, dont replace the drawable xhdi folder, It turns the signal bars blue. and also in bools there is a line called "<bool name="config_enable_carrier_wide_icons">true</bool>" change true to false and the large lte icon will be fixed
Edit 3: spoke too soon, drawable xhdi folder does not turn the icons blue. something else triggers it
"The process com.android.systemui stoped" please help!!!! What can i do to fix?

[GUIDE][5.0][NOOBS]Add rom banner in about phone.

Hi, in this tut, ill show you how to add rom banners in about phone settings of your lollipop rom.
Files required-
-Zip in attachments
-DEODEXED rom
-Brain(link?)
Part One-
-Extract the zip
-Copy these files into the folder--->
Code:
/system/priv-app/Settings/Settings.apk
And
Code:
/system/framework/framework-res.apk
-Run cmd.exe and run this command--->
Code:
apktool if framework-res.apk
This will install the framework.
-Then run this command to decompile settings.apk--->
Code:
apktool d Settings.apk
Part two-
-In apktool folder goto Settings/res/layout and create a logo.xml file
-Open it, and paste the following lines in it--->
-----------------------------------------------------------------------------------------------------------------------------------
"<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:gravity="center" android:layout_width="fill_parent" android:layout_height="wrap_content"
xmlns:android="http://schemas.android.com/apk/res/android">
<ImageView android:layout_width="fill_parent" android:layout_height="wrap_content" android:src="@drawable/logo" />
</LinearLayout>"
------------------------------------------------------------------------------------------------------------------------------------
-Resize your banner (which should be a PNG file) to 500x123 and rename it to logo.png. Then copy it to Settings/res/drawable
Part Three-
-Navigate to Settings/res/xml and open device_info_settings.xml.
-Add this line--->
------------------------------------------------------------------------------------------------------------------------------------
"<PreferenceScreen android:enabled="false" android:layout="@layout/logo" android:selectable="false" android:key="logo" />
------------------------------------------------------------------------------------------------------------------------------------
Right below this line--->
------------------------------------------------------------------------------------------------------------------------------------
"xmlns:android="http://schemas.android.com/apk/res/android">"
------------------------------------------------------------------------------------------------------------------------------------
-It should look like this--->
-----------------------------------------------------------------------------------------------------------------------------------
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen android:title="@string/about_settings"
xmlns:android="http://schemas.android.com/apk/res/android">
<PreferenceScreen android:enabled="false" android:layout="@layout/logo" android:selectable="false" android:key="logo" />
------------------------------------------------------------------------------------------------------------------------------------
Part four-
-Now open cmd.exe and type this to recompile--->
Code:
apktool b Settings
Part Five and most important!!
-After the last command finishes, goto Settings/original and copy everything inside it to
Settings/build/apk and replace the file if prompted
-Then again run--->
Code:
apktool b Settings
-Now you have your settings.apk in Settings/dist/
-Copy it to /system/priv-app/Settings/ and replace the old file, set rw-r-r- permissions and reboot!
NOTE- THIS HAS BEEN TESTED ON AOSP BASED LOLLIPOP ROM. I DO NOT GUARANTEE WORKING ON CUSTOMIZED ROMS LIKE TOUCHWIZ OR LG ROMS. ALL LINES MUST BE ADDED WITHOUT THE "(QUOTES) MARK AT THEIR STARTING AND ENDING.
It should look like this--->
{
"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"
}
HIT THNX IF IT HELPED!!!
Thanks alot i was looking for a guide like this but for 5.0+ also i dont see any xml code in the code parts?
Are u using xda app?
Whoops! I remember adding em. Anyways, I'll do it.
Would it be OK if I add em in few hrs? I hv school.

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