Commit Graph

93 Commits

Author SHA1 Message Date
Michael Bestas
4f8f00148a Automatic translation import
Change-Id: If04e431e80d0d9cd7ca4753be5f9aeb454e1fd66
2020-05-23 18:21:58 +03:00
LuK1337
bb09c53d83 Updater: Use accent_device_default_{dark,light} for colorAccent values
* That way the accent color is synced with Settings.

Change-Id: I86473166c46f0c71ec6ae69decccb981f01c6a1d
2020-05-18 11:20:51 +02:00
Michael Bestas
e944ca0661 Automatic translation import
Change-Id: I36e2f6bdc74c81f26c2fd281544a4f2b576bfb44
2020-04-23 16:50:00 +03:00
Michael Bestas
9290c48307 Automatic translation import
Change-Id: Ic3bd376cfd0870ca579c12fb5b0457f2d690cdc8
2020-04-03 07:45:00 +02:00
Michael Bestas
1fa036ce68 Automatic translation import
Change-Id: Ief254bec7ea4d6334643e1d1093a09cbf0e75fb9
2020-01-27 16:44:03 +02:00
Luca Stefani
91f33aa03e Updater: Move to AndroidX
Change-Id: I7bd67915638db5330b854f66f9fc1adb864b64be
2019-09-07 19:11:27 +02:00
Michael Bestas
56349fabc5 Automatic translation import
Change-Id: Ibbab351981135e7f0c213a97f169d98b737aff27
2019-08-25 19:28:18 +03:00
Michael Bestas
a3332eca1f Automatic translation import
Change-Id: Ic00c496504fe3e3083dff55b70b660d8fa11f5e4
2019-08-04 16:24:50 +03:00
Michael Bestas
d9fe6ee908 Automatic translation import
Change-Id: I90864874a46a7e651ded45605cf3d99d7b37f400
2019-07-06 11:59:32 +03:00
Michael Bestas
44a35fca4d Automatic translation import
Change-Id: I406b8de8d199e2c230254787aa0a29924952e8de
2019-06-19 21:21:33 +03:00
Michael Bestas
22a41280f0 Automatic translation import
Change-Id: I5c475240409637bee28aafba6b752e96509a97d7
2019-06-08 18:59:02 +03:00
Michael W
5763bc9d38 Updater: Make upgrade-url device specific
* After moving from the generic /upgrade.html url to a device specific
  one, updater needs to display that instead

Change-Id: If9fc6bddfab206a97283f2080ea4df0cbb742a7d
2019-04-28 11:33:32 +02:00
Luca Stefani
50d0fd5291 Updater: Allow to suspend A/B updates
Change-Id: I0387fd491a07a2214e4331a2cfe25988e0016a61
2019-04-10 22:04:32 +02:00
Michael Bestas
6a012ef541 Automatic translation import
Change-Id: I887ce69c970d42e6026c41c54edd5160b53f00b2
2019-04-07 21:59:19 +03:00
Michael W
dc17539da6 Automatic translation import
Change-Id: Ice67efb943862bc160150a4b1424e6af4f9511d8
2019-03-11 00:22:30 +01:00
Michael Bestas
2849967e61 Automatic translation import
Change-Id: I3d9d81c42c6e6465cd66a12054389bafe34ad192
2019-02-26 19:01:42 +02:00
LuK1337
2454a339a3 Updater: Implement auto update check interval preference
* This replaces auto update check switch with a dropdown with 4 options:
  * Never
  * Once a day
  * Once a week (default)
  * Once a month

