Last active
November 21, 2018 23:56
-
-
Save muhammaddadu/34bca85aaa08103ec830680a77616953 to your computer and use it in GitHub Desktop.
~/.profile (My FireTV)
This file contains hidden or 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
## | |
# Instalation | |
# download the file | |
# source it | |
## | |
DOWNLOADS_DIR="/sdcard/Download" | |
PROFILE_FILE="/sdcard/.profile" | |
howto-root-firetvstick-1() { | |
echo " | |
Kingoroot | |
1) Download https://root-apk.kingoapp.com/kingoroot-download.html and save it | |
2) adb install ./KingoRoot.apk | |
" | |
} | |
adb-transfer-download() { | |
adb push $1 $DOWNLOADS_DIR/$2 | |
} | |
adb-transfer-profile() { | |
adb push $1 /sdcard/.profile | |
} | |
adb-ensure-downloads() { | |
adb shell " | |
[ -d $DOWNLOADS_DIR ] || mkdir $DOWNLOADS_DIR | |
touch $DOWNLOADS_DIR/.md-was-here | |
" | |
} | |
adb-clear-downloads() { | |
adb shell "md-clear-downloads" | |
} | |
adb-ensure-downloads |
This file contains hidden or 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
## | |
# Installation | |
# download the file | |
# source it | |
## | |
export MD_DOWNLOADS_DIR="/sdcard/Download" | |
export MD_PROFILE_FILE="/sdcard/.profile" | |
md-list(){ | |
echo "PERMS LINKS OWNER GROUP SIZE modMONTH modDATE modTIME NAME\n `ls -la $1`" | grep -v "total" | |
} | |
md-clear-downloads() { | |
source $PROFILE_FILE | |
md-list $DOWNLOADS_DIR | |
rm -rf $DOWNLOADS_DIR/* | |
ls -la $DOWNLOADS_DIR | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment