Apk patching - Android Q&A, Help & Troubleshooting

Hi guys, i'm pretty new to android apk patching and have been trying to learn it... Now the issue am facing is am trying to patch an apk file ( reversing the if then condition).
I decompiled it using apktool, found the target and edited it but on recompiling it, the resultant apk doesnt work... Is there a good tutorial on the detailed steps.. Also any other tool which has a better UI/ features.. Any help would be great... If needed can upload the apk for trial

Related

[Q] APK decompiler

hey can anyone help me out with this.
I want to decompile an APK and open it on eclipse so that i can modify it. is there any tools which can help me do it.
Thanks
Yes, just several days ago i've stumbled upon one russian article, that describes a process of decompiling a malicious software apk and analyzing the code. In short, what you will need is two things:
1) DEX to JAR converter ( dex2jar )
2) JAR code decompiler ( JD-GUI )
I haven't tried it myself, but the prcess should be relatively straightforward. Let me know how it goes.
hey thanks
Will let you know once i do it.

[Q] compiling systemUI and framework-res with apktool

Hi everyone
I wanna start modding and i have decompiled a systemUI.apk from an android 4 rom and I have replaced some png and xml files and every thing is done but i dont know how to compile it into an APK file to use it in rom
Can enyone help me?
by the way i have also changed the framework-res.apk but again i cant compile it

How to Decompile/Recompile System Apps from MTK Phones

Anyone knows how to Decompile/Recompile System apps from MTK phones?
I'm using apktool 1.5.2.
I can decompile like "SystemUI.apk"
But I can't recompile. Even I didn't edit anything yet.
Hope guys you help me. Specially those who have MTK phones. :crying:
EDIT: Problem solved! I just install mediatek-res.apk as resources too
WinchyHanepp said:
Anyone knows how to Decompile/Recompile System apps from MTK phones?
I'm using apktool 1.5.2.
I can decompile like "SystemUI.apk"
But I can't recompile. Even I didn't edit anything yet.
Hope guys you help me. Specially those who have MTK phones. :crying:
EDIT: Problem solved! I just install mediatek-res.apk as resources too
Click to expand...
Click to collapse
hey can you please help me in decompiling and recompiling systemui.apk ...I Have MTK device plz can you explain with steps.Thanks
mhp1995 said:
hey can you please help me in decompiling and recompiling systemui.apk ...I Have MTK device plz can you explain with steps.Thanks
Click to expand...
Click to collapse
Me also faced problem for decompile and compiling but this apktool solved
Just Google " Decompiling_Resources_21.3.2013 " and download it
extract it anywhere . open the folder containing apktool.jar then shift+ rightclick u wil get command promt window then type Install framework-res.apk using apktool if framework-res.apk
then decompile any apps . I hope this would help u .
is it possible SystemUI can NOT be recompiled due to some omitted frameworks/files?
Hi.
I hope somebody experienced in MTK modding can shed some light on my problems, cause I'm out of ideas..
I can't find a way to successfully recompile either framework-res or System UI in a "no-name" ROM on a MTK device (6572). I'm not an expert in modding, but I know my way around this subject and have successfully disassembled, modded and reassembled many MTK (and other) ROMs so far.. however - this one I just can't recompile w/o errors like this:
systemUI.mod/SystemUI/res/layout/system_bar_notification_panel_title.xml:14: error: Error: No resource found that matches the given name (at 'style' with value '@style/SystemBarNotificationText').
Click to expand...
Click to collapse
Ofc I installed all available (?) frameworks (in my case 2 apks in /system/frameworks: framework-res.apk and mediatek-res.apk, tried as many available tools as I could find here on XDA (automated, manual, different apktool versions, etc), but nothing "works". I've also scouted the whole file system for any additional, hidden, resources, but could locate nothing.
So - I can decompile anything, but can not successfully recompile none of the "system resources" (systemui, framework-res, mediatek-res).. my question is this - is it possible that these resources, that aapt is reporting missing, are actually omitted (missing) from the ROM?
Edit:
http://forum.xda-developers.com/showthread.php?t=2264380
search HARDER.

help please

hi
apktool works 100% with any apk i use it with only the following.
Pocket AMC Reader_1.9.1.apk
when i decompile and rebuild and sign the apk wont work at all. (even if i dont make any changes to it)
any help would be great.
i have included this apk as an attachment to see if anyone can help.

decompile SystemUI.apk

Hi guys,
I have a problem with my System.UI. I can't decompile it because I obtain always an error...in every programs (Tickle,Multitool...). I want to edit lines in .xml for my custom ROM.
However, with the Framework-res.apk or settings-apk it works perfectly. I don't understand...
So If someone could help me decompiling System-UI.apk with other method, I'd be very grateful to him
Of course I join two files (framework-res.apk and systemUI.apk) in attachment.
Thanks really
Bests regards
Nobody... ?
PLease
MAnopi said:
Hi guys,
I have a problem with my System.UI. I can't decompile it because I obtain always an error...in every programs (Tickle,Multitool...). I want to edit lines in .xml for my custom ROM.
However, with the Framework-res.apk or settings-apk it works perfectly. I don't understand...
So If someone could help me decompiling System-UI.apk with other method, I'd be very grateful to him
Of course I join two files (framework-res.apk and systemUI.apk) in attachment.
Thanks really
Bests regards
Click to expand...
Click to collapse
I have same problem. Hope to someone can help.????
Post the error log and maybe someone will help you. Posting the apks does nothing really.
Also if your making a custom rom but cant fix a simple error then you might want to rethink things.
Also if your building a custom rom then just edit the source before to compile the build.
Finally it works. Why ? I don't know lol
Maybe it is :
-I took systemUI.apk from stock ROM (yes i changed apk from stock ROM to try)
-or I deleted mediatek-res.apk of folder names ''other'' of APKmultitool

Categories

Resources