Welcome, Guest
 
Yespiracy Community

Yespiracy Community

The forum is closed. Go to homepage for more awesomeness.
Pages: [1] 2

Author Topic: How to install unicode fonts in android (using ADB)  (Read 18073 times)

themightyde-vils

  • Chief Mate
  • Administrator
  • Hero Member
  • *****
  • Posts: 767
    • View Profile
How to install unicode fonts in android (using ADB)
« on: April 17, 2011, 01:20:02 PM »

In this tutorial I am going to explain how to install any kind of unicode fonts in your android devices

In this (How to enable android phones to render Nepali Unicode Characters (using Root Explorer)) thread our friend have described how to install unicode fonts in your android device with the help of Super User Permission(needs a phone to be rooted) and RootExplorer. So if have your phone rooted go for that tutorial.

If not and you don't want your phone to be rooted then follow these simple steps:

1. Get the unicode font ready in True Type Format (.ttf)

2. Install ADB, If you dont know how , follow steps written here >How to install ADB- Cyanogen Wiki

3. Now open the command prompt and type
Code: [Select]

adb devices

If you see some list of devices then everything is fine.

4. Now type
Code: [Select]

adb shell

this will start shell of your mobile

5.Then, make your system re-writeable using following command
Code: [Select]

# su
# mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
# exit
# exit

Now you will be back to your command prompt

6. Now you have to push the font file from your system to android's system using
Code: [Select]

adb su push .ttf /system/fonts/DroidSansFallback.ttf

it will show some success message

7. Now make your system read-only again
Code: [Select]

adb shell
# su
# mount -o ro,remount -t yaffs2 /dev/block/mtdblock3 /system
# exit
# exit


8. Done , you have successfully copied your file into your android system

Example 1
In windows system
in my case i have copied my unicode file (unicode.ttf) in C: drive
Code: [Select]

C:\>adb shell
# su
# mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
# exit
# exit
C:\>adb su push C:\unicode.ttf /system/fonts/DroidSansFallback.ttf
File Sent...[some message like this]
C:\>adb shell
# su
# mount -o ro,remount -t yaffs2 /dev/block/mtdblock3 /system
# exit
# exit


Example 2
In linux environment , i have copied the unicode.ttf in home folder (~/)
Code: [Select]

$ adb shell
# su
# mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
# exit
# exit
$ adb su push ~/unicode.ttf /system/fonts/DroidSansFallback.tff
File Sent...[some message like this]
$ adb shell
# su
# mount -o ro,remount -t yaffs2 /dev/block/mtdblock3 /system
# exit
# exit
Logged
User - Fedora 15/Windows 7/Android 4.0.3/Symbian S60v5/Apache2/MySQL/GIMP/Fireworks CS5/Photoshop CS5/Waterfox
Programmer - Python/PHP/Java(+Android)/C#/JavaScript/CSS
Gamer - AOE II/NFS Series/Commandos Series
Owner - Nexus S/Asus EEE PC/Desktop(AMD Phenom X4 and ATI powered)

madhurya

  • Newbie
  • *
  • Posts: 4
    • View Profile
Is rooting required for this?
« Reply #1 on: April 19, 2011, 05:41:01 PM »

Thanks for a nice and detailed post.

Tried this on my stock DInc and got a "permission denied" message at the first su. I am assuming that rooting is necessary for this.

I was also wondering if we can just add new ttf files to the folder and somehow "register" them with the android system, so as to not depend upon using only DroidSansFallBack.ttf. Is that possible?
Logged

themightyde-vils

  • Chief Mate
  • Administrator
  • Hero Member
  • *****
  • Posts: 767
    • View Profile
How to install unicode fonts in android (using ADB)
« Reply #2 on: April 19, 2011, 06:05:12 PM »

Actually it doesn't need rooting of your phone ,that was the basic idea of whole process, if you want to root your phone , then using simple applications like RootExplorer will do the job , which is quiet easy as well.
One possible reason might be you were using your phone at the same time when you were using ADB , close all applications in your phone and then open ADB shell , while typing SU in the shell , your phone may ask you for the permission to change user, so be careful about it , if it asks you must give the permission.
Let me know what happened
Logged
User - Fedora 15/Windows 7/Android 4.0.3/Symbian S60v5/Apache2/MySQL/GIMP/Fireworks CS5/Photoshop CS5/Waterfox
Programmer - Python/PHP/Java(+Android)/C#/JavaScript/CSS
Gamer - AOE II/NFS Series/Commandos Series
Owner - Nexus S/Asus EEE PC/Desktop(AMD Phenom X4 and ATI powered)

