English 中文(简体)
需要某些Android 许可的Android API清单
原标题:A list of Android APIs that require certain Android permissions

是否有办法可以判断安非他明的Adroid API是否需要某种安非他明许可?例如,哪些API需要Get_TASKS或REBOOT许可?从早已去世的人那里继承下来的我的应用程序在清单中列出了这些许可。我不认为我们是在使用这些许可,但是我还担心,如果我删除这些许可,会有不良后果。对于如何处理这些许可,有什么想法吗?

最佳回答

这两种许可都相当专门,只有几种用途。

< 强 > 和机器人. perposit >.REBOT

首先,这项许可具有 design OrSystem 的保护级别,因此,除非您的申请是自定义的ROM的一部分,或者您可以进入您安装的平台的签名密钥,否则申请甚至不会获得许可。 ]

需要调用 PowerManager.reboot ()

< 强 > 和机器人. permission.GET_TASKS < 强/强 >

此权限仅标为 危险 , 这样您的应用程序才能实际获得此权限 。

activityManager 中有两通需要此许可的电话,即 getRecent Tasks () getRunning Tasks () ,以获得关于系统当前应用程序任务的信息。它经常被自定义启动程序应用程序用于填充任务列表 。

HTH, HTH, HTH, HTH, HTH, HTH, HTH, HTH, HT, HTH

问题回答

PScout是一种分析Android SDK的工具,它制作了一张地图,绘制了Android允许使用需要这些许可的方法的地图。

原始 PScout 网站不再有效, 但我从原始 PScout 提取了地图, 并将其推到 Github 。 如果您需要的话, 您可以很容易地查看并分析它 。

这里您可以找到 PScout 找到的所有需要Android许可的方法 。

< a href=> "https://github.com/drag0/pscout_resources" rel=“no follow” >PScout 结果 - 需要这些许可的安东机器人许可和方法图

取出每块, 然后运行。 如果它继续工作, 保留被删除的内容, 并往下移权限列表 。





相关问题
Android - ListView fling gesture triggers context menu

I m relatively new to Android development. I m developing an app with a ListView. I ve followed the info in #1338475 and have my app recognizing the fling gesture, but after the gesture is complete, ...

AsyncTask and error handling on Android

I m converting my code from using Handler to AsyncTask. The latter is great at what it does - asynchronous updates and handling of results in the main UI thread. What s unclear to me is how to handle ...

Android intent filter for a particular file extension?

I want to be able to download a file with a particular extension from the net, and have it passed to my application to deal with it, but I haven t been able to figure out the intent filter. The ...

Android & Web: What is the equivalent style for the web?

I am quite impressed by the workflow I follow when developing Android applications: Define a layout in an xml file and then write all the code in a code-behind style. Is there an equivalent style for ...

TiledLayer equivalent in Android [duplicate]

To draw landscapes, backgrounds with patterns etc, we used TiledLayer in J2ME. Is there an android counterpart for that. Does android provide an option to set such tiled patterns in the layout XML?

Using Repo with Msysgit

When following the Android Open Source Project instructions on installing repo for use with Git, after running the repo init command, I run into this error: /c/Users/Andrew Rabon/bin/repo: line ...

Android "single top" launch mode and onNewIntent method

I read in the Android documentation that by setting my Activity s launchMode property to singleTop OR by adding the FLAG_ACTIVITY_SINGLE_TOP flag to my Intent, that calling startActivity(intent) would ...

From Web Development to Android Development

I have pretty good skills in PHP , Mysql and Javascript for a junior developer. If I wanted to try my hand as Android Development do you think I might find it tough ? Also what new languages would I ...

热门标签