I've been trying to figure this one out, can I deodex only the framework or SystemUI and leave the system apk's alone? I just want to change a few things in the framework.
Why don't you just move your system apk folder to some other place from working dir in kitchen than deodex than move folder back to working dir.
Sent from my LG-P500 using XDA Premium App
Related
Can someone point me in the right direction to learn how to theme apps like Google plus, facebook and the market?
Thank you
adb pull /data/app/appname.apk or /system/app/appname.apk
Then use 7zip to extract the apk
Navigate to the res/drawable folder and edit the images there
Then put your changes back into the apk and either push or flash your themed app
You can get more advanced than that by decompiling the apk too
Sent from my PG86100 using xda premium
perfect! definitely a start.
thank you
Hi. How to manually edit
system/framework/framework-res.apk
And system/app/systemui.apk
Without using uot kitchen and change the icons of my sga stock rom.
Thank you.....
Sent from my GalaxyNexus using xda premium
search google: edit apk
Use Apktool or apk-multi-tools. with apk-multi-tools there you can use fitur for change/replace images without decompile apk.
Pull the apk from the phone using adb and rename the format to .zip . You should be able to replace file inside with the same names without issues. But please replace the right one. Etc you're mdpi, pls use mdpi images. And try not to edit .9 images. It may cause your phone to faint. Rename back to .apk after editing thn push it to phone through adb.
Sent from my GT-S5830 using xda premium
i dont think we can do it... like it possible but so difficult to understand java's bytecode
hey all, i'm starting to get into modding my atrix and i have some questions about modifying the system APK's. i've already deodexed /system/app and /system/framework with xUltimate. i'm using APK Manager in linux to decompile the APK's that i want to mod.
the problem comes when i compile the new APK and upload it to /system/app. the stock APK's are signed seemingly with a specific signature that the phone is looking for. APK Manager says to not sign the APK's that you intend to install to /system, but if you do choose to sign it, the certs that are used are not what the atrix is expecting. when i look for errors in logcat, its indicating that the package changed and that its trying to look for the matching cert within /data/secure.
how does one modify these system APK's, and keep the original signature intact? it looks like the manifest contains a sha1-digest signature of each file, which makes just copying/pasting the META-INF into the new APK not an option.
thanks in advance!
What I do is decompile to change xml's etc and then recompile without signing and then just drag the edited files from the new APK to the old one.
Sent from my MB860 using XDA
so does that mean it doesn't really matter that the sha1 signatures of the changed files dont get updated in the manifest?
is there not an agreed-upon method to do this that doesn't seem so "hacky" ?
Sent from my MB860 using XDA
I'm not sure mate. That's the way I found out how to do it and I've done translations and a few themes and framework-res systemui and settings have worked fine doing it the way I do it.
Sent from my MB860 using XDA
Is it necassary to sign systemui.apk? I made some changes to the file and now when i flash the ROM I get systemui force closes
Sent from my PG86100 using xda app-developers app
kevin130 said:
Is it necassary to sign systemui.apk? I made some changes to the file and now when i flash the ROM I get systemui force closes
Sent from my PG86100 using xda app-developers app
Click to expand...
Click to collapse
No, you don't ever want to sign system apps. Are you sure the permissions are correct? and what changes did you make?
I didn't put any permissions. How do I set them in the zip? And I change the 3g icon to 4g because I have virgin mobile so I can't get 4g but I want it to say 4g lol.
Sent from my PG86100 using xda app-developers app
Well if you are installing it with a zip permissions are probably correct. I'm assuming you decompiled the apk changed the icon and compiled it again? If all you want to do is change an icon, just open the apk with 7zip or similar and replace the icon, no need to decompile. That should solve it. Let me know
Okay. I'll try that and if I do decompile it, how do I set the permissions? Cuz i decompiled settings.apk and made a XML change.
Sent from my PG86100 using xda app-developers app
kevin130 said:
Okay. I'll try that and if I do decompile it, how do I set the permissions? Cuz i decompiled settings.apk and made a XML change.
Sent from my PG86100 using xda app-developers app
Click to expand...
Click to collapse
You would set permissions if you are just pushing the apk to your phone. Better question, how exactly are you installing the apk after you made the changes?
I just replace the old apk in the zip file and flash the ROM.
Sent from my PG86100 using xda app-developers app
ok, then the updater-script in the zip is handling the permissions for you, so you don't need to worry about that.
So there is no need to sign anything at all? Awesome.
Sent from my PG86100 using xda app-developers app
Apps in /system/app/ never get singed, apps in /data/app/ however have to be signed.
Alright. Thanks.
Sent from my PG86100 using xda app-developers app
Android commander... http://androidcommander.com/
great tool you should use when first dealing with androids..
you can delete/pull/push files to your phone there also apk backup which backs up your apps from the play store.. just a great program to have in your PC.
no problem, let me know if you still need help or get it working
Hi I'm also trying to learn modifying systemUI.apk through smali edits
So as a start I just decompiled my systemUI.apk with apktool v1.5.2 with no errors. Then directly recompiled it. No modifications made. The resulting apk didnt have any META-INF folder and thus I suppose is unsigned. But pushing this apk to /system/app doesn't install it.. As a result after reboot I have no installed systemUI.apk
What am I doing wrong? BTW I'm on Sony xperia live with walkman. But I suppose this is a general thing. And yes I have installed all framework files and as a result no errors while de/recompiling
havocgb said:
Hi I'm also trying to learn modifying systemUI.apk through smali edits
So as a start I just decompiled my systemUI.apk with apktool v1.5.2 with no errors. Then directly recompiled it. No modifications made. The resulting apk didnt have any META-INF folder and thus I suppose is unsigned. But pushing this apk to /system/app doesn't install it.. As a result after reboot I have no installed systemUI.apk
What am I doing wrong? BTW I'm on Sony xperia live with walkman. But I suppose this is a general thing. And yes I have installed all framework files and as a result no errors while de/recompiling
Click to expand...
Click to collapse
The best way in case of small edits is to open both your stock and your modified SystemUI.apk with 7-zip, then copy the META-INF and AndroidManifest.xml from the stock to the modded one.
Close both and push back your modded one to the phone.
Guess that work.
pquinqu said:
The best way in case of small edits is to open both your stock and your modified SystemUI.apk with 7-zip, then copy the META-INF and AndroidManifest.xml from the stock to the modded one.
Close both and push back your modded one to the phone.
Guess that work.
Click to expand...
Click to collapse
Well now I use APK Multi-Tool and it works great. From what I have understood it keeps the same signatures as in the original SystemUI.apk and there is no need of any resigning.
i wanna delete bootloader inscription in power menu i decomplite framework go to values and delte this then i complite framework and put to phone but when i restart phone i have bootloop i use apk-multi tool some on can help me?
Can you be more specific about what you modified?
Sent from my E10i using xda app-developers app
i decomplite framework and move to res values/arrays and i have
<string-array name="ff_shutdown_reboot_options">
<item>Reboot</item>
<item>xRecovery</item>
<item>ClockWorkMod</item>
</string-array>
<string-array name="ff_shutdown_reboot_actions">
<item></item>
<item>xrecovery</item>
<item>clockworkmod</item>
</string-array>
</resources>
and i wanna delete this xrecovery options or in another framework instead xrecovery i have bootloader because i try delete it in two diffrent framework and i have bootloop in both cases
Are you pushing your apk back to the phone as soon as it's recompiled? That will cause a bootloop every time.
Sent from my SK17i using xda premium
Ye i push framework to sd card then i use root explorer and move to system folder set permissions and put to framework and reboot
oxu said:
Ye i push framework to sd card then i use root explorer and move to system folder set permissions and put to framework and reboot
Click to expand...
Click to collapse
Thought so. You're missing a step. You need to ensure the new apk is correctly signed and compressed properly.
There's a sticky in the themes section with instructions about what to do.
And it's worth mentioning that Tickle My Android can do this for you...
Sent from my SK17i using xda premium
Ticklefish said:
Thought so. You're missing a step. You need to ensure the new apk is correctly signed and compressed properly.
There's a sticky in the themes section with instructions about what to do.
And it's worth mentioning that Tickle My Android can do this for you...
Sent from my SK17i using xda premium
Click to expand...
Click to collapse
Signed?? afte complite in apk multi tool you dont't need to singn framework something is wrong with complite because when i editing files which are visible before decomplite and after cmplite I replace it in orginal framework everything is ok
oxu said:
Signed?? afte complite in apk multi tool you dont't need to singn framework something is wrong with complite because when i editing files which are visible before decomplite and after cmplite I replace it in orginal framework everything is ok
Click to expand...
Click to collapse
I don't use apkmultitool so I don't know what the dev has put in the program but apktool will always compile apk's with a compressed resources.arsc file and without the correct META-INF folder.
If your changed files work when you manually copy then into the original apk then that means there can't be a compiling error.
Do me a favour, check the size of the apk file that apkmultitool produces. Is it significantly bigger than the original apk file?
Sent from my SK17i using xda premium
after complite new framework has bigger size then orginal framework because changes resources.arsc size
ok I made it everything works