themightyde-vils

  • Chief Mate
  • Administrator
  • Hero Member
  • *****
  • Posts: 767
    • View Profile
How to install unicode fonts in android (using ADB)
« Reply #3 on: April 20, 2011, 03:56:03 AM »

Update:
I forgot to put  "su" in adb push command

the new update works fine ,
sorry for the trouble all
Logged
User - Fedora 15/Windows 7/Android 4.0.3/Symbian S60v5/Apache2/MySQL/GIMP/Fireworks CS5/Photoshop CS5/Waterfox
Programmer - Python/PHP/Java(+Android)/C#/JavaScript/CSS
Gamer - AOE II/NFS Series/Commandos Series
Owner - Nexus S/Asus EEE PC/Desktop(AMD Phenom X4 and ATI powered)

madhurya

  • Newbie
  • *
  • Posts: 4
    • View Profile
How to install unicode fonts in android (using ADB)
« Reply #4 on: April 20, 2011, 04:19:38 PM »

Thanks for the quick replies and the correction. But I am kind of stuck at the original problem itself. You're right that there are a lot of applications running on the phone, but some of them are services and no matter how many times I kill them, they launch back again. I haven't been able to go beyond the "permission denied" for the first su command itself. Is there some other way?

I've also tried the sudo ./adb remount directly without opening the adb shell, but it says Operation not permitted.

I looked into the HBOOT options but wasn't clear which one to put the phone into for this to work. Any hints?
Logged

themightyde-vils

  • Chief Mate
  • Administrator
  • Hero Member
  • *****
  • Posts: 767
    • View Profile
How to install unicode fonts in android (using ADB)
« Reply #5 on: April 21, 2011, 03:22:25 AM »

@madhurya

Lets go from basics here,
are you sure that your device is in USB debugging mode
Code: [Select]
Enable USB debugging on the device in settings->applications->development->"USB Debugging"
check whether your device is detected by ADB or not
Code: [Select]
adb devicesthe output should look like
Code: [Select]
List of devices attached
YOUR-DEVICE-NAME device

and then finally
it is not
sudo ./adb remount

you can give try for
./adb su remount

and please let me know the output

* you dont need sudo to use adb
Logged
User - Fedora 15/Windows 7/Android 4.0.3/Symbian S60v5/Apache2/MySQL/GIMP/Fireworks CS5/Photoshop CS5/Waterfox
Programmer - Python/PHP/Java(+Android)/C#/JavaScript/CSS
Gamer - AOE II/NFS Series/Commandos Series
Owner - Nexus S/Asus EEE PC/Desktop(AMD Phenom X4 and ATI powered)

madhurya

  • Newbie
  • *
  • Posts: 4
    • View Profile
How to install unicode fonts in android (using ADB)
« Reply #6 on: April 23, 2011, 10:39:59 PM »

Apologies for the delayed response.

Everything good until ./adb devices. I see my phone's serial number and then "device".
But upon attempting

./adb su remount

it just prints the usage instructions for adb (that entire help with all options etc.). I also tried

./adb remount

and got
remount failed: Operation not permitted

also tried

./adb shell
$ su
su: permission denied

I'm not sure what I am doing wrong. If it matters, the SDK is located in $HOME/Software directory.
Logged

xtranophilist

  • Captain, the admin.
  • Administrator
  • Hero Member
  • *****
  • Posts: 1577
    • View Profile
    • Motorscript
How to install unicode fonts in android (using ADB)
« Reply #7 on: May 11, 2011, 12:16:47 AM »

Found the same problem in a Froyo!
adb shell doesn't get to a superuser shell on it! I see '$' where su fails with 'permission denied'!
Maybe that is why, since i could proceed on phones that get into superuser shell with '#'!
Maybe rooting problem, it is!
Logged
If you want to be a hero, well, just follow me! - John Lennon

