2017-02-11 23 views
0

我對谷歌的Play應用程式,我創建並顯示所有被停放在科特賴克的汽車由傳感器實時註冊的位置商店並且該應用程序顯示所有停放的汽車和免費地點停放在Googlemap地圖視圖上。在谷歌Play開發者政策違反警告的關於Android權限:需要採取的行動

不過,我收到了前兩天谷歌的警告Play開發者需要隱私策略的動作。

我的清單是這樣的:

<?xml version="1.0" encoding="utf-8"?> 
<manifest xmlns:android="http://schemas.android.com/apk/res/android" 
    package="be.programmeercursussen.parkingkortrijk" > 

    <!-- Internet permission for network operations --> 
    <uses-permission android:name="android.permission.INTERNET" /> 

    <!-- Creating Permission to receive Google Maps --> 
    <permission 
     android:name="be.programmeercursussen.parkingkortrijk.permission.MAPS_RECEIVE" 
     android:protectionLevel="signature" /> 

    <application 
     android:allowBackup="true" 
     android:icon="@drawable/parking_icon" 
     android:label="@string/app_name" 
     android:theme="@style/MaterialTheme" > 
     --> 
     <meta-data 
      android:name="com.google.android.maps.v2.API_KEY" 
      android:value="my Api key ..." /> 

     <!-- SplashScreen => startup screen --> 
     <activity 
      android:name=".SplashScreen" 
      android:label="@string/app_name" 
      android:screenOrientation="portrait" 
      android:theme="@android:style/Theme.NoTitleBar.Fullscreen" > 
      <intent-filter> 
       <action android:name="android.intent.action.MAIN" /> 

       <category android:name="android.intent.category.LAUNCHER" /> 
      </intent-filter> 
     </activity> 

     <!-- Main activity --> 
     <activity 
      android:name=".MainActivity" 
      android:label="@string/app_name" 
      android:screenOrientation="portrait" > 
     </activity> 
     <!-- ParkingDetail activity --> 
     <activity 
      android:name=".ParkingDetailActivity" 
      android:label="@string/title_activity_parking_detail" 
      android:screenOrientation="portrait" > 
     </activity> 
     <!-- StraatParkeren activity --> 
     <activity 
      android:name=".StraatParkeren" 
      android:label="@string/title_activity_straat_parkeren" 
      android:screenOrientation="portrait" > 
     </activity> 
    </application> 

在開發者控制檯它說我有Get_accounts許可,這是違規行爲,但此權限不應用硬編碼。但後來我發現谷歌播放服務庫自動添加這個我認爲?所以我的編譯

compile 'com.google.android.gms:play-services:7.5.0" 

行我變成選擇性的API部分

compile 'com.google.android.gms:play-services-maps:7.5.0" 

更改此行到這一點,並生成APK,並嘗試安裝它,get_accounts的問題就不再出現在概述了在智能手機上安裝應用程序時可以訪問的內容。

所以我在的build.gradle依賴現在:

dependencies { 
    /* 
    find latest gradle versions on : http://gradleplease.appspot.com/ 
    */ 
    compile fileTree(dir: 'libs', include: ['*.jar']) 
    // appcompat library 
    compile 'com.android.support:appcompat-v7:22.2.1' 
    // material design library 
    compile 'com.android.support:design:22.2.1' 
    // recyclerview 
    compile 'com.android.support:recyclerview-v7:22.2.1' 
    // cardview 
    compile 'com.android.support:cardview-v7:22.2.1' 
    // google play services, selective API (maps) !!! 
    // https://developers.google.com/android/guides/setup#split 
    compile 'com.google.android.gms:play-services-maps:7.5.0' 
    // Jsoup library 
    compile 'org.jsoup:jsoup:1.8.3' 
} 

現在,如果我基於清單和的build.gradle的APK,現在安裝的應用程序將獲得訪問時說:

- approximate location (network-based); 
- modify or delete the contents of your SD card 
- read the contents of your SD card 
- view network state (full Internet access) 

我確定需要查看網絡狀態,否則應用程序無法從Internet讀取實時xml。

但我不知道大概位置會得到我一個新的隱私侵犯?

此外,我不知道爲什麼應用程序可以讀取,修改或刪除SD卡的應用程序的內容,不應該使用那些......有沒有會自動與清單,並設置任何權限的build.gradle?

感謝提前任何幫助,

Grtz戴維

+0

見這個答案一個免費的隱私策略生成 http://stackoverflow.com/a/42186393/1364125 –

回答

相關問題