Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Development tools permission I did not set

I've been creating an android app and when I export (and sign) it, it always adds a "Development tools (test access to protected storage" permission that I had never set. This is my manifest:

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.example.tdr"
    android:versionCode="1"
    android:versionName="1.0" >

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

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

    <application
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name"
        android:theme="@style/AppTheme">
        <activity
            android:name=".MainActivity"
            android:label="@string/title_activity_main" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        <activity
            android:name="Escriure"
            android:enabled="true" >
        </activity>
        <activity android:enabled="true" android:name="Llegir"></activity>
    </application>

</manifest>

I do need to write and read files from the external storage, but not to use (¿?) development tools. Where is the problem? Thanks!

like image 674
Hanekoma Avatar asked Nov 23 '12 19:11

Hanekoma


1 Answers

Android has added a new permission that needs to be added for Jelly Bean. Please read this article, which is copied below for quick reference:

Now, in Jelly Bean, we’re getting the “read external storage” permission. According to Google:

READ_EXTERNAL_STORAGE

Provides protected read access to external storage. In Android 4.1 by default all applications still have read access. This will be changed in a future release to require that applications explicitly request read access using this permission. If your application already requests write access, it will automatically get read access as well. There is a new developer option to turn on read access restriction, for developers to test their applications against how Android will behave in the future. So, when you hop into the development options on your Jelly Bean device, don’t be surprised to see this new option. We won’t see the permission in Android 4.1.0, but most likely in 4.1.1, and its intention is to keep your device more secure.

like image 123
Praful Bhatnagar Avatar answered Oct 02 '22 18:10

Praful Bhatnagar