Commit Graph

1154 Commits

Author SHA1 Message Date
LineageOS Infra
cd2c9124c7 Automatic translation import
Change-Id: Iba040a5e3a3283230dbe5cfaccc28275090dbf94
2023-06-01 12:49:27 +00:00
Joey
d5e7962c84 sdk: remove aar target
The aar target not only is broken, but it has become useless
since there's no resource in the sdk/res/res path.
A working aar would be no different than the jar produced
by the "org.lineageos.platform.sdk" target.

Change-Id: I06c482c5cacab035cd1dad96a7760d4d6cf24ebf
2023-05-17 20:55:33 +02:00
LineageOS Infra
528400a142 Automatic translation import
Change-Id: I6d7f4c50273d842d4eef721f5283a184b45293f1
2023-04-24 08:41:32 +00:00
Joe Feise
4b44a960c1 sdk: Escape network SSID and name when writing profiles.xml
SSIDs can contain ampersands, e.g., "V6 Cafe & Gift Shop". The & and
possibly other special chars need to be escaped when writing
profiles.xml.

Change-Id: Iffef33de22c37d8cb4b5048b92c9ef9c77e18819
2023-04-09 13:10:06 +02:00
Michael Bestas
8eb16e554c Automatic translation import
Change-Id: Id6d43a170500ccd1520e3d610fbadda166d6c560
2023-03-23 16:38:26 +02:00
Michael Bestas
9f63a522db Fix FINGERPRINT_WAKE_UNLOCK migration for devices not supporting it
Change-Id: I81469da5a1696f7ff92ff11216ba0b98459a9bde
2023-03-20 02:37:31 +02:00
Michael Bestas
dc0c1d8a5c Migrate FINGERPRINT_WAKE_UNLOCK to the new AOSP setting
Change-Id: If5ad35077cfa4fb222928e97db4d50b68a0567c3
2023-03-15 01:18:31 +02:00
Michael Bestas
38653151b5 Automatic translation import
Change-Id: I5d02fa1e686b141a185a62d637165519a574cb63
2023-02-13 16:05:25 +02:00
Michael W
5bd11e303d sdk: Kill app: Actually kill app
* Calling forceStopPackage with USER_CURRENT won't kill the app when
  started e.g. via "Shelter" work profile
* Find the uid of the current foreground app and pass that one
  instead of UserHandle.USER_CURRENT
* Note: UserHandle.USER_ALL would also kill the app, but all instances
  of it - which we don't want

Test:
- Go to Settings->System->Buttons and enable "Kill foreground app"
  as action for "Long edge swipe" - test it for PlayStore
- Install Shelter and setup your profile
- Open PlayStore from work profile
- Long swipe the edge:
  - Before: Toast appears, app stays open
  - After: Toast appears, app is actually closed

- Additionally: Open PlayStore from Work and Non-Work profile
- Long swipe edge for just work profile one and switch to own profile
  instance: App is not killed (expected, we just killed work instance)

Change-Id: I82154a6c021527013269f7ee2d1c46fedc14bf7c
2023-02-01 20:03:42 +01:00
SGCMarkus
1c6d5b120d sdk: add HFR privapp camera related resource to config.xml
Change-Id: Ife4bab9670c9f2e6a5233c67d58041cecc1b7c0b
2023-01-10 18:33:27 +01:00
Michael Bestas
26d0260ffd Automatic translation import
Change-Id: Iae8b40f39a8d9e541bf0943762f06691dccd4917
2023-01-10 04:41:43 +02:00
Michael Bestas
f863e2c629 Automatic translation import
Change-Id: I4c905a18a41650a8256e8fdcacdbed210d09b43a
2022-11-25 15:03:31 +02:00
LuK1337
c775185a87 sdk: Add aux camera related resources to config.xml
Change-Id: Ic19ea5b0ae4433564fe8a2f854a67fd42bfd7a5c
2022-11-02 17:32:21 +00:00
LuK1337
6ba68050a3 sdk: Introduce org.lineageos.platform.resources target
This lets us use SDK resources in frameworks/base/core.

Change-Id: Ia7c7116d4543684d6396bdbf3ceb814303f0555f
2022-11-02 17:31:48 +00:00
LuK1337
f89761cbe6 sdk: Use /> instead of <x></x> where applicable
Change-Id: Ia50bfa70d093b9be2df70007e1b76364a065101c
2022-11-02 17:31:23 +00:00
Bruno Martins
67a10447b3 TrustInterfaceService: Simplify hasUsbRestrictorInternal code
Change-Id: I4cb05e3749b0939207cd0dc2da1002bf0ceedf7b
2022-09-28 13:41:01 +02:00
Chirayu Desai
ab6e0410f5 TrustInterfaceService: Fix checking for Trust HAL availability
Change-Id: If7d6fd384ed752fa6483882e7aa80956ca9bafec
2022-09-28 11:53:13 +01:00
Oliver Scott
02eddd44ac Refactor network traffic code
* Made unmodified instance variables final
* Made single use instance variables local
* Optimized imports
* Updated all deprecated code

