How to add a new smali file in an apk - Android Q&A, Help & Troubleshooting

As the title says in using vts to edit an apk but i need to add a new smali if its possible

Related

howto de/compile systemui.apk without any error

Hello,
I wanted to de/compile the systemui.apk and got errors.
I installed framework-res.apk with apktool.
After installation I used apktool (Win7) and decompiled the systemui.apk.
But I got the same errors as many others have gotten them.
brut.blahblahblah..
So I tried other apktool.jar (apktoolICS.jar) and it worked fine!
I opened the new systemui folder and there are the following folders:
res and assets
no smali folder. is it right and normal?
Because the compiling with old apktool (not apktoolICS) didn't work, I compiled with the ICS file and it worked. I got the translation message (airplane_mode).. Not interesting for me atm.
When I look at the new built systemui.apk, I wondered about the file size.
The new file: 1.009kb
The old file: 1.338kb
I signed the new file. Now the file size is 1.044kb.
I edited only a xml file (styles.xml)..
The file didn't work on the sgs2..
Could someone tell me what I did wrong?
Please help me
Best regards
Marcus
*push* after moving to correct section
maybe no need to sign your new file,
try to drag the META-INF folder and the AndroidManifest.xml from the older file to the new file you build
BTW, is your old systemui file a deodex one?
if no deodex, the smali code wil include in the odex file~

Request. Theme edit

Is there any method to replace only the clock in the theme from other theme?
Yes, you can edit the Flips and the numbers only. All you have to do is decompile the apk with M10 tools and find and copy all the images from the clock flips and the numbers, copy them to a folder, close project, open the new skin you want to edit, decompile with M10 again and replace all the images you want, compile it again and then with APK Tools you have to sign the apk.
done! thanks to luis4ever!!!!

[DEV][REQ]Decompile systemui.apk

Hello, i would like to modify this systemui.apk but everytime i decompile and then recompile the apk it is no longer functional and is of a smaller size.For example, i decompiled and recompiled the apk without any modifications and then signed it but the file was 2.25mb instead of 2.53mb and didn't function
so can you please decompile the apk and recompile the apk, if it is about 2.5mb please upload the decompiled folder
I have uploaded the systemui.apk nd framework-res.apk
thank you

Can't edit systemui.apk in Alcatel flash6042d

Hi I was trying to decompile and edit xmls in systemui.apk but after decompiling the folder does not have "res" folder contains the xmls so I searched around and found out that the xmls were in systemui-res.apk present in custpack/jrd_custres/apk so I tried to decompile it after trials and errors I decompiled KT and edited the xmls but then while recompiling I get error messages like android manifest not present though they weren't from the start.
So please can anybody help me with this I wanted to remove the transparent codes in status bar_expanded .
Plzzz help

Framework-res.apk editing modul

Hey guys, does exists any Xposed framework module for editing Framework-res.apk?
Or any other?!
I know about Privset, but it does not edit directly xml files or compile it to readable form.
Thanks!

Categories

Resources