How to compile and decompile apk - Galaxy Y GT-S5360 General

Hello guys,
I wana know how to make a apk after we extract and edit it, i think in short form how to compile and decompile apk. Please anyone who can explain clearly and is ther any tool for that..
Thanks...

kishore55 said:
Hello guys,
I wana know how to make a apk after we extract and edit it, i think in short form how to compile and decompile apk. Please anyone who can explain clearly and is ther any tool for that..
Thanks...
Click to expand...
Click to collapse
apk tool is ur frnd.. GOOGLE FOR INSTALLATION

do.a.search on xda about apktool

kishore55 said:
Hello guys,
I wana know how to make a apk after we extract and edit it, i think in short form how to compile and decompile apk. Please anyone who can explain clearly and is ther any tool for that..
Thanks...
Click to expand...
Click to collapse
Try APK MANAGER... Its lot more easier....

emjimadhu said:
Try APK MANAGER... Its lot more easier....
Click to expand...
Click to collapse
help me.quick tutorial apk manager for me decompile&recompile then place in system/app how to apk work..thank
expample: mms.apk..i mod it then i replace it in system/app but not working

You have to sign it with the same signature keys as the phone's framework.

bumslayer said:
You have to sign it with the same signature keys as the phone's framework.
Click to expand...
Click to collapse
more explain to me plz

I think you need this
http://youtu.be/oLQynXg8noM
dude go ahead and do some search
anyways just press thanks

if you just want to change icon or the picture, the easiest way is by open the apk file via 7zip then copy the files into it. its also work if you change some of the script. just put the scipt back to folder. I've used this method to modify systemUI.apk and framework-res.apk. it works fine for me.

kurotsugi said:
if you just want to change icon or the picture, the easiest way is by open the apk file via 7zip then copy the files into it. its also work if you change some of the script. just put the scipt back to folder. I've used this method to modify systemUI.apk and framework-res.apk. it works fine for me.
Click to expand...
Click to collapse
hey thanks man i will try for it...

Related

[REQ][HOWTO] Making your own battery mod?

