apk的安装删除

时间:2024-08-31 19:07:32

1,签名:

java -jar signapk.jar platform.x509.pem platform.pk8 DownloadProvider.apk DownloadProvider-sign.apk

2,

adb connect 192.168.12.103

adb remount

3,apk安装(可以用adb push直接放置目录即可;或者用adb install):

  adb push DownloadProvider.apk /data/app

  adb install -f xxx.apk

  adb uninstall apk的包名 或者 直接删除 rm

4,启动activity:

am start -n cn.coopen.italktv/cn.coopen.italktv.search.SearchActivity

   am start -n com.mozillaonline.downloadprovider/.DownloadProviderActivity

am start -n com.mozillaonline.downloadprovider/com.mozillaonline.providers.downloads.ui.DownloadList

  am start -n com.UCMobile/com.UCMobile.main.UCMobile

  这是用 包名/.类名

  <manifest xmlns:android="http://schemas.android.com/apk/res/android"

    package="com.mozillaonline.downloadprovider"

  。。。。。

  <activity
    android:name=".DownloadProviderActivity"

5,启动service

am startservice -n com.updater/com.updater.service.UpdateService

6,启动广播

am broadcast -a com.updater.service.ApkDownloadReceiver.DOWNLOAD_CHECK

am broadcast -a com.mozillaonline.downloadprovider.MyDownloadReceiver.DOWNLOAD_PROCESSING_LIST

am broadcast -a net.sunniwell.action.UPGRADE