开发者

Application installer tells that my app reads Phone State and identity :-(

开发者 https://www.devze.com 2022-12-27 20:39 出处:网络
Hoi, I have a simple app with a surfaceview nothing special one would say. However when installing on my phone I get two warnings.

Hoi,

I have a simple app with a surfaceview nothing special one would say. However when installing on my phone I get two warnings.

1 - Phone calls - read phone state and identity 2 - Storage - modify/delete SD card content开发者_如何学Go.

My really is nothing more than a simple puzzle and I dont understand why I get these warnings.

Any ideas how to avoid this?

Help is very much appreciated, Kind regards Jasper de Keijzer.


I guess the warnings you mention are user-permissions in the manifest. Check if you have in your manifest lines like:

<uses-permission android:name="android.permission.READ_PHONE_STATE" />

and delete them.


It is most likely due to building the app for Android 1.5 (or earlier) and running it on a 1.6 or later device. According to this answer elsewhere on StackOverflow, you can fix it with the following line in your manifest:

<uses-sdk android:minSdkVersion="4" android:targetSdkVersion="4" />

It hasn't worked for me, though.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号