[Q] How to decompile JB Apk? - Galaxy S III Q&A, Help & Troubleshooting

Hi guys.
I have Apk Manager.
And, most of apks don't decompile.
I guess this is due to Api level.
Is there any way to increase the api level in apk manager?
Or is there a mod of apk manager that works with JB.
Please reply asap

masterex567 said:
Hi guys.
I have Apk Manager.
And, most of apks don't decompile.
I guess this is due to Api level.
Is there any way to increase the api level in apk manager?
Or is there a mod of apk manager that works with JB.
Please reply asap
Click to expand...
Click to collapse
Get dsixda's kitchen, it now supports the I9300

Search for my thread on how to theme jb.
Sent from my GT-I9300 using Tapatalk 2

Kangburra said:
Get dsixda's kitchen, it now supports the I9300
Click to expand...
Click to collapse
Dsixda kitchen cannot be used to decompile apks.
Phone_Guru said:
Search for my thread on how to theme jb.
Sent from my GT-I9300 using Tapatalk 2
Click to expand...
Click to collapse
link please.

Plus. I'm not really talking about theming.
For all general Apks.
Like SecPhone, SecLauncher, SecGallery, SecContacts etc.
Not theming, just xml modding.

 nice querry man
Sent from my GT-I9300 using xda premium

Use the apktool by ibotpeeches..from here
Apart from SecPhone.apk never had any trouble in decompiling recompiling JB apks..

zoot1 said:
Use the apktool by ibotpeeches..from here
Apart from SecPhone.apk never had any trouble in decompiling recompiling JB apks..
Click to expand...
Click to collapse
Ok.
Any way of changing API level in apk manager?

masterex567 said:
Ok.
Any way of changing API level in apk manager?
Click to expand...
Click to collapse
I don't know much about apk manager but in apktools you can change the api level by -a command..it is generally used while deodexing ..
however, api level will not give you troubles if you use the latest apktool..it included all the magic numbers to work with JB apps..

zoot1 said:
I don't know much about apk manager but in apktools you can change the api level by -a command..it is generally used while deodexing ..
however, api level will not give you troubles if you use the latest apktool..it included all the magic numbers to work with JB apps..
Click to expand...
Click to collapse
Ok.
So i've downloaded the apktool.jar version 1.5.0
alongside the new aapt.exe
Should i use the old apktool.bat to work with this one?

masterex567 said:
Ok.
So i've downloaded the apktool.jar version 1.5.0
alongside the new aapt.exe
Should i use the old apktool.bat to work with this one?
Click to expand...
Click to collapse
Follow the below steps:
Place both Apktool and aapt.exe in the windows directory
have java installed (you might already have it)
right click inside the windows directory, in any clean space, choose open command prompt here
use:
Code:
java -jar apktool.jar d your <apkpath> <destinationfolderpath>
to decompile and
Code:
java -jar apktool.jar b <yourdestinationfolderpath> <yourfinalapkpath>
to recompile the final apk...just drag and drop the folders/apks to cmd, it will add the path
drag and drop the android.manifest.xml and meta-inf files from the original apk to the final apk after you are done..open both the files with 7zip/winrar

masterex567 said:
Dsixda kitchen cannot be used to decompile apks.
Click to expand...
Click to collapse
Funny it works for me.

Kangburra said:
Funny it works for me.
Click to expand...
Click to collapse
?
I thought dsixda kitchen could only deodex and sign apk.
There's no option of decompiling.
Is there?
Or give me the option number..

masterex567 said:
?
I thought dsixda kitchen could only deodex and sign apk.
There's no option of decompiling.
Is there?
Or give me the option number..
Click to expand...
Click to collapse
From the main menu
0 - Advanced options
18 - Plugin Scripts
5 - Decompile & Compile Deodexed File
This is version 2.06 (current).
When it has finished the decompile make the changes then press enter and it will recompile the apk.

Kangburra said:
From the main menu
0 - Advanced options
18 - Plugin Scripts
5 - Decompile & Compile Deodexed File
This is version 2.06 (current).
When it has finished the decompile make the changes then press enter and it will recompile the apk.
Click to expand...
Click to collapse
Ok.
Got it.
Just that my plugin scripts is at 24.
Hit that button for you.

Related

Need help editing fw-res

