Skip to content

Find


Dump all databases in data folder with 8 threads in parallel

adb shell su -c find /data/data -name '*db' -type f -print0 |xargs -0 -n1 -P$(nproc) sh -c 'echo .dump | sqlite3 "$0"'

Search through entire device and try grep strings via parallel

adb shell su -c find / -not -path '/proc/*' -type f -print0 |xargs -0 -n1 -P$(nproc) sh -c 'strings "$0"'|grep -i <string> 

Search through entire device in apk files after "AT+"

#!/bin/sh
# Author: wuseman

root_directory="/"
exclude_paths=( "/proc" "/dev" )

find_command="find $root_directory"
for path in "${exclude_paths[@]}"; do
    find_command+=" -path $path -prune -o"
done
find_command+=" -iname '*.apk' -type f -print0"

eval "$find_command" | xargs -0 -P4 -n1 grep -H "AT+"