[Q] Deodex LewaOS - Android Q&A, Help & Troubleshooting

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)

Related

[Ready to DONATE][Q] How to manually deodex Email.apk and Mobileprint.apk

I found many threads of people who can't deodex Email.apk, Mobileprint.apk, even manualy, including every .jar in the baksmali.jar -c: xxxx.
Is there a Dev who could give us the command line to succesfully deodex Email.odex and Mobileprint.odex ?
Thanks
Edit 06/30/2011 : I am ready to donate for the help you could give me
Found the same threads you did.. I am researching this as well.. Will keep you updated if I find anything.
U don't need to deodex the whole rom, though you will need to deodex the whole framework.
mak1 said:
U don't need to deodex the whole rom, though you will need to deodex the whole framework.
Click to expand...
Click to collapse
Ok, thanks for the answer, but what to do with the .odex files (Email and Mobileprint), I'm not going to leave them non deodexed with others deodexeds apk ?
sicopat said:
Ok, thanks for the answer, but what to do with the .odex files (Email and Mobileprint), I'm not going to leave them non deodexed with others deodexeds apk ?
Click to expand...
Click to collapse
i wana know this tooo
If ur not changing anything in the BOOTCLASSPATH files, u can deodex a single file
-app for eg.-, edit it and put it into ur device without deodexing anything else, delete the existing odex file.
u'll need baksmali for that purpose-apktool donot have that feature btw-also u'v to have framework files available (just pull the entire framework directory from the phone) pass it's directory via the -d option. App depends on particular jar files will require that through -c option.
mak1 said:
If ur not changing anything in the BOOTCLASSPATH files, u can deodex a single file
-app for eg.-, edit it and put it into ur device without deodexing anything else, delete the existing odex file.
u'll need baksmali for that purpose-apktool donot have that feature btw-also u'v to have framework files available (just pull the entire framework directory from the phone) pass it's directory via the -d option. App depends on particular jar files will require that through -c option.
Click to expand...
Click to collapse
That's the problem, even with the entire framework directory, I am not able to deodex Email.apk and Mobileprint.apk . Seems like if missing Bootclasspath ...
No problem manualy deodexing every other apks ..
I tried to deodex both of these files with omrij's tool and it was successfull.
http://forum.xda-developers.com/showthread.php?t=1053227
TAEL said:
I tried to deodex both of these files with omrij's tool and it was successfull.
http://forum.xda-developers.com/showthread.php?t=1053227
Click to expand...
Click to collapse
I wonder if it ignores certain errors. If i use baksmali with the -I option, i can get deodexed output, But obviously the APK won't work.
sicopat said:
I found many threads of people who can't deodex Email.apk, Mobileprint.apk, even manualy, including every .jar in the baksmali.jar -c: xxxx.
Is there a Dev who could give us the command line to succesfully deodex Email.odex and Mobileprint.odex ?
Thanks
Click to expand...
Click to collapse
I got it done for u method is a bit complicated though
First of all, Thanks!
Second of all, I'm much more interested on how its done rather than the apps themselves. I'd be very happy if you could share how by any means.
ransagy said:
First of all, Thanks!
Second of all, I'm much more interested on how its done rather than the apps themselves. I'd be very happy if you could share how by any means.
Click to expand...
Click to collapse
same here..i guess we just want to learn so please share
thanks
Deodexing is not my favorite stuff I do it for my personal use at times, I use my own set of scripts on linux with custom bootclasspaths.
Would recommend to have a look here: http://code.google.com/p/smali/wiki/DeodexInstructions
mak1 said:
Deodexing is not my favorite stuff I do it for my personal use at times, I use my own set of scripts on linux with custom bootclasspaths.
Would recommend to have a look here: http://code.google.com/p/smali/wiki/DeodexInstructions
Click to expand...
Click to collapse
thanks already read that
mak1 said:
Deodexing is not my favorite stuff I do it for my personal use at times, I use my own set of scripts on linux with custom bootclasspaths.
Would recommend to have a look here: http://code.google.com/p/smali/wiki/DeodexInstructions
Click to expand...
Click to collapse
I also wrote my own deodexing bash script with baksmali/smali/zip. The thing is, Those two APK request java libraries to deodex (java.awt.* and javax.swing.*). I could't find anywhere to get those dependencies from, So if you could share which boot classes you used for satisfying those requirements, it would be great.
Thanks!
I am ready to make a donation for help.
I would like to be able to do it myself
sicopat said:
I am ready to make a donation for help.
I would like to be able to do it myself
Click to expand...
Click to collapse
I have found out how you do it, by checking my bash logs way back
Just use the -I ignore flag on the command, along with regular bootclasspath.
The errors are not an issue and the apps work fine.
Enjoy.
pulser_g2 said:
I have found out how you do it, by checking my bash logs way back
Just use the -I ignore flag on the command, along with regular bootclasspath.
The errors are not an issue and the apps work fine.
Enjoy.
Click to expand...
Click to collapse
Thanks so much Pulser, I am going to try this.
it's Curious we canno't avoid errors.
As promised : donation done
Big thanks
Hi guys, same here with Email.odex...
I'm not be able to deodex it...
Somebody can help me? Thanks!

[Q] Deodex 4.1.B.0.431

Seen a few custom ROMs around already, so got me interested.
How to deodex the framework files of our 4.1.B.0.431 firmware? I just tried some solutions, however these didn't work.
The /system/app folder is deodexed already, but framework not, so I am unable to edit the framework.
Someguyfromhell said:
Seen a few custom ROMs around already, so got me interested.
How to deodex the framework files of our 4.1.B.0.431 firmware? I just tried some solutions, however these didn't work.
The /system/app folder is deodexed already, but framework not, so I am unable to edit the framework.
Click to expand...
Click to collapse
Check out odex solution by puppet? I did not test my self. As my internet bandwidth was over. Now it's up again, and I will try.
The odex solution by puppet worked on cm9 as reported by him. I will give it a try and report back. That is, in case some other person does not help you by then.
Thanks,
Rick
Sent from my SK17i using XDA
DragonClawsAreSharp said:
Check out odex solution by puppet? I did not test my self. As my internet bandwidth was over. Now it's up again, and I will try.
The odex solution by puppet worked on cm9 as reported by him. I will give it a try and report back. That is, in case some other person does not help you by then.
Thanks,
Rick
Sent from my SK17i using XDA
Click to expand...
Click to collapse
I need to deodex, not odex.
Someguyfromhell said:
I need to deodex, not odex.
Click to expand...
Click to collapse
Tickle My Android might be able to help..
Ticklefish said:
Tickle My Android might be able to help..
Click to expand...
Click to collapse
Tried. Result:
Code:
Tickle My Android v.3.0
By Ticklefish
tinyurl.com/ticklemyandroid
**ALWAYS Backup Your Device Before Modifying It!!**
------------------------------------------------------------------------------
Files Available For Deodexing:
Volume in drive C is WINDOWS
Volume Serial Number is F4ED-400E
Directory of C:\Users\Dude\Desktop\Tickle\TickleMyAndroid\_deodex
android.policy.odex apache-xml.odex bouncycastle.odex
core.odex core-junit.odex ext.odex
framework.odex services.odex
8 File(s) 20.250.120 bytes
0 Dir(s) 22.052.188.160 bytes free
Please Enter Filename That You Want To Deodex (case-sensitive)
Or Enter 'x' To Cancel: framework.odex
----------------
Now Deodexing "framework.odex" From "_deodex" Folder
--This Will Overwrite Any Existing Files--
Enter 'x' To Cancel Or Any Other Key To Continue: j
UNEXPECTED TOP-LEVEL EXCEPTION:
org.jf.dexlib.Util.ExceptionWithContext: regCount does not match the number of a
rguments of the method
at org.jf.dexlib.Util.ExceptionWithContext.withContext(ExceptionWithCont
ext.java:54)
at org.jf.dexlib.Code.InstructionIterator.IterateInstructions(Instructio
nIterator.java:92)
at org.jf.dexlib.CodeItem.readItem(CodeItem.java:154)
at org.jf.dexlib.Item.readFrom(Item.java:76)
at org.jf.dexlib.OffsettedSection.readItems(OffsettedSection.java:48)
at org.jf.dexlib.Section.readFrom(Section.java:143)
at org.jf.dexlib.DexFile.<init>(DexFile.java:431)
at org.jf.baksmali.main.main(main.java:265)
Caused by: java.lang.RuntimeException: regCount does not match the number of arg
uments of the method
at org.jf.dexlib.Code.Format.Instruction35c.checkItem(Instruction35c.jav
a:160)
at org.jf.dexlib.Code.Format.Instruction35c.<init>(Instruction35c.java:9
3)
at org.jf.dexlib.Code.Format.Instruction35c$Factory.makeInstruction(Inst
ruction35c.java:167)
at org.jf.dexlib.Code.InstructionIterator.IterateInstructions(Instructio
nIterator.java:84)
... 6 more
Error occured at code address 0
code_item @0x18dbdc
----------------
Error! File Not Deodexed!
Press any key to continue . . .
The stock ROM is not fully odexed, but only some framework files, that's all.
Someguyfromhell said:
Seen a few custom ROMs around already, so got me interested.
How to deodex the framework files of our 4.1.B.0.431 firmware? I just tried some solutions, however these didn't work.
The /system/app folder is deodexed already, but framework not, so I am unable to edit the framework.
Click to expand...
Click to collapse
I don't know if my solution could help u or not, but let's try cuz there is no problem with me.
I Used UOT Kitchen to cook my framework-res.apk as usual, no need to mind about those .odex files. and when i get new framework-res.apk from UOT, Doom! I can edited it and enjoy with no problem.
I need to edit framework.jar file in order to add certain customizations.
Someguyfromhell said:
I need to edit framework.jar file in order to add certain customizations.
Click to expand...
Click to collapse
Oops! No idea too cause I can't Deodex since it just release few days.
Maybe you've seen this, and/or tried it. But still:
http://forum.xda-developers.com/showthread.php?t=1600805
iONEx said:
Maybe you've seen this, and/or tried it. But still:
http://forum.xda-developers.com/showthread.php?t=1600805
Click to expand...
Click to collapse
Thanks, will give it a try
Dsixda's Kitchen also deodexes the files at the /framework folder, although when I tried it on the system dump from stock Active, then Wifi and USB weren't working.
Might be a coincidence though. I'll see how it goes as I build ICS Spartan...
x-Ultimate v2.4 not working either
iONEx said:
Maybe you've seen this, and/or tried it. But still:
http://forum.xda-developers.com/showthread.php?t=1600805
Click to expand...
Click to collapse
it isn't working either with the framework.odex file throws the same error message! but deodexes other odex files frome framework dir.
gouthamthemostwanted said:
it isn't working either with the framework.odex file throws the same error message! but deodexes other odex files frome framework dir.
Click to expand...
Click to collapse
So i have the same issue as you have. did you get with any solution?
I'm just throwing it out there because i had some similar problems lately, this is for me running win7
Use jdk 6, not 7 and and add system variable to path value and also create a new JAVA_HOME variable with path to the jdk\bin folder
Just thowing it outthere since it seems your error is generated from the runtime services
iONEx said:
Maybe you've seen this, and/or tried it. But still:
http://forum.xda-developers.com/showthread.php?t=1600805
Click to expand...
Click to collapse
This works just deodexed .587

[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

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