Organizational Research By

Surprising Reserch Topic

android studio add unwanted permission after running application on real device


android studio add unwanted permission after running application on real device  using -'android,android-studio,build.gradle,android-permissions'

After running application on device application required unwanted location permission that is not mention in manifest file. while when i am running same code from my friend Android studio than its run normal without extra permission required.

manifest file

<uses-sdk
    android:minSdkVersion="14"
android:targetSdkVersion="21" />
    <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
    <uses-permission android:name="android.permission.VIBRATE" />
    <uses-permission android:name="android.permission.CALL_PHONE" />
    <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
    <uses-permission android:name="android.permission.USE_CREDENTIALS" />
    <uses-permission android:name="android.permission.GET_ACCOUNTS" />
    <uses-permission android:name="com.android.vending.BILLING" />
    <uses-permission android:name="com.samsung.android.providers.context.permission.WRITE_USE_APP_FEATURE_SURVEY"/>

    <uses-feature
        android:name="android.hardware.telephony"
        android:required="false" />

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




build.gradle

apply plugin: 'com.android.application'

android {
    compileSdkVersion 21
    buildToolsVersion "21.1.2"

    defaultConfig {
        applicationId "xxxxxxx"
        minSdkVersion 14
        targetSdkVersion 21

        // Enabling multidex support.
        multiDexEnabled true

    }


    dexOptions {

        javaMaxHeapSize "4g"
    }

    packagingOptions {
        exclude 'META-INF/LICENSE.txt'
        exclude 'META-INF/NOTICE.txt'
        exclude 'META-INF/LICENSE'
        exclude 'META-INF/NOTICE'
    }

    lintOptions{
        abortOnError false
    }
}
repositories {
    mavenCentral()
}
dependencies {

    compile project(':boxAndroidLibraryV2')

    compile 'com.google.http-client:google-http-client-gson:1.19.0'
    compile 'com.google.code.gson:gson:2.1'
    compile 'com.google.android.gms:play-services:+'
    compile files('libs/HockeySDK-3.0.2.jar')
    compile files('libs/dropbox-android-sdk-1.6.3.jar')

    compile 'com.google.apis:google-api-services-drive:v2-rev164-1.20.0'


    compile files('libs/in-app-purchasing-2.0.59.jar')
    compile files('libs/json_simple-1.1.jar')
    compile 'com.android.support:multidex:1.0.0'
    compile 'com.android.support:appcompat-v7:21.0.3'
    compile files('libs/slf4j-api-1.7.5.jar')
    compile files('libs/jackrabbit-webdav-2.7.2.jar')
    compile files('libs/commons-httpclient-3.1.jar')
    compile project(':utilities')
    compile files('libs/pass-v1.1.3.jar')
    compile files('libs/sdk-v1.0.0.jar')
    compile 'com.google.api-client:google-api-client:1.20.0'
    compile 'com.google.oauth-client:google-oauth-client:1.20.0'
    compile 'com.google.api-client:google-api-client-android:1.20.0'
    compile 'com.google.http-client:google-http-client-android:1.20.0'

}

configurations {
    all*.exclude group: 'com.google.guava', module:'guava-jdk5'
}


so i am unable to understand why its require location permission. How this location permission added in my app?
    
asked Sep 29, 2015 by vijayshukla80
0 votes
16 views



Related Hot Questions



Government Jobs Opening


...