Stock ROM - Decompile, replace apk (mod) and recompile - Android Software/Hacking General [Developers Only]

Hi,
is there any tool or software to decompile a stock rom downloaded from sammobile?
I want to replace an apk file in system/app and recompile it.
Is there any easy to use tool for decompile - modify - recompile a STOCK firmware?
Any help is appreciate.
Regards, Droopy

Are u a noob???
Try my mod...
Xperia NxT MoD v1.2 For All GB
http://forum.xda-developers.com/showthread.php?t=1967172
Sent from my GT-5360 with Xperia NxT MoD using xda-premium

Related

[REQ]EDT Tweak For stock XXKPH rom

EDT Tweak for stock xxkph rom is it possible to grab files from any custom rom using EDT Tweak and replace it in stock xxkph rom
if yes which files to replace
tarunagg said:
EDT Tweak for stock xxkph rom is it possible to grab files from any custom rom using EDT Tweak and replace it in stock xxkph rom
if yes which files to replace
Click to expand...
Click to collapse
i want it too ! but it has the systemui.apk and notification bar (4got the apk name) has to b edited to suit the tweaks app only then it works !
EDT Tweak only work on a modified SystemUI.apk... If u decompile the SystemUI.apk inside /res/layout/ there is the status_bar.xml that where the mod is done.. and of course you need the EDT tweak app.. If I have good signal I will upload a modified SystemUI.apk so everyone could play inside the for thememing specially for tarunagg.. cause you create good themes..
Now Iam trying to merge the 6toogle screen and EDT but no luck yet cause its has both edit on the status_bar.xml
I tryed this and works good for me on stock XXKPH
@Skin
Nice share bro I would try this..

14 Toggles for any ROM

Could someone have a look at this http://forum.xda-developers.com/showthread.php?t=1289896 and try to do it for stock Indian ROM (XWKI5) rooted.....I have attached the SystemUI apk from my ROM. I tried this but am stuck with no status bar at all. Can someone try to get it to work for the stock roms plzzzzz...will be really grateful:fingers-crossed:
saurabh.khare1000 said:
Could someone have a look at this http://forum.xda-developers.com/showthread.php?t=1289896 and try to do it for stock Indian ROM (XWKI5) rooted.....I have attached the SystemUI apk from my ROM. I tried this but am stuck with no status bar at all. Can someone try to get it to work for the stock roms plzzzzz...will be really grateful:fingers-crossed:
Click to expand...
Click to collapse
Follow the guide carefully, you should be able to do this.
If you have got Android SDK installed
then copy the attached apktool.jar file to
C:\Program Files\Android\android-sdk\platform-tools\
make sure you have set the correct PATH variables
then use the following commands to compile/decompile
COMPILE:
Code:
apktool d <filename>
<filename> can be .apk or .jar
DECOMPILE:
Code:
apktool b <folder name> <filename>
where <foldername> is the previously decompiled apk/jar
I've attached NEO ROMs SystemUI.apk that you can use as reference.
I can easily compile and decompile the systemui.apk but the smali folder in the decompiled systemui.apk does not contain the statusbarservice.smali file....so I end up with no status bar...I have followed the guide exactly....any suggestions..
saurabh.khare1000 said:
I can easily compile and decompile the systemui.apk but the smali folder in the decompiled systemui.apk does not contain the statusbarservice.smali file....so I end up with no status bar...I have followed the guide exactly....any suggestions..
Click to expand...
Click to collapse
Did you copy .smali files from LidroidSystemUI.apk to your SystemUI.apk?
Also you need to push lidroid-res.apk to /system/framework folder.
EDIT: I decompiled your SystemUI.apk
It showed me error on decompiling.
SystemUI.apk must be deodexed & since you are on stock, so it seems you have got ODEXED one.
You need to deodex first.
pankaj88 said:
Did you copy .smali files from LidroidSystemUI.apk to your SystemUI.apk?
Also you need to push lidroid-res.apk to /system/framework folder.
EDIT: I decompiled your SystemUI.apk
It showed me error on decompiling.
SystemUI.apk must be deodexed & since you are on stock, so it seems you have got ODEXED one.
You need to deodex first.
Click to expand...
Click to collapse
I have copied the smali files and also pushed the lidroid-res.apk, however I haven't deodexed, how am I supposed to do that? Plz explain
saurabh.khare1000 said:
I have copied the smali files and also pushed the lidroid-res.apk, however I haven't deodexed, how am I supposed to do that? Plz explain
Click to expand...
Click to collapse
I am unable to decompile your SystemUI.apk
since it is framework-dependent, framework-res as well as twframework are aslo required.
Can you upload decompiled zip file for your SystemUI.apk
stock one.. without having the lidroidsystemui smali files??
Use dsixda's kitchen for deodexing
I've posted a guide in dev section.
pankaj88 said:
I am unable to decompile your SystemUI.apk
since it is framework-dependent, framework-res as well as twframework are aslo required.
Can you upload decompiled zip file for your SystemUI.apk
stock one.. without having the lidroidsystemui smali files??
Use dsixda's kitchen for deodexing
I've posted a guide in dev section.
Click to expand...
Click to collapse
Here are all the files that you may require....meanwhile I'll try deodexing through dsixda's kitchen....but I was just thinking...wouldn't deodexing just the SystemUI.apk cause problems, considering that my other system files are still in the stock odexed form??
saurabh.khare1000 said:
Here are all the files that you may require....meanwhile I'll try deodexing through dsixda's kitchen....but I was just thinking...wouldn't deodexing just the SystemUI.apk cause problems, considering that my other system files are still in the stock odexed form??
Click to expand...
Click to collapse
yeah.. you need to deodex both /system/app as well as /system/framework folder.
pankaj88 said:
yeah.. you need to deodex both /system/app as well as /system/framework folder.
Click to expand...
Click to collapse
Hey, I'm waiting for your help....can you guide me through deodexing a stock rooted ROM? also did you have a look at the attached files? I had a look at dsixda's kitchen but there isn't a proper deodexing guide. Since you are the creator of the NEO ROM...I feel you would know the exact procedure for deodexing a stock Galaxy R ROM using dsixda's kitchen...plz help me out with the process...I trying to implement the 14toggles and overscroll glow mods which obviously requires deodexing
saurabh.khare1000 said:
Hey, I'm waiting for your help....can you guide me through deodexing a stock rooted ROM? also did you have a look at the attached files? I had a look at dsixda's kitchen but there isn't a proper deodexing guide. Since you are the creator of the NEO ROM...I feel you would know the exact procedure for deodexing a stock Galaxy R ROM using dsixda's kitchen...plz help me out with the process...I trying to implement the 14toggles and overscroll glow mods which obviously requires deodexing
Click to expand...
Click to collapse
ok. tomorrow I will post a guide about deodexing stock odexed ROM.
Sent from my GT-I9103 using xda app-developers app
pankaj88 said:
ok. tomorrow I will post a guide about deodexing stock odexed ROM.
Sent from my GT-I9103 using xda app-developers app
Click to expand...
Click to collapse
Oh boy....thanx a lot.....This is really going to be helpful....:good::good:
saurabh.khare1000 said:
Hey, I'm waiting for your help....can you guide me through deodexing a stock rooted ROM? also did you have a look at the attached files? I had a look at dsixda's kitchen but there isn't a proper deodexing guide. Since you are the creator of the NEO ROM...I feel you would know the exact procedure for deodexing a stock Galaxy R ROM using dsixda's kitchen...plz help me out with the process...I trying to implement the 14toggles and overscroll glow mods which obviously requires deodexing
Click to expand...
Click to collapse
Overscroll glow mod can be applied to stock ODEXED ROM.
But 14 toggles require deodexed ROM.
pankaj88 said:
Overscroll glow mod can be applied to stock ODEXED ROM.
But 14 toggles require deodexed ROM.
Click to expand...
Click to collapse
I tried searching for a guide to implement the overscroll glow mod on stock odexed ROM....but couldn't find any....If you have come across a guide please redirect me to the appropriate thread...that would be very helpful.
saurabh.khare1000 said:
I tried searching for a guide to implement the overscroll glow mod on stock odexed ROM....but couldn't find any....If you have come across a guide please redirect me to the appropriate thread...that would be very helpful.
Click to expand...
Click to collapse
UOT kitchen supports stock ODEXED ROM
see here, I myself implemented overscroll glow using uot for stock ZSLE5 odexed.
Also I think 14 toggles can be implemented on odexed ROM too.
click here
you can download odexed version and compare it with yours.
pankaj88 said:
UOT kitchen supports stock ODEXED ROM
see here, I myself implemented overscroll glow using uot for stock ZSLE5 odexed.
Also I think 14 toggles can be implemented on odexed ROM too.
click here
you can download odexed version and compare it with yours.
Click to expand...
Click to collapse
Thanx for the links bud....now the only problem is that though I can compare the SystemUI.apk file with my modded file for 14toggles...I cannot do the same for SystemUI.odex file since I'm not aware how to decompile it. I'm assuming that both the SystemUI.apk and SystemUI.odex files would be different for our Galaxy R ROM and that I wont be able to directly flash the CWM package from the link. In short I can easily obtain a updater-script and can also mod my SystemUI.apk by following lidroid's guide, but the main problem is modding the SystemUI.odex file. Please guide.
saurabh.khare1000 said:
Thanx for the links bud....now the only problem is that though I can compare the SystemUI.apk file with my modded file for 14toggles...I cannot do the same for SystemUI.odex file since I'm not aware how to decompile it. I'm assuming that both the SystemUI.apk and SystemUI.odex files would be different for our Galaxy R ROM and that I wont be able to directly flash the CWM package from the link. In short I can easily obtain a updater-script and can also mod my SystemUI.apk by following lidroid's guide, but the main problem is modding the SystemUI.odex file. Please guide.
Click to expand...
Click to collapse
http://www.jordanhotmann.com/2011/09/android-hacking-101-compiling-and.html
http://forum.xda-developers.com/showthread.php?t=841287

Port AOSP Lockscreen For Xperia E Dual

I need some Dev sized for the lockscreen AOSP rom STOCK jelly bean 4.1.1 Xperia E Dual
doperthancoke said:
Are you sure you want jellybean lockscreen? Because your signature say ICS. I have just finished making the AOSP lockscreen mod for Xperia Dual ICS. I could make a thread and share it if you want it.
By the way, are you working on an stock ICS-based AOSP-themed rom? I'm also working on one. I have almost finished, it would be great if you could help me out!
If you really want jellybean aosp lockscreen, I could still help you out.
Click to expand...
Click to collapse
I'm not using ICS but am using the latest version of the jelly bean just forgot to update my signature
doperthancoke said:
Are you sure you want jellybean lockscreen? Because your signature say ICS. I have just finished making the AOSP lockscreen mod for Xperia Dual ICS. I could make a thread and share it if you want it.
By the way, are you working on an stock ICS-based AOSP-themed rom? I'm also working on one. I have almost finished, it would be great if you could help me out!
If you really want jellybean aosp lockscreen, I could still help you out.
Click to expand...
Click to collapse
Hey can u help me with the jellybean Aosp lockscreen. i want to use it for a rom i m working on
Filipe Bento said:
I need some Dev sized for the lockscreen AOSP rom STOCK jelly bean 4.1.1 Xperia E Dual
Click to expand...
Click to collapse
try the yayakuya's mod once its for single so do make a nandroid
keep calm and call J.A.R.V.I.S
doperthancoke said:
Finished modding. Credits: @yayakuya for single sim mod.
yayakuya's thread: http://forum.xda-developers.com/showthread.php?t=2323965
However, the framework-res.apk of the AOSP lockscreen mod from that thread is compressed during compilation which *may* cause problems for some people. Besides, it would be risky to flash on E Dual when the mod is for E Single. I simply modify the layout .xmls to match the modifications in the E single mod and recompile it with less compression. Link to download the framework-res.apk is in the attatchment. Push it to /system/framework/, set permission to rw-r--r--. Worked flawlessly on the Noz rom (Stock based Jellybean rom)
For those of you working on roms: Using the framework-res.apk I uploaded will undo all modifications you made to YOUR framework-res.apk, since this is not a themed framework-res.apk. The file is untouched, only modification is AOSP lockscreen. To keep your modded framework-res.apk and still get the AOSP lockscreen, follow these instructions:
Download the Layouts-xml.zip in the attatchments
Extract it
Open the framework-res.apk of your rom (on your computer) using 7zip or WinRAR
Navigate to /res/layout/
Take the xmls from the Layouts-xml.zip, drag and drop them into the opening "framework-res.apk /res/layout/" window
Click "Yes" if anything popup about updating archive
Enjoy
Click to expand...
Click to collapse
Thank! Works Fine!
doperthancoke said:
Finished modding. Credits: @yayakuya for single sim mod.
yayakuya's thread: http://forum.xda-developers.com/showthread.php?t=2323965
However, the framework-res.apk of the AOSP lockscreen mod from that thread is compressed during compilation which *may* cause problems for some people. Besides, it would be risky to flash on E Dual when the mod is for E Single. I simply modify the layout .xmls to match the modifications in the E single mod and recompile it with less compression. Link to download the framework-res.apk is in the attatchment. Push it to /system/framework/, set permission to rw-r--r--. Worked flawlessly on the Noz rom (Stock based Jellybean rom)
For those of you working on roms: Using the framework-res.apk I uploaded will undo all modifications you made to YOUR framework-res.apk, since this is not a themed framework-res.apk. The file is untouched, only modification is AOSP lockscreen. To keep your modded framework-res.apk and still get the AOSP lockscreen, follow these instructions:
Download the Layouts-xml.zip in the attatchments
Extract it
Open the framework-res.apk of your rom (on your computer) using 7zip or WinRAR
Navigate to /res/layout/
Take the xmls from the Layouts-xml.zip, drag and drop them into the opening "framework-res.apk /res/layout/" window
Click "Yes" if anything popup about updating archive
Enjoy
Click to expand...
Click to collapse
will this thing work on ics???
keep calm and call J.A.R.V.I.S
doperthancoke said:
Sent from my C1605 using XDA Free mobile app
Click to expand...
Click to collapse
okay never mind that.......
keep calm and call J.A.R.V.I.S
doperthancoke said:
Finished modding. Credits: @yayakuya for single sim mod.
yayakuya's thread: http://forum.xda-developers.com/showthread.php?t=2323965
However, the framework-res.apk of the AOSP lockscreen mod from that thread is compressed during compilation which *may* cause problems for some people. Besides, it would be risky to flash on E Dual when the mod is for E Single. I simply modify the layout .xmls to match the modifications in the E single mod and recompile it with less compression. Link to download the framework-res.apk is in the attatchment. Push it to /system/framework/, set permission to rw-r--r--. Worked flawlessly on the Noz rom (Stock based Jellybean rom)
For those of you working on roms: Using the framework-res.apk I uploaded will undo all modifications you made to YOUR framework-res.apk, since this is not a themed framework-res.apk. The file is untouched, only modification is AOSP lockscreen. To keep your modded framework-res.apk and still get the AOSP lockscreen, follow these instructions:
Download the Layouts-xml.zip in the attatchments
Extract it
Open the framework-res.apk of your rom (on your computer) using 7zip or WinRAR
Navigate to /res/layout/
Take the xmls from the Layouts-xml.zip, drag and drop them into the opening "framework-res.apk /res/layout/" window
Click "Yes" if anything popup about updating archive
Enjoy
Click to expand...
Click to collapse
i want the file in Layouts-xml.zip not encrypted.
doperthancoke said:
Ok for some reason my reply didnt appear... So if it didn't show up: No, it will not work with ics. But I made one for ics, and I'll upload it soon.
Sent from my C1605 using XDA Free mobile app
Click to expand...
Click to collapse
Hi, i want this for ICS could you pleas upload it thnx

