안드로이드/버그탈출
Android Studio 앱의 데이터 자동 백업을 막는 방법
Link2Me
2018. 7. 30. 22:59
앱의 데이터가 자동으로 백업될 수 있다는 걸 몰랐다.
안드로이드 6.0부터는 AndroidManifest.xml 파일에서 application 요소의 android:allowBackup 속성을 자동으로 true로 설정된다.
이로 인해 사용자도 모르게 데이터가 구글 클라우드에 자동으로 백업된다.
<application
android:allowBackup="false"
android:icon="@drawable/icon"
android:fullBackupContent="false"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/AppTheme.NoActionBar">
<activity android:name=".MainActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
728x90