People are using different rom's , some other are asking for specific mod etc
Could someone write some guide how to do it, to enlight those who are not aware ?
Take the framework-res.apk from your current rom and upload it to http://uot.dakra.lt/kitchen
Once uploaded go to battery mod and select the battery style u want and cook it.
When its cooked extract the framework-res.apk from the downloaded file and either replace it with root explorer or push it with adb back into the phone.
Sent from my GT-I9100 using Tapatalk
Locster126 said:
Take the framework-res.apk from your current rom and upload it to http://uot.dakra.lt/kitchen
Once uploaded go to battery mod and select the battery style u want and cook it.
When its cooked extract the framework-res.apk from the downloaded file and either replace it with root explorer or push it with adb back into the phone.
Sent from my GT-I9100 using Tapatalk
Click to expand...
Click to collapse
This is what I know already, but this is not working and phone is keeping crashing
masi0 said:
This is what I know already, but this is not working and phone is keeping crashing
Click to expand...
Click to collapse
Depends of which rom you are running but if you use VillainRom I think you need to open your modded framework with 7-zip and replace "META-INF" directory with the one found in the original framework of your rom. This is needed to sign the file.
However I'm not sure you use VillainRom (where files must be signed) and I didn't use yet the kitchen ... but your feedback is usefull if you want to try ...
shaolin79 said:
Depends of which rom you are running but if you use VillainRom I think you need to open your modded framework with 7-zip and replace "META-INF" directory with the one found in the original framework of your rom. This is needed to sign the file.
However I'm not sure you use VillainRom (where files must be signed) and I didn't use yet the kitchen ... but your feedback is usefull if you want to try ...
Click to expand...
Click to collapse
I am using stock KE4
masi0 said:
I am using stock KE4
Click to expand...
Click to collapse
Ok so ignore what I said upper ... should be only for signature of the rom (not needed in stock roms).
Anyway ... if someone has the solution ...
I always made that on my own...
Open the decompiled .xml in the framework-res.apk, edit those lines, add my own battery.pngs and that was all...
I didnt test it on my sgs2... But it should be the same way to get it...
Swyped from my overclocked GT-I9100 using XDA Premium App
PoTi_96 said:
I always made that on my own...
Open the decompiled .xml in the framework-res.apk, edit those lines, add my own battery.pngs and that was all...
I didnt test it on my sgs2... But it should be the same way to get it...
Swyped from my overclocked GT-I9100 using XDA Premium App
Click to expand...
Click to collapse
could you tell which .xml to edit and what to add within the file?
I juz grab one of the batt mod out there and replace the .png files under /res/drawable-hdpi-v4 with the ones I want. guess its kind of a lazy way to do it=)
I have KE2 and get a "signature verification failed" error when trying to apply the UOT.zip file :-(
Anyone some idea how to get this applied?
Also my original framework-res.apk file doesn't have any folder called "/res/drawable-hdpi-v4" but the UOT file has!?
masi0 said:
could you tell which .xml to edit and what to add within the file?
Click to expand...
Click to collapse
I dunno exactly which one it was right now but I think the battery.xml somewhere in the first 3 or 4 folders...
sorry idk it anymore ... Long time no use for :/
Swyped from my overclocked GT-I9100 using XDA Premium App

[REQ] Modification of systemUI.apk

Hi all
Could someone please modify this apk res/layout/statusbar.xml, to delete the clock in the status bar (just a the right of the battery icon )
Thx a lot in advance !
fabulous69 said:
Hi all
Could someone please modify this apk res/layout/statusbar.xml, to delete the clock in the status bar (just a the right of the battery icon )
Thx a lot in advance !
Click to expand...
Click to collapse
What line(s) in statusbar.xml need changed?
its the one with clock, only one line has the word "clock"
thx for help !
fabulous69 said:
its the one with clock, only one line has the word "clock"
thx for help !
Click to expand...
Click to collapse
I just deleted the lines for the clock in that xml. I obviously didn't test it, so make sure you know how to recover if it doesn't work. The .zip that is attached is NOT flashable. I also put a working 4.2.x apktool in there with instructions for you to do it yourself if you want to in the future. It's pretty easy to do if you have a working apktool (I compiled this one from paulobrein's github since he edited the source to be compatible with 4.2).
Thank you dude i really appreciate..
This is, what i call help. Thanks and thanks again.
Cheers :good:
edit: i also tried yesterday with apk tool and succeed to decompile and recompile, sign the apk.
the strange thing is that the file goes from 1.5 mb to 1.12mb just by deleting one line
Indeed, it doesnt work. I dont know what's the problem
fabulous69 said:
Thank you dude i really appreciate..
This is, what i call help. Thanks and thanks again.
Cheers :good:
edit: i also tried yesterday with apk tool and succeed to decompile and recompile, sign the apk.
the strange thing is that the file goes from 1.5 mb to 1.12mb just by deleting one line
Indeed, it doesnt work. I dont know what's the problem
Click to expand...
Click to collapse
The size change might just because the zip is compressed more or less. It doesn't always mean anything is wrong. You can decompile it again and compare the contents with the original to make sure everything is there. Do you know how that mod is usually made? Is deleting the lines the correct way?
Sent from my Galaxy Nexus using Tapatalk 2
fabulous69 said:
Thank you dude i really appreciate..
This is, what i call help. Thanks and thanks again.
Cheers :good:
edit: i also tried yesterday with apk tool and succeed to decompile and recompile, sign the apk.
the strange thing is that the file goes from 1.5 mb to 1.12mb just by deleting one line
Indeed, it doesnt work. I dont know what's the problem
Click to expand...
Click to collapse
Have tried the edit myself,with SystemUI, dont sign it, open the original and copy META-INF and androidmanifest.xml over to your new file,let me know if it worked.
Just rename to SystemUI.apk and push to system/app and reboot

owner info

