[Android Software/Hacking General [Developers Only]] mreevimus:
Skinny,

Here is the second half of my terminal log I don't have the library issue but it still isn't working. I even went a bit outside my wheel house and made some edits to the doit.sh file but they didn't work either.

Mark

root@mark-VirtualBox:/opt/exploit/mkbreak# which adb

/opt/adt/sdk/platform-tools/adb

root@mark-VirtualBox:/opt/exploit/mkbreak# ./doit.sh /opt/adt/sdk

/opt/adt/sdk/platform-tools/adb

/opt/adt/sdk/build-tools/android-4.4/aapt

/usr/bin/jdb

/usr/bin/unzip

/usr/bin/python

/usr/bin/make

adb pull /system/app/Settings.apk

make: adb: Command not found

Makefile:10: recipe for target 'Settings.apk' failed

make: *** [Settings.apk] Error 127

root@mark-VirtualBox:/opt/exploit/mkbreak# ./doit.sh /opt/adt/sdk/platform-tools/

/opt/adt/sdk/platform-tools/adb

/opt/adt/sdk/build-tools/android-4.4/aapt

/usr/bin/jdb

/usr/bin/unzip

/usr/bin/python

/usr/bin/make

adb pull /system/app/Settings.apk

make: adb: Command not found

Makefile:10: recipe for target 'Settings.apk' failed

make: *** [Settings.apk] Error 127

root@mark-VirtualBox:/opt/exploit/mkbreak# ./doit.sh /opt/adt/sdk/platform-tools/

/opt/adt/sdk/platform-tools/adb

/opt/adt/sdk/build-tools/android-4.4/aapt

/usr/bin/jdb

/usr/bin/unzip

/usr/bin/python

/usr/bin/make

adb pull /system/app/Settings.apk

make: adb: Command not found

Makefile:10: recipe for target 'Settings.apk' failed

make: *** [Settings.apk] Error 127

root@mark-VirtualBox:/opt/exploit/mkbreak# apt-get install aapt

Reading package lists... Done

Building dependency tree

Reading state information... Done

The following additional packages will be installed:

android-libaapt android-libandroidfw android-libbacktrace android-libbase

android-libcutils android-liblog android-libunwind android-libutils

android-libziparchive

The following NEW packages will be installed:

aapt android-libaapt android-libandroidfw android-libbacktrace android-libbase

android-libcutils android-liblog android-libunwind android-libutils

android-libziparchive

0 upgraded, 10 newly installed, 0 to remove and 202 not upgraded.

Need to get 535 kB of archives.

After this operation, 1,729 kB of additional disk space will be used.

Do you want to continue? [Y/n] y

Get:1 http://us.archive.ubuntu.com/ubuntu xenial/universe amd64 android-liblog amd64 1:6.0.1+r16-3 [16.6 kB]

Get:2 http://us.archive.ubuntu.com/ubuntu xenial/universe amd64 android-libcutils amd64 1:6.0.1+r16-3 [18.7 kB]

Get:3 http://us.archive.ubuntu.com/ubuntu xenial/universe amd64 android-libbase amd64 1:6.0.1+r16-3 [9,014 B]

Get:4 http://us.archive.ubuntu.com/ubuntu xenial/universe amd64 android-libunwind amd64 6.0.1+r16-2 [45.8 kB]

Get:5 http://us.archive.ubuntu.com/ubuntu xenial/universe amd64 android-libbacktrace amd64 1:6.0.1+r16-3 [19.0 kB]

Get:6 http://us.archive.ubuntu.com/ubuntu xenial/universe amd64 android-libutils amd64 1:6.0.1+r16-3 [49.5 kB]

Get:7 http://us.archive.ubuntu.com/ubuntu xenial/universe amd64 android-libziparchive amd64 1:6.0.1+r16-3 [11.3 kB]

Get:8 http://us.archive.ubuntu.com/ubuntu xenial/universe amd64 android-libandroidfw amd64 1:6.0.1+r16-1 [87.6 kB]

Get:9 http://us.archive.ubuntu.com/ubuntu xenial/universe amd64 android-libaapt amd64 1:6.0.1+r16-1 [262 kB]

Get:10 http://us.archive.ubuntu.com/ubuntu xenial/universe amd64 aapt amd64 1:6.0.1+r16-1 [15.8 kB]

Fetched 535 kB in 1s (324 kB/s)

Selecting previously unselected package android-liblog.

(Reading database ... 159532 files and directories currently installed.)

Preparing to unpack .../android-liblog_1%3a6.0.1+r16-3_amd64.deb ...

Unpacking android-liblog (1:6.0.1+r16-3) ...

Selecting previously unselected package android-libcutils.

Preparing to unpack .../android-libcutils_1%3a6.0.1+r16-3_amd64.deb ...

Unpacking android-libcutils (1:6.0.1+r16-3) ...

Selecting previously unselected package android-libbase.

Preparing to unpack .../android-libbase_1%3a6.0.1+r16-3_amd64.deb ...

Unpacking android-libbase (1:6.0.1+r16-3) ...

Selecting previously unselected package android-libunwind.

Preparing to unpack .../android-libunwind_6.0.1+r16-2_amd64.deb ...

Unpacking android-libunwind (6.0.1+r16-2) ...

Selecting previously unselected package android-libbacktrace.

Preparing to unpack .../android-libbacktrace_1%3a6.0.1+r16-3_amd64.deb ...

Unpacking android-libbacktrace (1:6.0.1+r16-3) ...

Selecting previously unselected package android-libutils.

Preparing to unpack .../android-libutils_1%3a6.0.1+r16-3_amd64.deb ...

Unpacking android-libutils (1:6.0.1+r16-3) ...

Selecting previously unselected package android-libziparchive.

Preparing to unpack .../android-libziparchive_1%3a6.0.1+r16-3_amd64.deb ...

Unpacking android-libziparchive (1:6.0.1+r16-3) ...

Selecting previously unselected package android-libandroidfw.

Preparing to unpack .../android-libandroidfw_1%3a6.0.1+r16-1_amd64.deb ...

Unpacking android-libandroidfw (1:6.0.1+r16-1) ...

Selecting previously unselected package android-libaapt.

Preparing to unpack .../android-libaapt_1%3a6.0.1+r16-1_amd64.deb ...

Unpacking android-libaapt (1:6.0.1+r16-1) ...

Selecting previously unselected package aapt.

Preparing to unpack .../aapt_1%3a6.0.1+r16-1_amd64.deb ...

Unpacking aapt (1:6.0.1+r16-1) ...

Processing triggers for libc-bin (2.23-0ubuntu3) ...

Processing triggers for man-db (2.7.5-1) ...

Setting up android-liblog (1:6.0.1+r16-3) ...

Setting up android-libcutils (1:6.0.1+r16-3) ...

Setting up android-libbase (1:6.0.1+r16-3) ...

Setting up android-libunwind (6.0.1+r16-2) ...

Setting up android-libbacktrace (1:6.0.1+r16-3) ...

Setting up android-libutils (1:6.0.1+r16-3) ...

Setting up android-libziparchive (1:6.0.1+r16-3) ...

Setting up android-libandroidfw (1:6.0.1+r16-1) ...

Setting up android-libaapt (1:6.0.1+r16-1) ...

Setting up aapt (1:6.0.1+r16-1) ...

Processing triggers for libc-bin (2.23-0ubuntu3) ...

root@mark-VirtualBox:/opt/exploit/mkbreak# which make

/usr/bin/make

root@mark-VirtualBox:/opt/exploit/mkbreak# which gmake

root@mark-VirtualBox:/opt/exploit/mkbreak# cd ..

root@mark-VirtualBox:/opt/exploit# cd ..

root@mark-VirtualBox:/opt# chmod 777 opt

chmod: cannot access 'opt': No such file or directory

root@mark-VirtualBox:/opt# chmod 777 optls

chmod: cannot access 'optls': No such file or directory

root@mark-VirtualBox:/opt# ls

adt adt.zip exploit

root@mark-VirtualBox:/opt# cd ..

root@mark-VirtualBox:/# chmod 777 opt

root@mark-VirtualBox:/# cd opt/exploit/mkbreak/

root@mark-VirtualBox:/opt/exploit/mkbreak# ls

AndroidManifest.xml LICENSE masterkey-apk-inject.sh rootme.sh Superuser.apk

doit.sh Makefile README.md su

root@mark-VirtualBox:/opt/exploit/mkbreak# ls

AndroidManifest.xml LICENSE masterkey-apk-inject.sh rootme.sh Superuser.apk

doit.sh Makefile README.md su

root@mark-VirtualBox:/opt/exploit/mkbreak# cd ..

root@mark-VirtualBox:/opt/exploit# ls

META-INF mkbreak Superuser-3.1.3-arm-signed.zip system

root@mark-VirtualBox:/opt/exploit# cd ..

root@mark-VirtualBox:/opt# ls

adt adt.zip exploit

root@mark-VirtualBox:/opt# cd adt/

root@mark-VirtualBox:/opt/adt# ls

eclipse sdk

root@mark-VirtualBox:/opt/adt# which adb

