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

Search This thread

GenomeX

Senior Member
Dec 5, 2011
373
241
Rasht
Redmi K20 / Xiaomi Mi 9T
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
 
Last edited:

GenomeX

Senior Member
Dec 5, 2011
373
241
Rasht
Redmi K20 / Xiaomi Mi 9T
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.
 
Last edited:

mor_1228

Senior Member
Oct 3, 2010
3,484
786
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 ?
 

GenomeX

Senior Member
Dec 5, 2011
373
241
Rasht
Redmi K20 / Xiaomi Mi 9T
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.)
 
Last edited:
  • Like
Reactions: bilel2301

mor_1228

Senior Member
Oct 3, 2010
3,484
786
Delhi
flashed ur zip but got 1 problem :



this is original key board :


screenshot1328388160421.png



this is ur keyboard, keys not visible :



screenshot1328455757521.png
 
Last edited:

GenomeX

Senior Member
Dec 5, 2011
373
241
Rasht
Redmi K20 / Xiaomi Mi 9T
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!
 
  • Like
Reactions: bilel2301

mor_1228

Senior Member
Oct 3, 2010
3,484
786
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.
 

GenomeX

Senior Member
Dec 5, 2011
373
241
Rasht
Redmi K20 / Xiaomi Mi 9T
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)
 
Last edited:

mor_1228

Senior Member
Oct 3, 2010
3,484
786
Delhi
A problems :

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

rfsu.png




2 cant find T9DB folder in csc.rfs


csc.png



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




donewy.png





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

kitrax59

Senior Member
Dec 11, 2011
1,500
735
A problems :

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

rfsu.png




2 cant find T9DB folder in csc.rfs


csc.png



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




donewy.png





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??????
 

mor_1228

Senior Member
Oct 3, 2010
3,484
786
Delhi
Done everything, replaced ur files with my files so no need to make new file, that file flashed successfully. but mater after restart i got this error and no keyboard was working i also renamed old keyboard to .bak


screenshot1328516102070.png
 
Last edited:

mor_1228

Senior Member
Oct 3, 2010
3,484
786
Delhi
yes mate added .bak to single file as my earlier keyboard was also deodex yes i deodexed my new file also u can see screenshot.

donewy.png
 

GenomeX

Senior Member
Dec 5, 2011
373
241
Rasht
Redmi K20 / Xiaomi Mi 9T
yes mate added .bak to single file as my earlier keyboard was also deodex yes i deodexed my new file also u can see screenshot.

okey one thing ... wipe dalvik cache with recovery/advanced menu if don't work send for me your update.zip file. i work on it!

hey, what about port stock camera to CM7 using this TUT?

no you can't ... use other cam apps like viganti or MIUI cam.
 
Last edited:

GenomeX

Senior Member
Dec 5, 2011
373
241
Rasht
Redmi K20 / Xiaomi Mi 9T

hi man, i see your patch. all thing is okey but you put wrong lib file! :eek:
you put "libhardware.so" file in lib folder.
you must put "libdhwr.so" in your patch! ;)
fix your patch, go to CWR and "wipe dalvik cache" then install your zip patch. :p

luky guy! you changed the hardware lib file and your phone work good! checke all your sensor... test all of them work?
 
Last edited:
  • Like
Reactions: mor_1228

yagya

Senior Member

Top Liked Posts

  • There are no posts matching your filters.
  • 11
    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
    7
    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.
    2
    This tutorial helps for older devices, can anyone help porting keyboards of Galaxy S2, S3, S4, Grand Duos etc. to custom ROMS running Kitkat. The tar package seems different from what is explained here
    2
    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)
    2
    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.

    See this video to find out how to extract .tar.md5 rom and take out system files from them. It also shows you how to extract .rfs files.
    http://yagyagaire.blogspot.com/2012/02/video-extracting-system-files-and.html

    :)