adb push

丰佐
2023-12-01

Microsoft Windows [版本 6.1.7601]
版权所有 (c) 2009 Microsoft Corporation。保留所有权利。

C:\Users\Jason>cd ../../

C:\>cd adb

C:\adb>dir
 驱动器 C 中的卷是 OS
 卷的序列号是 369A-9F3F

 C:\adb 的目录

2019/08/10  12:07    <DIR>          .
2019/08/10  12:07    <DIR>          ..
2015/04/25  12:16         1,011,200 adb.exe
2015/04/25  12:16            96,256 AdbWinApi.dll
2015/04/25  12:16            60,928 AdbWinUsbApi.dll
2019/08/10  04:00    <DIR>          system
2019/08/10  12:06         4,108,513 system.zip
               4 个文件      5,276,897 字节
               3 个目录  3,315,630,080 可用字节

C:\adb>adb devices
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
List of devices attached
0802229542000000        device


C:\adb>adb shell push system\vendor\bin\hw\android.hardware.gnss@1.0-service-ubx
  /system/vendor/bin/hw
/system/bin/sh: push: inaccessible or not found

C:\adb>adb shell ls -l
ls: ./init.usb.configfs.rc: Permission denied
ls: ./verity_key: Permission denied
ls: ./init.zygote32.rc: Permission denied
ls: ./cache: Permission denied
ls: ./init.zygote64_32.rc: Permission denied
ls: ./init.rc: Permission denied
ls: ./ueventd.rc: Permission denied
ls: ./init.usb.rc: Permission denied
ls: ./init.environ.rc: Permission denied
ls: ./init: Permission denied
total 44
dr-xr-xr-x  19 root   root       0 1970-01-01 00:00 acct
drwxr-xr-x  14 root   root     280 1970-01-01 00:00 apex
lrw-r--r--   1 root   root      11 2019-08-02 07:50 bin -> /system/bin
lrw-r--r--   1 root   root      50 2019-08-02 07:50 bugreports -> /data/user_de/
0/com.android.shell/files/bugreports
lrw-r--r--   1 root   root      19 2019-08-02 07:50 charger -> /system/bin/charg
er
drwxr-xr-x   5 root   root       0 1970-01-01 00:00 config
lrw-r--r--   1 root   root      17 2019-08-02 07:50 d -> /sys/kernel/debug
drwxrwx--x  42 system system  4096 1970-01-01 00:00 data
drwxr-xr-x   2 root   root    4096 2019-08-01 11:40 debug_ramdisk
lrw-------   1 root   root      23 2019-08-02 07:50 default.prop -> system/etc/p
rop.default
drwxr-xr-x  19 root   root    2120 1970-01-01 00:00 dev
lrw-r--r--   1 root   root      11 2019-08-02 07:50 etc -> /system/etc
drwx------   2 root   root   16384 2019-08-02 07:50 lost+found
drwxr-xr-x  12 root   system   260 1970-01-01 00:00 mnt
drwxr-xr-x   2 root   root    4096 2019-08-01 11:40 odm
drwxr-xr-x   2 root   root    4096 2019-08-01 11:40 oem
dr-xr-xr-x 192 root   root       0 1970-01-01 00:00 proc
lrw-r--r--   1 root   root      15 2019-08-02 07:50 product -> /system/product
lrw-r--r--   1 root   root      21 2019-08-02 07:50 sdcard -> /storage/self/prim
ary
drwxr-xr-x   3 root   root      80 1970-01-01 00:00 storage
dr-xr-xr-x  12 root   root       0 1970-01-01 00:00 sys
drwxr-xr-x  15 root   root    4096 2019-08-02 07:50 system
lrw-r--r--   1 root   root      18 2019-08-02 07:50 system_ext -> /system/system
_ext
drwxr-xr-x  10 root   root    4096 2019-08-02 07:05 vendor

C:\adb>adb shell ls system
apex bin        etc   framework lib64    product    usr    xbin
app  build.prop fonts lib       priv-app system_ext vendor

C:\adb>adb shell pwd
/

C:\adb>adb shell push system\vendor\bin\hw\android.hardware.gnss@1.0-service-ubx
  /
/system/bin/sh: push: inaccessible or not found

C:\adb>adb push system\vendor\bin\hw\android.hardware.gnss@1.0-service-ubx  /sys
tem/vendor/bin/hw
failed to copy 'system\vendor\bin\hw\android.hardware.gnss@1.0-service-ubx' to '
/system/vendor/bin/hw/android.hardware.gnss@1.0-service-ubx': couldn't create fi
le: Read-only file system

C:\adb>adb root

C:\adb>adb remount
remount succeeded

C:\adb>adb push system\vendor\bin\hw\android.hardware.gnss@1.0-service-ubx  /sys
tem/vendor/bin/hw
1078 KB/s (11040 bytes in 0.010s)

C:\adb>adb push system\vendor\etc\init\android.hardware.gnss@1.0-service-ubx.rc
/system/vendor/etc/init
586 KB/s (1201 bytes in 0.002s)

C:\adb>adb push system\vendor\lib64\hw\android.hardware.gnss@1.0-impl-ubx.so.rc
/system/vendor/lib64/hw/
cannot stat 'system\vendor\lib64\hw\android.hardware.gnss@1.0-impl-ubx.so.rc': N
o such file or directory

C:\adb>adb push system\vendor\lib64\hw\android.hardware.gnss@1.0-impl-ubx.so /sy
stem/vendor/lib64/hw
2591 KB/s (575800 bytes in 0.217s)

C:\adb>adb push system\vendor\lib\hw\android.hardware.gnss@1.0-impl-ubx.so /syst
em/vendor/lib/hw
3461 KB/s (432496 bytes in 0.122s)

C:\adb>adb push system\vendor\etc\gps.conf /system/vendor/etc/
248 KB/s (3056 bytes in 0.012s)

C:\adb>adb push system\vendor\etc\u-blox.conf /system/vendor/etc/
1458 KB/s (5974 bytes in 0.004s)

C:\adb>

 类似资料:

相关阅读

相关文章

相关问答