Commit Graph

34 Commits

Author SHA1 Message Date
Michael Bestas
989dd336c1 Disable use_resource_processor for org.lineageos.platform-res
Change-Id: Ic27b48d612ad089be0376b32591d5ce9b8e4f716
2025-03-09 11:23:26 +02:00
Luca Stefani
1963836822 Deprecate org.lineageos.platform.lineagesettings
Changing APEX modules behavior is as annoying as it can be.

Futhermore this target was used for a single setting entry that can be
easily replaced by using the AOSP settings provider, that is already
accessible in the module.

Change-Id: I0d2aa32dc4f3057d29bf59126c5a2dc3a4043c21
2024-12-20 13:35:29 +01:00
Michael Bestas
5a577dc607 sdk: Make it REUSE compatible
Change-Id: Iba2bcaf5e677eafebc48c6aca3d3625f821d6e27
2024-11-07 13:28:42 +00:00
Michael Bestas
82a2cae27e sdk: Remove most public sdk parts
* Remove droiddoc, it has been commented out since a few versions
* Remove API which hasn't work since a while
* Remove org.lineageos.platform.sdk library
* Remove samples
* Remove obsolete README

Change-Id: Ieb1c2a64ee04480a81d24cb782806397f64adb7d
2024-11-02 13:27:14 +02:00
Michael Bestas
99eca47a87 Remove services dependency from org.lineageos.platform.internal
Change-Id: Ie0d8c0c9d3883bdf5b56f55e7c50a338522b6725
2024-09-09 11:59:21 +03:00
Dominik Baronelli
9b45f59f77 Revert "sdk: Introduce org.lineageos.platform.resources target"
This reverts commit 6ba68050a3.

Reason for revert: this breaks cts test

Test: run cts-dev -m CtsStrictJavaPackagesTestCases --test android.compat.sjp.cts.StrictJavaPackagesTest#testBootClasspathAndSystemServerClasspath_nonDuplicateClasses

Change-Id: I00bbd9220f9d4f5c996dab5b8ca5da6c77ad3208
2024-06-15 22:50:05 +01:00
Chirayu Desai
dcbd8deae6 Drop support for legacy USB restrictor
* Doesn't compile after 14 QPR2 / AP1A
* Has always been an issue for CTS
[CIRCULAR REFERENCE: com.android.tools.r8.internal.h: Library class vendor.lineage.trust.V1_0.IUsbRestrict implements program class android.hidl.base.V1_0.IBase]

Change-Id: Id2a4ccc60d7cae6bca02e302725d982d50311278
2024-03-21 09:34:33 +00:00
Luofan Chen
3ee210210d sdk: Implement Lineage health service
Change-Id: I772ccf6d323c24d681aa8468bf4318c7b73bd3f5
2023-06-09 18:04:47 +02: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
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
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
Bruno Martins
01d0bae938 preference: Introduce {Global,Secure,System}MainSwitchPreference
Change-Id: I04cf71ea60b3ecde3c8be039ab320e8730ca4b3f
2021-12-31 21:03:04 +00:00
Luca Stefani
efe6d135bf Make Usb Restrictor available if USB HAL 1.3+ is present
The new HAL exposes an identical interface

Signed-off-by: Luca Stefani <luca.stefani.ge1@gmail.com>
Change-Id: Ic7a0862ca92dab5d25c11926235b2e8194cb7e62
2021-12-19 21:57:44 +01:00
Oliver Scott
55652b702a lineage-sdk: Add min_sdk_version 30 to org.lineageos.platform.lineagesettings
Change-Id: Id828373f7984aeb36a935edf132a688a16250174
2021-12-10 07:35:02 +01: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
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
Arian
5f3ded7d05 Introduce anti flicker mode in LiveDisplay
Change-Id: Iba7387ff16d463d087c9a38bced90b6c1bd503b1
2021-04-06 11:35:41 +02:00
Sam Mortimer
89f20377c7 lineage-sdk: Create minimal lineagesettings library for apex use
Change-Id: I48f81b4428c355fc6c7b0e4effc5dd7b5dc48fe3
2020-12-22 10:26:35 +01:00
Bruno Martins
7bf74325e4 sdk: Kill TelephonyExtUtils class
Since Android 10 arrived, the support for manual SIM provisioning
was never ported. In fact, there seems to be a way to do that
using some bits of AOSP code.

This way we get rid of the telephony-ext dependency for good.

