diff options
author | Joey <joey@lineageos.org> | 2018-04-03 15:42:18 +0200 |
---|---|---|
committer | Bruno Martins <bgcngm@gmail.com> | 2018-06-10 00:45:35 +0200 |
commit | c0b21ca8ed671d530646da1a96d4ec48d10e0549 (patch) | |
tree | 5846adbe25945827451e9cdb6f97d75bbbd239aa /sdk/src/java/lineageos/app/LineageContextConstants.java | |
parent | f13838a099eb91c504249ba7cce195ffc6bf183a (diff) | |
download | lineage-sdk-c0b21ca8ed671d530646da1a96d4ec48d10e0549.tar.gz lineage-sdk-c0b21ca8ed671d530646da1a96d4ec48d10e0549.tar.bz2 lineage-sdk-c0b21ca8ed671d530646da1a96d4ec48d10e0549.zip |
sdk: Introduce Trust Interface
Change-Id: I5c3ece3f6035dd03be1ceab01020496c179f2e65
Signed-off-by: Joey <joey@lineageos.org>
Diffstat (limited to 'sdk/src/java/lineageos/app/LineageContextConstants.java')
-rw-r--r-- | sdk/src/java/lineageos/app/LineageContextConstants.java | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/sdk/src/java/lineageos/app/LineageContextConstants.java b/sdk/src/java/lineageos/app/LineageContextConstants.java index 640e308b..33fd85bb 100644 --- a/sdk/src/java/lineageos/app/LineageContextConstants.java +++ b/sdk/src/java/lineageos/app/LineageContextConstants.java @@ -108,6 +108,17 @@ public final class LineageContextConstants { public static final String LINEAGE_STYLE_INTERFACE = "lineagestyle"; /** + * Use with {@link android.content.Context#getSystemService} to retrieve a + * {@link lineageos.trust.TrustInterface} to access the Trust interface. + * + * @see android.content.Context#getSystemService + * @see lineageos.trust.TrustInterface + * + * @hide + */ + public static final String LINEAGE_TRUST_INTERFACE = "lineagetrust"; + + /** * Features supported by the Lineage SDK. */ public static class Features { @@ -166,5 +177,13 @@ public final class LineageContextConstants { */ @SdkConstant(SdkConstant.SdkConstantType.FEATURE) public static final String STYLES = "org.lineageos.style"; + + /** + * Feature for {@link PackageManager#getSystemAvailableFeatures} and + * {@link PackageManager#hasSystemFeature}: The device includes the lineage trust service + * utilized by the lineage sdk. + */ + @SdkConstant(SdkConstant.SdkConstantType.FEATURE) + public static final String TRUST = "org.lineageos.trust"; } } |