Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
adib_17
Old
(Last edited by adib_17; 2nd February 2012 at 08:12 AM.)
#1  
adib_17's Avatar
Senior Member - OP
Thanks Meter 85
Posts: 161
Join Date: Dec 2011
Default [TUT]How to Port Samsung keyboard from stock Rom to Custom Roms.

Hi...
this tutorial show you how to port stock sam keyboard to a custom rom ( i don't know work on CM. now i use emanoN, next time flash CM test it.)

you need this files and folders ... take from your stock rom odin flashable file: (use magicIso or UltraIso)
- T9DB folder (from csc.rfs file)
- AxT9IME.apk and AxT9IME.odex (from system.rfs file in app folder)
- touchwiz.xml (from system.rfs file in etc->permissions folder)
- libdhwr.so and libXt9core.so (from system.rfs file in lib folder)


first deodex your AxT9IME.apk (see post #2)
make a flashable zip file and put stock files like this: (or use attachment zip file and delet my files and put your files.)

- T9DB folder in: yourzip/system/
- touchwiz.xml in: yourzip/system/etc/permissions
- libdhwr.so and libXt9core.so in: yourzip/system/lib
- deodex AxT9IME.apk in: yourzip/system/app

move zip file to SDcard and reboot to recovery(CWR) and select "install zip from SD". after install go to advanced menu and wipe dalvik cache.
finish! now reboot and use Samsung keyboard with your language.

# if your rom is odex (like emanoN) go to system/app with root explorer, find AxT9IME.apk and AxT9IME.odex and add ".bak" to end of two files then reboot to recovery.#

meddel east rom keyboard with this languages:
English(US)-English(GB)-France-Arabic-Persion-Urdo-Korean (all rom have english and Korean)

Download
The Following 8 Users Say Thank You to adib_17 For This Useful Post: [ Click to Expand ]
 
adib_17
Old
(Last edited by adib_17; 2nd February 2012 at 08:10 AM.)
#2  
adib_17's Avatar
Senior Member - OP
Thanks Meter 85
Posts: 161
Join Date: Dec 2011
Default How to deodex ...

Install Java Runtime Enviroment on your PC.
Download backsmali.jar and smali.jar from attachment.
Make a folder like edit in root of a drive (ex: C:\edit )
Put backsmali.jar and smali.jar files in this direction.
You need 7 odex file from stock framwork:
- android.policy.odex
- bouncycastle.odex
- core.odex
- core-junit.odex
- ext.odex
- framework.odex
- services.odex
Put all files in "edit" folder. Now put AxT9IME.odex file in this folder.
Run windows cmd (go to start menu, Run... and type cmd and then enter)
First line go to "edit" folder by insert this commend : (you can copy and past this comment from here)

Code:
cd\edit
Next, insert this line for backsmali AxT9IME.odex :

Code:
java -jar baksmali.jar  -x AxT9IME.odex
Now you have a out folder. Don't touch it.
Insert this commend for smali your work :

Code:
java -jar smali.jar out
Now in "edit" folder you have a file like this: out.dex
Rename file to classes.dex , open your AxT9IME.apk with winRar (or any program like this) push your .dex file to .apk file ... WooW, now you deodex your fist android system app.
Attached Files
File Type: zip smali tools.zip - [Click for QR Code] (2.16 MB, 286 views)
The Following 2 Users Say Thank You to adib_17 For This Useful Post: [ Click to Expand ]
 
mor_1228
Old
#3  
mor_1228's Avatar
Senior Member
Thanks Meter 198
Posts: 801
Join Date: Oct 2010
Location: Delhi
mate i extracted AxT9IME.apk and its odex version from a custom rom ( original keyboard ) and want to paste in another custom rom i.e carbon so what step i need to skip as i have already these files.
or should i flash with ur zip file ?
do i need to delete old keyboard files from my carbon rom ?
******************************************




Xperience.cyanogen [Team]

[TUT]How to Port Samsung keyboard from stock Rom to Custom Roms

FIX MD5 mismatch error in 20 seconds


 
adib_17
Old
(Last edited by adib_17; 5th February 2012 at 02:52 PM.)
#4  
adib_17's Avatar
Senior Member - OP
Thanks Meter 85
Posts: 161
Join Date: Dec 2011
you can delet old files but have a copy off that for backup ( or add .bak to end of the old files.)
my zip file only Arabic, Persian and urdo, make your keyboard zip file. first deodex your AxT9IME.apk you want to have in your rom-very important to deodex this file.
then make a flashable zip file and flash it from CWR.
(if you don't know how to created zip file download my zip file but delet inside files and put your files, if you can make it skip downloading my zip file.)
The Following User Says Thank You to adib_17 For This Useful Post: [ Click to Expand ]
 
mor_1228
Old
(Last edited by mor_1228; 5th February 2012 at 03:32 PM.)
#5  
mor_1228's Avatar
Senior Member
Thanks Meter 198
Posts: 801
Join Date: Oct 2010
Location: Delhi
flashed ur zip but got 1 problem :



this is original key board :





this is ur keyboard, keys not visible :



******************************************




Xperience.cyanogen [Team]

[TUT]How to Port Samsung keyboard from stock Rom to Custom Roms

FIX MD5 mismatch error in 20 seconds


 
adib_17
Old
#6  
adib_17's Avatar
Senior Member - OP
Thanks Meter 85
Posts: 161
Join Date: Dec 2011
Quote:
Originally Posted by mor_1228 View Post
flashed ur zip but got 1 problem :



this is original key board :


this is ur keyboard, keys not visible :

1- your shot say your phone is 480X320 lcd (like galaxy ace) here for galaxy mini user.
why you flash galaxy mini package on other phone?
2- you don't need flash my zip file only put your stock rom files in zip file. all file like: apk-xml-lib and T9DB folder. it,s work for me very good!
The Following User Says Thank You to adib_17 For This Useful Post: [ Click to Expand ]
 
mor_1228
Old
#7  
mor_1228's Avatar
Senior Member
Thanks Meter 198
Posts: 801
Join Date: Oct 2010
Location: Delhi
bro u extracted stock files from which format as i have original rom in MD5 format.
if u got another format kindly tell me the source. thank you.
******************************************




Xperience.cyanogen [Team]

[TUT]How to Port Samsung keyboard from stock Rom to Custom Roms

FIX MD5 mismatch error in 20 seconds


 
adib_17
Old
(Last edited by adib_17; 6th February 2012 at 05:26 AM.)
#8  
adib_17's Avatar
Senior Member - OP
Thanks Meter 85
Posts: 161
Join Date: Dec 2011
Quote:
Originally Posted by mor_1228 View Post
bro u extracted stock files from which format as i have original rom in MD5 format.
if u got another format kindly tell me the source. thank you.
right click on MD5 file and select open as. select winRAR and open file. drag and drop system.rtf file on your desktop. do this way for csc.rtf.
open csc.rtf file with "magic iso" or "ultra iso" progeram. drag and drop T9DB folder on your desktop.
open system.rfs file, go to app folder and drag and drop AxT9IME.apk and AxT9IME.odex. then go to lib folder and find "libdhwr.so" and "libXt9core.so". copy to desktop. go to etc folder then go to permissions folder and find touchwiz.xml file and copy on desktop.
for deodex AxT9IME.apk , see post #2 : for that 7 files you need, go to framework folder. you find some odex file find:
- android.policy.odex
- bouncycastle.odex
- core.odex
- core-junit.odex
- ext.odex
- framework.odex
- services.odex
files and drag and drop to your desktop.(use smali tools at post #2 for deodex)
The Following 2 Users Say Thank You to adib_17 For This Useful Post: [ Click to Expand ]
 
mor_1228
Old
(Last edited by mor_1228; 6th February 2012 at 08:20 AM.)
#9  
mor_1228's Avatar
Senior Member
Thanks Meter 198
Posts: 801
Join Date: Oct 2010
Location: Delhi
A problems :

1 file is in rfs for not rtf as u said.





2 cant find T9DB folder in csc.rfs





B sucess :

found all 12 files like

android.policy.odex
- bouncycastle.odex
- core.odex
- core-junit.odex
- ext.odex
- framework.odex
- services.odex

AxT9IME.apk and AxT9IME.odex

libdhwr.so" and "libXt9core.so

touchwiz.xml









successfully done found T9DB folder it was in recovery folder: it was deep inside folders. but now how to make flashable zip file bro ?
******************************************




Xperience.cyanogen [Team]

[TUT]How to Port Samsung keyboard from stock Rom to Custom Roms

FIX MD5 mismatch error in 20 seconds


 
kitrax59
Old
#10  
kitrax59's Avatar
Senior Member
Thanks Meter 557
Posts: 1,302
Join Date: Dec 2011
Quote:
Originally Posted by mor_1228 View Post
A problems :

1 file is in rfs for not rtf as u said.





2 cant find T9DB folder in csc.rfs





B sucess :

found all 12 files like

android.policy.odex
- bouncycastle.odex
- core.odex
- core-junit.odex
- ext.odex
- framework.odex
- services.odex

AxT9IME.apk and AxT9IME.odex

libdhwr.so" and "libXt9core.so

touchwiz.xml









successfully done found T9DB folder it was in recovery folder: it was deep inside folders. but now how to make flashable zip file bro ?
Does it really need to be BIG and BOLD and RED??????

 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...