Commit Graph

1079 Commits

Author SHA1 Message Date
Michael Bestas
2d0905bd68 lineage-sdk: Remove all code that is marked as Deprecated
Change-Id: I04581d30a5b4ef9d176d17c7aa3baf4b58e8d2af
2021-11-06 12:52:00 +02:00
Michael Bestas
659c78ee60 lineage: Temporarily disable LineageAudioService overlay
Change-Id: I6bec78095e0e3f76984d9162928baf3dc70b9b30
2021-11-06 12:51:59 +02:00
Michael Bestas
b5a2cffe92 Partially revert "lineage-sdk: Comment out LineageAudioService"
* We should just disable the service until it's brought up

Change-Id: I63dc8aca52edd0346fb4bb63afbd0fb7f3f8d148
2021-11-06 12:51:59 +02:00
Luca Stefani
520186e5ac lineage-sdk: Bring back Lineage resources to system
This partially reverts commit 4068ca7095.

Reason for revert:
* Currently Android (PackageManagerService) scans for packages (APKs)
  only in ANDROID_ROOT/framework/ along the standard
  $partition/{app,priv-app} directories.

* By moving to system_ext we accidentally broke the addition of
  AndroidManifest entries to the runtime (resources and assets weren't
  affected as handled manually/differently).
  Note: jars can still be loaded with no issues from this partition.

* Instead of allowing system_ext to provide framework packages and
  pending (future) AOSP discussion to include system_ext to the allowed
  path, simply move back the package.

Change-Id: I352c1518ed43e0631abaebccc1e2093b09d49b6f
2021-10-29 23:23:05 +02:00
LuK1337
89d7c9ba1c lineage-sdk: LineageParts is now in /system_ext
Change-Id: Ia1513006fd46153e2a4a39e5ffb014d0b1624dc4
2021-10-26 21:13:31 +02:00
Sam Mortimer
62697e0f46 lineage-sdk: Comment out LineageAudioService
Requires:
deebe5a37b

*) To be reverted during later ship of topic:twelve-sdk-audio

Change-Id: I1f65fb90e0a7609d719080fa9e48150e1227cff7
2021-10-19 11:13:51 +02:00
Luca Stefani
04c0fc1235 Include lineage res srcjar in every library
Change-Id: I8c15df04d7ef03896420b7584370f9c43d4dbc47
2021-10-13 12:12:19 +02:00
Luca Stefani
50ff674bb2 Update lineage-res definition to follow framework-res
Change-Id: Ia4d8035f08a1f5c58fec05d10a9be07d0bbb6f95
2021-10-13 12:11:52 +02:00
Luca Stefani
4068ca7095 lineage-sdk: Move apps to system_ext
Change-Id: Ifb4bda9d5399e31d26ec257fcc185b22635596df
2021-10-13 12:10:33 +02:00
Luca Stefani
530d7e015d LineageSettings: Import Settings changes
This brings us inline with AOSP package

Change-Id: I21991f0a440e171506bebb3e922d0ef9fe5c4210
2021-10-13 12:10:33 +02:00
Luca Stefani
5769464c12 Twelve bringup
Change-Id: I5e54d1763e5cd1dd8ae895f15d4d54887ced3133
2021-10-13 12:10:32 +02:00
Timi Rautamäki
641bc03260 lineage-sdk: add ATV button settings
Change-Id: I7d41e71301e480aef73c32af77c0eb78c9053b6d
2021-09-22 16:17:03 +00:00
Eamon Powell
7a57f52199 fixup! lineage-sdk: Add preference keys for one shot auto-brightness
Fix typo in comments

Change-Id: I13b0673ef6b4b3ec501cfea2b5dbfe9b20df3833
2021-08-29 11:30:06 +10:00
Cédric Bellegarde
6e7936c0ca lineage-sdk: Add preference keys for one shot auto-brightness
Change-Id: Ifde39e542b078c40b2fd33e951b68fabef417921
2021-08-23 18:11:50 +02:00
Michael Bestas
ce85343092 Automatic translation import
Change-Id: I63129c8bb2de7de2fd2bf6a5b8090878598e9985
2021-08-21 04:06:30 +03:00
Michael Bestas
e1363720b0 Read sensitive_pn.xml from product partition
Change-Id: I8bcc078b10c7bf822b2d9ebabaade626eca5fd1b
2021-07-23 01:04:31 +02:00
Han Wang
ad35709dbd lineage-sdk: Mark all pending intents as immutable
* Prepare for S behavior change.

Change-Id: Iea263c300b235bb7306457e27e8cacf2e76c8fa2
2021-06-17 09:49:05 +02:00
Bruno Martins
1416383888 LineageSettings: Mark lookup features as deprecated
These are now handled directly in our Dialer app.