sporsho

  • Newbie
  • *
  • Posts: 2
    • View Profile
How to install unicode fonts in android (using ADB)
« Reply #8 on: June 02, 2011, 12:30:27 AM »

In my Samsung Galaxy Tab GT-P1000, I can enter using the described procedure upto "adb shell".
But when I give the command "su" in adb shell, it shows "su : not found".
Can you please tell me what kind of problem there might occur?
Note: I have not rooted my device yet.
Any kind of help will be greatly appreciated!
Logged

sporsho

  • Newbie
  • *
  • Posts: 2
    • View Profile
can't use 'su' in adb shell in Samsung Galaxy Tab GT-P1000
« Reply #9 on: June 02, 2011, 12:31:20 AM »

In my Samsung Galaxy Tab GT-P1000, I can enter using the described procedure upto "adb shell".
But when I give the command "su" in adb shell, it shows "su : not found".
Can you please tell me what kind of problem there might occur?
Note: I have not rooted my device yet.
Any kind of help will be greatly appreciated!
Logged

Abu Fareedudeen

  • Newbie
  • *
  • Posts: 5
    • View Profile
I am on Samsung Galaxy S2
« Reply #10 on: July 17, 2011, 06:24:29 AM »

Quote from: sporsho;54293
In my Samsung Galaxy Tab GT-P1000, I can enter using the described procedure upto "adb shell".
But when I give the command "su" in adb shell, it shows "su : not found".
Can you please tell me what kind of problem there might occur?
Note: I have not rooted my device yet.
Any kind of help will be greatly appreciated!

 
I am getting the same error msg: su: not found. anyone please help me to install tamil font without rooting the device.. i tried the given instruction but got error "su: not found"

Thanks
Abu
Logged

themightyde-vils

  • Chief Mate
  • Administrator
  • Hero Member
  • *****
  • Posts: 767
    • View Profile
How to install unicode fonts in android (using ADB)
« Reply #11 on: July 17, 2011, 06:56:03 AM »

seems like the culprit is rooting, i suggest you guys for temporary rooting using z4root application

Download Link for z4root

Source / Credits for z4root
Logged
User - Fedora 15/Windows 7/Android 4.0.3/Symbian S60v5/Apache2/MySQL/GIMP/Fireworks CS5/Photoshop CS5/Waterfox
Programmer - Python/PHP/Java(+Android)/C#/JavaScript/CSS
Gamer - AOE II/NFS Series/Commandos Series
Owner - Nexus S/Asus EEE PC/Desktop(AMD Phenom X4 and ATI powered)

Abu Fareedudeen

  • Newbie
  • *
  • Posts: 5
    • View Profile
How to install unicode fonts in android (using ADB)
« Reply #12 on: July 17, 2011, 09:21:30 PM »

Hi,

thanks for the reply,

By doing this will it void the warranty?

Thanks
Logged

Abu Fareedudeen

  • Newbie
  • *
  • Posts: 5
    • View Profile
Will it void the warranty?
« Reply #13 on: July 17, 2011, 09:22:04 PM »

Hi,

thanks for the reply,

By doing this will it void the warranty?

Thanks
Logged

themightyde-vils

  • Chief Mate
  • Administrator
  • Hero Member
  • *****
  • Posts: 767
    • View Profile
How to install unicode fonts in android (using ADB)
« Reply #14 on: July 18, 2011, 03:33:44 AM »

Quote from: Abu Fareedudeen;67567
Hi,

thanks for the reply,

By doing this will it void the warranty?

Thanks

 
Permanent root will void the warranty but you can always unroot ur device :)

but anyways temporary root doesn't void your warranty
Logged
User - Fedora 15/Windows 7/Android 4.0.3/Symbian S60v5/Apache2/MySQL/GIMP/Fireworks CS5/Photoshop CS5/Waterfox
Programmer - Python/PHP/Java(+Android)/C#/JavaScript/CSS
Gamer - AOE II/NFS Series/Commandos Series
Owner - Nexus S/Asus EEE PC/Desktop(AMD Phenom X4 and ATI powered)
Pages: [1] 2
 

COPYLEFT (ↄ) Yespiracy Community - All Rights REVERSED
Powered by SMF

Page created in 0.109 seconds with 16 queries.