用来清缓存重启 webview

#!/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

yanyaoer
1.7k 声望101 粉丝

述这一是个短有性简个的人个描


引用和评论

0 条评论