Is there a way to edit android manifest.XML in a .apk file(android app)???
If yes.
Then is it possible to downgrade minsdkversion of an app???
Related
Hi, just have a question regarding modding apks inside /app in odexed roms.
Have read a few threads regarding deodexing and decompiling apks, and just wish to clarify one thing:
For apks which have a corresponding odex file, is it possible to modify them without deodexing the whole rom? Intend to edit some xml files in the Contacts.apk file but wasn't sure of the exact procedure.
Here's what I tried:
1. Used xultimate to deodex
2. Used apktool to decompile apk
3. Edited xml
4. Used apktool to compile
5. Added META-INF and AndroidManifest.xml from original apk using 7zip
6. Deleted Contacts.apk and Contacts.odex
7. Copied Contacts.apk over
Thanks in advance!
ock said:
Hi, just have a question regarding modding apks inside /app in odexed roms.
(...)
For apks which have a corresponding odex file, is it possible to modify them without deodexing the whole rom? Intend to edit some xml files in the Contacts.apk file but wasn't sure of the exact procedure.
Click to expand...
Click to collapse
+1
I am also interested in the answer ...
I would like to theme some widgets and theme the statusbar on a stock ROM. I am not sure is it possible ? And what is the procedure with the odexed files ?
I am trying to modify XMLs of Jelly Bean Contacts.apk. Using apktool that has been used for ICS and other Jelly Bean apks, I can decompile and then recomplie it without any error. However, the recompiled Contacts.apk would not work in cell phone, showing a message "Unfortunately, Contacts has stopped!".
To simplify the problem, I simply do decompiling and then recompiling without any modifications. I found that the size of resources.arsc has been changed from 1480 KB to 1525 KB. The new Contacts.apk causes FC!
Note: Files in smali folder can still be modified. After editing, use apktool to recompile and create a new apk. Then use WinRAR or 7zp to drag the newly created classes.dex into the original Contacts.apk. Such a "modified" Contacts.apk works properly. Note here that we did not modify resources.arsc.
This problem is only related to resources.arsc!! XMLs cannot be recompiled!!
Does anybody have the same problem? Do you know how to solve this problem? Any solutions or suggestions are appreciated.
Did anybody try this?
Are you all ok with modifying Contacts.apk?
With the current apktool jar file you can not edit any XML in the contacts apk. It has to be done in source code
Sent from the BatCave
zelendel said:
With the current apktool jar file you can not edit any XML in the contacts apk. It has to be done in source code
Sent from the BatCave
Click to expand...
Click to collapse
Thank you for your reply. The question is why we can edit XML in other apks except Contacts.apk.
Is there any magic?
framework-res.apk, Settings.apk, SystemUI.apk, Phone.apk are all ok without any problem.
iBotPeaches, the author of apktool, wrote: "Looks like we have new resource type. T9Map. Will have to code support for it. Its just loosing it on rebuild."
See discussions at: https://github.com/iBotPeaches/brut.apktool/issues/11
Does anyone know how to remove from the system tray carrier name ?
If you can edit the systemui.apk after deodexing, it should be easy for you.
Unfortunately it was not possible for me, to deodex our systemui.apk.
The downloadable edited systemui.apk of the p6 is running, if you rename the original systemui.apk and systemui.odex.
But after that you will miss some taskbar functions.
Tippfehler said:
If you can edit the systemui.apk after deodexing, it should be easy for you.
Unfortunately it was not possible for me, to deodex our systemui.apk.
The downloadable edited systemui.apk of the p6 is running, if you rename the original systemui.apk and systemui.odex.
But after that you will miss some taskbar functions.
Click to expand...
Click to collapse
Thanks, but no detailed instructions can not do it .
Hide Operator P6 (You can test apk from #10):
http://forum.xda-developers.com/showthread.php?t=2776681
If you google for these words, you can find instructions:
systemui.apk status_bar.xml TextView paddingLeft
Tippfehler said:
Hide Operator P6 (You can test apk from #10):
http://forum.xda-developers.com/showthread.php?t=2776681
If you google for these words, you can find instructions:
systemui.apk status_bar.xml TextView paddingLeft
Click to expand...
Click to collapse
Its working, thanks:good: I used the apk from first post
I made a simple tutorial here :
http://forum.xda-developers.com/ascend-p7/development/guide-how-to-remove-carrier-tray-t2843461
The systemui.apk from #10 has a house instead of a huawei logo for home.
If you don´t rename systemui.odex, you will get a lot of systemui error messages and it would be difficult, to fix it.
The better way is to edit the original systemui.apk.
Since this is working well, am I able to deodex this SystemUI and make my own changes? Couldn't deodex the original SystemUI.
...
i cannot get it working. all i see is black window when i restart. what deodoxing means? wut
i tried this: http://forum.xda-developers.com/ascend-p7/development/guide-how-to-remove-carrier-tray-t2843461
deodex: http://www.addictivetips.com/mobile/what-is-odex-and-deodex-in-android-complete-guide/
deodex tool: http://forum.xda-developers.com/ascend-p7/general/guide-stock-rom-flashables-wip-t2836655
Welcome everyone!!!
Here i Guide You to change settings backgroud of your rom
Tested On LP
Requirements:
Apktool
Knowledge of decompiling/recompiling
Settings.apk
notepad++
Process
VIDEO GUIDE
NOTE : JOIN OUR FACEBOOK GROUP FOR MORE THEMING GUIDES
Firstly setup apktools on your windows after that extract framework-res.apk,Mediatek-res.apk and SystemUI.apk
Now install all these above apk in your apktool by using following commands
Framework
Code:
apktool if framework-res.apk
Mediatek
Code:
apktool if mediatek-res.apk
SystemUI
Code:
apktool if SystemUi.apk
after that extract your settings.apk from your rom and decompile it using
Settings
Code:
apktool d settings.apk
after decompilition is sucessful locate to settings folder and go to path
Code:
res/values/style.xml
now open style.xml using notepad++
search for code
locate
Code:
<style name=Theme.SettingsBase [email protected]:style/Theme.Material
now find the code under style.xml
Code:
<item name=android:colorBackground>#ffffffff</item>
if there is no such code add by your own and save it
now open res/layout/dasboard_category and find code
Code:
android:colorbackground
change the value of colorbackground with any hex of color you want
at last save yor xmls and recompile your settings apk
using
Code:
APKTOOL B SETTINGS
push your apk to your phone replace this with your original ,all done
Dont Forget To HIT Thanks If you like the Guide
Thanks bro
I have a question Dear
How do I can them the system ui lollipop
Hi how can I have the card layout for settings .Thank you
I decompiled and recompiled Phonebook.apk without modifying anything and the app gets smaller, from 7,196 kB to 7,178 kB. What can it depend on? I used Advanced Apktool ...