Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1306835
  • 博文数量: 478
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 4833
  • 用 户 组: 普通用户
  • 注册时间: 2014-06-28 11:12
文章分类

全部博文(478)

文章存档

2019年(1)

2018年(27)

2017年(21)

2016年(171)

2015年(258)

我的朋友

分类: Android平台

2016-06-02 14:51:46

http://blog.csdn.net/wangjia55/article/details/8752370

1. adb install -r  -gateway-nightly.apk   

   如果安装apk到rom中,提示 “exsit 。。。”  的提示信息,可以加上  - r 参数 ,可以替换原有的apk 

2. adb shell pm clean com.cvte.health 

   可以清除 某个包apk的数据,就是相当于清除数据


附加:


adb install [-l] [-r] [-s]  - EN push this package file to the device and install it
- CHS 给设备安装软件
('-l' means forward-lock the app) #锁定该程序
('-r' means reinstall the app, keeping its data) #重新安装该程序,保存数据
('-s' means install on SD card instead of internal storage) #安装在SD卡内,而不是设备内部存储 adb uninstall [-k]  - EN remove this app package from the device
- CHS 从设备删除程序包
('-k' means keep the data and cache directories) #不删除程序运行所产生的数据和缓存目录(如软件的数据库文件)

阅读(1128) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~