[Q] deodexed framework.jar with odexed rom?? - Android Q&A, Help & Troubleshooting

I just want to deodex the framework.odex to a full framework.jar file on my stock Samsung rom. Not my entire rom.
If I I only deodex the framework file without deodexing the entire rom, will my phone still work like this??
I am not worried about what happens to the /system folder as I can re-flash it w/ Odin but this is a pain in the a** as I will need to root and make all my root based changes all over again.
Can someone please help me with this?? I have spend hours trying to convert my framework.odex to a framework.jar and every single method and tool that I have found online has given some kind of error every time. I do not want to spend any more time on this unless I know it will even work with the device.
Thanks.

Related

[Q] Modifying smilies in LatinImeGoogle.apk

I've seen previously that you can modify 'more_keys_for_smiley' in LatinIME.apk to modify the predefined smilies in the keyboard ( http://forum.xda-developers.com/showthread.php?p=23362533 ).
I'm trying to do this for LatinImeGoogle.apk.
I've got it decompiled with apktool, but I can't seem to find where 'more_keys_for_smiley' is defined to change it. The only reference to it inside of that apk is in key_styles_common.xml where it has:
<key-style latin:moreKeys="!text/more_keys_for_smiley" latin:backgroundType="functional" latin:keyOutputText=" " latin:keyLabel="" latin:keyLabelFlags="hasPopupHint" latin:styleName="enterKeyStyle" />
Can anyone help me locate more_keys_for_smiley so I can modify it? Does the "!text" refer to a different package?
Thanks in advance for any help.
Ok, thanks to someone's help I was able to figure out that the string is now located in the odex file for the keyboard. I was able to deodex LatinImeGoogle.odex using baksmali and edited the file com/android/inputmethod/keyboard/internal/KeyboardTextsSet.smali. I then used smali to recreate the odex file, but pushing it to my device and rebooting causes the keyboard to not load. Do I need to do anything special with this new odex file?
I tried following tutorials ( http://forum.xda-developers.com/showthread.php?t=1208320 ) and using automatic batch scripts ( http://forum.xda-developers.com/showthread.php?p=31360029 ) for recreating the new odex file and copying the signature from the old one, but I could not get it to work. At best I got the keyboard to load and instantly crash, at worst it wouldn't even load the keyboard upon boot.
Anyone want to offer some advice or take a stab at this?
Seems like your doing exactly what i'm trying to accomplish, and had success, so i'm gonna ask a couple questions, but first some background info.
I'm using a (Verizon) Galaxy Nexus, CM10.1 Clockwork Recovery, GAPPS. (no custom Kernels, etc)
I'm a windows guy, definitely a noob to linux, i'm comfortable following the more complicated instructionals, but traveling off the beaten path is difficult for me.
I was able to use apktool tool to decompile Latinime.apk, and i found KeyboardTextsSet.smali, and the smileys i want modified.
Is it as simple as recompiling and installing it? (remove/uninstall keyboard via TitaniumBackup first?)
You refer to a LatinImeGoogle.odex, is this only relevant to someone using an odexed rom?
I appreciate greatly any assistance you are able to provide!:good:
PrettyPistol555 said:
Seems like your doing exactly what i'm trying to accomplish, and had success, so i'm gonna ask a couple questions, but first some background info.
I'm using a (Verizon) Galaxy Nexus, CM10.1 Clockwork Recovery, GAPPS. (no custom Kernels, etc)
I'm a windows guy, definitely a noob to linux, i'm comfortable following the more complicated instructionals, but traveling off the beaten path is difficult for me.
I was able to use apktool tool to decompile Latinime.apk, and i found KeyboardTextsSet.smali, and the smileys i want modified.
Is it as simple as recompiling and installing it? (remove/uninstall keyboard via TitaniumBackup first?)
You refer to a LatinImeGoogle.odex, is this only relevant to someone using an odexed rom?
I appreciate greatly any assistance you are able to provide!:good:
Click to expand...
Click to collapse
Yes, you should be able to modify KeyboardTextsSet.smali and then recompile and install the keyboard. I never achieved any success because I'm on an odexed ROM and couldn't get reodexing to work properly.
Tried but no joy, then realized it could be because the apk was from a previous nightly (couple days) than the one currently installed. Crossing my fingers that it's the reason it didn't work.
I'll try again.
sent from my vzw Galaxy Nexus / CM10.1 (nightlies)

[Q] Modifying odexed framework

I have an SGH-i547c running stock rom. This is what I prefer. Needless to say, it is odexed
I needed to edit the AudioService.smali file in the framework.odex
I figured out how to deodex framework.odex and edit the AudioService.smali file from the "out" folder
I also figured out how to odex the folder back into a framework.odex file without any errors.
However, the original framework.odex file is 8502KB and the edited and re-odexed version is 8034KB and it does not work on my device. The device failed to boot after replacing with the smaller file..........I had to re-flash the stock /system with Odin as I could not gain enough permission to push the original framework.odex I had backed up, back to the device using ADB through stock recovery or download mode.
I only changed a couple values in the AudioService.smali file yet I tried re-odexing several times and the output file was always smaller than the original and would not work on device.
I found some tutorials on this online and I find them not very well explained, complicated and not specific to what I am trying to do.
What did I do wrong??
Can someone explain to me how to do this properly without having to go get a degree?
Thanks

Deodexing

I've no idea how should I deodex my C5 Ultra. Some tools here at XDA requires odexed ROM to deodex. I have no idea how to find a prepared deodexed ROM or stock ROM's ".zip" file. Long story short I can't reach to ".zip" of stock ROM and there is no ROMs and I want to deodex. What can I do? Go easy on me I root but I don't develop so I feel like a noob here at XDA.
UPDATE: Extracting system/app, system/priv-app and system/framework and deodexing it with LBD 2.5 and flashing it with an update.zip kind of thing leads phone to bootloop. (actually it got stuck at sony logo not the animation)
Getting the apks to the folders with "Root Explorer" doesn't work either. So I've tried everything I could except pushing the ".apk"s with adb. But I'm almost sure that isn't going to happen either.
I would like some guidance. Only thing that was on the phone is xposed. (after second try I used xposed uninstaller to remove it) So I have no idea what is preventing the phone from booting. And I also have no idea how to check logs etc.

[Q] Deodexing an 7.0 ROM with vendor folder?

Hello everyone, I'm having a bit of a problem here.
I have a ROM, a stock ROM that has a vendor folder with /app, /priv-app and /framework along with some other folders in it.
I'm trying to deodex that very ROM. It's a 7.0 ROM.
I've tried different tools, different ways... Copying the app, priv-app and framework to same folders in root of /system, deodexing, flashing... doesn't work.
Tried to copy it, deodex it and then copy the very same files back to vendor, then flashing... kindda works, but brakes like half the the OS.
So what I'm wondering is, is there any tool that deodexes the vendor folder too?
This is a ROM for a phone that is not very popular, that has no sources available to make a custom Lineage or something so my best way would be to debloat it, deodex it, have magisk and xposed on it and have it run smooth. I've got magisk but need deodex to make it xposed capable.
Please, any ideas on how to deodex this kind of ROM?
Thanks in advance!
Can anybody give any advice with what I should try and how?
Really, no one? Is it impossible or what? Just give me some guidelines...

Deodex - odex. Just one jar. Possible?

Hello. Lets assume I have odexed firmware. There's no trouble at all to deodex apk files without deodexing the whole rom.
But what if I want to deodex jar file (Android-telephony.jar), make some changes, then odex it and run normally changed code?
What are the requirements? Is it possible
Long ago it was possible via check summ replacement in hex editor.
But now there're oat files, arm64 folders...
Anyway, Is there a guide or something?
Thanks
Anyone

Categories

Resources