Hello guys!
I wanted to mod a simple android app.
Now i decompiled the apk with apktool.
It worked fine!
But the only files I get after compiling are .xml files and .smali files...
So now, how i can edit the .smali files?
Respectively can I mod apk apps by a other way?
What are you trying to do? what do you need to mod?
to mod a apk is to make changes in the xml files and smali files itself .
smali files are difficult to mod because the java source code is converted into smali .
I think there is a baksmali tool you can use to mod smali files
search on xda what you want to mod in particular
Sent from my GT-S5670 using xda premium
Related
i have a problem to decompile an apk, it's the framework-miui-res.apk, when i try to decompile with apktool it give me a warning (W: Cant find 9patch chunk in file: "drawable-hdpi/popup_item_single_normal.9.png". Renaming it to *.png. ) anyways it decompile all the files and i can edit it, but whan i try to compile it's a completly mess, give me a lot of errors
i was googling it , and i found that the error is because there are two files with the same name in xml files, i try to replace it, rename it, using different tools and version of apktool, making "apktool if", but i just can't make it compile. any ideas?
Huncriter said:
i have a problem to decompile an apk, it's the framework-miui-res.apk, when i try to decompile with apktool it give me a warning (W: Cant find 9patch chunk in file: "drawable-hdpi/popup_item_single_normal.9.png". Renaming it to *.png. ) anyways it decompile all the files and i can edit it, but whan i try to compile it's a completly mess, give me a lot of errors
i was googling it , and i found that the error is because there are two files with the same name in xml files, i try to replace it, rename it, using different tools and version of apktool, making "apktool if", but i just can't make it compile. any ideas?
Click to expand...
Click to collapse
Your problem was stated on the decompile. The .9 issue will throw up errors on everything when it is the only thing wrong. Might want to ask on the MIUI site
already did that, but there's no answer
Huncriter said:
already did that, but there's no answer
Click to expand...
Click to collapse
Have you tried fixing the .9 png ?
yeap, it creates two files when decompile, one is 9.png but is trash(0kb) and the other is the .png file, i try to rename the png (with 9.png) delete the 9.png file but it didn't work.
also i decompile another framework-miui-res.apk from another rom(without error) , extrac the 9.png replace in my rom and still no work.
Huncriter said:
yeap, it creates two files when decompile, one is 9.png but is trash(0kb) and the other is the .png file, i try to rename the png (with 9.png) delete the 9.png file but it didn't work.
also i decompile another framework-miui-res.apk from another rom(without error) , extrac the 9.png replace in my rom and still no work.
Click to expand...
Click to collapse
Ok just renaming the png to a .9 will not work. .9 pngs are special made pngs with a special border system. Can you decompile and recompile the apk without the error?
zelendel said:
Ok just renaming the png to a .9 will not work. .9 pngs are special made pngs with a special border system. Can you decompile and recompile the apk without the error?
Click to expand...
Click to collapse
no, that's the problem, but i can decompile the framework-res-miui from another rom and extract the 9.png
can you try it? i let the framework at top
Huncriter said:
no, that's the problem, but i can decompile the framework-res-miui from another rom and extract the 9.png
can you try it? i let the framework at top
Click to expand...
Click to collapse
Sorry I don't touch anything from MIUI. There are a few threads around. Search for an MIUI themeing thread and they should be able to help you.
zelendel said:
Sorry I don't touch anything from MIUI. There are a few threads around. Search for an MIUI themeing thread and they should be able to help you.
Click to expand...
Click to collapse
, thanks, and no there's no thread with the solution for this, and i think the problem is not only in miui roms, and have other apps that i cant compile
i wonder if there is another way to compile wthout using apktool
Huncriter said:
, thanks, and no there's no thread with the solution for this, and i think the problem is not only in miui roms, and have other apps that i cant compile
i wonder if there is another way to compile wthout using apktool
Click to expand...
Click to collapse
The only two choices are using apktool or compiling it from the source code and making your changes and using apktool. What version of android is it for? ICS needs 2 versions. One to decompile and one to compile. I have themed every OS version I have used and with the right searching and some trial and error it has always worked. Including ics
it's based on android 2.3.7, and try that also(using 1.4.2 to decompile and 1.4.3 to compile)
Can't find smali folder after decompiling systemui.apk/framework-res.apk
As the titles says, i'm unable to find smali folder either by decompiling using apktool or using 7zip or winrar or anything... I have hidden files/folder view enabled on my laptop/64bit windows 7. My device is xperia s with stoke ics 4.0.4. I posted here to know if its general. Or is there no smali folder in systemui.apk n framework-res.apk.. Or its something specific to sony's ics? Thanx for clarifying me doubt....
There are none in the framework-res.apk, and they reside in the SystemUI.odex on a stock odexed system - you need to first deodex to get to the smali files.
Sent from my phone's mind
Thanx man...
alteredlikeness said:
There are none in the framework-res.apk, and they reside in the SystemUI.odex on a stock odexed system - you need to first deodex to get to the smali files.
Sent from my phone's mind
Click to expand...
Click to collapse
So now i have to first decompress original firmware to get odex one or in port rom i can get and path pls
hi
I want to modify my apk with Eclipse . but I don't know how to give apk to eclipse and modify package name and manifest.xml and .... .
Can anyone help me plz ?
TNQ .
I don't want to use Apk manager .
What do you mean?
You 've got only the apk file?
You cannot modify this...!!
You must have the source code of your app before compiling it to apk file.
So, modifying the source code you will able to compile again a new apk file....
Sent from my home using my tablet
Sorry .
I just want to modify my APP not Source with Eclipse & do some changes like renaming the android package name and MANIFEST.XML & change the icon & .... .
Isn't it possible ?
But I've done same changes using ApkMultitools .... .
Eclipse can't modify APK files, you need necessarily decompile your APK file using APKTool (or APK Multi-tool).
The correct way is firstly to own your code.
Then you have to edit it and compile in eclipse to generate your new *.apk file.
If the application is yours, I think that you have the source code you wrote...
Sent from my home using my tablet
Hi all,
I have a new Korea phone which I decompiled the Mms.apk and edited the xml to allow sending more than 160 chars.
On my first attempt to push it back to system, it wouldn't install. I was thinking maybe the signature was altered so I copied the compiled xml files into the original apk file and push it back into the system and this time it installed however sms is still limited to 80 chars.
My question now is that what are the other apk files that could affect sms settings and what other settings or files in the Mms.apk did I missed?
Sent from my IM-A860K using xda premium
Leechoonhwee said:
Hi all,
I have a new Korea phone which I decompiled the Mms.apk and edited the xml to allow sending more than 160 chars.
On my first attempt to push it back to system, it wouldn't install. I was thinking maybe the signature was altered so I copied the compiled xml files into the original apk file and push it back into the system and this time it installed however sms is still limited to 80 chars.
My question now is that what are the other apk files that could affect sms settings and what other settings or files in the Mms.apk did I missed?
Sent from my IM-A860K using xda premium
Click to expand...
Click to collapse
Did you copy all the xml files only the mainfest and meta inf is to be copied
More over this cannot be achieved by xml modding you need mod smali files or preferably compile Mms.apk from its source editing required filed
Sent from my GT-S5302 using Tapatalk 2
Hit Thanx Button if i helped you!
sak-venom1997 said:
Did you copy all the xml files only the mainfest and meta inf is to be copied
More over this cannot be achieved by xml modding you need mod smali files or preferably compile Mms.apk from its source editing required filed
Sent from my GT-S5302 using Tapatalk 2
Hit Thanx Button if i helped you!
Click to expand...
Click to collapse
Basically I decompiled the Mmk.apk and I edited the xml and then recompile it again but it didnt want to be installed so I just copy the compiled xml into the original apk file and push it back into the system.
Compiling from source means I gotta get hold of a AOSP mms.apk source file and compile it from there?
Leechoonhwee said:
Basically I decompiled the Mmk.apk and I edited the xml and then recompile it again but it didnt want to be installed so I just copy the compiled xml into the original apk file and push it back into the system.
Compiling from source means I gotta get hold of a AOSP mms.apk source file and compile it from there?
Click to expand...
Click to collapse
Things like this are not controlled by xml files they are done within the code so grab a aosp source if you know java or mod the smali files
Sent from my GT-S5302 using Tapatalk 2
Hit Thanx Button if i helped you!
sak-venom1997 said:
Things like this are not controlled by xml files they are done within the code so grab a aosp source if you know java or mod the smali files
Sent from my GT-S5302 using Tapatalk 2
Hit Thanx Button if i helped you!
Click to expand...
Click to collapse
Thanks. Modded the smali but still no go and it seems that it is the framework.jar that is needed to be changed but that's a different ball game so probably I might just try to port cm over to my device and solve everything in one go.
Sent from my IM-A860K using xda premium
HI Guys !
I am new to this developer world.I recently joined XDA and i am seeing here that there are many developers modding apps ...like [MOD][APP]WALKMAN APP FOR XPERIA P FROM XPERIA V..
My question is how they make it able to run on other devices?...How i can mod ? answer my question take me as a noob.
plz help me ..
it is only for developer i think,
mod app is not easy for common user,
if you do not know well about development .you will find mod some application is a very difficult thing.
timgreen123 said:
mod app is not easy for common user,
if you do not know well about development .you will find mod some application is a very difficult thing.
Click to expand...
Click to collapse
Don't worry i know java programming....You only tell me method and what i have to download....what procedure.
P.fever said:
Don't worry i know java programming....You only tell me method and what i have to download....what procedure.
Click to expand...
Click to collapse
Well first things first, you need the apps you're going to mod...
Pull them from your ROM.
Decompile
You need apktool for this...
First things first, you need the framework-res.apk in the apktool folder.
Open a command script and install it with: apktool if framework-res.apk
Then decompile your app ( ex: SystemUI.apk ) with: apktool d SystemUI.apk
Make your changes
Change the images, do some XML editing, some smali things....
Recompile
If you want to recompile it to an .apk file use this in the command: apktool b SystemUI
DO NOT ADD APK, cuz you're building the SystemUI folder contents into an .apk
Jeroenvk94 said:
Make your changes
Change the images, do some XML editing, some smali things....
Recompile
If you want to recompile it to an .apk file use this in the command: apktool b SystemUI
DO NOT ADD APK, cuz you're building the SystemUI folder contents into an .apk
Click to expand...
Click to collapse
Is this just an posibility 4 Layout and ui (XML) changes or can i even look & change @ the java Code and underling activities?