This moves towards the standard Android Studio Ctrl-Alt-L code format with
only whitespace changes. This just removes this one kind of space, since
its widespread, and easy to track. I did this using:
sed -i 's," />,"/>,g' app/src/main/AndroidManifest.xml
extended info on things we already have:
* PRODUCT is another name for BRAND/PHONE_MODEL
* TOTAL_MEM_SIZE can be derived from hardware name
* DISPLAY is also available by looking up the hardware
* STACK_TRACE_HASH should make automated sorting easier
new info:
* PACKAGE_NAME is only new info if the user is using a whitelabel app
* AVAILABLE_MEM_SIZE can be used to track users, but only when provided at
high resolution, e.g. once per second or higher. Most users only send a
single crash report. High frequency reporters send under 100, which is
still orders of magnatude below what is needed to track users.
new file: app/src/main/res/drawable-hdpi/ic_az_white.png
modified: app/src/main/res/drawable-hdpi/ic_last_updated_black.png
new file: app/src/main/res/drawable-hdpi/ic_last_updated_white.png
new file: app/src/main/res/drawable-mdpi/ic_az_white.png
modified: app/src/main/res/drawable-mdpi/ic_last_updated_black.png
new file: app/src/main/res/drawable-mdpi/ic_last_updated_white.png
new file: app/src/main/res/drawable-xhdpi/ic_az_white.png
modified: app/src/main/res/drawable-xhdpi/ic_last_updated_black.png
new file: app/src/main/res/drawable-xhdpi/ic_last_updated_white.png
new file: app/src/main/res/drawable-xxhdpi/ic_az_white.png
modified: app/src/main/res/drawable-xxhdpi/ic_last_updated_black.png
new file: app/src/main/res/drawable-xxhdpi/ic_last_updated_white.png
new file: app/src/main/res/drawable-xxxhdpi/ic_az_white.png
modified: app/src/main/res/drawable-xxxhdpi/ic_last_updated_black.png
new file: app/src/main/res/drawable-xxxhdpi/ic_last_updated_white.png
modified: app/src/main/res/layout/activity_app_list.xml
new file: app/src/main/res/drawable-hdpi/ic_az_black.png
new file: app/src/main/res/drawable-hdpi/ic_last_updated_black.png
new file: app/src/main/res/drawable-mdpi/ic_az_black.png
new file: app/src/main/res/drawable-mdpi/ic_last_updated_black.png
new file: app/src/main/res/drawable-xhdpi/ic_az_black.png
new file: app/src/main/res/drawable-xhdpi/ic_last_updated_black.png
new file: app/src/main/res/drawable-xxhdpi/ic_az_black.png
new file: app/src/main/res/drawable-xxhdpi/ic_last_updated_black.png
new file: app/src/main/res/drawable-xxxhdpi/ic_az_black.png
new file: app/src/main/res/drawable-xxxhdpi/ic_last_updated_black.png
Things like permission support, locales, etc. can change when Android is
updated. So the database should be rebuilt from scratch with a fresh
download of the indexes.
closes#780
The database currently only stores the active language. So if the
user changes the system language of the phone, then the language of
all the app descriptions will be out of sync until the next update.
This forces an update when the locale is changed. This functionality
is also needed for events like OS upgrades.
closes#225
It was tried until it got an IP address, but that will only happen if there
is a wifi device configured. Since WifiStateChangeService is started when
F-Droid starts, WifiStateChangeService could run for days if someone never
connected to WiFi in that time.
WifiStateChangeService is also started by NETWORK_STATE_CHANGED_ACTION so
it should start each time there is a change to the WiFi connection.
It was already behaving like a singleton, but the code was spread around in
other classes. DBHelper does not use a private constructor though since
the tests prevent it.
Yes, this is an ugly and old style, but mixing styles only makes it worse.
Plus it breaks the tests in some cases, since it makes Preferences depend
on Resources.
This commit allows F-Droid to hide itself from the laucher.
It can be hidden either as response to a panic trigger
or as a manual action by long pressing the floating search button.
The latter needs to be explicitly enabled in the settings.
Once hidden, a semi-functional fake calculator app appears in the
launcher that can be used to bring F-Droid back by entering a
pre-defined PIN.