FORUMS
Remove All Ads from XDA

[UTIL] Apktool - Tool for reverse engineering apk files

925 posts
Thanks Meter: 4,310
 
Post Reply Email Thread
6th July 2012, 06:58 PM |#11  
iBotPeaches's Avatar
OP Recognized Developer
Flag Tampa
Thanks Meter: 4,310
 
Donate to Me
More
Quote:
Originally Posted by rtfpessoa

http://pastebin.com/Q653Thdr

I had the same problem with that smali too.
Any tip?

I just re-built smali/baksmali with the new changes JF made yesterday. Let me know if they work. Re-uploaded to same location.

Code:
[email protected] [/home/connor/public_html/miui/other/jf]# md5sum *
37d228ca4fa8c36af89531bd5a2b37c4  baksmali-1.3.4-dev.jar
824abf2deae6954756e34969836b96d4  baksmali-1.3.4-dev-jar-with-dependencies.jar
09fac38365d09afdfbd95557088a4976  baksmali-1.3.4-dev-jar-with-dependencies-small.jar
6e1ab315833a0c34e65a06fc8c4764e4  dexlib-1.3.4-dev.jar
1cd1b4a117d87c5a27aed6bd68715a06  smali-1.3.4-dev.jar
4d1c6ea1f07946d4823f80b5d1f470c9  smali-1.3.4-dev-jar-with-dependencies.jar
181ba18558c5f650c9c1797f8682891c  smali-1.3.4-dev-jar-with-dependencies-small.jar
a41726d66fb78dcc9d835a73b05198e1  util-1.3.4-dev.jar
The Following 3 Users Say Thank You to iBotPeaches For This Useful Post: [ View ]
6th July 2012, 07:06 PM |#12  
rtfpessoa's Avatar
Senior Member
Flag Lisbon
Thanks Meter: 669
 
Donate to Me
More
Quote:
Originally Posted by iBotPeaches

I just re-built smali/baksmali with the new changes JF made yesterday. Let me know if they work. Re-uploaded to same location.

Code:
[email protected] [/home/connor/public_html/miui/other/jf]# md5sum *
37d228ca4fa8c36af89531bd5a2b37c4  baksmali-1.3.4-dev.jar
824abf2deae6954756e34969836b96d4  baksmali-1.3.4-dev-jar-with-dependencies.jar
09fac38365d09afdfbd95557088a4976  baksmali-1.3.4-dev-jar-with-dependencies-small.jar
6e1ab315833a0c34e65a06fc8c4764e4  dexlib-1.3.4-dev.jar
1cd1b4a117d87c5a27aed6bd68715a06  smali-1.3.4-dev.jar
4d1c6ea1f07946d4823f80b5d1f470c9  smali-1.3.4-dev-jar-with-dependencies.jar
181ba18558c5f650c9c1797f8682891c  smali-1.3.4-dev-jar-with-dependencies-small.jar
a41726d66fb78dcc9d835a73b05198e1  util-1.3.4-dev.jar

Tried with that new and same problem.
I confirmed the md5sum.
What is the smali MiuiAndroid used in last week build?
6th July 2012, 07:07 PM |#13  
iBotPeaches's Avatar
OP Recognized Developer
Flag Tampa
Thanks Meter: 4,310
 
Donate to Me
More
Quote:
Originally Posted by rtfpessoa

Tried with that new and same problem.
I confirmed the md5sum.
What is the smali MiuiAndroid used in last week build?

We used 1.3.3-dev. Send me that too -_- lol

I'll look over it. Tell me exact commands your running.
The Following 3 Users Say Thank You to iBotPeaches For This Useful Post: [ View ]
6th July 2012, 07:19 PM |#14  
rtfpessoa's Avatar
Senior Member
Flag Lisbon
Thanks Meter: 669
 
Donate to Me
More
Quote:
Originally Posted by iBotPeaches

We used 1.3.3-dev. Send me that too -_- lol

I'll look over it. Tell me exact commands your running.

I'm using MiCode script to deodex the rom, this one https://raw.github.com/MiCode/patchr...b153/deodex.sh
It works if i use any other smali version.

---------- Post added at 06:19 PM ---------- Previous post was at 06:09 PM ----------

Do you suggest other script?
6th July 2012, 07:52 PM |#15  
pele78's Avatar
Senior Member
Flag Cambridgeshire, England
Thanks Meter: 1,928
 
Donate to Me
More
ibotpeaches stole me apktool
6th July 2012, 08:01 PM |#16  
iBotPeaches's Avatar
OP Recognized Developer
Flag Tampa
Thanks Meter: 4,310
 
Donate to Me
More
Quote:
Originally Posted by rtfpessoa

I'm using MiCode script to deodex the rom, this one https://raw.github.com/MiCode/patchr...b153/deodex.sh
It works if i use any other smali version.

---------- Post added at 06:19 PM ---------- Previous post was at 06:09 PM ----------

Do you suggest other script?

I did make a deodex script. It was dependent on another script I wrote though. I'll make an independent functioning one when I have time.

Quote:
Originally Posted by pele78

ibotpeaches stole me apktool

BAT is nothing compared to CAT.
The Following 2 Users Say Thank You to iBotPeaches For This Useful Post: [ View ]
6th July 2012, 08:47 PM |#17  
djdarkknight96's Avatar
Recognized Themer
Flag Springfield
Thanks Meter: 46,658
 
Donate to Me
More
Donation sent, You worked hard on this and I needed to show my gratitude...It will make my life a ton easier!!! Thanks again buddy!!!
The Following User Says Thank You to djdarkknight96 For This Useful Post: [ View ] Gift djdarkknight96 Ad-Free
7th July 2012, 01:07 AM |#18  
iBotPeaches's Avatar
OP Recognized Developer
Flag Tampa
Thanks Meter: 4,310
 
Donate to Me
More
I've already have a few users report a few problems. To be honest. I spend 100% of my time in MIUI. I never tested some of these APKs (Sense, etc). Though, most have been sent to me. I will work through some of these and figure out why some of them aren't fixed.

All the MIUI ROMs work fine though
The Following 3 Users Say Thank You to iBotPeaches For This Useful Post: [ View ]
7th July 2012, 01:58 AM |#19  
rtfpessoa's Avatar
Senior Member
Flag Lisbon
Thanks Meter: 669
 
Donate to Me
More
Quote:
Originally Posted by iBotPeaches

I've already have a few users report a few problems. To be honest. I spend 100% of my time in MIUI. I never tested some of these APKs (Sense, etc). Though, most have been sent to me. I will work through some of these and figure out why some of them aren't fixed.

All the MIUI ROMs work fine though

My problem is with MIUI i' still making tests but not sucess yet is very strange
7th July 2012, 03:15 AM |#20  
Senior Member
Flag Los Angeles
Thanks Meter: 143
 
Donate to Me
More
For anyone that cares, I wrote this batch script for executing apktool in Windows.

Code:
@echo off
set APKTOOL_ERROR=
if not defined APKTOOLVER set APKTOOLVER=1.4.7
java -Xmx512m -jar "%~dp0android\apktool_%APKTOOLVER%.jar" %*
if errorlevel 1 set APKTOOL_ERROR=%ErrorLevel%
if [%1]==[] call :help
if [%1]==[--help] call :help
if [%1]==[-?] call :help
goto :eof

:help
echo ===============================================================================
echo NOTES
echo ===============================================================================
echo APKTool 1.4.5 and above are unofficial builds.
echo - bin: http://bit.ly/LqXR5P
echo - src: http://bit.ly/Jr6AG7
echo - xda: http://bit.ly/ODjm97
echo.
echo See the following discussion for a simple how-to.
echo - http://forum.xda-developers.com/showthread.php?t=707189
goto :eof
Name it apktool.cmd (or something else if you're a weirdo) and stick it somewhere in your path.

Error codes will be stored as APKTOOL_ERROR

If you want to use a different version, simply define the version number with APKTOOLVER.

One caveat is that I keep apktool_*.jar in a subfolder of this batch script called "android," i.e.,
.\apktool.cmd
.\android\apktool_1.4.3.jar
.\android\apktool_1.4.5.jar
.\android\apktool_1.4.7.jar

If that rubs you the wrong way, then simply remove or replace "android" in the part of the script that says %~dp0android\. (note: %~dp0 resolves to the fully qualified path name of the batch script.)
The Following 3 Users Say Thank You to v5HMeca For This Useful Post: [ View ] Gift v5HMeca Ad-Free
7th July 2012, 03:23 PM |#21  
rtfpessoa's Avatar
Senior Member
Flag Lisbon
Thanks Meter: 669
 
Donate to Me
More
Thanks to @iBotPeaches i fixed the deodex script and all is working ok now.
Keep the good work!!!
Post Reply Subscribe to Thread

Tags
apktool, apktools, customise apk, decompile, edit apk, recompile, reverse

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes