Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
#!/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 |
#!/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 |
#!/bin/sh | |
# Example usage: | |
# ./generateAndroidDrawables.sh my_image.png 140 /absolute/path/to/android/res/drawables | |
# | |
# Will generate 140dp android drawables for 6 DPI on out/my_image.png/ directory. | |
# Be sure your original image has sustainable resolution for xxxhdpi drawable, | |
# which is 140 x 4 PX in case of this example. | |
# | |
# Requires ImageMagic | |
# SVG conversion recommended to be done with Inkscape: |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000