recompile apk - LG Optimus L9 P760, P765, P768, P769

can you help me to recompile phone.apk with one change.

garik345 said:
can you help me to recompile phone.apk with one change.
Click to expand...
Click to collapse
Not really re-compiling, but have you tried xposed framework yet?

chicguy said:
Not really re-compiling, but have you tried xposed framework yet?
Click to expand...
Click to collapse
No, xposed framework bad to use with miui based rom.

garik345 said:
No, xposed framework bad to use with miui based rom.
Click to expand...
Click to collapse
So what do you want to do? de-compile Phone.apk, edit some files, then re-compile it? With apktool, right?

artit said:
So what do you want to do? de-compile Phone.apk, edit some files, then re-compile it? With apktool, right?
Click to expand...
Click to collapse
right, but when i want to do re-compile i get error.
i also take error when re-compile without changes.

garik345 said:
right, but when i want to do re-compile i get error.
i also take error when re-compile without changes.
Click to expand...
Click to collapse
Yes, I got that error when I try to pack Setting.apk. It's because MIUI apk use some directory notation that not standard to apktool.
Ex. values-hugeui
I solve this by changing values-hugeui to values-xxhdpi (or maybe values-xhdpi, don't know that hugeui means exactly). If values-xxhdpi exists, you can try to merge all files and config in it.

garik345 said:
right, but when i want to do re-compile i get error.
i also take error when re-compile without changes.
Click to expand...
Click to collapse
May I correct my wrong answer, MIUI use its own apktool & aapt. So to rebuild MIUI apk you should add ~/path/to//miui/tools to your $PATH environment and it should be at the start of $PATH to override other apktool & aapt.

Related

[Q]mdpi-v4

i see some framework-res.apk use mdpi-v4, land-mdpi-v4, en-mdpi-v4, nodpi-v4 in framework-res.apk.
anyone know how to build it?
thx for your answer
agresive said:
i see some framework-res.apk use mdpi-v4, land-mdpi-v4, en-mdpi-v4, nodpi-v4 in framework-res.apk.
anyone know how to build it?
thx for your answer
Click to expand...
Click to collapse
those that you talk about where rebuilded (recomplided) with apktool (or apk manager)...one decompiled it can't be recompiled...when themin you nedd the original framework-res.apk...you theme it and then you recompile
adi4motion said:
those that you talk about where rebuilded (recomplided) with apktool (or apk manager)...one decompiled it can't be recompiled...when themin you nedd the original framework-res.apk...you theme it and then you recompile
Click to expand...
Click to collapse
original framework-res.apk from original ROM? if i use apk manager, how i can do it?

[Q] framework compile error

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)

[Q] How to decompile JB Apk?

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.

Error while recompiling APK

Hello XDA brothers.
I am running Android APK MULTI TOOL for recompiling and decompiling an APK. When I decompile it, it goes smoothly. But when I attempt recompiling, it gives A LOT of errors stating at the end "... is not defined". This is not an after-mod error because I tried recompiling it right after decompiling, without even opening the decompiled folder. It still gives the same error. Kind of frustrating. So, can anyone help?¿
dominator96 said:
Hello XDA brothers.
I am running Android APK MULTI TOOL for recompiling and decompiling an APK. When I decompile it, it goes smoothly. But when I attempt recompiling, it gives A LOT of errors stating at the end "... is not defined". This is not an after-mod error because I tried recompiling it right after decompiling, without even opening the decompiled folder. It still gives the same error. Kind of frustrating. So, can anyone help?¿
Click to expand...
Click to collapse
comform that you have install proper framework and systemui
Vaibhav Chauhan said:
comform that you have install proper framework and systemui
Click to expand...
Click to collapse
I am not decompiling a system file. Its YA weather apk app. Do I still want the system ui and framework? Btw my phone's not rooted so is it possible to pull these files from phone?
dominator96 said:
I am not decompiling a system file. Its YA weather apk app. Do I still want the system ui and framework? Btw my phone's not rooted so is it possible to pull these files from phone?
Click to expand...
Click to collapse
you need to deodex this files and then install it to the tool then it will compile according to this apks
Vaibhav Chauhan said:
you need to deodex this files and then install it to the tool then it will compile according to this apks
Click to expand...
Click to collapse
Deodex a normal app which is available at PlayStore? :/ Is it possible?
dominator96 said:
Deodex a normal app which is available at PlayStore? :/ Is it possible?
Click to expand...
Click to collapse
nope its not contain odex files
Vaibhav Chauhan said:
nope its not contain odex files
Click to expand...
Click to collapse
But you just said to deodex them files -.- Hold on, lets start again.
I want to decompile a non-system apk file and then recompile. Decompile goes smooth but while recompiling, it states a BUNCH of errors saying "........ is not defined". This is what I want to fix about
dominator96 said:
But you just said to deodex them files -.- Hold on, lets start again.
I want to decompile a non-system apk file and then recompile. Decompile goes smooth but while recompiling, it states a BUNCH of errors saying "........ is not defined". This is what I want to fix about
Click to expand...
Click to collapse
no no
understand properly
firstvyou need to deodex systemui app and framework app
tthen install it to the multitool
then compile the other apps
it will be compile
Vaibhav Chauhan said:
no no
understand properly
firstvyou need to deodex systemui app and framework app
tthen install it to the multitool
then compile the other apps
it will be compile
Click to expand...
Click to collapse
Oh so that's it,
But my phone is not rooted. Can I use any system ui and framework or do I have to use only my phone's system ui and fframewok?
Vaibhav Chauhan said:
no no
understand properly
firstvyou need to deodex systemui app and framework app
tthen install it to the multitool
then compile the other apps
it will be compile
Click to expand...
Click to collapse
hey, can I use your system ui and framework to compile apps?
dominator96 said:
Oh so that's it,
But my phone is not rooted. Can I use any system ui and framework or do I have to use only my phone's system ui and fframewok?
Click to expand...
Click to collapse
yes can use non rooted phones apps but first deodex it
if you will use my phone's apps then it will run on my phone not in yours
Vaibhav Chauhan said:
yes can use non rooted phones apps but first deodex it
if you will use my phone's apps then it will run on my phone not in yours
Click to expand...
Click to collapse
I want to modify an APK and then share it with everyone. How can I make it applicable on all phones?
dominator96 said:
I want to modify an APK and then share it with everyone. How can I make it applicable on all phones?
Click to expand...
Click to collapse
sorry but it can not run on all phones
it will run in that phone on which you sign app or the similar phones

[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.

Categories

Resources