sdk: Implement Lineage health service
Change-Id: I772ccf6d323c24d681aa8468bf4318c7b73bd3f5
diff --git a/sdk/src/omnirom/app/OmniRomContextConstants.java b/sdk/src/omnirom/app/OmniRomContextConstants.java
new file mode 100644
index 0000000..33a3694
--- /dev/null
+++ b/sdk/src/omnirom/app/OmniRomContextConstants.java
@@ -0,0 +1,58 @@
+/**
+ * Copyright (C) 2015, The CyanogenMod Project
+ * 2017-2023 The LineageOS Project
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package omnirom.app;
+
+import android.annotation.SdkConstant;
+
+/**
+ * @hide
+ * TODO: We need to somehow make these managers accessible via getSystemService
+ */
+public final class OmniRomContextConstants {
+
+ /**
+ * @hide
+ */
+ private OmniRomContextConstants() {
+ // Empty constructor
+ }
+
+ /**
+ * Use with {@link android.content.Context#getSystemService} to retrieve a
+ * {@link lineageos.health.HealthInterface} to access the Health interface.
+ *
+ * @see android.content.Context#getSystemService
+ * @see lineageos.health.HealthInterface
+ *
+ * @hide
+ */
+ public static final String LINEAGE_HEALTH_INTERFACE = "lineagehealth";
+
+ /**
+ * Features supported by the Lineage SDK.
+ */
+ public static class Features {
+ /**
+ * Feature for {@link PackageManager#getSystemAvailableFeatures} and
+ * {@link PackageManager#hasSystemFeature}: The device includes the lineage health
+ * service utilized by the omnirom sdk and Omnirom Control.
+ */
+ @SdkConstant(SdkConstant.SdkConstantType.FEATURE)
+ public static final String HEALTH = "org.lineageos.health";
+ }
+}