Skip to content

Instantly share code, notes, and snippets.

@yanyaoer
Last active August 29, 2015 14:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yanyaoer/90b1ab6ac68594fa09fc to your computer and use it in GitHub Desktop.
Save yanyaoer/90b1ab6ac68594fa09fc to your computer and use it in GitHub Desktop.
#!/bin/bash
dir=$(dirname $0)
package=com.package.app
remote=/data/data/$package/cache/your_path/
webcache=/data/data/$package/app_webview/
cd $dir
adb shell am force-stop $package
#adb shell pm clear $package
adb shell rm -r $webcache
adb shell mkdir -p $remote
for f in *.js *.css *.html *.png; do
adb push $f $remote;
done;
adb shell am start -a android.intent.action.VIEW -d your-intent-scheme://home
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment