Android Debugging Utilities
01 Feb 2017Here are some useful tips when working with Android, based on Android Debugging Bridge:
Add adb.exe
to Path on Windows
- Edit environment Variables Path
- Add
PATH/TO/ANDROID/SDK/platform-tools
to the list of Path
View IP address of the Android device
adb.exe shell ifconfig wlan0
View debugging messages (Unity made)
adb.exe logcat -s Unity ActivityManager PackageManager dalvikvm DEBUG
Copy Android local files to PC
adb.exe pull /sdcard/PATH/TO/FILE .
Copy multiple Android local files to PC (Linux)
for file in `adb shell ls /mnt/sdcard/PATH/ | grep $1`
do
echo $file
file=`echo -e $file | tr -d "\r"`;
adb pull /mnt/sdcard/$file $2/$file;
# Remove it
adb shell rm /mnt/sdcard/$file
done
Thanks for reading.