[Q] About mobile apktool - Samsung Galaxy Tab Plus

Have anyone tried this https://github.com/pqy330/apktool/blob/master/README.md
As my lappy is on maintainance this days I try to use it for decompiling/recompiling apk's but I can't seem to get it working on my p6200. Successful on decompiling but error on recompiling without doing any changes on xml/smali files.
Any solution guys?

omike123 said:
Have anyone tried this https://github.com/pqy330/apktool/blob/master/README.md
As my lappy is on maintainance this days I try to use it for decompiling/recompiling apk's but I can't seem to get it working on my p6200. Successful on decompiling but error on recompiling without doing any changes on xml/smali files.
Any solution guys?
Click to expand...
Click to collapse
Confirmed to myself that I'm a complete idiot, hehe...
Somehow I figure out a way to to make these works on my P6200 running cm12.
How to delete this?

Related

taskbar font color

i was just wondering what the deal is with trying to change the color of the letters and numbers on the taskbar.. i remember reading somewhere that it causes a bootloop but has there been any progress on that?
thanks!
Not sure about the boot loop rumor, but its almost near impossible to change. you have to deodex .odex files to get to the actual file to make the change. The problem is the .odex files can be deodexed, but reassembling them is more difficult. Trust me, im still trying to find a way to get this done.
obannvi said:
Not sure about the boot loop rumor, but its almost near impossible to change. you have to deodex .odex files to get to the actual file to make the change. The problem is the .odex files can be deodexed, but reassembling them is more difficult. Trust me, im still trying to find a way to get this done.
Click to expand...
Click to collapse
I was able to un-odex the file and see the code I needed to change. The problem fo rme was re-odexing the file. I un-odexed the file on the phone and then used utilities to re-odex on my PC. I wonder if I need to re-odex directly on the phone to create a valid file. Has anyone tried this yet?
daryelv said:
I was able to un-odex the file and see the code I needed to change. The problem fo rme was re-odexing the file. I un-odexed the file on the phone and then used utilities to re-odex on my PC. I wonder if I need to re-odex directly on the phone to create a valid file. Has anyone tried this yet?
Click to expand...
Click to collapse
i dont know..
if i had enough skills and knowledge about that stuff i would try but i'm still learning :]
is anyone up for the challenge?

[Q] Extracting source from APK

Hi, I am trying to get the source code of the ToggleWidgets.apk that cames with my Motorola Defy+. I already read many things (since I am new user, I am not able to post outside links) but I was not succesful on doing it. What I did so far:
Copied the frame moto-res.apk, framework-res.apk, and blur-res.apk from my Rom.
Installed it on the apktool, apktool if ...
Runned apktool d ToggleWidgets.apk and it was correctly extracted into the dir ToggleWidgets
Now I was expecting to find a classes.dex file. But there is not, and I got stuck. If someone knows what should I do, or a link with things to clarify, I would be thankful.
I just renamed one of my apps with .zip and opened it, and the classes.dex file was in there. not sure if that helps or not.
@ronaldguilmet: It was the very first thing I tried. Interesting that in my case the file present. Thanks!
I guess the class files generated with the Android SDK uses obfuscation through Proguard. I think you cannot disassemble it.
PS: If you approved the previous answer please click on thanks.
thgramos said:
I guess the class files generated with the Android SDK uses obfuscation through Proguard. I think you cannot disassemble it.
PS: If you approved the previous answer please click on thanks.
Click to expand...
Click to collapse
I do not know why ToggleWidgets.apk does not include classes.dex file. But when I tried different applications, I could get the source code using dex2jar, and then jdgui.
eduardomucelli said:
I do not know why ToggleWidgets.apk does not include classes.dex file. But when I tried different applications, I could get the source code using dex2jar, and then jdgui.
Click to expand...
Click to collapse
did you manage to deodex it? if so, can you tell me how? I've tried differents methods with no success. My ultimate goal is to be able to use the Toggle Widgets in a custom ROM like CM9, I don't even know if this is possible without using the motoblur launcher. Could it be that you are trying to do the same thing? it's just that I like those widgets so much and I would like to keep them in a different ROM.

Editing APK files

