国际版系统对比国内版缺失了不少东西,有些可以自己从系统里面提取
Windows 建议自力更生
- 默认提取到
/tmp/apk
,该文件夹需要提前创建
提取所有APK包
1 2 3 4 5 6 7 8
| for i in $(adb shell pm list packages | awk -F: '{print $NF}') do apk_path=`adb shell pm path ${i} | awk -F: '{print $NF}'` tmp_path=/tmp/apk/$i.apk echo -e "adb pull $apk_path -> $tmp_path" adb pull $apk_path $tmp_path done
|
提取xiaomi包
1 2 3 4 5 6 7 8
| for i in $(adb shell pm list packages | grep xiaomi | awk -F: '{print $NF}') do apk_path=`adb shell pm path ${i} | awk -F: '{print $NF}'` tmp_path=/tmp/apk/$i.apk echo -e "adb pull $apk_path -> $tmp_path" adb pull $apk_path $tmp_path done
|
提取miui包
1 2 3 4 5 6 7 8
| for i in $(adb shell pm list packages | grep miui | awk -F: '{print $NF}') do apk_path=`adb shell pm path ${i} | awk -F: '{print $NF}'` tmp_path=/tmp/apk/$i.apk echo -e "adb pull $apk_path -> $tmp_path" adb pull $apk_path $tmp_path done
|
提取短信包
1 2 3 4 5 6 7 8
| for i in $(adb shell pm list packages | grep mms | awk -F: '{print $NF}') do apk_path=`adb shell pm path ${i} | awk -F: '{print $NF}'` tmp_path=/tmp/apk/$i.apk echo -e "adb pull $apk_path -> $tmp_path" adb pull $apk_path $tmp_path done
|
提取主题商店包
1 2 3 4 5 6 7 8
| for i in $(adb shell pm list packages | grep theme | awk -F: '{print $NF}') do apk_path=`adb shell pm path ${i} | awk -F: '{print $NF}'` tmp_path=/tmp/apk/$i.apk echo -e "adb pull $apk_path -> $tmp_path" adb pull $apk_path $tmp_path done
|
提取电话、联系人
1 2 3 4 5 6 7 8
| for i in $(adb shell pm list packages | grep contacts | awk -F: '{print $NF}') do apk_path=`adb shell pm path ${i} | awk -F: '{print $NF}'` tmp_path=/tmp/apk/$i.apk echo -e "adb pull $apk_path -> $tmp_path" adb pull $apk_path $tmp_path done
|
本文标题:使用ADB免ROOT抓取手机APK
文章作者:IITII
发布时间:2022年07月12日 - 22:07
最后更新:2022年07月13日 - 22:07
原始链接:https://iitii.github.io/2022/07/12/1/
许可协议: 署名-非商业性使用-禁止演绎 4.0 国际 转载请保留原文链接及作者。