java


Terminal can't run apktool [closed]


I am using macOSX, and trying to extract all the files in a APK file, I've extracted it with zip and unzip. Used dex2jar to extract classes.dex to jar file and decompiled it.
Now when I am in my last step, using APKtool to decode the apk file, however, it shows "-bash: apktool: command not found " eventhough I put all 3 files(aapt, apktool and apktool.jar) into one folder.
How can I decompile with my apktool now?
If you are using relative paths to execute apktool, and you are cdd to the directory they are in, you have to prefix the command with ./
So if apktool is at /path/to/apktool
And you cd /path/to
Then type ./apktool
Instead of apktool
If you want to add this folder to your PATH, you can do that too...
Open ~/.bashrc in a text editor of choice and add this to the bottom of it:
PATH=$PATH:/path/to
Where, once again, /path/to is the folder that contains apktool.
Now you can just type apktool from anywhere.

Related Links

GOOGLE MAPS V2 - Get Current User Position
Retrofit Post with arraylist as field
What is Java's equivalent for Ruby's singleton
Make non-nullable type in Java
what is the need to transfer an object via network using serialization [closed]
JAXB How to validate xml against more schemas
Android: navigation drawer without xml
Two Maven projects split service from web app (Hibernate Spring)?
String method is undefined for type string?
RxJava vs Java 8 Parallelism Stream
Why is 1 plus 31 zeros not a valid integer, if bit flags are 31 length, plus one negative/positive flag?
Basic Multiply and Divide Java GUI
IntelliJ Java 8
regexp for HTML java [duplicate]
Spring MVC Content Negotiation throwing ClassCastException
Openshift this.getClass().getResource() path probably not correct

Categories

HOME
twitter
ionic-framework
proxy
azure-data-factory
path-finding
octobercms
xmpp
microservices
sqlite3
indesign
django-imagekit
uber-api
cross-validation
add
elasticsearch-hadoop
gorm
kentor-authservices
spring-xd
dax
modx-revolution
alignment
circuit
fatal-error
finite-automata
facebook-page
apache-metamodel
reactive-cocoa
viewport
swiftlint
jasonette
intentfilter
pass-by-reference
restful-authentication
angular2-aot
uninstall
nhapi
spring-mybatis
tasklet
librato
copying
code-contracts
amazon-kinesis-kpl
fusionpbx
simplexml
android-browser
code-search-engine
document.write
angularjs-factory
android-tabhost
galen
gzipstream
dynamic-reports
flashair
sencha-touch-2.3
avconv
parentheses
appcompat
errordocument
tizen-native-app
np-complete
mako
dwscript
topbeat
instant
ado.net-entity-data-model
login-control
merge-conflict-resolution
blackberry-10
wapiti
freelancer.com-api
unity-networking
atk4
coveralls
twirl
method-parameters
mono-embedding
directoryservices
oxwall
relocation
issuu
contenttype
hippomocks
listings
blending
coverflow
dbconnection
bulkloader
pushbackinputstream
seed
isnullorempty
gdata-api
cascalog
armcc
labwindows
errai
bigcouch
netdna-api
infobox
krl
pyinotify
yslow
paster
firefox-5
zend-tool
kdbg
javap
mtj
noscript
project-hosting
gacutil
multiple-languages
document-conversion

Resources

Encrypt Message



code
soft
python
ios
c
html
jquery
cloud
mobile