1

I've just created a very simple Android application that captures an Intent, manipulates it a bit, and sends out a new Intent. I transferred the app to my phone with adb install, and now looking at the app's requested permissions, I'm seeing that it requires permissions I never asked for:

  • read phone status and identity
  • modify or delete the contents of your USB storage
  • test access to protected storage

There's nothing in my manifest file requesting permissions, and the app itself is dead simple (here's the source on GitHub). Are these extra permissions added because I installed it with adb install, perhaps? Or is there something in my app that merits requiring these permissions that I'm just not seeing?

4

1 回答 1

5

您缺少一个<uses-sdk>带有android:minSdkVersion. 这些权限是在 Android 最初发布后添加到的,支持非常旧的 Android 设备的应用程序具有这些权限“祖父”。

您确实应该添加<uses-sdk>和添加android:minSdkVersion,说明您愿意支持的 Android 设备的年龄(从 API 级别的角度来看)。

于 2013-07-22T18:50:46.680 回答