简体   繁体   中英

'Error=2, No such file or directory' error in android adb shell

Save the file on the web to cacheDir and run it as follows.

'error=2, No such file or directory' error occurs

If you go to the folder in the terminal, the file is there and the permissions are OK.

What is the problem?

adb install -r /data/user/0/pakagename/cache/app.apk

adb install will install files in your local PC. You should use:

# enter shell on the device
adb shell
# execute in device
pm install /data/user/0/pakagename/cache/app.apk

Or use one command:

adb shell pm install /data/user/0/pakagename/cache/app.apk

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM