ErNaveenSingh / nethack-android

Automatically exported from code.google.com/p/nethack-android
0 stars 0 forks source link

Requests Phone usage permissions on Desire #46

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Download the game using the barcode.
2. Try to install it.
3. The phone shows you the permissions the APK wants.

What is the expected output? What do you see instead?
The permissions it wants are storage and Phone calls. Storage is
understandable, but why does it need to do phone calls?

What version of the product are you using? On what operating system?
Both the 1.1.3 and 1.2.1 alpha APKs did it for me.

Original issue reported on code.google.com by Mik...@gmail.com on 24 May 2010 at 1:40

GoogleCodeExporter commented 8 years ago
Are you sure that any application can avoid this? I haven't done anything with 
permissions, and everywhere I look in AndroidManifest.xml or whatever, all 
permissions seem to be blank. I suspect the storage and phone call stuff is 
just a part of some standard set of permissions that all applications get. Here 
is the whole AndroidManifest file:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
      package="com.nethackff"
      android:versionName="1.2.1" android:versionCode="6">
    <application android:icon="@drawable/icon" android:label="@string/app_name">
        <activity android:name=".NetHackApp"
                  android:label="@string/app_name" android:launchMode="singleTas
k" android:configChanges="orientation|keyboardHidden" android:windowSoftInputMod
e="stateHidden">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
                <activity
                        android:name=".NetHackPreferences"
                        android:label="@string/app_name">
                </activity>
    </application>
    <uses-sdk android:minSdkVersion="3" />
</manifest> 

If anybody knows how to change this, please let me know. This application 
really has no interest in your phone calls.

Original comment by farnst...@gmail.com on 21 Jun 2010 at 7:40

GoogleCodeExporter commented 8 years ago
I searched around a bit and found some discussion about it, here:

http://androidforums.com/android-applications/60747-apps-suddenly-have-storage-p
hone-call-permissions-without-asking.html

http://code.google.com/p/android/issues/detail?id=4101

I only took a quick look at it so far, but it kind of sounds like it can be 
addressed by me, but maybe only at the expense of requiring Android 1.6 or 
later.

Original comment by farnst...@gmail.com on 21 Jun 2010 at 7:49

GoogleCodeExporter commented 8 years ago
I'm sure this can be solvable, since not all the programs want request this 
permission. I just compiled a HelloWorld and it didn't ask me for any 
permissions.

I'm sure the app doesn't want to make phone calls, but it's still unnerving 
that a game wants this permission.

Original comment by Mik...@gmail.com on 21 Jun 2010 at 8:15

GoogleCodeExporter commented 8 years ago
@Mikle3: Read the links posted by farnstrom. It depends what version of Android 
it is compiled for. Things compiled for 1.5 will automatically request those 
permissions when they are run on newer versions of Android, and there is 
currently no way around it, besides compiling your app for 1.6 or above only. 
The downside being people running older Android 1.5 devices will no longer be 
able to use your app.

Original comment by dro...@gmail.com on 21 Jun 2010 at 8:47

GoogleCodeExporter commented 8 years ago
All you have to do is compile for a higher API and use android:MinSdkVersion 
per http://developer.android.com/guide/publishing/versioning.html

Original comment by zanshin...@gmail.com on 22 Oct 2010 at 8:31