Evilscript
Evilscript
COLUMNS="50" LINES="21"]
$ cd Magisk-v13.1
$ ls
#[0m#[01;34mMETA-INF#[0m #[01;34marm#[0m #[01;34mchromeos#[0m #[01;34mx64#[0m
#[01;34maddon.d#[0m #[01;34marm64#[0m #[01;34mcommon#[0m #[01;34mx86#[0m
$ cd META-INF
$ ls
CERT.RSA CERT.SF MANIFEST.MF #[0m#[01;34mcom#[0m
$ mf MANIFEST.MF
The program 'mf' is not installed. Install it by executing:
pkg install texlive-bin
$ pkg install texlive-bin
#[33m0% [Working]#[0m Ign:1 https://dl.bintray.com/grimler/game-
packages-21 games InRelease
#[33m0% [Working]#[0m Hit:2 https://termux.net stable InRelease
#[33m0% [Working]#[0m#[33m0% [2 InRelease gpgv 1720 B]#[0m
Ign:3 https://dl.bintray.com/grimler/termux-root-packages-21 root InRelease
#[33m0% [2 InRelease gpgv 1720 B]#[0m Ign:4
https://dl.bintray.com/grimler/science-packages-21 science InRelease
#[33m0% [2 InRelease gpgv 1720 B]#[0m Ign:5
https://dl.bintray.com/xeffyr/x11-packages-21 x11 InRelease
#[33m0% [2 InRelease gpgv 1720 B]#[0m Get:6
https://dl.bintray.com/grimler/game-packages-21 games Release [5344 B]
#[33m0% [2 InRelease gpgv 1720 B] [6 Release 0 B/5344 #[0m
Hit:6 https://dl.bintray.com/grimler/game-packages-21 games Release
#[33m 0% [2 InRelease gpgv 1720
B]#[0m Get:7 https://dl.bintray.com/grimler/termux-root-
packages-21 root Release [6185 B]
#[33m0% [2 InRelease gpgv 1720 B] [7 Release 0 B/6185 #[0m
Hit:7 https://dl.bintray.com/grimler/termux-root-packages-21 root Release
#[33m 0% [2 InRelease gpgv 1720
B]#[0m#[33m 0% [Working]#[0m#[33m0% [Release.gpg gpgv
5344 B]#[0m Get:8
https://dl.bintray.com/grimler/science-packages-21 science Release [5348 B]
#[33m0% [Release.gpg gpgv 5344 B] [8 Release 0 B/5348 #[0m
Hit:8 https://dl.bintray.com/grimler/science-packages-21 science Release
#[33m 0% [Release.gpg gpgv 5344
B]#[0m Get:9 https://dl.bintray.com/xeffyr/x11-packages-
21 x11 Release [6055 B]
#[33m0% [Release.gpg gpgv 5344 B] [9 Release 0 B/6055 #[0m
Hit:9 https://dl.bintray.com/xeffyr/x11-packages-21 x11 Release
#[33m 0% [Release.gpg gpgv 5344
B]#[0m#[33m 0% [Working]#[0m#[33m0% [Release.gpg gpgv
6185 B]#[0m#[33m 0% [Working]#[0m#[33m0% [Release.gpg
gpgv 5348 B]#[0m#[33m 0% [Working]#[0m#[33m0%
[Release.gpg gpgv 6055 B]#[0m#[33m0% [Release.gpg gpgv 6055 B]#[0m#[33m
100% [Working]#[0m Reading package lists... 0%Reading package lists...
0%Reading package lists... 6%Reading package lists... 56%Reading package lists...
56%Reading package lists... 63%Reading package lists... 63%Reading package lists...
65%Reading package lists... 65%Reading package lists... 70%Reading package lists...
70%Reading package lists... 72%Reading package lists... 72%Reading package lists...
92%Reading package lists... 92%Reading package lists... Done
Building dependency tree... 0%Building dependency tree... 0%Building dependency
tree... 1%Building dependency tree... 50%Building dependency tree... 50%Building
dependency tree
Reading state information... 0%Reading state information... 1%Reading state
information... Done
All packages are up to date.
Reading package lists... 0%Reading package lists... 100%Reading package lists...
Done
Building dependency tree... 0%Building dependency tree... 0%Building dependency
tree... 50%Building dependency tree... 50%Building dependency tree
Reading state information... 0%Reading state information... 1%Reading state
information... Done
The following additional packages will be installed:
harfbuzz-icu liblua poppler teckit texlive
texlive-tlmgr
The following NEW packages will be installed:
harfbuzz-icu liblua poppler teckit texlive
texlive-bin texlive-tlmgr
0 upgraded, 7 newly installed, 0 to remove and 0 not upgraded.
Need to get 13.3 MB of archives.
After this operation, 87.2 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
#[33m0% [Working]#[0m Get:1 https://termux.net stable/main arm harfbuzz-
icu arm 2.6.1 [5204 B]
#[33m3% [Working]#[0m Get:2 https://termux.net stable/main arm liblua
arm 5.3.5-3 [80.9 kB]
#[33m3% [2 liblua 33.5 kB/80.9 kB 41%]#[0m#[33m 6%
[Working]#[0m Get:3 https://termux.net stable/main arm poppler arm
0.79.0-1 [1136 kB]
#[33m6% [3 poppler 8309 B/1136 kB 1%]#[0m#[33m8% [3 poppler 301 kB/1136 kB
26%]#[0m#[33m10% [3 poppler 571 kB/1136 kB 50%]#[0m#[33m
16% [Working]#[0m Get:4 https://termux.net stable/main arm teckit arm
2.5.9-3 [290 kB]
#[33m16% [4 teckit 0 B/290 kB 0%]#[0m#[33m 21%
[Working]#[0m Get:5 https://termux.net stable/main arm texlive-bin arm
20190410-5 [4861 kB]
#[33m21% [5 texlive-bin 0 B/4861 kB 0%]#[0m#[33m27% [5 texlive-bin 1145 kB/4861 kB
24%]#[0m#[33m33% [5 texlive-bin 2128 kB/4861 kB 44%]#[0m#[33m34% [5 texlive-bin
2308 kB/4861 kB 47%]#[0m#[33m40% [5 texlive-bin 3226 kB/4861 kB 66%]#[0m#[33m44% [5
texlive-bin 3881 kB/4861 kB 80%]#[0m#[33m49% [5 texlive-bin 4700 kB/4861 kB
97%]#[0m#[33m 53% [Working]#[0m
Get:6 https://termux.net stable/main all texlive all 20190410 [6574 kB]
#[33m53% [6 texlive 15.8 kB/6574 kB 0%]#[0m#[33m58% [6 texlive 850 kB/6574 kB 13%]
1143 kB/s 5s#[0m#[33m64% [6 texlive 1915 kB/6574 kB 29%] 1143 kB/s 4s#[0m#[33m67%
[6 texlive 2341 kB/6574 kB 36%] 1143 kB/s 4s#[0m#[33m70% [6 texlive 2865 kB/6574
kB 44%] 1143 kB/s 3s#[0m#[33m75% [6 texlive 3701 kB/6574 kB 56%] 1143 kB/s
2s#[0m#[33m79% [6 texlive 4389 kB/6574 kB 67%] 1143 kB/s 2s#[0m#[33m86% [6 texlive
5470 kB/6574 kB 83%] 1143 kB/s 1s#[0m#[33m87% [6 texlive 5667 kB/6574 kB 86%]
1143 kB/s 1s#[0m#[33m95% [Working] 1143 kB/s 0s#[0m
Get:7 https://termux.net stable/main all texlive-tlmgr all 20190410 [351 kB]
#[33m 95% [7 texlive-tlmgr 15.8
kB/351 kB 4%]#[0m#[33m100% [Working] 1143 kB/s 0s#[0m
Fetched 13.3 MB in 10s (1262 kB/s)
TeX Live is a joint project of the TeX user groups around the world;
please consider supporting it by joining the group best for you.
The list of groups is available on the web at http://tug.org/usergroups.html.
#7#[21;0f#[42m#[30mProgress: [ 88%]#[49m#[39m [########################....]
#8Setting up texlive-tlmgr (20190410) ...
#7#[21;0f#[42m#[30mProgress: [ 91%]#[49m#[39m [#########################...]
#8#7#[21;0f#[42m#[30mProgress: [ 94%]#[49m#[39m [##########################..]
#8Updating tlmgr
#7#[0;14r#8#[1A#7#[15;0f#[42m#[30mProgress: [ 94%]#[49m#[39m
[##########################################################....] #8
#7#[0;9r#8#[1A#7#[10;0f#[42m#[30mProgress: [ 94%]#[49m#[39m
[##########################################################....] #8
#7#[0;29r#8#[1A#7#[30;0f#[42m#[30mProgress: [ 94%]#[49m#[39m
[##########################..] #8
#7#[0;23r#8#[1A#7#[24;0f#[42m#[30mProgress: [ 94%]#[49m#[39m
[##########################..] #8
#7#[0;20r#8#[1A#7#[21;0f#[42m#[30mProgress: [ 94%]#[49m#[39m
[##########################..] #8tlmgr.ln: package repository
http://ftp.acc.umu.se/mirror/CTAN/systems/texlive/tlnet (verified)
tlmgr.ln: saving backups to
/data/data/com.termux/files/usr/share/texlive/tlpkg/backups
/data/data/com.termux/files/usr/bin/tlmgr.ln: (make_container
texlive.infra.r47457.tar) texmf-dist/scripts/texlive/uninstall-win32.pl does not
exist
[1/1, ??:??/??:??] update: texlive.infra [212k] (47457 -> 51561) ... done
running mktexlsr ...
done running mktexlsr.
tlmgr.ln: package log updated: /data/data/com.termux/files/usr/share/texlive/texmf-
var/web2c/tlmgr.log
Generating language files and setting up symlinks
#7#[21;0f#[42m#[30mProgress: [ 97%]#[49m#[39m [###########################.]
#8Processing triggers for man (1.14.5-1) ...
(/data/data/com.termux/files/usr/share/texlive/texmf-dist/metafont/config/mf.in
i
(/data/data/com.termux/files/usr/share/texlive/texmf-dist/metafont/base/plain.m
f
Preloading the plain base, version 2.71: preliminaries,
basic constants and mathematical macros,
macros for converting from device-independent units to pixels,
macros and tables for various modes of operation,
macros for drawing and filling,
macros for proof labels and rules,
macros for character and font administration,
and a few last-minute items.)
(/data/data/com.termux/files/usr/share/texlive/texmf-dist/metafont/misc/modes.m
f) )
Beginning to dump on file mf.base
(preloaded base=mf 2019.9.27)
2226 strings of total length 30187
11855 memory locations dumped; current usage is 3651&7844
1004 symbolic tokens
Transcript written on mf.log.
mktexfmt [INFO]: /data/data/com.termux/files/home/.texlive2019/texmf-
var/web2c/metafont/mf.base installed.
mktexfmt [INFO]: Disabled formats: 7
mktexfmt [INFO]: Successfully rebuilt formats: 1
mktexfmt [INFO]: Not selected formats: 43
mktexfmt [INFO]: Total formats: 51
mktexfmt [INFO]: exiting with status 0
(MANIFEST.MF
>> -Version+Manifest
! Isolated expression.
<to be read again>
:
l.1 Manifest-Version:
1.0
? in8# ## ## #^[[A^[[A^[[B^[[B# ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## #^Y#
## #start
OK, entering scrollmode...
! Extra tokens will be flushed.
<to be read again>
:
l.1 Manifest-Version:
1.0
)
! File ended while scanning to the end of the statement.
<inserted text>
;
<*> MANIFEST.MF
*^[[A# ## ## ## #MANIFEST.MF
*start
*help
*completr# #e
*^C
! Interruption.
<*>
? e# #run
OK, entering nonstopmode...
! Emergency stop.
<*>
)
! File ended while scanning to the end of the statement.
<inserted text>
;
<*> MANIFEST.MF
*start
*install MANIFEST.MF
*help
*^^F
! Text line contains an invalid character.
<*> ^^F
*
(Please type a command or say `end')
*run
*complete
*
! Interruption.
<*>
? run
OK, entering nonstopmode...
! Emergency stop.
<*>
$ php MANIFEST.log#[C#[C#[1Psh#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C#[C
#[C#[Cls#[K##mf MANIFEST.MF
This is METAFONT, Version 2.7182818 (TeX Live 2019/Termux) (preloaded base=mf)
(MANIFEST.MF
>> -Version+Manifest
! Isolated expression.
<to be read again>
:
l.1 Manifest-Version:
1.0
? continue
Type <return> to proceed, S to scroll future error messages,
R to run without stopping, Q to run quietly,
I to insert something, E to edit your file,
1 or ... or 9 to ignore the next 1 to 9 tokens of input,
H for help, X to quit.
? h# #H
I couldn't find an `=' or `:=' after the
expression that is shown above this error message,
so I guess I'll just ignore it and carry on.
? Q
OK, entering batchmode$ run
No command 'run' found, did you mean:
Command 'ri' from package 'ruby-ri'
Command 'su' from package 'termux-tools'
Command 'rev' from package 'busybox'
Command 'sum' from package 'busybox'
Command 'cut' from package 'busybox'
Command 'runsv' from package 'busybox'
Command 'rx' from package 'busybox'
Command 'ln' from package 'busybox'
Command 'true' from package 'busybox'
Command 'rm' from package 'busybox'
Command 'du' from package 'busybox'
Command 'sum' from package 'coreutils'
Command 'cut' from package 'coreutils'
Command 'ln' from package 'coreutils'
Command 'true' from package 'coreutils'
Command 'rm' from package 'coreutils'
Command 'du' from package 'coreutils'
Command 'pub' from package 'dart'
Command 'duk' from package 'duktape'
Command 'red' from package 'ed'
Command 'prune' from package 'graphviz'
Command 'hub' from package 'hub'
Command 'dub' from package 'ldc'
Command 'lua' from package 'lua'
Command 'man' from package 'man'
Command 'uz' from package 'mtools'
Command 'mren' from package 'mtools'
Command 'nnn' from package 'nnn'
Command 'r2' from package 'radare2'
Command 'rcs' from package 'rcs'
Command 'rem' from package 'remind'
Command 'rg' from package 'ripgrep'
Command 'ruby' from package 'ruby'
Command 'rls' from package 'rust'
Command 'rec' from package 'sox'
Command 'svn' from package 'subversion'
Command 'rungs' from package 'texlive-bin'
Command 'rev' from package 'util-linux'
Command 'raw' from package 'util-linux'
Command 'ul' from package 'util-linux'
$ red MANE##[KIFEST.mf
1372
^[[A# ## ## ## #run
?
compled# #te
?
11^[^L^L
?
^L
?
run
?
^Q
?
^F
?
^C
?
^#^B^L^K^P 4o^Y^Z
[1]+ Stopped red MANIFEST.mf
$ ls
CERT.RSA CERT.SF MANIFEST.MF MANIFEST.log #[0m#[01;34mcom#[0m
$ cd com
$ ls
#[0m#[01;34mgoogle#[0m
$ cd google
$ ls
#[0m#[01;34mandroid#[0m
$ cd android
$ ls
update-binary updater-script
$ #p##[Kpip update-binary
ERROR: unknown command "update-binary"
$ php update-binary
###################################################################################
#######
#
# Magisk Flash Script
# by topjohnwu
#
# This script will detect, construct the environment for Magisk
# It will then call boot_patch.sh to patch the boot image
#
###################################################################################
#######
###################################################################################
#######
# Preparation
###################################################################################
#######
INSTALLER=$TMPDIR/install
COMMONDIR=$INSTALLER/common
CHROMEDIR=$INSTALLER/chromeos
COREDIR=/magisk/.core
# Default permissions
umask 022
OUTFD=$2
ZIP=$3
if [ ! -d "$COMMONDIR" ]; then
echo "! Unable to extract zip file!"
exit 1
fi
get_outfd
###################################################################################
#######
# Detection
###################################################################################
#######
ui_print "************************"
ui_print "* Magisk v13.1 Installer"
ui_print "************************"
[ $API -lt 21 ] && abort "! Magisk is only for Lollipop 5.0+ (SDK 21+)"
BINDIR=$INSTALLER/$ARCH
chmod -R 755 $CHROMEDIR $BINDIR
find_boot_image
[ -z $BOOTIMAGE ] && abort "! Unable to detect boot image"
###################################################################################
#######
# Environment
###################################################################################
#######
# addon.d
if [ -d /system/addon.d ]; then
ui_print "- Adding addon.d survival script"
mount -o rw,remount /system
cp $INSTALLER/addon.d/99-magisk.sh /system/addon.d/99-magisk.sh
chmod 755 /system/addon.d/99-magisk.sh
fi
###################################################################################
#######
# Magisk Image
###################################################################################
#######
$BOOTMODE || recovery_actions
# Fix SuperSU.....
$BOOTMODE && $MAGISKBIN/magisk magiskpolicy --live "allow fsck * * *"
if [ -f $IMG ]; then
ui_print "- $IMG detected!"
else
ui_print "- Creating $IMG"
$MAGISKBIN/magisk --createimg $IMG 64M
fi
# Core folders
mkdir -p $COREDIR/props $COREDIR/post-fs-data.d $COREDIR/service.d 2>/dev/null
# Legacy cleanup
mv $COREDIR/magiskhide/hidelist $COREDIR/hidelist 2>/dev/null
rm -rf $COREDIR/magiskhide $COREDIR/bin
###################################################################################
#######
# Unpack boot
###################################################################################
#######
ui_print "- Found Boot Image: $BOOTIMAGE"
SOURCEDMODE=true
cd $MAGISKBIN
if [ -f stock_boot* ]; then
rm -f /data/stock_boot* 2>/dev/null
mv stock_boot* /data
fi
cd /
if ! $BOOTMODE; then
$MAGISKBIN/magisk --umountimg /magisk $MAGISKLOOP
rmdir /magisk
recovery_cleanup
fi
files <packages>
install <packages>
list-all
list-installed
reinstall <packages>
search <query>
show <packages>
uninstall <packages>
upgrade
$ list ##[K-installed
list-installed: command not found
$ pkg list-installed
Listing... 0%Listing... 0%Listing... 30%Listing... Done
#[32mapache2#[0m/stable,now 2.4.41 arm [installed]
#[32mapk-tools#[0m/stable,now 2.10.4 arm [installed]
#[32mapr#[0m/stable,now 1.7.0-2 arm [installed,automatic]
#[32mapr-util#[0m/stable,now 1.6.1-2 arm [installed,automatic]
#[32mapt#[0m/stable,now 1.4.9-7 arm [installed]
#[32mbash#[0m/stable,now 5.0.11 arm [installed]
#[32mbc#[0m/stable,now 1.07.1-1 arm [installed]
#[32mbinutils#[0m/stable,now 2.32-4 arm [installed]
#[32mbitcoin#[0m/stable,now 0.18.1-1 arm [installed]
#[32mboost#[0m/stable,now 1.70.0-5 arm [installed,automatic]
#[32mbusybox#[0m/stable,now 1.30.1-6 arm [installed]
#[32mbzip2#[0m/stable,now 1.0.8-2 arm [installed,automatic]
#[32mc-ares#[0m/stable,now 1.15.0-2 arm [installed,automatic]
#[32mca-certificates#[0m/stable,now 20190828 all [installed]
#[32mcommand-not-found#[0m/stable,now 1.37 arm [installed]
#[32mcoreutils#[0m/stable,now 8.31-4 arm [installed,automatic]
#[32mcurl#[0m/stable,now 7.66.0 arm [installed,automatic]
#[32mdash#[0m/stable,now 0.5.10.2-2 arm [installed]
#[32mdiffutils#[0m/stable,now 3.7-2 arm [installed,automatic]
#[32mdos2unix#[0m/stable,now 7.4.0-1 arm [installed,automatic]
#[32mdpkg#[0m/stable,now 1.19.7-4 arm [installed]
#[32med#[0m/stable,now 1.15 arm [installed,automatic]
#[32mfftw#[0m/stable,now 3.3.8-2 arm [installed,automatic]
#[32mfindutils#[0m/stable,now 4.7.0 arm [installed,automatic]
#[32mflex#[0m/stable,now 2.6.4-1 arm [installed,automatic]
#[32mfontconfig#[0m/stable,now 2.13.1-3 arm [installed,automatic]
#[32mfreetype#[0m/stable,now 2.10.1-1 arm [installed,automatic]
#[32mfribidi#[0m/stable,now 1.0.5-1 arm [installed,automatic]
#[32mgame-repo#[0m/stable,now 1.0 all [installed]
#[32mgawk#[0m/stable,now 5.0.1-4 arm [installed,automatic]
#[32mgdbm#[0m/stable,now 1.18.1-2 arm [installed,automatic]
#[32mgdk-pixbuf#[0m/stable,now 2.38.2 arm [installed,automatic]
#[32mghostscript#[0m/stable,now 9.27-2 arm [installed]
#[32mgit#[0m/stable,now 2.23.0 arm [installed]
#[32mglib#[0m/stable,now 2.60.7 arm [installed,automatic]
#[32mgnupg#[0m/stable,now 2.2.17 arm [installed,automatic]
#[32mgpgv#[0m/stable,now 2.2.17 arm [installed]
#[32mgrep#[0m/stable,now 3.3-2 arm [installed,automatic]
#[32mgzip#[0m/stable,now 1.10-2 arm [installed,automatic]
#[32mharfbuzz#[0m/stable,now 2.6.1 arm [installed,automatic]
#[32mharfbuzz-icu#[0m/stable,now 2.6.1 arm [installed,automatic]
#[32mimagemagick#[0m/stable,now 7.0.8.64 arm [installed]
#[32minetutils#[0m/stable,now 1.9.4-6 arm [installed,automatic]
#[32mkrb5#[0m/stable,now 1.17-1 arm [installed,automatic]
#[32mldns#[0m/stable,now 1.7.1-1 arm [installed,automatic]
#[32mless#[0m/stable,now 551-1 arm [installed,automatic]
#[32mlibandroid-glob#[0m/stable,now 0.6 arm [installed,automatic]
#[32mlibandroid-support#[0m/stable,now 24-5 arm [installed]
#[32mlibassuan#[0m/stable,now 2.5.3-1 arm [installed,automatic]
#[32mlibbz2#[0m/stable,now 1.0.8-2 arm [installed]
#[32mlibc++#[0m/stable,now 20-1 arm [installed]
#[32mlibcairo#[0m/stable,now 1.16.0-1 arm [installed,automatic]
#[32mlibcairo-gobject#[0m/stable,now 1.16.0-1 arm [installed,automatic]
#[32mlibcroco#[0m/stable,now 0.6.13-1 arm [installed,automatic]
#[32mlibcrypt#[0m/stable,now 0.2-2 arm [installed,automatic]
#[32mlibcurl#[0m/stable,now 7.66.0 arm [installed]
#[32mlibdb#[0m/stable,now 18.1.32-2 arm [installed,automatic]
#[32mlibedit#[0m/stable,now 20190324-3.1-1 arm [installed,automatic]
#[32mlibevent#[0m/stable,now 2.1.11-2 arm [installed,automatic]
#[32mlibexpat#[0m/stable,now 2.2.8 arm [installed,automatic]
#[32mlibffi#[0m/stable,now 3.2.1-4 arm [installed,automatic]
#[32mlibgcrypt#[0m/stable,now 1.8.5 arm [installed]
#[32mlibgd#[0m/stable,now 2.2.5-5 arm [installed,automatic]
#[32mlibgmp#[0m/stable,now 6.1.2-4 arm [installed,automatic]
#[32mlibgpg-error#[0m/stable,now 1.36-1 arm [installed]
#[32mlibgraphite#[0m/stable,now 1.3.13-3 arm [installed,automatic]
#[32mlibiconv#[0m/stable,now 1.16-3 arm [installed]
#[32mlibicu#[0m/stable,now 64.2-2 arm [installed,automatic]
#[32mlibidn#[0m/stable,now 1.35-2 arm [installed,automatic]
#[32mlibjpeg-turbo#[0m/stable,now 2.0.3 arm [installed,automatic]
#[32mlibksba#[0m/stable,now 1.3.5-2 arm [installed,automatic]
#[32mliblua#[0m/stable,now 5.3.5-3 arm [installed,automatic]
#[32mliblzma#[0m/stable,now 5.2.4-2 arm [installed]
#[32mlibmpfr#[0m/stable,now 4.0.2-1 arm [installed,automatic]
#[32mlibnghttp2#[0m/stable,now 1.39.2 arm [installed]
#[32mlibnpth#[0m/stable,now 1.6-1 arm [installed,automatic]
#[32mlibpixman#[0m/stable,now 0.38.4-2 arm [installed,automatic]
#[32mlibpng#[0m/stable,now 1.6.37-2 arm [installed,automatic]
#[32mlibrsvg#[0m/stable,now 2.46.0 arm [installed,automatic]
#[32mlibsodium#[0m/stable,now 1.0.18-1 arm [installed,automatic]
#[32mlibsqlite#[0m/stable,now 3.29.0-1 arm [installed,automatic]
#[32mlibtiff#[0m/stable,now 4.0.10-8 arm [installed,automatic]
#[32mlibunistring#[0m/stable,now 0.9.10-3 arm [installed,automatic]
#[32mlibutil#[0m/stable,now 0.4 arm [installed,automatic]
#[32mlibuuid#[0m/stable,now 1.0.3-3 arm [installed,automatic]
#[32mlibwebp#[0m/stable,now 1.0.3-1 arm [installed,automatic]
#[32mlibxml2#[0m/stable,now 2.9.9-4 arm [installed,automatic]
#[32mlibzmq#[0m/stable,now 4.3.2-2 arm [installed,automatic]
#[32mlittlecms#[0m/stable,now 2.9-1 arm [installed,automatic]
#[32mm4#[0m/stable,now 1.4.18-1 arm [installed,automatic]
#[32mman#[0m/stable,now 1.14.5-1 arm [installed]
#[32mncurses#[0m/stable,now 6.1.20190511-7 arm [installed]
#[32mncurses-ui-libs#[0m/stable,now 6.1.20190511-7 arm [installed,automatic]
#[32mnet-tools#[0m/stable,now 1.60.2017.02.21-2 arm [installed,automatic]
#[32mnodejs#[0m/stable,now 12.10.0 arm [installed]
#[32mopenjpeg#[0m/stable,now 2.3.1-1 arm [installed,automatic]
#[32mopenssh#[0m/stable,now 8.0p1-5 arm [installed]
#[32mopenssl#[0m/stable,now 1.1.1d arm [installed]
#[32mpango#[0m/stable,now 1.44.6-1 arm [installed,automatic]
#[32mpatch#[0m/stable,now 2.7.6-3 arm [installed,automatic]
#[32mpcre#[0m/stable,now 8.43-3 arm [installed,automatic]
#[32mpcre2#[0m/stable,now 10.33-1 arm [installed,automatic]
#[32mperl#[0m/stable,now 5.30.0-1 arm [installed,automatic]
#[32mphp#[0m/stable,now 7.3.9 arm [installed]
#[32mpinentry#[0m/stable,now 1.1.0-4 arm [installed,automatic]
#[32mpoppler#[0m/stable,now 0.79.0-1 arm [installed,automatic]
#[32mprocps#[0m/stable,now 3.3.15-6 arm [installed,automatic]
#[32mpsmisc#[0m/stable,now 23.2-1 arm [installed,automatic]
#[32mpython#[0m/stable,now 3.7.4-1 arm [installed]
#[32mreadline#[0m/stable,now 8.0.1 arm [installed]
#[32mroot-repo#[0m/stable,now 1.5 all [installed]
#[32mscience-repo#[0m/stable,now 1.0 all [installed]
#[32msed#[0m/stable,now 4.7-1 arm [installed,automatic]
#[32mtar#[0m/stable,now 1.32-3 arm [installed,automatic]
#[32mteckit#[0m/stable,now 2.5.9-3 arm [installed,automatic]
#[32mtermux-am#[0m/stable,now 0.3 all [installed]
#[32mtermux-auth#[0m/stable,now 1.1-1 arm [installed,automatic]
#[32mtermux-create-package#[0m/stable,now 0.7 all [installed]
#[32mtermux-exec#[0m/stable,now 0.4-1 arm [installed]
#[32mtermux-keyring#[0m/stable,now 1.1 all [installed]
#[32mtermux-licenses#[0m/stable,now 1.0 all [installed]
#[32mtermux-tools#[0m/stable,now 0.70 all [installed]
#[32mtexinfo#[0m/stable,now 6.6-1 arm [installed]
#[32mtexlive#[0m/stable,now 20190410 all [installed,automatic]
#[32mtexlive-bin#[0m/stable,now 20190410-5 arm [installed]
#[32mtexlive-tlmgr#[0m/stable,now 20190410 all [installed,automatic]
#[32munzip#[0m/stable,now 6.0-5 arm [installed,automatic]
#[32mutil-linux#[0m/stable,now 2.34-2 arm [installed,automatic]
#[32mvim#[0m/stable,now 8.1.2050 arm [installed]
#[32mvim-runtime#[0m/stable,now 8.1.2050 all [installed,automatic]
#[32mwget#[0m/stable,now 1.20.3-2 arm [installed]
#[32mx11-repo#[0m/stable,now 1.4 all [installed]
#[32mxz-utils#[0m/stable,now 5.2.4-2 arm [installed,automatic]
#[32mzlib#[0m/stable,now 1.2.11-1 arm [installed]
$ apt install update-binary
Reading package lists... 0%Reading package lists... 100%Reading package lists...
Done
Building dependency tree... 0%Building dependency tree... 0%Building dependency
tree... 50%Building dependency tree... 50%Building dependency tree
Reading state information... 0%Reading state information... 1%Reading state
information... Done
E: Unable to locate package update-binary
$ apt install update-
binary##[K##[K##[K##[K##[K##[K##[K##[K##[K##[K##[K##[K##[K##[K##[K##[K##[K##[K##[K#
#[K##[K##[K update-binary
E: Invalid operation update-binary
$ bash update-binary
mkdir: cannot create directory ‘/dev/tmp’: Permission denied
! Unable to extract zip file!
$ busybox ex##[K##[Kuzip##[K##[K##[Knzip update-binary
Archive: update-binary
unzip: short read
$ busy b##[K##[Kbox install ##[K##[K##[K##[K##[K##[K##[K##[Kupdate-binary
update-binary: applet not found
$ dpkg update-binary
#[1mdpkg:#[0m #[1;31merror:#[0m need an action option
Type dpkg --help for help about installing and deinstalling packages [*];
Use 'apt' or 'aptitude' for user-friendly package management;
Type dpkg -Dhelp for a list of dpkg debug flag values;
Type dpkg --force-help for a list of forcing options;
Type dpkg-deb --help for help about manipulating *.deb files;
Options marked [*] produce a lot of output - pipe it through 'less' or 'more' !
$ dpkg update-
binary##[K##[K##[K##[K##[K##[K##[K##[K##[K##[K##[K##[K##[K##[K##[K##[K##[K##[K####d
pkg --##[K##[K-Dhelp
dpkg debugging option, --debug=<octal> or -D<octal>:
###################################################################################
#######
# Preparation
###################################################################################
#######
INSTALLER=$TMPDIR/install
COMMONDIR=$INSTALLER/common
CHROMEDIR=$INSTALLER/chromeos
COREDIR=/magisk/.core
# Default permissions
umask 022
OUTFD=$2
ZIP=$3
if [ ! -d "$COMMONDIR" ]; then
echo "! Unable to extract zip file!"
exit 1
fi
get_outfd
###################################################################################
#######
# Detection
###################################################################################
#######
ui_print "************************"
ui_print "* Magisk v13.1 Installer"
ui_print "************************"
[ $API -lt 21 ] && abort "! Magisk is only for Lollipop 5.0+ (SDK 21+)"
BINDIR=$INSTALLER/$ARCH
chmod -R 755 $CHROMEDIR $BINDIR
find_boot_image
[ -z $BOOTIMAGE ] && abort "! Unable to detect boot image"
###################################################################################
#######
# Environment
###################################################################################
#######
# addon.d
if [ -d /system/addon.d ]; then
ui_print "- Adding addon.d survival script"
mount -o rw,remount /system
cp $INSTALLER/addon.d/99-magisk.sh /system/addon.d/99-magisk.sh
chmod 755 /system/addon.d/99-magisk.sh
fi
###################################################################################
#######
# Magisk Image
###################################################################################
#######
$BOOTMODE || recovery_actions
# Fix SuperSU.....
$BOOTMODE && $MAGISKBIN/magisk magiskpolicy --live "allow fsck * * *"
if [ -f $IMG ]; then
ui_print "- $IMG detected!"
else
ui_print "- Creating $IMG"
$MAGISKBIN/magisk --createimg $IMG 64M
fi