3
나는 android-studio gradle 빌드 시스템으로 프로젝트를 만들고 있습니다. 아래 두 가지 권한이 있습니다.이러한 불필요한 권한을 제거하는 방법
android.permission.ACCESS_NETWORK_STATE
android.permission.INTERNET
그러나 빌드 시스템에서 이러한 새 권한을 자동으로 추가합니다.
android.permission.READ_EXTERNAL_STORAGE maxSdkVersion=18
android.permission.READ_PHONE_STATE
android.permission.WRITE_EXTERNAL_STORAGE maxSdkVersion=18
왜 이러한 권한이 추가되었는지 이해할 수 없습니다. 이러한 권한을 제거하는 방법은 무엇입니까?
여기 내 빌드 설정
build.gradle입니다
apply plugin: 'com.android.application'
android {
compileSdkVersion 20
buildToolsVersion "20.0.0"
defaultConfig {
applicationId "my.app.package.name"
minSdkVersion 8
targetSdkVersion 20
versionCode 2
versionName "1.0.1"
}
signingConfigs {
debug {
storeFile file(System.getProperty("user.home")+"/.android/debug.keystore")
}
release {
storeFile file("keystore.jks")
storePassword "password"
keyAlias "alias"
keyPassword "password"
}
}
buildTypes {
/*release {
runProguard false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}*/
marketShareRelease {
debuggable false
jniDebuggable false
signingConfig signingConfigs.release
}
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'com.android.support:appcompat-v7:20.0.0'
compile 'com.viewpagerindicator:library:2.4.1'
compile 'com.google.code.gson:gson:2.2.4'
compile 'com.commonsware.cwac:merge:1.0.2'
}
내 이전 빌드 (2014 년 10 월 8 일) 거의 동일. 간단하게 안드로이드 스튜디오 및 SDK는 라이브러리의
단지를 어둠 속에서 쐈지 만 우연히 sdcard에서 파일에 액세스하고 있습니까? 그게 주로 권한이 무엇입니까. SD에 읽고 쓰는 코드를 추가했을 때 IDE가 필요한 권한을 추가했을 수도 있습니다. – MeetTitan