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
#!/usr/bin/env python3 | |
import zlib | |
import sys | |
if len(sys.argv) > 1: | |
print(f"File in was: {sys.argv[1]}") | |
file=sys.argv[1] | |
else: | |
print("File in was BLANK, please pass a zlibbed file path...") | |
exit(1) |
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
#!/usr/bin/env bash | |
# IMPORTANT: | |
# make sure to edit the variables below to make the script work for you and your app | |
package="my.package.com" | |
filename="sharedprefs.xml" | |
line=$(adb exec-out run-as "$package" cat "/data/data/$package/shared_prefs/$filename") | |
echo "$line" > /tmp/editpreffile.txt |
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
#!/usr/bin/env bash | |
#NOTE: requires python3 and the pip package uiautomator2 | |
#These functions can be copied over to your own bash script | |
#and can be used by simply triggering tapIfExists... | |
function tapIfExists(){ | |
coords=$(getCoords "${1}") | |
if [[ "$coords" != "-" ]]; then | |
$fullAdb shell input tap "$coords" | |
fi |
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
git branch | fzf | sed 's/\* //g' | xargs -I '{}' git checkout {} |
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
#!/usr/bin/env bash | |
echo "Pulling newest video" | |
file=$(adb shell ls sdcard/DCIM/Camera | grep mp4 | tail -n1 | sed 's/^M//g') | |
adb pull "sdcard/DCIM/Camera/$file" |