error in recomplie framework-miui-res.apk - HD2 Android Q&A, Help & Troubleshooting and Genera

hi every body
i decompiled framework-miui-res.apk to remove Chinese language but i got some error and if it done phone dosen't boot
can any one help me to remove Chinese language from this apk and re upload the apk
thanks

Did you re-sign the apk?
I recently decompiled and recompiled an apk using this guide.

Robbie P said:
Did you re-sign the apk?
I recently decompiled and recompiled an apk using this guide.
Click to expand...
Click to collapse
thank you but this is system apk no need to sign just replace META-INF and AndroidManifest.xml from original apk it works on framework-res.apk and any system apk
but my problem with recompile not sign

malakmagd said:
thank you but this is system apk no need to sign just replace META-INF and AndroidManifest.xml from original apk it works on framework-res.apk and any system apk
but my problem with recompile not sign
Click to expand...
Click to collapse
Sorry mate, didn't know that. Perhaps someone else may be able to help.

there is no any one for help

i founded another way i' try it

Related

[Q] How to sign Blur system apps

i have modificate blurphone.apk ( just a png file) and after this steps (Link) I have no network and fc.
Somebody can help me? I have read a lot of things about how to sign and modificate apps but nothing yet about Motorola blur system apps.
Thx
If you are modifying simple png picture then you can do it without decompiling and compiling, just extract with 7zip and modify them and install it back via flashable zip.
Did you tried to put the apk without signing ?
NITRO_100 said:
Did you tried to put the apk without signing ?
Click to expand...
Click to collapse
Yes. I have try to put png via 7zip then put apk in system, change permissions and move it in system/app.
i don't now how to do via flashable zip.
i will try again tomorrow.
Thx
resolved
NITRO_100 said:
If you are modifying simple png picture then you can do it without decompiling and compiling, just extract with 7zip and modify them and install it back via flashable zip.
Did you tried to put the apk without signing ?
Click to expand...
Click to collapse
I think i haven't followed well your steps, so i have tried again and now it's run.
Thx very much.

[Q]When we need copy file/folder from original apk after modified?

Sometime in mod guide.. we need to copy file/folder in original apk after modified... like androidmanifest.xml/classes.dex/etc.. so my question is when we need to copy it?
I only copy meta-inf and androidmanifest to the build folder (you need to compile the folder to get the build folder and then recompile again after placing files there) if im not resigning the apk
marcussmith2626 said:
I only copy meta-inf and androidmanifest to the build folder (you need to compile the folder to get the build folder and then recompile again after placing files there) if im not resigning the apk
Click to expand...
Click to collapse
so you want to say that if copy meta-inf and androidmanifest to modded apk, we dont need sign apk.. that what you mean?
EpullSalvatrucha said:
so you want to say that if copy meta-inf and androidmanifest to modded apk, we dont need sign apk.. that what you mean?
Click to expand...
Click to collapse
you only have to resign an apk if you edit the adroidmanifest
marcussmith2626 said:
you only have to resign an apk if you edit the adroidmanifest
Click to expand...
Click to collapse
But in this guide forum.xda-developers.com/showthread.php?t=2018688 the additional instruction said copy classes.dex from original unmodified apk and paste it in modified apk.. when this step is necessary?
EpullSalvatrucha said:
But in this guide forum.xda-developers.com/showthread.php?t=2018688 the additional instruction said copy classes.dex from original unmodified apk and paste it in modified apk.. when this step is necessary?
Click to expand...
Click to collapse
its not with apktool - iv never touched classes.dex
just resign the apk if it doesnt install

Cant Recompile Framework-Res.APK

So ive been trying to modify the framework-res.apk and i can decompile it but just cant recompile it, Even if i just decompile with no edits then re-compile it errors out with APKTool or XdaAutotool or apk multi tool. Anyone have an luck????
supercobaltss said:
So ive been trying to modify the framework-res.apk and i can decompile it but just cant recompile it, Even if i just decompile with no edits then re-compile it errors out with APKTool or XdaAutotool or apk multi tool. Anyone have an luck????
Click to expand...
Click to collapse
Are you using the S5 framework and twframework-res? Or perhaps you have an out of date decompiler. Did you copy META-INF and AndroidManifest.xml from your the old apk to the recompiled apk? It's hard to guess at the problem since you didn't give us crucial details on what tool versions and steps you used or exact error messages you saw. There are a number of threads on the subject, so do a search to see what is working for others.

N910F modding sysui help

