Remove unknwon files that are in the downloads dir

The files are supposed to be downloaded in a privileged location
that the user can't access. If the user wipes the data of the
application, the updates downloaded are not removed. Perform a
one-time cleanup so that our downloads dir doesn't grow without
control.
This commit is contained in:
Gabriele M
2017-07-08 14:07:05 +02:00
parent 6534932b20
commit efa829358d
4 changed files with 51 additions and 0 deletions
+3
View File
@@ -18,7 +18,10 @@
<string name="app_name">Updater</string>
<string name="display_name">Updater</string>
<!-- Directory where the update files will be downloaded and stored.
WARNING: The application can and will delete any unknown file. -->
<string name="download_path" translatable="false">/data/ota_package/</string>
<string name="conf_update_server_url_def" translatable="false">https://download.lineageos.org/api</string>
<string name="verification_failed_notification">Verification failed</string>