首页 > 解决方案 > 卸载应用程序时未删除数据文件夹

问题描述

当我卸载我的应用程序时,我希望Android> data > (package name) 文件夹也被删除。

我在清单中添加了以下代码:

<application
        android:allowBackup="false"
        android:fullBackupContent="false"
        android:fullBackupOnly="false"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:largeHeap="true"
        android:roundIcon="@mipmap/ic_launcher_round"
        android:supportsRtl="true"
        android:hardwareAccelerated="true"
        android:theme="@style/AppTheme.Launcher">

但是该文件夹仍然被留下。我检查了设备的备份和还原设置,但它已关闭。

我错过了什么?

标签: androidandroid-backup-service

解决方案


推荐阅读