How to Decompile/Recompile System Apps from MTK Phones - Android Q&A, Help & Troubleshooting

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.

Related

[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

[TRICK] eror recompile setting.apk or other apk

Hi guys , have you ever try to editing some apk's like setting.apk with apktool mobile ? (I'm using apktool 4.4.1 ) , after editing that you think already right but when you recompile it you face some eror ?
Here I gave you some trick that maybe you can try to recompile some apk like setting.apk or other.
Locate the apktool.yml in your decompile'd apk's and open with text editor like aide or other , next see the "ids:" . Below that you will find some number . It usualy - 1 , now add - 2 below that . It will look like this
Ids :
- 1
- 2
Than save and recompile , done.
I already try that methode with other apk's and it work great . That's it hope it help you but if not and you still got some eror try to read the full log and find what you miss , I will not help you for that so try by your own
I'm using mtk 6582 running jb 4.2.2
Apktool 4.4.1 (aapt ver 1.5.2 / apktool 4.2)
Be kind enough to report if it work for you

[Q] Modifying Smali Code and recompile it.

I have read all the threads on the topic of decompiling APK file and recompiling it, and so far I am successful in decompiling and recompiling it.And now I want to make some changes in smali files like change package name and remove some features, But I don't know smali language, so Is there a way that I can convert smali files into Android JAVA project which I can import into Eclipse or I must have to learn smali language to achieve what I want.
Thanks in Advance
decompilerr said:
I have read all the threads on the topic of decompiling APK file and recompiling it, and so far I am successful in decompiling and recompiling it.And now I want to make some changes in smali files like change package name and remove some features, But I don't know smali language, so Is there a way that I can convert smali files into Android JAVA project which I can import into Eclipse or I must have to learn smali language to achieve what I want.
Thanks in Advance
Click to expand...
Click to collapse
It can be done with smali also ....
Only thing is you need to be tricky ....[emoji6]
Am not writing the procedure here coz changing package name doesn't sounds good for me [emoji1] I always respect efforts of original developers (some kangers always do change name and remove some features and claim the apk as theirs in generally am saying don't get hurted )
So I just want to confirm that changing package name and removing some features is possible via smali editing no need to convert the apk to java source .......
Press Thanks Button If You like My Work & Posts?

[Q] Ask Apktool Theming Stock Apps Lil confusing

hello everyone!
i just wanna ask...
i flash a deodexed stock rom (deodexed,pre-rooted)
and i start theming using apktool for android.
After modifying(e.g. Settings.apk signed with apktool for android) . it didn't shown up on my drawer
then i tried another method (Copying both orig META-INF and android manifest) then it shown up
I want to have tabbed settings.. but how can i make it if the modded app needs the original files (meta-inf and android manifest)..
some of my app are not working after recompiling and signing it with apktool for android...
it always need those files
i wonder how the devs makes changes on some system app
pls reply...
i need answers..

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