Change-Id: I4bcae4c013a5d44958f9c54d641e64aac3062a8b
2019-02-10 10:45:35 +01:00
Michael Bestas
ee251456c3 Automatic translation import
Change-Id: I699982fe2506a85cf9cb05295fafef3e59467b8d
2019-01-12 20:04:46 +02:00
Nolen Johnson
3f16a3cafc Updater: Clarify A/B Performance mode string
Change-Id: I8891b94c4b44201e9a0d9184e435c8da6eba3d3b
2018-08-30 14:12:35 +02:00
Michael Bestas
6ba5645d01 Automatic translation import
Change-Id: I500c131c176e7f511972bb0b1529e54f127b7306
2018-08-16 19:08:22 +03:00
Michael Bestas
c548bdf138 Automatic translation import
Change-Id: I641ddf4c5fa3061d8316be990c1332dc6000e34d
2018-08-05 17:33:19 +03:00
Michael Bestas
412810e0b7 Automatic translation import
Change-Id: I7e73d20b38b6d9b743ef278c39057d558121e883
2018-07-15 21:47:00 +03:00
Luca Stefani
4ec02fd780 Updater: Improve battery check
* Lower default value by 10%
* Decrease the level by another 10% if charging
* Always allow installation in case device doesn't have a battery
* Show the requirements in the alert dialog

Change-Id: Iebb10220612006fbd096eb474cf3034ef52144b3
2018-07-14 18:47:12 +02:00
TheScarastic
608789ff36 Updater: Allow toggling A/B perf mode
Change-Id: I380a39bf6008b341c8005ac548d42d2413d0d643
2018-07-11 22:27:33 +02:00
Michael Bestas
5a93f3f91a Automatic translation import
Change-Id: Icf78471c3fea2d0c67e63ce155e92748787e7a9c
2018-07-09 22:03:42 +03:00
Michael Bestas
599ed80201 Automatic translation import
Change-Id: Ie3bbaadd470b5d1fc22683b9f7280d912b644e53
2018-06-18 23:28:29 +03:00
Gabriele M
f9463c3770 Requre a minimum remaining battery capacity to install updates
The recovery doesn't install the update if the remaining battery
capacity isn't at least 20% (or 15% if charging). Require at least
40%, just to be safe.

Change-Id: I5cd7c40f029141cde2b0922b25fece2b55989710
2018-06-13 23:30:08 +02:00
Gabriele M
0332be5ec7 Minor app notification improvements
- Don't use BigTextStyle if we only need to show a single line of
  text, but keep using it if the progressbar is visible.
- Change the icon to reflect the currrent state.
- Use android.R.drawable instead of com.android.internal.R.drawable

Change-Id: I0f69fe5f4fa63cdec180e89afa098d27819f33fd
2018-06-13 23:30:08 +02:00
Michael Bestas
9285b1c1a6 Automatic translation import
Change-Id: I27a25d23f5bffb328cce4dab3b440ad20d3a00bc
2018-06-03 14:10:09 +03:00
Michael Bestas
907486ad4f Automatic translation import
Change-Id: I7197b0358cd9e9e94260cee425390fa7deb6fe2d
2018-05-08 19:47:25 +03:00
Michael Bestas
8a8f1d98f0 Fix eta_hours quantity="one" string
* Fixes fd096a564a

Change-Id: I19633ead80b690e1c22655bcac842a901e450f8a
2018-05-04 22:36:25 +03:00
Gabriele M
fd096a564a Allow to properly translate the download ETA string
Change-Id: Ie6bbbddbbd9fd7adbc16472ad9c42c1d257413a1
2018-04-21 16:31:28 +02:00
Michael Bestas
75c31f3274 Automatic translation import
Change-Id: I593d19fa09ae2605d05aa0a38029691d3653821b
2018-04-20 00:56:08 +03:00
Gabriele M
6aa0a04fbb Replace some paddings with margings in the preferences
This ensures that each Switch is always fully visible independently
of the size of system font.

Change-Id: I1e56a9537dbbb124d86ea0da76d48b7b53172e47
2018-04-12 00:19:41 +02:00
Gabriele M
d5f4c1bcec Detect update failures
This allows to delete the update only if the installation succeeded
and to notify the user in case the installation failed.

