fix bug in android script

This commit is contained in:
ppwwyyxx
2014-12-31 23:28:29 +08:00
parent d90ad5b7cd
commit e0eaa15e3c
2 changed files with 5 additions and 6 deletions
+1 -2
View File
@@ -9,7 +9,7 @@
+ python-csscompressor(optional)
#### Get Necessary Data:
+ Get /data/data/com.tencent.mm/MicroMsg/long-long-name/EnMicroMsg.db from root filesystem, possible ways are:
+ Get /data/data/com.tencent.mm/MicroMsg/long-long-name/EnMicroMsg.db from *root* filesystem, possible ways are:
+ `./android-interact.sh db`
+ Use your rooted file system manager app
+ Get WeChat user resource directory from your phone:
@@ -38,6 +38,5 @@
### TODO
+ Group message
+ Change max size for custom emoji
+ Show name of emoji in text output
+ Search by uid/username..
+4 -4
View File
@@ -1,6 +1,6 @@
#!/bin/bash -e
# File: android-interact.sh
# Date: Sat Dec 27 00:04:17 2014 +0800
# Date: Wed Dec 31 23:27:47 2014 +0800
# Author: Yuxin Wu <[email protected]>
# Please check that your path is the same, since this might be different among devices
@@ -41,15 +41,15 @@ elif [[ $1 == "db" || $1 == "res" ]]; then
if [[ $1 == "res" ]]; then
echo "Pulling resources... this might take a long time..."
mkdir resource; cd resource
mkdir -p resource; cd resource
for d in image2 voice2 emoji avatar; do
mkdir $d; cd $d
mkdir -p $d; cd $d
adb pull $RES_DIR/$chooseUser/$d
cd ..
[[ -d $d ]] || {
echo "Failed to download resource directory: $RES_DIR/$chooseUser/$d"
exit 1
}
cd ..
done
cd ..
echo "Resource pulled at ./resource"