adb push与adb install的区别
来源:互联网 发布:mars软件下载 编辑:程序博客网 时间:2024/05/21 14:12
E/LauncherProvider( 2064): Problem allocating appWidgetId
E/LauncherProvider( 2064): java.lang.SecurityException: bindGagetId appWidgetId=843 provider=ComponentInfo{com.android.quicksearchbox/com.android.quicksearchbox.SearchWidgetProvider}: User 10047 does not have android.permission.BIND_APPWIDGET.
E/LauncherProvider( 2064): at android.os.Parcel.readException(Parcel.java:1247)
E/LauncherProvider( 2064): at android.os.Parcel.readException(Parcel.java:1235)
E/LauncherProvider( 2064): at com.android.internal.appwidget.IAppWidgetService$Stub$Proxy.bindAppWidgetId(IAppWidgetService.java:470)
E/LauncherProvider( 2064): at android.appwidget.AppWidgetManager.bindAppWidgetId(AppWidgetManager.java:368)
E/LauncherProvider( 2064): at com.xxx.launcherplus.LauncherProvider$DatabaseHelper.addAppWidget(LauncherProvider.java:827)
搜索后得到如下比较满意的答案:
原文地址:http://www.krvarma.com/posts/android/security-permissions-in-android/
As we all know whenever we use a particular feature or API we need to request the permission in AndroidManifest.xml file with uses-permission element. If we don’t specify any permissions, then the application will not have any permission and application can do anything that does not require a permission. This link explains the permissions in android in more detail and this link lists the permissions in Android.
Permissions are granted to the application by package installer while installing. But not all the permissions will be granted to the system. There are some system permission which will not be granted to the user applications, but only to the system applications. Following are some of the permissions that may NOT be granted to the user application.
android.permission.ACCESS_CHECKIN_PROPERTIESandroid.permission.ACCESS_SURFACE_FLINGERandroid.permission.ACCOUNT_MANAGERandroid.permission.BIND_APPWIDGETandroid.permission.BIND_DEVICE_ADMINandroid.permission.BIND_INPUT_METHODandroid.permission.BIND_WALLPAPERandroid.permission.BRICKandroid.permission.BROADCAST_PACKAGE_REMOVEDandroid.permission.BROADCAST_SMSandroid.permission.BROADCAST_WAP_PUSHandroid.permission.CALL_PRIVILEGEDandroid.permission.CHANGE_COMPONENT_ENABLED_STATEandroid.permission.CLEAR_APP_USER_DATAandroid.permission.CONTROL_LOCATION_UPDATESandroid.permission.DELETE_CACHE_FILESandroid.permission.DELETE_PACKAGESandroid.permission.DEVICE_POWERandroid.permission.DIAGNOSTICandroid.permission.FACTORY_TESTandroid.permission.FORCE_BACKandroid.permission.GLOBAL_SEARCHandroid.permission.HARDWARE_TESTandroid.permission.INJECT_EVENTSandroid.permission.INSTALL_LOCATION_PROVIDERandroid.permission.INSTALL_PACKAGESandroid.permission.INTERNAL_SYSTEM_WINDOWandroid.permission.MANAGE_APP_TOKENSandroid.permission.MASTER_CLEARandroid.permission.READ_FRAME_BUFFERandroid.permission.READ_INPUT_STATEandroid.permission.REBOOTandroid.permission.SET_ACTIVITY_WATCHERandroid.permission.SET_ORIENTATIONandroid.permission.SET_PREFERRED_APPLICATIONSandroid.permission.SET_TIMEandroid.permission.STATUS_BARandroid.permission.UPDATE_DEVICE_STATSandroid.permission.WRITE_GSERVICESandroid.permission.WRITE_SECURE_SETTINGSTo get these permissions, the application must be signed with the key which used to sign the platform. This may be different for manufacturers. So it practically not possible to get these permissions granted to a user application.
Note: While playing with PowerManager.reboot
I was so stupid I thought my application will be granted the permission android.permission.REBOOT
, but it was not granted. Then I created an application requesting all the permissions and above list of permissions are not granted. Hope this will help you when you request a permission next time.
补充一点小知识,关于adb push 和 adb install 的区别:
adb push 能够指定安装目录。比如执行"adb push xxx.apk system/app" 后,xxx.apk被安装到了system/app目录下,此目录下的软件为上文中提到的system application。
adb install 用此命令安装的软件位于 data/app 目录,则为user application。
- adb push与adb install的区别
- adb install 与 adb push 的区别
- adb push和adb install的区别
- adb push 和 adb install 的区别
- adb push 与 adb install 区别(两种利用adb安装APK的方法)
- adb push 与 adb install 区别(两种利用adb安装APK的方法)
- android adb push 和 adb install的区别
- Android中adb push和adb install的使用区别
- Android中adb push和adb install的使用区别
- android ADB PUSH 安装apk的具体步骤 及 与 ADB INSTALL 的区别
- android SecurityException:android.permission.BIND_APPWIDGET(adb push与adb install的区别)
- android adb push 与 adb install 区别(两种安装APK的方法)
- adb push与adb install的区别(android SecurityException:android.permission.BIND_APPWIDGET)
- android adb push 与 adb install 区别(两种安装APK的方法)
- android adb push 与 adb install的比较
- android adb push 与 adb install的比较
- Android adb push与 adb install简介
- android adb push 与 adb install的比较(两种安装APK的方法)
- TCMalloc
- 【读书笔记】【linux kernel development】【进程管理】
- 任正非与华为“诺亚方舟实验室”科学家的会谈纪要
- 蛇行矩阵的解法
- [OS] 进程地址空间与虚拟存储空间的理解 很好!!!
- adb push与adb install的区别
- 从数据库里查询数据,显示在jsp的下拉列表框里
- Android 错误 The method onClick(View) of type new View.OnClickListener(){} must override a superclas
- android4.0.3 修改启动动画和开机声音
- Android读取其他应用的SharedPreferences
- openssl交叉编译
- zju2005开门人和关门人
- 互联网企业盈利模式全分析
- 存储基础知识学习笔记