Hi guys
I have decompiled systemui.apk and edited statusbar.xml not to show clock and battery. Recompiled and replaced original apk with the new xml and resources. copied back to system/privapp and set permissions. After reboot i get systemui error and no statusbar. Am i doing something wrong? Has anyone done this successfully. Rooted stock rom. Any help would be appreciated.
Thanks
M
mmoonsamy said:
Hi guys
I have decompiled systemui.apk and edited statusbar.xml not to show clock and battery. Recompiled and replaced original apk with the new xml and resources. copied back to system/privapp and set permissions. After reboot i get systemui error and no statusbar. Am i doing something wrong? Has anyone done this successfully. Rooted stock rom. Any help would be appreciated.
Thanks
M
Click to expand...
Click to collapse
What exactly trying to do ??
●•N910G (Nadia) ET•●
Trying to remove clock and battery icon from my statusbar
mmoonsamy said:
Hi guys
I have decompiled systemui.apk and edited statusbar.xml not to show clock and battery. Recompiled and replaced original apk with the new xml and resources. copied back to system/privapp and set permissions. After reboot i get systemui error and no statusbar. Am i doing something wrong? Has anyone done this successfully. Rooted stock rom. Any help would be appreciated.
Thanks
M
Click to expand...
Click to collapse
Chech each line you edited for a error. What tool fid you use to compile with? Make sure it is the newest.
Apktool. It decompiles and recompiles with no errors.

Edit the SystemUI_ZTE.apk?

