Manuel apk tool

  • Upload
    erixs

  • View
    226

  • Download
    0

Embed Size (px)

Citation preview

  • 7/24/2019 Manuel apk tool

    1/43

    Welcome

    I have updated all the files and modified APK manager's Scripts to fix many user reported bugsfrom Daneshm90 APK manager hich he had ritten a simple script to ease the process of

    editing APKS! "ot a lot of donloads so thought its in demand

    After some thought and after adding ne features and decided that since it is no longer #ust aAPK management tool that is is no a multi functional tool no so I felt to change the name toAPK $ulti%&ool!

    hether you're doing basic image editing or editing the smali or ($) files* on average u have touse +,rut!all or -.'s smali/basmali1 aesome tool to extract the APK* edit it* then sign the APKand then AD, push/install it! &his process is 2uite tiresome if you are testing a method that needsfine teaing!

    &his script should mae the process a )3& smoother!&here is an option of compiling/signing/installing all in one step

  • 7/24/2019 Manuel apk tool

    2/43

    Special Thanks

    Special Thanks to The Developers:"oes to Daneshm90 the 3riginal riter of APK $anager hich this tool as based off

    "oes to ,rut!all for his aesome tool!"oes to i,otPeaches for taen over development of aptool!"oes to -. for of course* smali/basmali"oes to farmatito for porting this script to )inux

    Special Thanks to The Testers:Windows:Puriansga999

    Linux:crush4push

  • 7/24/2019 Manuel apk tool

    3/43

    Features

    % 5xtract* 6ip APK's!% 3ptimi7e pngs +ignores !9!pngs1% 6ipalign APKS

    % Sign APKS% Push to specific location on phone% Incorporates brut!all's aptool% Pull APK from phone into modding environment!% ,atch optimi7e APK +6ipalign*optipng*or both1% 8uic sign an APK +,atch mode supported1% ,atch 3gg optimi7ation% ompression level selector +monitor status above menu1% ,atch install APK from script +option :;1% )ogging on/off has been removed! Instead a log!txt is created hich logs the activities of thescript organi7ed using time/date headers%

  • 7/24/2019 Manuel apk tool

    4/43

    Installation

    I>S&A))A&I3>%%%%%%%%%%%%%%%%

    &reat your computer to a tune up % follo this procedure before installation?

    In Accessories@System &ools* you may find utilities that can increase theperformance of your system!

    % Scandis your hard drive ith ScanDis% Defragment your hard drive ith Dis Defragmenter% Birus hec your Card Drive ith the latest virus definitions% =eclaim hard drive space by deleting unnecessary files ith Dis leanup% Berify that you have at least :0$, of free hard drive space for your sap file!

    &o install the tool in the =33& of you CA=D D=IB5 is =53$I>D5D but not=58eed to have the -ABA -DK I>S&A))5D and you need to set your

    -avaFCome 5nvironment Bariable hich needs to point to!.3= 5(A$P)5?@Program .iles@-ava@-DK:!G!0F4

  • 7/24/2019 Manuel apk tool

    5/43

    Getting Started

    % Place APK in appropriate folder +Any file name ill or* if running for first time folders ill notbe there* you must run and then the folders ill be created1% =un script

    % $inimi7e the script% 5dit files inside the pro#ect folder% $aximi7e the script

  • 7/24/2019 Manuel apk tool

    6/43

    Contacting s

    Eou can $ost of your support for this application located over on the (DA D5B5)3P5=S5,SI&5!

    Eou can email me for support for APK files that you do not ant to publicly be non because ofsome reason or another and you ant to eep it private until you have issues ored out!

    Eou can also Bisit the 3..IIA) 5,SI&5 or the 3..IIA) ,)3" hich you can donload offthe A>D=3ID "oogle Play Store

    3..IIA) 5,SI&5?http?//apmultitool!com

    3..IIA) ,)3"?http?//

    3..IIA) .3=

  • 7/24/2019 Manuel apk tool

    7/43

    !D" #ull

    $D%& C'$ST&CTI'$

  • 7/24/2019 Manuel apk tool

    8/43

    !D" #ush

    $D%& C'$ST&CTI'$+3nly for system APK1

  • 7/24/2019 Manuel apk tool

    9/43

    %xtract !#(

    $D%& C'$ST&CTI'$

  • 7/24/2019 Manuel apk tool

    10/43

    Install !#(

    $D%& C'$ST&CTI'$+Don't do this if system APK* do AD, push1

  • 7/24/2019 Manuel apk tool

    11/43

    'ptimi)e images inside

    $D%& C'$ST&CTI'$

  • 7/24/2019 Manuel apk tool

    12/43

    Sign !#(

    &his is 3ption J hich you use to Sign a APK file ith &est eys+Don't do this if its a system APK1

  • 7/24/2019 Manuel apk tool

    13/43

    *ip + Sign + Install !#(

    $D%& C'$ST&CTI'$+Don't do this if system APK* do AD, push1

    +All in one step1+>on%System Apps 3nly1

  • 7/24/2019 Manuel apk tool

    14/43

    *ip !#(

    $D%& C'$ST&CTI'$

  • 7/24/2019 Manuel apk tool

    15/43

    *ipalign !#(

    $D%& C'$ST&CTI'$+Do once APK is created/signed1

  • 7/24/2019 Manuel apk tool

    16/43

    Compile $on,S-stem !#( Files

    Eou have six options to compile >on%System APK files?

    Create an unsigned !#( using the keep

    .older option&his option creates completely ne APK .I)5 using the Decompiled files ithout a Signature filehich is the /%T!,I$Ffolder ill be missing from the APK and this option ill also create a keep.olderinside the root of the script file I5 you ill find the folder inside the main folder here thescript!bat using the contents of the original APK file* ithin it* delete everything you have modifiedand leave files that you haven't! I. you have modified any xml* then delete resources0arscfromthat folder as ell as if you have edited any of the smali .ilesyou ill also ant to delete theclasses0dexand ill re2uire you to sign ith either of the signing APK option ithin the !#(/ulti,Tool

    Create an unsigned !#( using the original

    !ndroid/ani.est0xml&his option creates completely ne APK .I)5 using the Decompiled files ithout a Signature filehich is the /%T!,I$Ffolder ill be missing from the APK but ill use the !ndroid/ani.est0xmlfrom the original !#( Fileand ill re2uire you to sign ith either of the signing APK option ithinthe !#( /ulti,Tool

    Create an unsigned !#(&his option creates completely ne APK .I)5 using the Decompiled files ithout a Signature filehich is the /%T!,I$Ffolder ill be missing from the APK and ill re2uire you to sign ith eitherof the signing APK option ithin the APK $ulti%&ool

    Create an !#( using the original Signatureusing the keep .older option'ptions 1 is experimental use with care&his option creates completely ne APK .I)5 using the Decompiled files ith the originalSignature file hich is the /%T!,I$Ffolder ill be copied from the original APK file and thisoption ill also create a keep .olderinside the root of the script file I5 you ill find the folderinside the main folder here the script!bat using the contents of the original !#(file ithin it*delete everything you have modified and leave files that you haven't! I. you have modified anyxml* then delete resources0arscfrom that folder as ell as if you have edited any of the smali.ilesyou ill also ant to delete the classes0dexand ill re2uire you to sign ith either of the

    signing APK option ithin the !#( /ulti,Tool

    Create an !#( using the original Signature'ptions 2 is experimental use with care&his option creates completely ne APK .I)5 using the Decompiled files ith the originalSignature file hich is the /%T!,I$Ffolder ill be copied from the original APK file

    Create an !#( using the original Signature

  • 7/24/2019 Manuel apk tool

    17/43

    and original !ndroid/ani.est0xml'ptions 3 is experimental use with care&his option creates completely ne APK .I)5 using the Decompiled files ith the originalSignature file hich is the /%T!,I$Ffolder ill be copied from the original APK file also ill usethe !ndroid/ani.est0xml from the original !#( File!

  • 7/24/2019 Manuel apk tool

    18/43

    Compile S-stem !#( .iles

    $D%& C'$ST&CTI'$

  • 7/24/2019 Manuel apk tool

    19/43

    Compile !#( + Sign !#( + Install !#(

    $D%& C'$ST&CTI'$+Don't do this if system APK* do AD, push1

    +All in one step1+>on%System Apps 3nly1

  • 7/24/2019 Manuel apk tool

    20/43

    Decompile !#(

    $D%& C'$ST&CTI'$

  • 7/24/2019 Manuel apk tool

    21/43

    Decompile !#( with dependencies

    $D%& C'$ST&CTI'$+.or proprietary =3$ APKS1

  • 7/24/2019 Manuel apk tool

    22/43

    Install !#(

    $D%& C'$ST&CTI'$

  • 7/24/2019 Manuel apk tool

    23/43

    Sign !#(

    &his is option :H to use as a alternative to a signing method outside of the sign ith test eysusing option J this alternative version uses the -avaFCome 5nvironment Bariable hich needs topoint to the path of the -ava -DK for example you could set to ?@Program

    .iles@-ava@-DK:!;!0FJ:!

    Allos you to sign a APK ith Android $aret supported Key+=e2uires the -ABA -DK to be installed1

    =ead the installation instructions for more info on ho to set this

  • 7/24/2019 Manuel apk tool

    24/43

    "atch Theme Image Trans.er

    $D%& C'$ST&CTI'$

  • 7/24/2019 Manuel apk tool

    25/43

    "atch Decompile !#( Files

    $D%& C'$ST&CTI'$

  • 7/24/2019 Manuel apk tool

    26/43

    "atch Compile !#( Files

    $D%& C'$ST&CTI'$

  • 7/24/2019 Manuel apk tool

    27/43

    !4out + Tips + De4ug Section

    &his section is the about the application section and general &ips section ith some Debugging&ips and trics

  • 7/24/2019 Manuel apk tool

    28/43

    "atch 'ptimi)e !#(

    $D%& C'$ST&CTI'$+Place the APK files inside the place%APK%here%to%batch%optimi7e folder only1

  • 7/24/2019 Manuel apk tool

    29/43

    "atch 'ptimi)e 'gg Files

    $D%& C'$ST&CTI'$Place them inside place%ogg%here folder only

  • 7/24/2019 Manuel apk tool

    30/43

    Clean Files+Folders

    $D%& C'$ST&CTI'$

  • 7/24/2019 Manuel apk tool

    31/43

    5uit

    5xits the application

  • 7/24/2019 Manuel apk tool

    32/43

    &ead Log

    $D%& C'$ST&CTI'$

  • 7/24/2019 Manuel apk tool

    33/43

    Select compression level .or !#(6s

    &his allos you to set the compression levels to the APK files&he options are beteen 0%90 is no compression at all and 9 is the maximum level of compression

  • 7/24/2019 Manuel apk tool

    34/43

    Select compression level .or &esources0arsc

    &his allos you to set the compression levels to the &esources0arscfile&he options are beteen 0%90 is no compression at all and 9 is the maximum level of compression

    $ost !#( FIL%S ill complain if the compression level is set above 0 in most cases but there isa very fe !#( FIL%S the compression level does not matter

  • 7/24/2019 Manuel apk tool

    35/43

    Set /ax /emor- Si)e

    3nly use if getting stuc at decompiling/compiling! &his 3ption allos you to select ho muchmemory the application ill use to process the APK files! Set the values to anything you ant forexample the Default is set to :04J hich is :04J$, of $emory to be allocated to the processing

    of the pro#ect files

  • 7/24/2019 Manuel apk tool

    36/43

    Set current pro7ect

    &his allos you to set the pro#ect to hich you ant to or on&his is automatically set if there is only one pro#ect files inside the place%APK%here%for%modding orplace%ogg%here folders

  • 7/24/2019 Manuel apk tool

    37/43

    Sign an !#(

    +Don't do this if its a system APK1,atch support for signing $ultiple APK .iles at the same timePlace the APK files inside the place%APK%here%for%signing folder only

  • 7/24/2019 Manuel apk tool

    38/43

    Switch Decompile /ode:

    &his mode allos you to pic to fully decompile the APK's or -A='s files or to #ust decompileSources or #ust the =esources or do a ra dump alloing you to #ust edit the normal images1

    Sources and &esources Files:>ormal Decompiler mode &his taes the longest to decompile as this option Decodes everythingithin the APK .ile you are currently oring on! &his mode allos you to completely customi7ethe APK files to your liing* Warning this mode can 4e 8uite dangerous as it has the highestchance o. something to go wrong when recompiling the !#( .iles0

    Source Files onl-:ill only Decompile +,a1Smali source files I5 the classes!dex leaving everything elseuntouched! &his mode is good for if you are #ust anting to change something in the source codebut not touching any of the images or xml files! &his mode maes it safe to copy over the original

    /%T!,I$F.older alloing you to not have to orry about resigning the APK .ile after editing it!

    Warning this mode can 4e 8uite dangerous as it has the highest chance o. something togo wrong when recompiling the !#( .iles0

    &esource Files onl-:&his $ode allos you to decompile the APK files and leave the actual source code untouched I5this only Decompiles the ($) .iles* Images and the resources!arsc! &his mode is $ostly for the&hemers out there ho ants to edit the APK files and are only interested in changing the colorand images of a APK file!

  • 7/24/2019 Manuel apk tool

    39/43

    &ead Log

    &his option launches a page hich allos you to send a donation for the pro#ectalloing you to pic ho ever munch money you ish to give toardsdevelopment or even #ust as a than you

  • 7/24/2019 Manuel apk tool

    40/43

    9ava is not installed

    If you get the message -ava is not installed try these instructions

    Co do I set or change the PA&C system variable

    &his article applies to?

    Platform+s1? Solaris SPA=* Solaris xL;* =ed Cat )inux* SIA) I>.3=$A&I3>

    &he PA&C is the system variable that your operating system uses to locate needed executablefrom the command line or &erminal indo!&he PA&C system variable can be set using System

  • 7/24/2019 Manuel apk tool

    41/43

    >ote? e are here giving instructions for to most popular Shells on )inux and Solaris!Please visit lin belo if you are using any other shells!Path Setting &utorial

    .or bash Shell?

    5dit the start%up file +Q/ !bashrc1$odify PA&C variable?PA&CR/usr/local/-DK:!;!0/binexport PA&CSave and close the file3pen ne &erminal indoBerify the PA&C is set properly -ava %version

    .or Shell +csh1?

    5dit startup file +Q/ !cshrc1Set Pathset pathR+/usr/local/-DK:!;!0/bin 1

    Save and lose the file3pen ne &erminal indoBerify the PA&C is set properly -ava %version

  • 7/24/2019 Manuel apk tool

    42/43

    Setting up %nvironment aria4le

    &o reate the %nvironment aria4leyou need to go into S-stem #ropertiesclic on the!D!$C%D T!"select%$I&'$/%$T !&I!"L%

    Eou ill see a to boxes you ant create the 9ava;

  • 7/24/2019 Manuel apk tool

    43/43