如何使用 adb 将 apk 复制到 /system/ 文件夹中



在使用安卓调试桥重装时,它会将系统文件夹更改为 r/w,但一旦用户尝试使用android调试桥将某些文件复制到系统文件夹,它就会变为只读

如果设备未获得 root 权限,则无法将任何内容复制到系统或数据分区。

使用 root 在命令提示符或 linux shell 中执行以下命令,一切都应该没问题:

    adb push fileName /data/local/tmp
    adb shell
    su
    mount -o remount, rw /system
    cp /data/local/tmp/fileName /system/folderOfYourChoise
    chmod 644 (if its an apk and you want the system to use it as a system app)
    exit (exits the su shell)
    exit (exits the adb shell)
    adb reboot (to apply and see changes on the device)

最新更新