Change-Id: I8d1cd0963360a88be21fdda727725cdb7146723f
2021-06-06 00:20:35 +02:00
Han Wang
162d0fd364 PerformanceManagerService: Account for QCOM perf HAL 2.1/2.2
Change-Id: Icb57a6b3a5ff72222983eafd40a7bc9db45d60f8
2021-06-03 10:23:08 +02:00
Bruno Martins
1bc4dc52ca LineageSettingsProvider: Allow overriding volume panel default location
Change-Id: Iad500afd0e4f0d65aed9905f9fd9fd8ada51fce9
2021-05-28 23:47:32 +02:00
Gegham Zakaryan
ad4bce40b2 lineage-sdk: Add LineageGlobalActions service
The service will offer updateUserConfig, getUserConfig, and
userConfigContains methods, which will be used from LineageParts and
fwb. The service will also observe Settings.Global.BUGREPORT_IN_POWER_MENU
and Settings.Secure.LOCKDOWN_IN_POWER_MENU to update the GlobalActions
dialog when these are updated.

Signed-off-by: Gegham Zakaryan <zakaryan.2004@outlook.com>
Change-Id: I46663ab1ffe6f8d8b2a3dc7dbe54a65b7a62046a
2021-05-23 15:17:16 +02:00
Gegham Zakaryan
df05cf8b26 lineage-sdk: Follow AOSP order of PowerMenuConstants
Partially follow the order of config_globalActionsList and bring emergency and lockdown to top. Some of the order isn't followed as some items such as users and airplane don't exist in AOSP's list but are much more frequently used than, say, bugreport.

Signed-off-by: Gegham Zakaryan <zakaryan.2004@outlook.com>
Change-Id: Ie49e77fd99ad0f0dee7c6c7956fc7c1d0474ee63
2021-05-23 15:17:16 +02:00
Gegham Zakaryan
8e4a978315 Revert "sdk: Deprecate POWER_MENU_ACTIONS"
This reverts commit d8742f0727.

Signed-off-by: Gegham Zakaryan <zakaryan.2004@outlook.com>
Change-Id: I4071297652a6cd0a47d6c642909b32f742e60781
2021-05-23 15:17:16 +02:00
LuK1337
feae6f7481 lineage-sdk: Mark DEVICE_HOSTNAME as deprecated and drop code using it
* AOSP feature is now in place, which uses device name
   as DHCP hostname.

Change-Id: I4adbaca2d980017e5cd81e200729f03b245c6a3e
2021-05-20 22:41:51 +02:00
LineageOS Builder
3a38117e81 Automatic translation import
Change-Id: I0473255a62d63007a98da5508db3d7d882bd6a75
2021-05-15 21:14:14 +02:00
LuK1337
6fe262abf7 lineage-sdk: Disallow KILL_APP action when task is pinned
Fixes: https://gitlab.com/LineageOS/issues/android/-/issues/3468
Change-Id: I8420d5531422e9ed25588cd6e5198e14472569e5
2021-05-13 19:34:48 +02:00
LuK1337
1167224e01 lineage-sdk: Retire HostnamePreference as net.hostname no longer works
Change-Id: Ibecaccd5f853570fb4e02cba7274429f2bb037b2
2021-05-12 11:22:12 +02:00
LuK1337
7378e73713 lineage-sdk: Add KILL_APP button action
This partially reverts commit 9eca90278d.

Change-Id: I9bfc039540936e4dbd4313c8f368ce3e3e445290
2021-05-04 13:40:17 +02:00
LuK1337
44427ae3ef lineage-sdk: Add preference keys for back key long press customization
Change-Id: I8a5d80ef5f8aa238ad73ba034d275ea1094dffe9
2021-05-04 13:39:13 +02:00
LuK1337
122825fa60 lineage-sdk: Remove single hand mode enum values
Change-Id: I2865d57d5b6e49391898e8de06889b1a26c54970
2021-05-04 11:15:06 +02:00
Bruno Martins
d1461d3451 BatteryLights: Fix disabled lights when fully charged conditions
Make sure that the option has effect ONLY when battery is uh...
fully charged.

Additionally add previously missing logging.

Change-Id: Ib232d0ea6652230a2435be6931f964dc04a30f71
2021-05-03 19:05:45 +01:00
Bruno Martins
c47d955826 BatteryLights: Add ability to turn off LED when fully charged
Change-Id: I01b8c753a1f92838462a797fd97b5f6a3c666158
2021-04-30 19:40:57 +02:00
Arian
5f3ded7d05 Introduce anti flicker mode in LiveDisplay
Change-Id: Iba7387ff16d463d087c9a38bced90b6c1bd503b1
2021-04-06 11:35:41 +02:00
Luca Stefani
97c2e135f1 lineage-sdk: Move to schema parser
Change-Id: Id79656a4abed0d94e2af81f1935b663164ccc8d8
2021-03-13 17:36:20 +01:00
Luca Stefani
402a3860f4 lineage-sdk: Include SPN parser in org.lineageos.lib.phone
Change-Id: Ib87961a739d5494619c70ecc5f35df6aaadb2eb0
2021-03-13 17:35:59 +01:00
Luca Stefani
34c9267a74 lineage-sdk: Import SPN schema
* Will be used to verify SPN xml at build time
  and to automatically generate a C++/Java parser

Change-Id: Ic401c01b74a958b2e813f986725e6c677febabfb
2021-03-13 17:35:59 +01:00
Luca Stefani
0a32731db8 lineage-sdk: lib.phone: Compile against public SDK
* In order to be able to reference this package
  in non-platform packages, we need to compile
  this against the current sdk

Change-Id: Id87059d876854907d947e5802a04db634435c6ed
2021-03-13 17:35:55 +01:00
Michael W
9c5242de8b SensitivePhoneNumbers: Expand XML parsing
* Allow each item to carry additional infos:

<item>
   <name>SomeNameHere</name>
   <number>1234</number>
   <someTag>someValue</someTag>
</item>

* We treat all but <number> as optional
* This way we can show info we have and skip what
  we don't know

Change-Id: I724d9ac25ce8a0ae7f69ec513ba9796b06c9e7f2
2021-03-13 16:02:28 +01:00
Michael W
520e6e45a6 SensitivePhoneNumbers: Additionally check against the sim operator
* In order to also mark numbers as sensitive when calling to your home
  country, check the sim's operator as well
* Also move the fallback mechanism out of the "else" in order to perform
  as many checks as possible to not miss any case of hiding

Change-Id: I23b67145406793506be657df8b62f5d09b5a2a18
2021-03-13 16:02:24 +01:00
Han Wang
4457a818c3 lineage-sdk: Fix NPE when using getPictureAdjustmentRanges()
* This method can return null, and List.addAll(null) will
   throw NPE. Fix it.

Change-Id: I4e5fc719209dbfbce785b1e0b07588e2406203ea
2021-03-06 10:27:55 +01:00
Michael Bestas
09b2736bce Automatic translation import
Change-Id: I42337aacd36b8e1f5a5ef2feb4de3cc048d191b3
2021-02-28 02:38:28 +02:00
Arian
056187e74f LineageHardwareManager: Introduce keys swap feature support
Change-Id: I789814d780b06b146c1f9ab62293f4d6ca287208
2021-01-07 17:24:01 +00:00
Michael W
54d862cac4 SystemUI: NetworkTraffic: Refactor message handling
* In certain network situations (e.g. while changing from wifi to
  cellular) it can happen, that the HashMap is modified while the stats
  are currently being recalculated
* We can prevent this by moving adding and removing of any network
  to the same handler so the callbacks can happen without breaking the
  flow
* Move the existing code in handleMessage into some little helper
  methods so it stays simple and readable

Fixes: https://gitlab.com/LineageOS/issues/android/-/issues/2870
Change-Id: I38c0c27a4f76fab5aeee013beab346c088bbbd59
2021-01-01 14:19:44 +01:00
Sam Mortimer
89f20377c7 lineage-sdk: Create minimal lineagesettings library for apex use
Change-Id: I48f81b4428c355fc6c7b0e4effc5dd7b5dc48fe3
2020-12-22 10:26:35 +01:00
Alessandro Astone
967b1a8b8f Profile: Don't NPE when service is not started
On FDE we check wether keyguard is enabled before starting non-core
services like ProfileManager.
All method calls are already guarding RemoteException for a binder
fail, so just throw one if getService() fails.

Change-Id: I44a3a5ea56a5277d84d96a0bc2c7135433811e20
2020-12-21 19:25:00 +01:00
Han Wang
6b80931a54 PerformanceManagerService: Account for QCOM perf HAL 2.0
* This also allows waiting for MPCTL to start on boot
   if devices are using the newest perf HAL.

Change-Id: I3855198d7bcf01472595616e820d47bcec01d8d4
2020-12-11 17:07:53 +01:00
Bruno Martins
c127bb2d83 sdk: Set AOSP default behavior for app switch button long press action
The default is no action. Furthermore, split screen is not supported
on Android Go devices and being that one the default action makes it
inconsistent with Go-aware ButtonSettings code in LineageParts.

Change-Id: I21e834f8557d0d0dc81af8443bcb8db30300ded0
2020-12-05 00:32:25 +01:00
Michael Bestas
ed4ef6e3d1 Remove unused org.lineageos.platform.xml
Change-Id: Ie7a1571d9359aed29eb978eabab2147a2492ca95
2020-11-23 20:44:50 +02:00
LuK1337
56e1fbec1b LineageSettingsProvider: Make lockscreen visualizer off by default
Change-Id: Ia7a3ddc32d189c53bca5aad8989d75636da7bdb4
2020-11-20 16:31:53 +01:00
Jesse Chan
e588c4aa83 Implement click to take partial screenshot [3/3]
Change-Id: I9de0cd4f1b793119a7dd45a95b040f70d6c151a6
Signed-off-by: Jesse Chan <jc@lineageos.org>
2020-11-11 00:10:00 +01:00