/opt/adt/sdk/platform-tools/adb

root@mark-VirtualBox:/opt/adt# cd sdk/

root@mark-VirtualBox:/opt/adt/sdk# platform-tools/

bash: platform-tools/: Is a directory

root@mark-VirtualBox:/opt/adt/sdk# ls

build-tools extras platforms platform-tools system-images tools

root@mark-VirtualBox:/opt/adt/sdk# cd platform-tools/

root@mark-VirtualBox:/opt/adt/sdk/platform-tools# ls

adb api fastboot NOTICE.txt source.properties systrace

root@mark-VirtualBox:/opt/adt/sdk/platform-tools# cd /

root@mark-VirtualBox:/# ls

bin cdrom etc initrd.img lib64 media opt root sbin srv tmp var

boot dev home lib lost+found mnt proc run snap sys usr vmlinuz

root@mark-VirtualBox:/# cd opt/

root@mark-VirtualBox:/opt# ls

adt adt.zip exploit

root@mark-VirtualBox:/opt# cd exploit/

root@mark-VirtualBox:/opt/exploit# ls

META-INF mkbreak Superuser-3.1.3-arm-signed.zip system

root@mark-VirtualBox:/opt/exploit# cd mkbreak/

root@mark-VirtualBox:/opt/exploit/mkbreak# ls

AndroidManifest.xml LICENSE masterkey-apk-inject.sh rootme.sh Superuser.apk

doit.sh Makefile README.md su

root@mark-VirtualBox:/opt/exploit/mkbreak# ./masterkey-apk-inject.sh

Usage: ./masterkey-apk-inject.sh <platform.apk> <inject.apk>

root@mark-VirtualBox:/opt/exploit/mkbreak# ./doit.sh

Usage: ./doit.sh <sdk directory>

root@mark-VirtualBox:/opt/exploit/mkbreak# cd ..

root@mark-VirtualBox:/opt/exploit# cd ..

root@mark-VirtualBox:/opt# ls

adt adt.zip exploit

root@mark-VirtualBox:/opt# chmod 755 adt

root@mark-VirtualBox:/opt# cd ..

root@mark-VirtualBox:/# chmod 755 opt

root@mark-VirtualBox:/# cd opt/adt/

root@mark-VirtualBox:/opt/adt# ls

eclipse sdk

root@mark-VirtualBox:/opt/adt# chmod 755 sdk

root@mark-VirtualBox:/opt/adt# cd ..

root@mark-VirtualBox:/opt# cd exploit/

root@mark-VirtualBox:/opt/exploit# ./doit.sh /opt/adt/sdk

bash: ./doit.sh: No such file or directory

root@mark-VirtualBox:/opt/exploit# cd mkbreak/

root@mark-VirtualBox:/opt/exploit/mkbreak# ./doit.sh /opt/adt/sdk

/opt/adt/sdk/platform-tools/adb

/opt/adt/sdk/build-tools/android-4.4/aapt

/usr/bin/jdb

/usr/bin/unzip

/usr/bin/python

/usr/bin/make

adb pull /system/app/Settings.apk

make: adb: Command not found

Makefile:10: recipe for target 'Settings.apk' failed

make: *** [Settings.apk] Error 127

root@mark-VirtualBox:/opt/exploit/mkbreak# apt-get install jdb

Reading package lists... Done

Building dependency tree

Reading state information... Done

E: Unable to locate package jdb

root@mark-VirtualBox:/opt/exploit/mkbreak# apt-get install python

Reading package lists... Done

Building dependency tree

Reading state information... Done

python is already the newest version (2.7.11-1).

0 upgraded, 0 newly installed, 0 to remove and 202 not upgraded.

root@mark-VirtualBox:/opt/exploit/mkbreak# cd ..

root@mark-VirtualBox:/opt/exploit# cd ..

root@mark-VirtualBox:/opt# ls

adt adt.zip exploit

root@mark-VirtualBox:/opt# cd adt

root@mark-VirtualBox:/opt/adt# ls

eclipse sdk

root@mark-VirtualBox:/opt/adt# cd sdk/

root@mark-VirtualBox:/opt/adt/sdk# ls

build-tools extras platforms platform-tools system-images tools

root@mark-VirtualBox:/opt/adt/sdk# cd platform-tools/

root@mark-VirtualBox:/opt/adt/sdk/platform-tools# cd ..

root@mark-VirtualBox:/opt/adt/sdk# chmod 755 platform-tools/

root@mark-VirtualBox:/opt/adt/sdk# ls

build-tools extras platforms platform-tools system-images tools

root@mark-VirtualBox:/opt/adt/sdk# cd platform-tools/