Hi i have read a few posts about editing apk files but most are only about editing the image files. i need to edit the classes.dex file inside the apk i have done this but when i try and install the apk it doesnt work is this possible to do? thanks
this is not to do anything illegal it is simply to make an android app i use equal to the iphone equivalent (there are less servers for the android app) so i basically want to change the url from the apk to the iphone url)
Cheers
morgs640 said:
Hi i have read a few posts about editing apk files but most are only about editing the image files. i need to edit the classes.dex file inside the apk i have done this but when i try and install the apk it doesnt work is this possible to do? thanks
this is not to do anything illegal it is simply to make an android app i use equal to the iphone equivalent (there are less servers for the android app) so i basically want to change the url from the apk to the iphone url)
Cheers
Click to expand...
Click to collapse
Tried signing the file after modding it?
Sent from my GT-S5360 using xda premium
Hi thanks for your reply, yes i have and it still doesnt work unfortunately
Use apktool to extract the APK, you'll get .smali files instead of classes.dex (this is the decompiled version). Edit these files appropriately, then repack the APK with apktool and sign it. Should work.
Does apktool require command line? if so it is too complicated for me
Yes, it does. If command line is too difficult, it's probably unlikely you'll be able to get this working I'm afraid. You could try this: http://forum.xda-developers.com/showthread.php?t=1619473
It's an IDE for editing APKs, might help. But honestly, the command line part is the easy bit
Just never had any luck with any command line stuff for android never works for me and i hate all the extra crap you have to install to use it. Thanks anyway ill see how i go.
morgs640 said:
Just never had any luck with any command line stuff for android never works for me and i hate all the extra crap you have to install to use it. Thanks anyway ill see how i go.
Click to expand...
Click to collapse
If you wanna do basic stuff wid apktool then its a reaaly easy tool.. The commands are really very small!
Apktool d xxxx.apk for decompile
Apktool b xxxx for compiling n ur done!
Even the complex ones arent difficult! Only the installing of apktool takes time and its the hardest thing in the whole procedure
Sent from my GT-S5360 using XDA
in theory apktool is faily simple. but if you compile for android 4.0 better prepare yourself for huge headaches and a couple of white hairs as this thing wont work. i know two solutions, one consists of a really stupid juggling with two versions, one old which you can barely find, and one new, decompile with the old one, compile with the new one. some guy made a mod though and it finally ends the trouble, but i haven't seen it officially pronounced, which made it so damn hard to find it, hidden in some internet forums. another problem was that aapt needs to be present in the same directory, error codes will just spew out a bunch of gibbersish and you will never know whats wrong so all thats left is trying. but once you got it working it is as easy as pie.
molesarecoming said:
some guy made a mod though and it finally ends the trouble, but i haven't seen it officially pronounced, which made it so damn hard to find it, hidden in some internet forums. but once you got it working it is as easy as pie.
Click to expand...
Click to collapse
You mean this: http://forum.xda-developers.com/showthread.php?t=1551236 ? (It was about two threads below this one at the time I posted this )
nice! i made myself little batch files for this. i just go "apkd skype" to decompile skype.apk and apkb skype for building it, zipping it, signing it. didnt even know theres a guy out there now.
SifJar said:
Yes, it does. If command line is too difficult, it's probably unlikely you'll be able to get this working I'm afraid. You could try this: http://forum.xda-developers.com/showthread.php?t=1619473
It's an IDE for editing APKs, might help. But honestly, the command line part is the easy bit
Click to expand...
Click to collapse
This program worked perfectly thank you so much

Problem with deodex

Hello everyone,
Firstly, I'm sorry if it's not the good place but I didn't found out the right place.
So I'm here because I have a problem with my sanei n10 quad tablet.
I tried to deodex it with smali/baksmali version 1.4.1.
For the apk, no problem. For certain jar, like am.jar no problem either.
But when I deodex a jar like framework.jar, I don't have any error during the process but I get bootloop after replacing it. Same for services.jar.
I specify the right bootclasspath-dir and I tried also with bootclasspath.
I searched on the web, but nothing for that kind of error.
So does anyone know what I am missing/messing ?
Many thanks in advance to anyone who can help me
ps: I also tried to deodex with dsixda's kitchen, bootloop again.

[Q] apktool hates me :c

ok so.... i cant for the life of me get apktool to work its magic ... i have set my cmd directory to c:\apktool where i have my apktool files extracted but everytime i try to run any comman involving the frase "apktool" it gives me an error message saying that "apktool could not be recognized as an command" (i have norwegian os, so i dont really know exactly what the norwegian error message translates to)
i run windows btw....
all i want is to watch hbonordic on my rooted device this makes me so sad and frustrated .... i hate it when i dont understand something how do i make this work???
thank you guys i appreciate your insights
SOLVED
What did you do? Others may have the same problem.
Sent from my GT-N8010 using Tapatalk HD
CASz said:
What did you do? Others may have the same problem.
Sent from my GT-N8010 using Tapatalk HD
Click to expand...
Click to collapse
right! sorry .
well i basicly just found an youtubevid with a guy using the application, and downloaded the same applications he used (the link in description)
youtube url:
www.youtube.com/watch?v=oLQynXg8noM
seems to me that the tool works or not is completely random :/ even tthough i downloaded it from official website it would not work wieerd ****
Try different version of apktool and smali. When I download from official site apktool, it decompile every apk file but build apk dont work always was errores.

Categories

Resources