Can anyone please direct me to the correct tutorial(or similar) on how to modify framework-res.apk files of 2011 xperias like St15i,st18i, etc.. ????
I have been Here but it is for the earlier xperias. Does it apply to today's xperias also ???
decompile apk using apkmanager , edit files and zip.
install apkmanager first and you will get to know everything, no need for a tutorial.
metalrawk said:
decompile apk using apkmanager , edit files and zip.
install apkmanager first and you will get to know everything, no need for a tutorial.
Click to expand...
Click to collapse
I'm using Apk Multi tool, since Apk manager is no longer supporting.
My problem is that the system ui apk i have is from a custom rom(Hybrom v11) which has control panel in the notification area.
Now when i'm decompiling the system ui.apk i get an error in apk tool, an error too technical in the log for me to understand.
I get an error in Apk Manager 4.9 too probably the same as apk multi tool.
So if error occurs some part of the apk is not decompiled right ?
If it is not decompiled correctly how am i going to edit the xmls and recompile it ??
systemui.apk needa dependencies to be decompiled. check there will be an option of decompiling apk with with dependency. when it asks for dependency file, point it to framework-res.apk
metalrawk said:
systemui.apk needa dependencies to be decompiled. check there will be an option of decompiling apk with with dependency. when it asks for dependency file, point it to framework-res.apk
Click to expand...
Click to collapse
Just now did that. But apk tool says that framw-res is not the dependent apk. So what is the solution ??
decompile it without dependency and post log here.
Strange now i'm not getting any error . I really had that problem today morning. Thanks for Prompt replies prateek
Any way one off topic question . Can you tell me how to mod power menu. I want to add reboot and recovery in power menu for my st15i . Do i have to add images for it ??
its not in systemUI afaik. there is other file I forgot its name.
metalrawk said:
its not in systemUI afaik. there is other file I forgot its name.
Click to expand...
Click to collapse
Currently i'm refering This thread. It says I have to edit fw-res and Android.policy.jar . Is that method applicable to Xperia 2011 devices ??
crazyadmit said:
Currently i'm refering This thread. It says I have to edit fw-res and Android.policy.jar . Is that method applicable to Xperia 2011 devices ??
Click to expand...
Click to collapse
yes it will work

[Q] Deodex LewaOS