Since we now need the file in case of failure, create a copy for
uncrypt even if the user chose to delete installed updates.

Change-Id: I80b0f499663bbf50bcbca5f643c01ffdb4cd3957
2018-04-08 22:48:19 +02:00
Joey
af9b4adbe0 Updater: show settings in a proper preferences dialog
Menu is not a good place to store preferences that have long strings

Change-Id: I84e782af33b2452c15998f7266c57d681dc8a377
Signed-off-by: Joey <joey@lineageos.org>
2018-04-08 18:21:57 +02:00
Gabriele M
17db209f13 Always show the size of the updates
This is now possible since the size is included in the JSON.

Change-Id: Ie38ccfbdc7abb0e4b86e8e625ed8d131376402e7
2018-04-08 14:26:19 +02:00
Joey
ec4f3146d6 Updater: Minor UI improvements
Change-Id: I5028aaa154991806ab911be0119fed0836e6851b
2018-04-08 14:26:12 +02:00
Joey
862e913590 Updater: Support Dark mode and update colors
Change-Id: I3503311e9e94663c4b708fc744962ce97690d6e1
2018-04-08 14:26:07 +02:00
Joey
6d24b010f7 Updater: Use popup menu instead of ActionMode
Change-Id: I707682708711679a7cbe1b0058cea9b1ed003cb6
2018-04-08 14:25:59 +02:00
Gabriele M
5252d60671 Define the entire server URL as resource
Currently the URL is only partially customizable, part of
it is hard-coded and there's no clear indication of it.
Define the entire URL as resource string and use placeholders
for runtime variables.

Also, invalidate old overrides by changing the name of the
resource.

Warning: lineage.updater.uri must be updated accordingly

Change-Id: Iecfdaf9d422d08a707c7319bafea5befc6b757d2
2018-04-05 16:37:49 +02:00
Gabriele M
4fa7ba910a Replace refresh dialog with icon animation
Change-Id: I6d2cc649b9fa8883a7256d8ecb62cb56bbf5dd59
2018-04-05 16:37:49 +02:00
Michael Bestas
a0bdd6abba Automatic translation import
Change-Id: I0cd872bbd27613db1203a0538eff765379316ecb
2018-04-01 22:32:42 +03:00
Michael Bestas
14d522818c Automatic translation import
Change-Id: I5265394cac0bdd174c3cec21a11a1d0e6d35597d
2018-03-09 00:35:54 +02:00
Michael Bestas
f183b58b09 Automatic translation import
Change-Id: I2923971e3477640a67a241762d1dc164f1e0c462
2018-02-25 22:04:16 +02:00
Michael Bestas
d44eb7c414 Automatic translation import
Change-Id: I47e08290ebdb11c3d05d0614560dc2847884928d
2018-02-22 03:49:55 +02:00
meganukebmp
76b9f49684 Updater: add changelog button
Add a changelog button in the menu toolbar throwing the user in
the recent changes page

Change-Id: I16609825c0662fc22b95189cbdf324a8c0b94f81
2018-02-17 17:46:45 +00:00
Joey
2a9c85e675 Updater: adaptive icon
Change-Id: Ifee7b51f48b204b646935d9470d31f6e9519124d
Signed-off-by: Joey <joey@lineageos.org>
2018-02-15 13:43:40 +00:00
Harry Youd
ff53035537 Updater: Add notification channels
Change-Id: I2f538fb47fe90e1008bf286739d33c829123353a
2018-01-23 23:47:18 +01:00
Gabriele M
e02b8a0b00 Copy the updates for uncrypt using a Service
Same as change I488018d01c0baf74660362a384e53bfe5d85de2b
("Use a service to export the updates"). While at it, move the code
out of UpdaterService to better separate the code that deal with AB
updates and regular updates.

Change-Id: I2bc3e78e80f5e63c57303cbbcdc0353dbab0f67f
2018-01-23 22:41:40 +01:00