-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
74adcb3
commit 8c04b4c
Showing
4 changed files
with
135 additions
and
84 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
#!/bin/sh | ||
set -eu | ||
|
||
applicationId=com.viliussutkus89.adb.pull.as | ||
|
||
adb shell am start -W $applicationId/$applicationId.MainActivity | ||
echo | ||
|
||
echo "Pulling a single file into current directory" | ||
./src/adbPullAs/__init__.py $applicationId /data/data/$applicationId/cache/test/activityScreenshot.png | ||
rm activityScreenshot.png | ||
echo | ||
|
||
echo "Pulling a single file into specified directory" | ||
mkdir test_tmp | ||
./src/adbPullAs/__init__.py $applicationId /data/data/$applicationId/cache/test/activityScreenshot.png test_tmp | ||
rm test_tmp/activityScreenshot.png | ||
rmdir test_tmp | ||
echo | ||
|
||
echo "Pulling directory into current directory" | ||
./src/adbPullAs/__init__.py $applicationId /data/data/$applicationId/cache/test | ||
rm test/activityScreenshot.png | ||
rm test/subDirectory/file1.txt | ||
rm test/subDirectory/file2.txt | ||
rmdir test/subDirectory | ||
rmdir test | ||
echo | ||
|
||
echo "Pulling directory into specified directory" | ||
mkdir test_tmp | ||
./src/adbPullAs/__init__.py $applicationId /data/data/$applicationId/cache/test test_tmp | ||
rm test_tmp/test/activityScreenshot.png | ||
rm test_tmp/test/subDirectory/file1.txt | ||
rm test_tmp/test/subDirectory/file2.txt | ||
rmdir test_tmp/test/subDirectory | ||
rmdir test_tmp/test | ||
rmdir test_tmp | ||
echo | ||
|
||
echo "Asking for the same file twice" | ||
mkdir test_tmp | ||
./src/adbPullAs/__init__.py $applicationId /data/data/$applicationId/cache/test/activityScreenshot.png /data/data/$applicationId/cache/test/activityScreenshot.png test_tmp | ||
rm test_tmp/activityScreenshot.png | ||
rmdir test_tmp | ||
echo |
This file contains 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
This file contains 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
This file contains 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