hi man, i have a dude, i can add my name in lockscreen?
look, when i paint my pattern here i wish can look my name
thanks and sorry for my bad english. i'm argentinian man!
Sent from my GT-S5360L using XDA Free
saltalabanca said:
hi man, i have a dude, i can add my name in lockscreen?
look, when i paint my pattern here i wish can look my name
thanks and sorry for my bad english. i'm argentinian man!
Sent from my GT-S5360L using XDA Free
Click to expand...
Click to collapse
i believe spacecaker have that guide sir
just search his name and you can change your name in lockscreen too
saltalabanca said:
hi man, i have a dude, i can add my name in lockscreen?
look, when i paint my pattern here i wish can look my name
thanks and sorry for my bad english. i'm argentinian man!
Sent from my GT-S5360L using XDA Free
Click to expand...
Click to collapse
1. Decompile framework res.apk
2. Go to res/values/string.xml
3. Edit with notepad++
4. Find this : Draw pattern to unlock
5. Replace with ur name
Note: This'll make the Draw pattern to unlock into ur name
thanks sir, before school i try do this.
thanks for two
Sent from my GT-S5360L using XDA Free mobile app
GalKill said:
1. Decompile framework res.apk
2. Go to res/values/string.xml
3. Edit with notepad++
4. Find this : Draw pattern to unlock
5. Replace with ur name
Note: This'll make the Draw pattern to unlock into ur name
Click to expand...
Click to collapse
when i go to res dont find values
saltalabanca said:
when i go to res dont find values
Click to expand...
Click to collapse
you didnt decompile the apk then - you probably just unzipped it
decompiling means you must use apktool to decompile the apk using baksmali
see my thread in my signature for apktool guide
wehn i decompile the apk with apk manager 5.0 cant view the value carpet help me
saltalabanca said:
wehn i decompile the apk with apk manager 5.0 cant view the value carpet help me
Click to expand...
Click to collapse
like I said use apktool and read my thread for the guide - link in my signature
i search with root explorer the framework-res.apk and i send the apk from gmail for hotmail and download with my computer. this are ok?
okay, i do all, how to add the newframework-res.apk to mi phone??
saltalabanca said:
okay, i do all, how to add the newframework-res.apk to mi phone??
Click to expand...
Click to collapse
rename it back to framework-res.apk and put in a flashable zip and flash in cwm with system mounted
cwm flashable template is
http://d-h.st/sr9
just open with winrar and put your framework-res.apk in system/framework
marcussmith2626 said:
rename it back to framework-res.apk and put in a flashable zip and flash in cwm with system mounted
cwm flashable template is
http://d-h.st/sr9
just open with winrar and put your framework-res.apk in system/framework
Click to expand...
Click to collapse
i sign the apk or no sign?
cant sign with drag2sign
saltalabanca said:
i sign the apk or no sign?
cant sign with drag2sign
Click to expand...
Click to collapse
no need to resign if you havent changed the androidmanifest.xml and dont use drag2sign to sign system apps - use zipsigner from the playstore
marcussmith2626 said:
no need to resign if you havent changed the androidmanifest.xml and dont use drag2sign to sign system apps - use zipsigner from the playstore
Click to expand...
Click to collapse
i flash the zip but nothing change :/
thanks of all mods
saltalabanca said:
i flash the zip but nothing change :/
thanks of all mods
Click to expand...
Click to collapse
did you mount system before you flashed the zip?
in cwm goto mounts and storage and mount system (if system is mounted it will display "unmount system")
remember if you are using a cm kernel like biels kernel you have to unmount system and remount it so its best to just unmount it and remount anyway just to make sure

Grey Notification Area Icons

How to change grey notification icons?
Example;
Please help me?
Helppp
U should have Root !!
Then U Can Mod SystemUI.apk in /system/app
Already root. How to mod?
karansa said:
Already root. How to mod?
Click to expand...
Click to collapse
,, What's Ur Phone Model ?
Please mod?
hacker mobd3 said:
,, What's Ur Phone Model ?
Click to expand...
Click to collapse
Galaxy Grand Quattro 4.1.2
Go To /system/app And Copy SystemUI.apk
And put it in sdcard
Connect phone with computer and take SystemUI.apk
To desktop
Right click on it and choose 7zip *You Must Have 7zip*
and choose extract here
Go To Res *from extracted files*
And go to hdpi or mdpi
and You will Find all icon change you want
ex. You changed file 123.png in res/hdpi
Go To desktop and right click on SystemUI.apk
And choose 7zip and open archive
And Go To Res/hdpi or mdpi
And replace Icons Which Changed it
**You Must put changed icon in same path **
Hit Tnx.
Big thanks for help. Please wait.
hacker mobd3 said:
U should have Root !!
Then U Can Mod SystemUI.apk in /system/app
Click to expand...
Click to collapse
So I have no information. I can not find the file you're saying. Please do you do? I gave in addition to systemu file. Please.
karansa said:
So I have no information. I can not find the file you're saying. Please do you do? I gave in addition to systemu file. Please.
Click to expand...
Click to collapse
Downlad Root Explorer
And open it and select system then app then copy systemUI.apk
To sdcard
Which I edit the file?

			
				
@abhi922 Help me
Now Change Icons and zip it again
You can Find Roms in Xda 4 ur device
Not solved

