Tools needed: smali, baksmali (google them), a JDK, and an extracted factoryfs.rfs from an éclair ROM.
(If you don't have a linux machine to mount an .rfs file to a directory never forget that your device has linux on it, so it can actually mount the .rfs file to a directory)
First collect the files you need from factoryfs.rfs:
/app/AxT9IME.apk
/app/AxT9IME.odex
/lib/libXt9core.so (this is actually the same file that's inside the apk)
/lib/libDHWR.so
/framework/android.policy.odex
/framework/core.odex
/framework/ext.odex
/framework/framework.odex
/framework/services.odex
Copy all the odex files into the same directory as baksmali is. Disassemble it with:
java -jar baksmali.jar -x AxT9IME.odex
This should create an out directory, with the disassembled, and deoptimized files. Now reassemble them, with smali:
java -jar out
This should create an out.dex file. Rename it to classes.dex, and put it into the AxT9IME.apk (don't be fooled by the extension, it's a simple zip file)
Now copy the following files to your phone:
AxT9IME.apk --> /system/app
libXt9core.so --> /system/lib
libDHWR.so --> /system/lib
Remove the following files:
/system/app/AxT9IME.odex
/system/lib/libdhwr.so (this is lowercase. The above was uppercase. Case does matter!)
Now try to enable the samsung keyboard. If everything goes well then you can now use the old keyboard.
-----
Alternatively if you needed the keyboard from the XWJM8 version, you can download the result files from here: http://android.sztupy.hu/dl/SamsungKeyboardFroyo.zip
Thank you
can I use this method in order to replace framework.jar/framework.odex from another build?
JHJP4 support proper BIDI (for Hebrew/Arabic and other RTL languages)
And how do we do the opposite? Want 2.44 on eclair =)
Should work the same
omrij said:
Thank you
can I use this method in order to replace framework.jar/framework.odex from another build?
JHJP4 support proper BIDI (for Hebrew/Arabic and other RTL languages)
Click to expand...
Click to collapse
No, framework.jar is too much different between eclair and froyo. You can only port simple applications (in /system/app) this way.
dupel said:
And how do we do the opposite? Want 2.44 on eclair =)
Click to expand...
Click to collapse
It would only work if the new keyboard doesn't use anything FroYo specific (like gesture support, or enhanced multitouch support). If it does use froyo specific api functions it will break under eclair.
sztupy said:
No, framework.jar is too much different between eclair and froyo. You can only port simple applications (in /system/app) this way.
Click to expand...
Click to collapse
Both frameworks are from Froyo
just different version
JP4 framework has proper BIDI support
omrij said:
Both frameworks are from Froyo
just different version
JP4 framework has proper BIDI support
Click to expand...
Click to collapse
If framework.jar changes then all pre-optimized files (odex) have to be reoptimized (the same way as the tutorial above shows), and even after that it might not work...
hi can I ask a few questions. I don't know much about these complicated things, but I will try my best.
can we collect files you asked us from factoryfs, through root explorer.
you asked to copy file with capital letters to phone and then asked to remove same file name with small letters. can one directory have two files with same name?
and finally how would we copy files to the phone?
thanks.
Sent from my Nexus One using Tapatalk
pitsyapa said:
hi can I ask a few questions. I don't know much about these complicated things, but I will try my best.
can we collect files you asked us from factoryfs, through root explorer.
you asked to copy file with capital letters to phone and then asked to remove same file name with small letters. can one directory have two files with same name?
and finally how would we copy files to the phone?
thanks.
Sent from my Nexus One using Tapatalk
Click to expand...
Click to collapse
You can use rootexplorer to transfer the files to /sdcard modify them on the PC, tran transfer them back from /sdcard to their location.
thanks I really appreciate your help can I ask you another simple question. I have downloaded jdk.
and installed it. how do I use these commands to disessemble, java jar. is there any special java prograame. thanks.
thanks v much. problem solved. ported urdu keyboard from eclair to jpk. thanks again.
How do I know which files from /lib do I need to replace?
I'm trying to use contacts apk from other froyo rom
So, I tried the above instructions, and all I get is errors with bksmali, but i get the out directory, then when I run smali, it get another bunch of errors, but no out.dex. Any help would be amazing.
I haven't tried any of this other than trying to just install the AxT9IME.apk which obviously didn't work. I can enable it but trying to switch to it or access its settings instantly resorts in a force closure.
What I don't think I've seen mentioned is whether or not the end result of this allows you to have both the 2.2 and the 2.1 keyboards. Could anyone clarify for me if you get both or just the 2.1 keyboard in the end?
Lastly, would it be possible for someone to write an app (downloadable via market) for this keyboard for any android version? Because that'd be pretty awesome.
It'd be nice if it didnt create an app-drawer icon, but I wouldn't mind as Go Launcher allows me to hide unwanted apps.
I honestly like the 2.2 keyboard, but the 2.1 one (with its 4 pages) has symbols in on it that I have seen no where else, which is pretty cool and why I'm wanting it.
Sorry for my english.
I using SGS2 with stock firmware 4.0.3 no brand XXLPF, i unzipped the file SystemUI.apk but I can not read xml file.
I am using linux (gedit, vim) and windows (notepad++) and is impossible to change them seem encoded.
thanks
You need to decompile the apk and then the xml's will be readable and editable with notepad++
There's lots of threads with info but here's a good place to start http://forum.xda-developers.com/showthread.php?t=1433053
I found two *.so file in shared_prefs in my android device
and I want to ask if we can edit them
because I want to see what the file contains
libBugly.so and libagame.so
BrunoMM said:
I found two *.so file in shared_prefs in my android device
and I want to ask if we can edit them
because I want to see what the file contains
libBugly.so and libagame.so
Click to expand...
Click to collapse
Those are shared object library, containing functions other programs can call, you can disasemble them to see the assembly code, but i can't see a big interest in that...
How do I get folders for multi loader 5.67 help me please.
Fenny, in providing the write up to patch the libandroid_runtime files will no longer be patching the files himself.
The write up is way over my head (Especially as many of the hex values in the write ups don't appear in the files now, and it appears that at least one of the strings in the instruction sections have been moved to .rodata), so I'm wondering if someone who has successfully patched the files for themselves, would be so kind as to share them.
pTeronaut said:
Fenny, in providing the write up to patch the libandroid_runtime files will no longer be patching the files himself.
The write up is way over my head (Especially as many of the hex values in the write ups don't appear in the files now, and it appears that at least on of the strings in the instruction sections have been moved to .rodata), so I'm wondering if someone who has successfully patched the files for themselves, would be so kind as to share them.
Click to expand...
Click to collapse
I am looking for the same thing too, and found the same results that you did.
The files for PureNexus that Fenny posted in the main Suhide patching thread work for NMF26V stock.
https://forum.xda-developers.com/showpost.php?p=70473796&postcount=195
Trying to make some very minor changes to the ROM, and I just need the original "file_contexts" (NON-BIN VERSION) file for OP3 on 7.X (Nougat). Does anyone have a copy of it?
Summary: 7.X+ now uses .bin files ("file_contexts.bin"). I can't use this file with the make_ext4fs utility. I need to use the original format "file_contexts" file. If anyone could convert the attached .bin file (I don't know how, and professor Google doesn't yield any salient results), or if they have a file they know will work, please let me know.
Thank you!!!