Created
September 10, 2020 16:59
-
-
Save mzyy94/18580f051415ea45a3f69aee0805109c to your computer and use it in GitHub Desktop.
lsec_updatesh/lsec.sh Joying update script PoC
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Hello joying update | |
root | |
/ | |
ANDROID_DATA=/data | |
ANDROID_ROOT=/system | |
EXTERNAL_STORAGE=/sdcard | |
HOME | |
PATH=/sbin:/system/bin:/vendor/bin | |
SECONDARY_STORAGE=/storage/sdcard0 | |
SHELL | |
Filesystem 1K-blocks Used Available Use% Mounted on | |
rootfs 1874048 27188 1846860 2% / | |
tmpfs 1880488 252 1880236 1% /dev | |
tmpfs 1880488 1736 1878752 1% /tmp | |
/dev/block/mmcblk0p27 132384 620 131764 1% /cache | |
/dev/block/mmcblk0p13 2000 24 1976 2% /lsecfs | |
/dev/block/mmcblk0p26 2031440 1933960 97480 96% /system | |
/dev/block/sda1 31154688 4832 31149856 1% /storage/sdcard1 | |
/dev/block/mmcblk0p34 56852444 3973076 52879368 7% /data | |
/dev/block/mmcblk0p28 694312 438272 256040 64% /vendor | |
/dev/block/mmcblk0p33 999320 347668 651652 35% /oem |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/system/bin/sh | |
echo "Hello joying update" >> /storage/sdcard1/log.txt | |
id -u -n >> /storage/sdcard1/log.txt | |
pwd >> /storage/sdcard1/log.txt | |
export - >> /storage/sdcard1/log.txt | |
df >> /storage/sdcard1/log.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment