Commit Graph

265 Commits

Author SHA1 Message Date
LineageOS Builder
f1977fa6f2 Automatic translation import
Change-Id: I81a8154bb8877a610efbacee1349028d08257fc3
2021-03-01 10:03:45 +00:00
LineageOS Builder
b2218dfac0 Automatic translation import
Change-Id: Ief0e491347d6505dbfdbfbfe78d085b4d18208a7
2021-01-15 10:07:17 +00:00
LineageOS Builder
14b7b7ed1b Automatic translation import
Change-Id: I4b40f3b1ad5515eb4e0bcf2caed762df20cefb43
2021-01-01 10:06:34 +00:00
LineageOS Builder
2590f83a10 Automatic translation import
Change-Id: I81287c2982b4fd3eeae2f52bb682612b4bbb66a4
2020-10-15 12:50:50 +00:00
LineageOS Builder
e3b26100c5 Automatic translation import
Change-Id: I84df5f5257fc5ee97ad307d289f3f503100c4e70
2020-09-20 10:11:28 +00:00
LineageOS Builder
1de5ff5239 Automatic translation import
Change-Id: Ifdc568ca60c3c2892993296017cfbbe1341989ce
2020-09-11 11:11:55 +00:00
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
618ecad81a Updater: Add privapp permissions xml
Change-Id: If1953e76859850359a63dc4a4ab50940d76fd59f
2020-05-06 20:48:18 +03:00
Michael Bestas
e944ca0661 Automatic translation import
Change-Id: I36e2f6bdc74c81f26c2fd281544a4f2b576bfb44
2020-04-23 16:50:00 +03:00
Luca Stefani
d1273f214e Only cancel notification if update isn't installed
* Even if the package is removed on A/B devices
  we still want to show the reboot notification

Change-Id: I980d36766a1427874b65b11674a8f0ae4ce1db88
2020-04-11 12:19:52 +02:00
Alexander Martinz
759d5510c8 UpdatesActivity: only set performance mode on A/B devices
If the preference dialog gets dismissed on a non-ab-device it still
tries to set performance mode.

Add a check to prevent that and only set performance mode on A/B devices.

Change-Id: I6290eb80550b4cfc8a012f94bdf228af7d4fc416
Signed-off-by: Alexander Martinz <amartinz@shiftphones.com>
2020-04-03 17:00:31 +02:00
Alexander Martinz
35abddd093 Updater: remove dialog before showing a new one and when detaching
2020-04-03 16:18:18.286 28742-28742/org.lineageos.updater E/WindowManager: android.view.WindowLeaked: Activity org.lineageos.updater.UpdatesActivity has leaked window DecorView@5dd12b3[UpdatesActivity] that was originally added here
        at android.view.ViewRootImpl.<init>(ViewRootImpl.java:621)
        at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:377)
        at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:96)
        at android.app.Dialog.show(Dialog.java:342)
        at androidx.appcompat.app.AlertDialog$Builder.show(AlertDialog.java:1009)
        at org.lineageos.updater.UpdatesListAdapter.showInfoDialog(UpdatesListAdapter.java:552)
        at org.lineageos.updater.UpdatesListAdapter.lambda$setButtonAction$5$UpdatesListAdapter(UpdatesListAdapter.java:375)
        at org.lineageos.updater.-$$Lambda$UpdatesListAdapter$xtQzmsol8pO3BlYZkbKcb5gVAq4.onClick(Unknown Source:2)
        at org.lineageos.updater.UpdatesListAdapter.lambda$setButtonAction$9(UpdatesListAdapter.java:408)
        at org.lineageos.updater.-$$Lambda$UpdatesListAdapter$M4hRQyNgJseuHrw6EfkhK_yrGK8.onClick(Unknown Source:2)
        at android.view.View.performClick(View.java:7259)
        at android.view.View.performClickInternal(View.java:7236)
        at android.view.View.access$3600(View.java:801)
        at android.view.View$PerformClick.run(View.java:27896)
        at android.os.Handler.handleCallback(Handler.java:883)
        at android.os.Handler.dispatchMessage(Handler.java:100)
        at android.os.Looper.loop(Looper.java:214)
        at android.app.ActivityThread.main(ActivityThread.java:7397)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:491)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:935)

Change-Id: I7877b02b8526c7c12331a660a7ac934d02656e6f
Signed-off-by: Alexander Martinz <amartinz@shiftphones.com>
2020-04-03 16:41:16 +02:00
Alexander Martinz
9cdc2f497b AndroidManifest: explicitly disable cleartext traffic
Change-Id: Ib7528a58f423f40af1bafa16acdc9a4538207433
Signed-off-by: Alexander Martinz <amartinz@shiftphones.com>
2020-04-03 16:41:16 +02:00
Alexander Martinz
d94231abea Updater: do not use hidden field
BatteryManager#BATTERY_PLUGGED_ANY is hidden and actually just
a combination of all public available plugged values.
Recreate the hidden field instead of using it directly.

This unbreaks Android Studio builds.

Change-Id: I4754ce7544dab22306eeac03c3e9f26b650094d2
Signed-off-by: Alexander Martinz <amartinz@shiftphones.com>
2020-04-03 16:38:39 +02:00
Michael Bestas
9290c48307 Automatic translation import
Change-Id: Ic3bd376cfd0870ca579c12fb5b0457f2d690cdc8
2020-04-03 07:45:00 +02:00
Michael W
e4822ff569 Updater: Delete updates only after refreshing the notification
* Looks like we first need to process the notification before we can delete
  an update

Change-Id: I49f6c03a109f908e8a7b01f02b821a68ab273af3
2020-04-02 13:44:32 +02:00
Mickey Knox
416401aa2c Updater: push-update.sh: Make it work on macOS
Change-Id: I2bb51e349961efb1738d1abac2eaad9d3b4b9ad0
2020-03-31 18:47:18 +02:00
jhenrique09
eabab0e94e Fix export of zip
Add requestLegacyExternalStorage permission to allow usage of legacy storage

Change-Id: Iae3f61c4b714c168feba7de665a46ebe4ac1ee77
2020-02-05 01:48:06 +01: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
Han Wang
f4a3c575f4 Updater: Assume older Android version to be incompatible
* Issue happens when both 15.1 and 16.0 are built.

Change-Id: I0cb7c834824056f450129524a7aec8091c9d3dc7
2019-03-05 09:59:45 +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
LuK1337
a08dcb6078 Updater: Grant FOREGROUND_SERVICE permission
* Required to be able to call startForeground()
  and stopForeground().

Change-Id: I7ac78cf450a60cc8985876ddcc42621e61aa5245
2018-09-27 19:50:55 +02:00
Luca Stefani
6c67e68d55 Updater: Add SYSTEM_UPDATE_SETTINGS intent filter
Change-Id: Ie3f32e91ff5d6dc1422783bdef403c023b519149
2018-08-30 18:07:11 +02:00
Nolen Johnson
3f16a3cafc Updater: Clarify A/B Performance mode string
Change-Id: I8891b94c4b44201e9a0d9184e435c8da6eba3d3b
2018-08-30 14:12:35 +02:00
Anton Hansson
832efc94ca Updater: Set LOCAL_PRIVATE_PLATFORM_APIS
This change sets LOCAL_SDK_VERSION for all packages where
this is possible without breaking the build, and
LOCAL_PRIVATE_PLATFORM_APIS := true otherwise.

Setting one of these two will be made required soon, and this
is a change in preparation for that. Not setting LOCAL_SDK_VERSION
makes the app implicitly depend on the bootclasspath, which is
often not required. This change effectively makes depending on
private apis opt-in rather than opt-out.

Bug: 73535841
Change-Id: Iabb0556dc1c80c7fc7f6c76d61d5e441b03cdce0
2018-08-26 15:28:08 +02:00
Michael Bestas
6ba5645d01 Automatic translation import
Change-Id: I500c131c176e7f511972bb0b1529e54f127b7306
2018-08-16 19:08:22 +03:00
LuK1337
7ad6b6153a Updater: Fix EXTRA_PLUGGED check in isBatteryLevelOk
* EXTRA_PLUGGED is not a boolean.

Change-Id: I3c2869cc4e08b48e396e5bae5ef22383fcbf7260
2018-08-08 15:27:27 +02:00
Michael Bestas
c548bdf138 Automatic translation import
Change-Id: I641ddf4c5fa3061d8316be990c1332dc6000e34d
2018-08-05 17:33:19 +03:00
Rashed Abdel-Tawab
1022c6bcd1 push-update: Don't leave adb in root mode
Change-Id: I90d5a86bb943f137a44e70be508ee6efb0c77ed8
2018-07-26 16:47:12 -04:00
LuK1337
09e6fcab06 Updater: Use PowerManager instead of Intent.ACTION_REBOOT broadcast
* We are getting permission denial when sending Intent.ACTION_REBOOT
  broadcast, using pm.reboot() instead works just fine.

Change-Id: I38d0ad8cc5f4c9362fd5baf7476e14bff56616dd
2018-07-24 11:45:52 +02:00
LuK1337
e46f532c8c Updater: Fix 'REBOOT' button not showing up after A/B update
* After update is complete button is being handled in
  handleNotActiveStatus instead of handleActiveStatus.

Change-Id: I6a4df580f93b71fd12e902801125acae668ec991
2018-07-24 11:45:52 +02:00
Michael Bestas
412810e0b7 Automatic translation import
Change-Id: I7e73d20b38b6d9b743ef278c39057d558121e883
2018-07-15 21:47:00 +03:00
Gabriele M
5648b3cd27 Don't use one shot PendingIntents for the notification actions
FLAG_ONE_SHOT doesn't make so much sense here, the intents are generic
and can be repeated.

Change-Id: Ib457d975387dfd838372639e2aaa40a3df6f4d15
2018-07-14 18:47:12 +02: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
Gabriele M
74d7a3e78b Don't treat the current build as compatible
Even if technically it is compatible.

Change-Id: I72d39c761ad02b851c5ec7cfae664e886931f852
2018-07-14 18:33:07 +02:00
LuK1337
460cb87510 Updater: Add property that allows us to downgrade
Change-Id: I6916639f05c52ae198f0d1656deb23ee5186907f
2018-07-14 18:31:33 +02:00
TheScarastic
608789ff36 Updater: Allow toggling A/B perf mode
Change-Id: I380a39bf6008b341c8005ac548d42d2413d0d643
2018-07-11 22:27:33 +02:00