root@mark-VirtualBox:/opt/adt/sdk/platform-tools# ls

adb api fastboot NOTICE.txt source.properties systrace

root@mark-VirtualBox:/opt/adt/sdk/platform-tools# cd ..

root@mark-VirtualBox:/opt/adt/sdk# cd

root@mark-VirtualBox:~#

root@mark-VirtualBox:~# cd /opt/exploit/mkbreak/

root@mark-VirtualBox:/opt/exploit/mkbreak# ./doit.sh /opt/adt/sdk

/opt/adt/sdk/platform-tools/adb

/opt/adt/sdk/build-tools/android-4.4/aapt

/usr/bin/jdb

/usr/bin/unzip

/usr/bin/python

/usr/bin/make

adb pull /system/app/Settings.apk

make: adb: Command not found

Makefile:10: recipe for target 'Settings.apk' failed

make: *** [Settings.apk] Error 127

root@mark-VirtualBox:/opt/exploit/mkbreak# ./doit.sh /opt/adt/sdk/platform-tools/

/opt/adt/sdk/platform-tools/adb

/usr/bin/aapt

/usr/bin/jdb

/usr/bin/unzip

/usr/bin/python

/usr/bin/make

adb pull /system/app/Settings.apk

make: adb: Command not found

Makefile:10: recipe for target 'Settings.apk' failed

make: *** [Settings.apk] Error 127

root@mark-VirtualBox:/opt/exploit/mkbreak# which adb

/opt/adt/sdk/platform-tools/adb

root@mark-VirtualBox:/opt/exploit/mkbreak# which make

/usr/bin/make

root@mark-VirtualBox:/opt/exploit/mkbreak# cp make /opt/adt/sdk/platform-tools/

cp: cannot stat 'make': No such file or directory

root@mark-VirtualBox:/opt/exploit/mkbreak# cd /usr/bin/

root@mark-VirtualBox:/usr/bin# cp make /opt/adt

adt/ adt.zip

root@mark-VirtualBox:/usr/bin# cp make /opt/adt/sdk/platform-tools/

root@mark-VirtualBox:/usr/bin# cd /opt/adt/sdk/platform-tools/

root@mark-VirtualBox:/opt/adt/sdk/platform-tools# chmod 777 adb

root@mark-VirtualBox:/opt/adt/sdk/platform-tools# cd /

root@mark-VirtualBox:/# cd /opt/exploit/mkbreak/

root@mark-VirtualBox:/opt/exploit/mkbreak# ./doit.sh /opt/adt/sdk

/opt/adt/sdk/platform-tools/adb

/opt/adt/sdk/build-tools/android-4.4/aapt

/usr/bin/jdb

/usr/bin/unzip

/usr/bin/python

/usr/bin/make

adb pull /system/app/Settings.apk

make: adb: Command not found

Makefile:10: recipe for target 'Settings.apk' failed

make: *** [Settings.apk] Error 127

root@mark-VirtualBox:/opt/exploit/mkbreak# nano doit.sh

root@mark-VirtualBox:/opt/exploit/mkbreak# ./doit.sh /opt/adt/sdk

make: adb: Command not found

make: *** [Settings.apk] Error 127

root@mark-VirtualBox:/opt/exploit/mkbreak# ./doit.sh /opt/adt/sdk

make: adb: Command not found

make: *** [Settings.apk] Error 127

root@mark-VirtualBox:/opt/exploit/mkbreak# nano doit.sh

root@mark-VirtualBox:/opt/exploit/mkbreak# ./doit.sh /opt/adt/sdk

/opt/adt/sdk/platform-tools/adb

/opt/adt/sdk/build-tools/android-4.4/aapt

/usr/bin/jdb

/usr/bin/unzip

/usr/bin/python

/opt/adt/sdk/platform-tools/make

adb pull /system/app/Settings.apk

make: adb: Command not found

Makefile:10: recipe for target 'Settings.apk' failed

make: *** [Settings.apk] Error 127

root@mark-VirtualBox:/opt/exploit/mkbreak# ./doit.sh /opt/adt/sdk/platform-tools/

/opt/adt/sdk/platform-tools/adb

/usr/bin/aapt

/usr/bin/jdb

/usr/bin/unzip

/usr/bin/python

/usr/bin/make

adb pull /system/app/Settings.apk

make: adb: Command not found

Makefile:10: recipe for target 'Settings.apk' failed

make: *** [Settings.apk] Error 127

root@mark-VirtualBox:/opt/exploit/mkbreak# nano doit.sh

root@mark-VirtualBox:/opt/exploit/mkbreak#