Does anyone know how to deodex LewaOS? I tried various tools but every tools got error
lozohcum said:
Does anyone know how to deodex LewaOS? I tried various tools but every tools got error
Click to expand...
Click to collapse
You could manually deodex the files using baksmali, I would recommend taking a look at this guide here for instructions on how to deodex the files.
shimp208 said:
You could manually deodex the files using baksmali, I would recommend taking a look at this guide here for instructions on how to deodex the files.
Click to expand...
Click to collapse
thank yoy I will try
api_level is always the same for all odex?
lozohcum said:
thank yoy I will try
api_level is always the same for all odex?
Click to expand...
Click to collapse
Yes you should use the same api level for all the apps you want to deodex to avoid inconsistencies.
So should I deodex each app individally using this scheme
baksmali -a 15 -x APP.odex -d framework -o APP
Click to expand...
Click to collapse
where APP is name of app I want to deodex (app from system/app and from system/framewok)
Am I right?
I want to be sure that I understand this process
Did you try dsixda kitchen?
lozohcum said:
So should I deodex each app individally using this scheme
where APP is name of app I want to deodex (app from system/app and from system/framewok)
Am I right?
I want to be sure that I understand this process
Click to expand...
Click to collapse
Correct that is the syntax that should be used, you could technically make the output directory name whatever you want it to be put for simplicity and organization I recommend making it the same as the app you are deodexing (So if your deodexing calculator it would be best to make the output directory calculator as well to keeps things organized).
I've just run deodexing on dsixda kitchen and it seems working, I had to set API level to 10.
I have problem with spktool. I have newest release and the problem is that I can decompile every app but when I try to compile anything back, there is no apk file in folder and lot's of errors in console. I tried it manually and using terminall tools but every way doesn't work for compiling :/
(I'm trying to translate MokeeOS and LewaOS)

[Q] How to MOD APPS ?

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?

[GUIDE]How to recompile LGSettings.apk and LGeasySettings.apk

Hi there,
I have been struggling for long time with decompiling and resompiling LGsettings.apk for my Android L theme. Here is the solution:
LGSettings.apk
Look for /res/layout/dialog_title_secondlines.xml. In the 4. line change
Code:
@*com.lge.internal:style/DialogWindowTitle.Holo.Light
to
Code:
"@com.lge:style/DialogWindowTitle.Holo.Light"
Then look for /res/xml/preference_widget_checkbox.xml. In the second line change:
Code:
"@*com.lge.internal:style/Widget.Holo.Light.CompoundButton.CheckBox'
to
Code:
"@com.lge:style/Widget.Holo.Light.CompoundButton.CheckBox"
Source
Check res/values/arrays.xml if you an find "<" here. If yes replace all with "<". Save and close, try to recompile.
Source.
LGEasySettings.apk
Do the same changes. In this case I did not have "<"-s in the arrays.xml.
Update: unfortunately the Settings app crashes after successful recompiling.
Hit the thanks button if it helped.
Kickoff said:
Code:
"@*com.lge.internal:style/Widget.Holo.Light.CompoundButton.CheckBox'
to
Code:
"@com.lge:style/Widget.Holo.Light.CompoundButton.CheckBox"
.
Click to expand...
Click to collapse
This line has already been changed in V10L
So for the news
I have the wrong references in 10L. The same with the settings apk from your Rom. ?
Just finishing compiling, send testers and I take relationships
Beta9 or RC2 apktool?
Ok, Cloudyfa gave a hint. Just made the changes as described above, recompiled the apk and replaced within the zip the original files that were touched. No crash anymore, it works.
@Kickoff. Which apktool do you recommend using? I'm currently using Beta9
seanskiT! said:
@Kickoff. Which apktool do you recommend using? I'm currently using Beta9
Click to expand...
Click to collapse
I was using RC2, then compiled the tool based on the actual sources. Still waiting for RC3.
Update: unfortunately the Settings app crashes after successful recompiling.
what it mean bro?
Kickoff said:
Ok, Cloudyfa gave a hint. Just made the changes as described above, recompiled the apk and replaced within the zip the original files that were touched. No crash anymore, it works.
Click to expand...
Click to collapse
Which Zip are you reffering to?? After recompiling the apk did you unzip the file then replced it or used the VR theme??
Azharkanorwala said:
Which Zip are you reffering to?? After recompiling the apk did you unzip the file then replced it or used the VR theme??
Click to expand...
Click to collapse
Sorry, within the apk not zip.

Off-Topic Discussion for kitchen users

This thread should serve as a much needed place for kitchen users to discuss anything not exactly kitchen related
Reserved
Sent from my Redmi Note 3 using Tapatalk
SuperR. said:
It unpacks in AIK without issues running 64-bit Ubuntu 16.04. You are probably right and just missing a dependency that comes pre-installed in Debian based systems. Let me know if you figure out a way to deal with it
edit: do you have cpio installed? If not that may solve the issue
Click to expand...
Click to collapse
I had flashed AIK in custom recovery, but I can't seem to get it to work properly..
The Exploiter said:
That's good I'm glad to hear that
Click to expand...
Click to collapse
Bro 2 more things i want to learn
1st how add multi languages in extracted rom?
And how fix gapps also in extracted rom?
Mr Hassan said:
Bro 2 more things i want to learn
1st how add multi languages in extracted rom?
And how fix gapps also in extracted rom?
Click to expand...
Click to collapse
What do you mean by that sir? I will be happy to help you
---------- Post added at 06:04 AM ---------- Previous post was at 06:02 AM ----------
Mr Hassan said:
Bro 2 more things i want to learn
1st how add multi languages in extracted rom?
And how fix gapps also in extracted rom?
Click to expand...
Click to collapse
For multi languages its usually built into the ROM. Fixing gapps depends on what's wrong with it.
When you extract your rom what gapps are you trying to fix?
@Mr Hassan, @The Exploiter
Moved your posts into this thread as they are off topic for the kitchen. Feel free to continue here if you would like
SuperR. said:
@Mr Hassan, @The Exploiter
Moved your posts into this thread as they are off topic for the kitchen. Feel free to continue here if you would like
Click to expand...
Click to collapse
Thank you I'll be sure to come back
The Exploiter said:
What do you mean by that sir? I will be happy to help you
?
Click to expand...
Click to collapse
can you give me little details about add multi languages in extracted rom
and also add gapps
Mr Hassan said:
can you give me little details about add multi languages in extracted rom
and also add gapps
Click to expand...
Click to collapse
If you have a custom ROM build without gapps then grab a version perspective to your device too flash in recovery
To add multi languages (depending on the ROM) I would look around on XDA.. I haven't ever heard of multi language..
I'm having the worst time trying to get java6 installed.. Does anyone have a good way?
The Exploiter said:
I'm having the worst time trying to get java6 installed.. Does anyone have a good way?
Click to expand...
Click to collapse
Java 6?
sudo apt-get install openjdk-6-jdk openjdk-6-jre
You need Java 8 for the SuperR Kitchen tho..
Sent from my N9515 using Tapatalk
bcrichster said:
Java 6?
sudo apt-get install openjdk-6-jdk openjdk-6-jre
You need Java 8 for the SuperR Kitchen tho..
Click to expand...
Click to collapse
Its for CM11 source code since I'm building CWM for nthe SM-T113
---------- Post added at 02:15 AM ---------- Previous post was at 01:34 AM ----------
bcrichster said:
Java 6?
sudo apt-get install openjdk-6-jdk openjdk-6-jre
You need Java 8 for the SuperR Kitchen tho..
Click to expand...
Click to collapse
Its telling me there's no install canadate.. I'm gonna go break my PC now..
Temp Clockworkmod is now built for the SM-T113
Clockworkmod for SM-T116
hi guys...
can someone help me please?
I'm really new to superr kitchen...
I'm trying to make an deodexed rom for an S8+.
I can't get it it start. it boots but stucks at samsung logo.
so, what are the right way to make an deodexed rom?
thanks in advance
Hey @SuperR. I have a general apktool question.
I want to make some SystemUI mods for my ROM.
When recompiling SystemUI does it need to be signed, zipaligned, or both?
Your tool is awesome btw.
bkores said:
Hey @SuperR. I have a general apktool question.
I want to make some SystemUI mods for my ROM.
When recompiling SystemUI does it need to be signed, zipaligned, or both?
Your tool is awesome btw.
Click to expand...
Click to collapse
I am not the best to answer this honestly. I have not modified an apk since KitKat. The plugin is there for people such as yourself who want to use it. It has all the signing options I am aware of. If you don't get any other answers, I suggest trying them all to see what works for you
bkores said:
Hey @SuperR. I have a general apktool question.
I want to make some SystemUI mods for my ROM.
When recompiling SystemUI does it need to be signed, zipaligned, or both?
Your tool is awesome btw.
Click to expand...
Click to collapse
For system apps, I use winrar, or if using linux the default archive manager, to move the modified files into the original. I try to keep the meta-inf, sec-inf, and androidmanifest.xml intact on the original app and just drag the res, classes.dex (if modifying smali), and resources.arsc into the original. Then just zipalign.
Thats worked for me on 6.0.1, I think some things may have changed with 7.0.1 and I'm by no means an expert but thats how I do it.
kevintm78 said:
For system apps, I use winrar, or if using linux the default archive manager, to move the modified files into the original. I try to keep the meta-inf, sec-inf, and androidmanifest.xml intact on the original app and just drag the res, classes.dex (if modifying smali), and resources.arsc into the original. Then just zipalign.
Thats worked for me on 6.0.1, I think some things may have changed with 7.0.1 and I'm by no means an expert but thats how I do it.
Click to expand...
Click to collapse
So would it be like this:
1) Install frameworks
2) Decompile apk
3) Make modifications
4) Rename APK file to .zip to allow for pasting res and resources.arsc
5) Paste modified res and resources.arsc into the zip archive.
6) Rename the zip archive back to an apk file.
7) Push apk to /system/priv-app/SystemUI/SystemUI.apk.
8) Perform chmod 0644 on the apk.
I'm a complete noob at this so I want to make sure I'm doing everything right.
bkores said:
So would it be like this:
1) Install frameworks
2) Decompile apk
3) Make modifications
4) Rename APK file to .zip to allow for pasting res and resources.arsc
5) Paste modified res and resources.arsc into the zip archive.
6) Rename the zip archive back to an apk file.
7) Push apk to /system/priv-app/SystemUI/SystemUI.apk.
8) Perform chmod 0644 on the apk.
I'm a complete noob at this so I want to make sure I'm doing everything right.
Click to expand...
Click to collapse
Yep, that's how I do it. Except you dont have to rename your apk files, they'll open up in archive just like a zip. With jar files I just push without having to drag anything to the original and they'll work.
If you ever decide to modify the framework-res or certain system apps like secsettings, camera, contacts, and probably some others, I have to do those with Windows and winrar because they dont seem to work with the normal compression mode. Winrar lets you change the compression mode from normal to store. Thats the only I can get those working.

Categories

Resources