Change-Id: Ifbf76031760c622e7efd667f82998adbb7d798f7
2022-09-25 21:11:48 +02:00
Oliver Scott
fd4a90c6e0 Remove duplicate reading of offload tethering stats
The obtained interface stats already include offload tethering stats (https://cs.android.com/android/platform/superproject/+/master:packages/modules/Connectivity/service-t/src/com/android/server/net/NetworkStatsService.java;l=1903;drc=08ccd0d2e1b2eda92ea61d3061f86b881a4a0ef6)

Additionally, the removed code no longer compiles since it was moved to the Connectivity module.

Change-Id: I380e529011cdf108f009d8e5fb35f849fc7e3963
2022-09-25 21:11:48 +02:00
Michael Bestas
938f8dfd57 Migrate berry_black_theme to Secure table
AOSP theme settings live in Secure table, let's do the same

Change-Id: I31eafeb940fe50cdde03e12cb3431f4f325d772b
2022-09-25 19:51:16 +02:00
Chirayu Desai
500f74f78f Trust: restrict-usb: Check DPM for support
* Pixels have switched to the new AIDL HAL, so V1_3 doesn't exist there
* Switch to directly checking DPM since that's where we found this
  code in the first place, and it'll keep getting updated.

Change-Id: Icfc30b73984e82809c3838c421e05da7addaa6cb
2022-09-24 11:57:29 +02:00
Michael Bestas
607d627706 Automatic translation import
Change-Id: I9fc0e1028f194a6c7be2ab86f955837b79830c50
2022-09-22 15:29:45 +03:00
LuK1337
514848cd6d sdk: Introduce LineagePreferenceLib
Because of some nested dependency breakage, we can no longer include
Android libraries in main SDK lib, therefore we are moving all
preference related code to a separate package that Settings/LineageParts
will depend on.

Change-Id: Iea379a580a08ea13f71e3503aa096ba0ed7e7cef
2022-08-30 15:56:54 +02:00
LuK1337
c2c42fe8d1 sdk: Remove unused deviceinfo prefs
Change-Id: I0d9e5aa52305d76ebe0202228a238efa9ef1e32a
2022-08-30 15:56:36 +02:00
Michael Bestas
4ddfcce49e Update LineageStatusBarItem for T
Adapt for commit 6c5ebb36d8f6cd9f02aec5d66fa64da74f789ecb
in frameworks/base

Change-Id: Ic775f5e0859ef4f1271d2e889b73301ac3804cf3
2022-08-22 15:42:47 +03:00
althafvly
35ee5eb1e1 sdk: Add FINGERPRINT_WAKE_UNLOCK setting
Change-Id: I652afe3397e1b0f44877a4c24b491d0d8408502f
2022-08-08 18:38:24 +02:00
Michael Bestas
1c81f93835 Automatic translation import
Change-Id: I7f0c5abfb203441da4127a5783c25170c3f2db30
2022-08-04 20:42:08 +03:00
LuK1337
0396b00823 sdk: Remove config_haveNotch
No longer used by LineageParts.

Change-Id: Ie26797afc76c63d9524b41e3afd41d2848f94d50
2022-07-06 00:36:41 +02:00
Michael Bestas
fd9f38394d Automatic translation import
Change-Id: I57327e9ee6eebc60ec26f519f81cfbe648bcd193
2022-06-20 23:57:09 +03:00
Michael Bestas
88b323507b Automatic translation import
Change-Id: I65e81dc7fdcdefd9d81d44a5302fcbb5bd2a317f
2022-05-10 21:58:12 +03:00
LuK1337
a3e5a256a3 sdk: Add ENABLE_TASKBAR setting
Change-Id: I5c3bc00f2c935f815dc822eca755e836abb764f1
2022-04-29 11:04:19 +02:00
Asher Simonds
e727e72f16 lineage-sdk: Bring in the new icon
* Part of the new iconset made by Asher Simonds

Includes
* LineageSettingsProvider
* LineageOS System

Co-authored-by: Michael W <baddaemon87@gmail.com>
Change-Id: Ia3241f19e4e3e8ad8ed7688baf6a7dab7c0d3c0e
2022-04-06 23:14:42 +02:00
Michael Bestas
98afee8740 Automatic translation import
Change-Id: I03d413d7b51dae9005d5ff3c27d578ba7218bb49
2022-04-03 20:08:00 +03:00
Bruno Martins
229282cd3e TrustInterfaceService: Extend onboarding notification to ATV
Change-Id: I0db5c9327af5305f6dc573b06f519958bb23e4ec
2022-03-31 22:48:59 +01:00
Oliver Scott
ff5e7166f0 Create LineageGlobalSettingListPreference
Change-Id: Iaba7a070bda9abcdf162a72efa111a0a90d501a9
2022-03-24 14:46:11 +01:00
Chirayu Desai
a97180fa58 Move trust usb setting to global, and drop keyguard from name
* We're expanding this to allow disabling usb devices always.

Change-Id: Ibdea983160ae88c3eb696540631facefc288b859
2022-03-24 14:46:11 +01:00
Han Wang
61767fe1e3 res: Introduce config to allow build-time disabling of components
Change-Id: Ie5f7e63f5b8ba73196cec2128fc36b46028e57f2
2022-03-23 23:29:29 +01:00
dianlujitao
ae4d409d98 Fix Usb Restrictor if USB HAL 1.3+ is not present
Change-Id: Ic80f07161b24676e1697d29fea00219267a6fe81
2022-03-22 22:27:11 +01:00
Han Wang
6528cae926 lineage-sdk: Remove NativeHelper class
* Only used by LineageAudioService which was removed.

Change-Id: I81fc67b1bd9e32062f0dc9f763875f832c096c2b
2022-03-21 23:40:39 +01:00
Oliver Scott
ca136deee2 Log failure to update DATABASE_VERSION
Change-Id: I7fc844acda3892cea68c1e9a44a89e87c997f789
2022-03-21 23:40:21 +01:00
Timi Rautamäki
86420ad226 sdk: introduce custom action keys
ATV targets often have special keys for apps, for example Netflix.

Set a reasonable set of defaults for atv. Remote keylayouts can
be configured to use these keycodes. If for some reason a device
has a keylayout that cannot be modified, the list can be overlaid.

Co-authored-by: Aaron Kling <webgeek1234@gmail.com>

Change-Id: Ied3ed5d68671148a3729b1f0e1a2b15c4b080239
2022-03-21 22:45:59 +01:00
Ramii Ahmed
a7262011d4 Introduce High Touch Polling Rate feature
Change-Id: I6eb65e811f1759806aa89747328ee638c99a44f5
2022-03-19 10:09:50 +01:00
Oliver Scott
fad289124c lineage-sdk: Use new API to access Network Traffic settings
Change-Id: If34674526bc9760eb8577e97eb1e1d9463a3c2d6
2022-03-07 22:42:53 +01:00
Luca Stefani
b0d6dd92e8 sdk: s/UserHandle.USER_OWNER/UserHandle.USER_SYSTEM/g
USER_OWNER has been deprecated and replaced by USER_SYSTEM

Change-Id: I93b057a52dcdcb3760b7c2139bea2e25a624a78f
2022-03-07 22:42:53 +01:00
Luca Stefani
d787f12781 settings: Use proper locking
Change-Id: I0f2c30cb0bb324602738800a8ff81359fa484223
2022-03-07 22:42:53 +01:00
Luca Stefani
2e050a5c98 settings: Move one if check to else if
The map is always empty if the previous check was true

Change-Id: Id1f939d112789ab3c7da711636b40c8a4c23d507
2022-03-07 22:01:43 +01:00
Luca Stefani
ebaa32ef9f settings: Use Id from ContentResolver
Making this change allows to determine 
automatically the proper user ID depending on the
context used to create the resolver

Change-Id: I08021fa56856ef4792da780bca1c0e77526e72a6
2022-03-07 21:51:45 +01:00
LuK1337
d389bf1773 sdk: Add device controls global action
Change-Id: I8be18dfa1fe7807ca2eff13c4c2d477322530af0
2022-02-25 13:39:10 +01:00
LuK1337
21fcbbf2f5 sdk: Move app killed toast message to main application thread
Fixes: Can't toast on a thread that has not called Looper.prepare().

Change-Id: Ia0179ccd4433ac6ceaaa13e03b3e4e6465a6d006
2022-02-23 22:02:26 +01:00
Luca Stefani
67c0daf545 Remove LineageAudioService
Change-Id: I4aea4c62154a0f7d9d6d96e68ddf2bd401458fab
2022-01-31 00:44:33 +02:00