[Q] twframework

i cant find twframework-res.apk in lewa rom .
is this important for using apk multi tool ?
i have framework-res.apk and systemui.apk

Advanced Framework Mod For Latest Firmware .175

Advanced Framework Mod :laugh:
#What is it?
>Most of the Sony Xperia user likes Sony UI. But in stock framework we see Sony UI only in Sony Apps. This is why making this framework. By flashing this framework you can enjoy Sony UI in Non-Sony Apps.
#Requirements:
>Stock Lollipop 5.1.1 Framework v18.6.A.0.175
#How to install?
>[NUT T2U Recovery users]
1.Take backup
2.Download Advanced Framework Zip
3.Place it in your phones sdcard
4.Reboot into recovery
5.Install Advanced Framework Zip
6.Reboot your phone
[Without Recovery,Only Rooted users]
1.Download Advanced Framework Zip
2.Extract framework-res.apk
3.Copy it to /system
(Note: Do not copy to /system/framework Directly)
4.Set permission to rw-r-r
5.Now move framework-res.apk to framework folder.
Your device will reboot after moving apk to framework folder.You may face bootloop.Take backup of data for safety.
#Download Link
> http://d-h.st/5pbf
#Screenshot
> Check Here http://forum.xda-developers.com/showpost.php?p=49450528&postcount=2
Press Thank Button if You liked my work :good:
@imzihad great
BTW which tool you use to edit framework? I tried Advanced apktool by BDfreak and after editing the framework it bootloops.
Gaurav007 said:
@imzihad great
BTW which tool you use to edit framework? I tried Advanced apktool by BDfreak and after editing the framework it bootloops.
Click to expand...
Click to collapse
I Wanna know that too to rezise the navbar
Gaurav007 said:
@imzihad great
BTW which tool you use to edit framework? I tried Advanced apktool by BDfreak and after editing the framework it bootloops.
Click to expand...
Click to collapse
I used same tool to edit.. Yes,after recompiling , framework-res.apk got corrupted and caused bootloop.. in my case, after compiling, i took resources.arsc from edited apk and replaced it in original apk with winrar.. and it worked
imzihad said:
I used same tool to edit.. Yes,after recompiling , framework-res.apk got corrupted and caused bootloop.. in my case, after compiling, i took resources.arsc from edited apk and replaced it in original apk with winrar.. and it worked
Click to expand...
Click to collapse
Thanks buddy:good:
Gaurav007 said:
Thanks buddy:good:
Click to expand...
Click to collapse
WC
Can we use this mod with this? http://forum.xda-developers.com/xperia-m2/themes-apps/systemui-mod-bug-fixes-odex-t3228895
Or one at a time? i have D2302.
Megamind08 said:
Can we use this mod with this? http://forum.xda-developers.com/xperia-m2/themes-apps/systemui-mod-bug-fixes-odex-t3228895
Or one at a time? i have D2302.
Click to expand...
Click to collapse
You can use it
Megamind08 said:
Can we use this mod with this? http://forum.xda-developers.com/xperia-m2/themes-apps/systemui-mod-bug-fixes-odex-t3228895
Or one at a time? i have D2302.
Click to expand...
Click to collapse
It should work..you can Try and Let me know :good:
Keep backup for safety
And now what changes exactly by there?
Sent from my D2403 using XDA Free mobile app
Matze6989 said:
And now what changes exactly by there?
Sent from my D2403 using XDA Free mobile app
Click to expand...
Click to collapse
Check Screenshot for difference
I have the mod flashed but somehow I can no difference
Sent from my D2403 using XDA Free mobile app
Awesome mod, but i forgot backup rom :/
Someone can post original files here?
Matze6989 said:
I have the mod flashed but somehow I can no difference
Sent from my D2403 using XDA Free mobile app
Click to expand...
Click to collapse
This mod applies sony ui to non sony apps.. try others app like root explorer.. see screenshot for better understanding
I'ts perfect TY.Woking perfectly with moded systemUI and moded systemOverlay.
nice share
thanks

Categories

Resources