(for xposed)how to deodex stuck rom using apktool on android - Android Q&A, Help & Troubleshooting

Hello,
I have lollipop stuck firmware.(i do not have computer nowadays) so i installed apktool on android.
i want to install xposed but my rom is odexed.apktool decompile and recompile certain files.
which files have i to decompile it(there aredex-oat-apk-jar)? And after decompile,what have i to do with processed files and what is next to xposed work propeaply on phone?
Note that threads and google serches (as i have found)teach just how to install apktool on android and decompile files but there are no steps what is next?!
Thank you.

Related

Framework for apktool

what's the framework-res.apk to use to decompile apks in apktool? i can't decompile even one apk because it says the framework installed is wrong.
also maybe can someone attach the original stock settings.apk for lww?
:thanks:
patz0110 said:
what's the framework-res.apk to use to decompile apks in apktool? i can't decompile even one apk because it says the framework installed is wrong.
also maybe can someone attach the original stock settings.apk for lww?
:thanks:
Click to expand...
Click to collapse
The framework-res.apk you need to install is the one which comes with your rom. You may need to install some other files as well, depending on which files you're trying to decompile.
Best thing to do is go through your system/app and system/framework folders and install everything with the word 'res' in the name. You might install some files you don't need, but this won't cause any harm and it will ensure you've installed all the resources available.
Solved by installing SemcGenericUxpRes.apk
closed

Decompile apk error

I am trying to make default theme for xperia neo v
Using apktool, decompiling defaultthemes.apk file during the process i get this error.
in the above image its home.apk, which i was just trying to decompile i get this same error for defaultthemes.apk too
can anyone give proper tutorial to decompile any apk file..
apk is from which android version ? because till ICS de-compiling and re-compiling apks works fine, but not for JB apks. I dont know the correct method though.
Everywhere i just got one answer. : update android sdk. Get ADB, AdbWinApi.dll and AdbWinUsbApi.dll from platform tools and update Apktool, then it should work fine. but didn't worked for me, better try on linux system

[Q] What exactly are "SystemUI.apk" and "framework-res.apk"

I have use apktool to decompile an apk and made some customizations on it, there after recompiled it back using the same apktool. But for recompiling SystemUI.apk and framework-res.apk files were needed, anyway i downloaded it from some sites and now the recompiling has done successfully. So i need to know what exactly are these apk's and where to get these apk? I had googled it several times but did't got a right answer, all i understand is that both that apk's are part of rom.

[Q] Modifying APKs - wont install

I'm looking for a little bit of guidance. I want to modify some apps but when I do I can't seem to get them working on devices.
I am happy with the use of APK tool and zipaling, and have successfully modified my SystemUI.apk but when I try to mod apps it does not work.
I have tried modding the apk in data/app and just replacing the file and tried modding the downloaded apk and try to install.
My process:
Decompile (APKtool)
Mod
Recompile (APKtool) - with errors
I add the files from the original APK that errored during recompile with 7zip
Zipaling
Transfer back to the device
Devices
Samsung S3 mini & Nexus 7 - both running stock rooted JB 4.1.1
You need to sign the apk before you can install them. Get the signapk.jar and either get the test keys or make your own keys. Once the zip is final (after 7zip) sign the apk and then do a zipalign.
Unless you are sure that the compilation errors are serious, consider fixing them.

stuck on logo after unpack and repack secsetting.apk from system

i unpack and edit and repack secsetting.apk from system folder and replace with root explorer and give right permissions, setting worked until phone not restarted, when i restart phone goes to logo and stuks on logo
i unpack and repack secsetting.apk by apktool last version 2.4.1,and just edit string.xml in xml folder and device_setting_info.xml in values folder
the secsetting.apk is successfully unpack and repack without any error
do my unpack and repack have a problem? or something else?
I just edit strings and add menu in phone about
i found service.jar and recompile and replace this code with original code in PackageManagerService.smali :
.method static compareSignatures
.locals 7
const/4 v0, 0x0
return v0
.end method
and problem solved and phone boot up, but secsetting2.apk not working say has stopped after recompile
any solution is there?
What are you actually trying to achieve?
danwood76 said:
What are you actually trying to achieve?
Click to expand...
Click to collapse
my phone is samsung a5108 (china version a5 2016) running official android 7.1.1
i want add about menu in setting by this guide:
https://forum.xda-developers.com/showthread.php?t=2341389
i have no problem in unpack and repack "secsettings.apk" on android 6.0.1, every things work fine
but problem in android 7.1.1 sdk 25
setting apk in android 7.1.1 is "secsetting2.apk"
when i add options and repack "secsetting2.apk" and put in priv-app in system folder by root explorer and set permissions like other apps(0755 for folder and 0644 for apk)
it is working fine and added options is ok until reboot phone but after reboot say settings keep stopped
i use APK Easy Tool v1.57:
https://forum.xda-developers.com/an...tool-apk-easy-tool-v1-02-windows-gui-t3333960
i use aapt2 to compile(without use aappt2 cannot compile)
and install framework-res and samsung-framework-res from framework folder
i tested by keep original sign in APK Easy Tool v1.57 setting it still has a problem
even unpack and repack without any change in xmls it still has a problem too
i think problem is in compile method or sign apk in android 7.1.1
i uploaded original secsettings2.apk and frameworks here:
https://gsmonline.ir/apk/
please help, i need this ???
asadace1 said:
please help, i need this
Click to expand...
Click to collapse
I don't have much experience in doing this.
Maybe the logs show you what error you are getting?
Are you able to simply decompile and then recompile/resign without making changes?
Regards,
Danny
danwood76 said:
I don't have much experience in doing this.
Maybe the logs show you what error you are getting?
Are you able to simply decompile and then recompile/resign without making changes?
Regards,
Danny
Click to expand...
Click to collapse
thanks for answering
yes i can decompile and recompile and resign on android 6.0.1 without any problem
in this android 7.1.1 when i recompile and compile secsetting2.apk(samsung android setting application)
the application not worked after add to system/priv-app and was stopped
how can i recompile correctly android 7.1.1 system apks??
if you have link please share to me
i think no way to decompile and recompile for secsetting2.apk from android 7.1.1 at this moment
i tesed many ways to decompile and recompile and didn't succeed and apk not working after recompile
but that is work in android 7.0
i search on xda forums and found many developers worked on a5 2016 and nobody port rom for a5108 or all available links are removed
i just need to edit secsetting2.apk
someone among all these developers not help?:crying::crying:
i finally managed to solve this problem. and compile and recompile system/priv apps and edit and work without any problem
i will explain all of this for android 7.1.1 in new thread as soon as passible:
1- how to deodex odex or oem roms(samsung sony lg) running android 7.1.1
2- how to full disable check signature for currently working edited system apks(if not fix this, phone stuck on logo or apk has been stoped)
2- how to decompile and recompile apk without problem
 for android 7.1.1 system or none system apks
3- how to add about menu and owner image in secsetting
2.apk
4- how to replace updated system apps or add apk to system folder in oem roms

Categories

Resources