Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adb install更详细的用法 #5

Closed
codeskyblue opened this issue Aug 28, 2016 · 3 comments
Closed

adb install更详细的用法 #5

codeskyblue opened this issue Aug 28, 2016 · 3 comments
Projects

Comments

@codeskyblue
Copy link

写的稍微有点乱,lz自己整理下。

adb install 1.0.36会出现安装进度。

adb install的过程:

  1. push文件到/data/local/tmp
  2. 调用pm install安装软件

缺点,目前的adb install不会删除到残留在/data/local/tmp下的安装包

手动安装方法

  1. adb push some.apk /data/local/tmp/
  2. adb shell pm install /data/local/tmp/some.apk
  3. 清理 adb shell rm /data/local/tmp/some.apk

BTW: adb在mac上还有更好的实现 https://github.com/facebook/fb-adb

@mzlogin
Copy link
Owner

mzlogin commented Aug 29, 2016

收到~我回头整理补充一下,感谢! @codeskyblue

@mzlogin
Copy link
Owner

mzlogin commented Sep 1, 2016

已经整理补充了一下,还觉得有问题的地方也请再次指出,非常感谢!

我这边实测 adb 1.0.36 在 5.1.1 和 6.0 上 install 的时候会删除 /data/local/tmp 下的文件。

@codeskyblue
Copy link
Author

nice

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
GTD
Done
Development

No branches or pull requests

2 participants