Hi,
I want to edit the SystemUI_ZKE.apk, but when I use "APK Editor Pro" for instance the apk crashes after a reboot.
What would be the right way to do this? My goal is to delete the charging.ogg file that wakes my wife as I plugin a charger when I go to bed
Any other solution to *that* problem is welcome too.
I'm on a A2017G B06 btw.
Thanks in advance,
Cheers,
/Cacti
Edit: Sorry, wrong forum, should be posted in the Questions & Answers. @mods: please move it, thanks.
le_cactus said:
Hi,
I want to edit the SystemUI_ZKE.apk, but when I use "APK Editor Pro" for instance the apk crashes after a reboot.
What would be the right way to do this? My goal is to delete the charging.ogg file that wakes my wife as I plugin a charger when I go to bed
Any other solution to *that* problem is welcome too.
I'm on a A2017G B06 btw.
Thanks in advance,
Cheers,
/Cacti
Edit: Sorry, wrong forum, should be posted in the Questions & Answers. @mods: please move it, thanks.
Click to expand...
Click to collapse
You need to use apktool on Windows or Linux instead: https://ibotpeaches.github.io/Apktool/. You'll need Java already installed.
Your device also needs to be rooted and have TWRP recovery installed.
Put the apktool.jar and wrapper script in the system directory (C:\Windows on Windows)
Pull frameworks and SystemUI from your device with
Code:
adb pull /system/framework/framework-res.apk
adb pull /system/framework/framework-zte-res.apk
adb pull /system/priv-app/SystemUI_ZTE/SystemUI_ZTE.apk
Install frameworks to your computer:
Code:
apktool if framework-res.apk
apktool if framework-zte-res.apk
Decompile SystemUI_ZTE.apk:
Code:
apktool d SystemUI_ZTE.apk
Make whatever changes you want to make then recompile with:
Code:
apktool b SystemUI_ZTE
Use signapk.jar to sign the apk then put the apk into a flashable zip and flash to your device in TWRP.
If you want to make changes to smali you'll need to pull the SystemUI_ZTE odex file and deodex the apk with oat2dex and then use 7-zip or WinRAR to paste the classes.dex file into the apk before decompiling.
Gr8 tutorial. I'll try that tomorrow, hope I get it fixed. Thank you!
Cheers,
/Cacti
Sent from my ZTE A2017G using XDA-Developers Legacy app
Hi,
*
Earlier I tried with APK Editor Pro (https://play.google.com/store/apps/details?id=com.gmail.heagoo.apkeditor.pro)
What happened was (after replacing the SystemUI_ZTE.apk with the modified APK) after a reboot the system booted with parts of the UI nog working. Navigationkeys didn't work except for the home button, and I had no status bar at all. After rebooting again it only showed my wallpaper, and no matter what I did it wouldn't show me anything else. So I had to restore.
*
Modifying the APK with the APKTool gave me the exact same result. Only thing i did differently as to bkores guide was I signed it using ZipSigner (but that never failed me before) and I just replaced the file using TWRP, instead of flashing it through an installer zip. But I can't imagine that being the problem?
*
Anyways, anybody able to modify the SystemUI_ZTE.apk? All I need is the B06 (A2017G) with a replaced charging.ogg (with only silence).*Any tips are welcome.
*
TIA,
*
Cheers,
/Cacti
Sent from my ZTE A2017G using XDA-Developers Legacy app
le_cactus said:
Hi,
*
Earlier I tried with APK Editor Pro (https://play.google.com/store/apps/details?id=com.gmail.heagoo.apkeditor.pro)
What happened was (after replacing the SystemUI_ZTE.apk with the modified APK) after a reboot the system booted with parts of the UI nog working. Navigationkeys didn't work except for the home button, and I had no status bar at all. After rebooting again it only showed my wallpaper, and no matter what I did it wouldn't show me anything else. So I had to restore.
*
Modifying the APK with the APKTool gave me the exact same result. Only thing i did differently as to bkores guide was I signed it using ZipSigner (but that never failed me before) and I just replaced the file using TWRP, instead of flashing it through an installer zip. But I can't imagine that being the problem?
*
Anyways, anybody able to modify the SystemUI_ZTE.apk? All I need is the B06 (A2017G) with a replaced charging.ogg (with only silence).*Any tips are welcome.
*
TIA,
*
Cheers,
/Cacti
Click to expand...
Click to collapse
Try copying META-INF folder from old apk to new apk. If that doesn't work try copying resources.arsc from new apk to old apk and flash the old apk. Don't sign
Can it have anything to do with the .odex file?
I'll try the meta-inf thingy and see if that works
Cheers,
/Cacti
Sent from my ZTE A2017G using XDA-Developers Legacy app
Actually try this instead. I think the apk needs to be deodexed before it can be modified like you said.
Pull the odex file
Code:
adb pull /system/priv-app/SystemUI_ZTE/oat/arm64/SystemUI.odex
Get smali folder from the odex file with oat2dex.jar here: https://github.com/testwhat/SmaliEx/releases/tag/snapshot
Open command window in directory of odex file
Code:
java -jar oat2dex.jar smali SystemUI.odex
Decompile the apk and then copy and paste the smali folder into the directory of the decompiled apk.
Make your charging.ogg change and then recompile the apk. Copy and paste the META-INF from original apk to new apk.
Push apk to your device and delete the "oat" folder in the SystemUI_ZTE folder on your device.
Hi,
Thank you for your support so far, but that didn't work out eighter....
bkores said:
Code:
adb pull /system/priv-app/SystemUI_ZTE/oat/arm64/SystemUI.odex
Click to expand...
Click to collapse
Assuming you made a typo (since there is no SystemUI.odex) I used this instead:
Code:
adb pull /system/priv-app/SystemUI_ZTE/oat/arm64/SystemUI_ZTE.odex
bkores said:
Get smali folder from the odex file with oat2dex.jar
Click to expand...
Click to collapse
After the oat2dex command I don't have a smali folder, just 5434 smali files scattered over serveral folders, so I don't know how to proceed from there.
Cheers,
/Cacti
le_cactus said:
Hi,
Thank you for your support so far, but that didn't work out eighter....
Assuming you made a typo (since there is no SystemUI.odex) I used this instead:
After the oat2dex command I don't have a smali folder, just 5434 smali files scattered over serveral folders, so I don't know how to proceed from there.
Cheers,
/Cacti
Click to expand...
Click to collapse
Well then create a folder called smali in the directory of decompiled apk and paste the folders into smali
Can someone help me, i want to change framework.jar but there is no classes.dex in jar nor framework.odex in /system/framework/oat/arm64 (also arm). Because of it i can't decompile it with smali/baksmali tool. I want to change volume steps in AudioService exactly what VolumeSteps+ do but without Xposed. Any help? I'm on Nougat B10 Rom.
SkaboXD said:
Can someone help me, i want to change framework.jar but there is no classes.dex in jar nor framework.odex in /system/framework/oat/arm64 (also arm). Because of it i can't decompile it with smali/baksmali tool. I want to change volume steps in AudioService exactly what VolumeSteps+ do but without Xposed. Any help? I'm on Nougat B10 Rom.
Click to expand...
Click to collapse
Perhaps this can help a bit : https://forum.xda-developers.com/axon-7/themes/a2017-volume-steps-enabler-call-media-t3745747
If you want a decompiled framework, I can send you. Just pm me.
If you want I'll implement your mods and recompile again. Up to you to test
raystef66 said:
Perhaps this can help a bit : https://forum.xda-developers.com/axon-7/themes/a2017-volume-steps-enabler-call-media-t3745747
If you want a decompiled framework, I can send you. Just pm me.
If you want I'll implement your mods and recompile again. Up to you to test
Click to expand...
Click to collapse
I solved a problem, AudioService is not in framework.jar anymore, it's on services.jar. Check my post on your mentioned thread.

Categories

Resources