Change-Id: Ibe4e430d696782032b7d9840ab36db040c3a4df9
2020-10-12 18:03:11 +02:00
LuK1337
612a8b9820 sdk: Switch to public API getting WiFi SSID
Change-Id: Icd3f05169a8884ea981f0cf1dbf7c024c34c721e
2020-10-08 13:57:53 +02:00
LuK1337
fcfcf5d47d lineage-sdk: Make org.lineageos.platform compile again
Change-Id: I30a509684a32ed1013e8f23e40894d23177f3fa8
2020-10-05 02:18:02 +02:00
Paul Duffin
374e4df7b1 Replace no_framework_libs: true with sdk_version: "core_platform"
(cherry picked from commit 7954524e3cc618830f0bf7b23687bf222ecd285b)

Bug: 134566750
Test: m
Change-Id: I0260942108a13cc5e9bed1d6005abfb8daffe0ac
Exempt-From-Owner-Approval: minor build change
2020-09-14 14:49:05 +02:00
Michael W
8505f77f36 sdk: Make phone a new compile target
* Moving SensitivePhoneNumbers to sdk got us significantly bigger
  zip packages due to libphonenumber being part of every package that is
  using org.lineageos.platform or org.lineageos.platform.internal
* In order to correct this, move the "phone" folder to an own library that
  statically links libphonennumber and subsequentially make use of that
  package where needed

Change-Id: I4effd7a9248290aeb23ab47ff8e30385dce4401a
2019-11-23 13:10:42 +00:00
Michael W
bf0d04e4de SensitivePn: Also hide international numbers
* When calling the number with intl. prefix it is currently not hidden
* Remove the international prefix before checking th number

Test:
Before:
116006 - hidden
+49116006 - not hidden
004911606 - not hidden

After:
116006 - hidden
+49116006 - hidden
0049116006 - hidden

Change-Id: I72ec2c9a4da87ef243c59c8c4bab33585fdbd854
2019-11-02 19:04:28 +01:00
LuK1337
85463dfa67 lineage-sdk: Mark org.lineageos.platform as installable
Change-Id: I482db1811f9e7f1fb499d70f3e6fdd6bfc19d7b7
2019-09-09 07:37:10 +02:00
LuK1337
2cb9a5d2d0 lineage-sdk: Link to vendor.lineage.trust-V1.0-java
Change-Id: Ie1a9117b8d46a3e44f05e5be8497860ebb6a2733
2019-09-09 07:36:55 +02:00
Sam Mortimer
e8814c5f0b lineage-sdk: Run bpfix on our Android.bp files
In particular, fixes packages/LineageSettingsProvider/tests/Android.bp
which otherwise results in errors about unknown properties tags
and instrumentation_for.

Change-Id: I1d44fce77765a77ed6f3c23763f439a216eaefda
2019-09-09 07:32:54 +02:00
Sam Mortimer
3533d385d9 lineage-sdk: Migrate to androidx
* Migrate from support library to androidx

* Various improvements and cleanup by @bgcngm

Change-Id: I10bbf5056125e8309f344c3eb18cc628bd7ec34e
2019-09-09 07:09:59 +02:00
Paul Keith
eb05519d5d sdk: Remove lineagehw compat
Change-Id: I329a74b5e489cc39d183697c25bb9771ae5afd82
2019-09-06 00:38:33 +02:00
Paul Keith
b49ed55600 sdk: Add HIDL compat in LineageHardwareManager
* While we're at it, hide the use of getSupportedFeatures(),
  since it only works for lineagehw java features, not hidl
* Cleanup some minor styling/organization issues

Change-Id: I905010bc7c6d7d8578eeca501be23f665127aa27
2019-02-04 14:43:29 +01:00
Sam Mortimer
4545327294 lineage-sdk res: Set no_framework_libs true
*) Don't depend on framework libs when building our org.lineageos.platform-res
   package (as per framework-res bp).

*) It doesn't work out of the box because our resources refer to android: framework-res
   attributes (and compile fails).

*) We can fix this in soong by making org.lineageos.platform-res depend on
   framework-res (see topic:pie-sdk-no-framework-libs).  This allows us to
   build with no_framework_libs true.

Change-Id: I426d44ef2521971adfc6b8ad33a7cc042b04e0e6
2018-09-05 17:53:43 +02:00
Rashed Abdel-Tawab
703249ae8d lineage-sdk: Android.mk -> Android.bp
Change-Id: Iac2bd318e7ceb6b96e30d26832d98b7b2726cd5b
2018-08-30 02:31:18 +02:00