[Guide][Easy][MM]Xperia X Animation Inside The Framework

Hello people !
Many people asked, how i can get Xperia X animation on my
Xperia device running on MM, Well Here is the guide howto modify
it to get that pretty fluid and nice animation.
What it do:
When you locked your phone, and you unlock it
with the lockscreen, the animation goes not up but
from right to the left and your homescreen get opened.
What you need:
Apktool
Framework-res.apk
7zip
Brains
Howto do it:
Decompile your Framework-res.apk
Download the attachment
Open the zip with 7zip
Open Res/Anim
Select all the files
Open your decompiled Framework-res.apk
Go to Res/Anim
Copy the selected files from my zip
Into your Anim folder
Replace? Yes
Copy integers.xml from my zip
Into Res/values folder
Replace ? Yes
Compile and sign
Make A Flashable zip
Flash it
Done
** Note: Don`t forgot to credit and thank me !!​
Review !
could you help me, please?
Metall Boy said:
could you help me, please?
Click to expand...
Click to collapse
@Metall Boy
Why you cant do ot by yourself ?
Thats why this guide is for.
Pandemic said:
@Metall Boy
Why you cant do ot by yourself ?
Thats why this guide is for.
Click to expand...
Click to collapse
i dont have much knowledge of apk modifying .... i tried apktool and i cant even decompile files....
Metall Boy said:
i dont have much knowledge of apk modifying .... i tried apktool and i cant even decompile files....
Click to expand...
Click to collapse
Oke well i am honest people get lazier and lazier around here on xda for sure ><"
I missed something in the TUT will be fixed asap
Tut is refixed and added missing stuff what also you need to do !
@Metall Boy
here your framework, its done
See attachment !
Pandemic said:
Tut is refixed and added missing stuff what also you need to do !
@Metall Boy
here your framework, its done
See attachment !
Click to expand...
Click to collapse
i actually tryed doing it again when you update the OP and it worked! but thanks anyway for your effort
Metall Boy said:
could you help me, please?
Click to expand...
Click to collapse
Pandemic said:
Tut is refixed and added missing stuff what also you need to do !
@Metall Boy
here your framework, its done
See attachment !
Click to expand...
Click to collapse
Which phone is this framework.apk from ??
& can you be kind enough to do this too
Thank You
chawlasrijan said:
Which phone is this framework.apk from ??
& can you be kind enough to do this too
Thank You
Click to expand...
Click to collapse
My framework is from z3c from latest. 291 firmware
Metall Boy said:
My framework is from z3c from latest. 291 firmware
Click to expand...
Click to collapse
No wonder i lost all vibrations
Can you please do the one i uploaded, it's from Xperia Z2 .291
chawlasrijan said:
No wonder i lost all vibrations
Can you please do the one i uploaded, it's from Xperia Z2 .291
Click to expand...
Click to collapse
Actually you no need to decompile it, just change the .apk to .zip.
The only thing to do is push the OP files into the ".zip".
After that rename .zip to .apk, and push to system.
You're done.
Hit thanks if I helped!
Note: The Z3 framework-res.apk don't have "value" this file. I tried to force push and it give me bootloop.
Note 2: Trying to use another method: compile the .apk by replace the zip.
sorry to bother you again @Pandemic I've just noticed all animations are very smoooth,but i found a small bug with the three-dot-menu animation...this animation is slow. I attached a screenshot so you will know which animation im talking about
maple_mak said:
Actually you no need to decompile it, just change the .apk to .zip.
The only thing to do is push the OP files into the ".zip".
After that rename .zip to .apk, and push to system.
You're done.
Hit thanks if I helped!
Note: The Z3 framework-res.apk don't have "value" this file. I tried to force push and it give me bootloop.
Note 2: Trying to use another method: compile the .apk by replace the zip.
Click to expand...
Click to collapse
Value is the folder name in Res folder ><"
Pandemic said:
Value is the folder name in Res folder ><"
Click to expand...
Click to collapse
If I found I already no need to say it before...
i do this but now my phone is bootlp
alinolaw71 said:
i do this but now my phone is bootlp
Click to expand...
Click to collapse
Same for me
Any suggestions @Pandemic
For those who have issues, do this(Especially for Z5 users)
1.Take the final compiled apk and install it as framework
2.Recompile and push to phone
Click thanks if i helped
Excellent work as ever, @Pandemic! :good:

Categories

Resources