gapps: Import Digital Wellbeing

Change-Id: Iea568159135b2547e371a6bd177b5f132ed02a3f
diff --git a/Android.mk b/Android.mk
index 0452331..796f245 100644
--- a/Android.mk
+++ b/Android.mk
@@ -69,6 +69,13 @@
 include vendor/gapps/build/gms_module.mk
 
 include $(CLEAR_VARS)
+LOCAL_MODULE := Wellbeing
+LOCAL_MODULE_CLASS := APPS
+LOCAL_PRODUCT_MODULE := true
+LOCAL_PRIVILEGED_MODULE := true
+include vendor/gapps/build/gms_module.mk
+
+include $(CLEAR_VARS)
 LOCAL_MODULE := com.google.android.dialer.support
 LOCAL_MODULE_CLASS := JAVA_LIBRARIES
 LOCAL_PRODUCT_MODULE := true
diff --git a/etc/permissions/product/com.google.android.apps.wellbeing.xml b/etc/permissions/product/com.google.android.apps.wellbeing.xml
new file mode 100644
index 0000000..750275c
--- /dev/null
+++ b/etc/permissions/product/com.google.android.apps.wellbeing.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8"?>
+<permissions>
+    <privapp-permissions package="com.google.android.apps.wellbeing">
+        <permission name="android.permission.INTERACT_ACROSS_USERS"/>
+    </privapp-permissions>
+</permissions>
diff --git a/etc/sysconfig/wellbeing.xml b/etc/sysconfig/wellbeing.xml
new file mode 100644
index 0000000..332da49
--- /dev/null
+++ b/etc/sysconfig/wellbeing.xml
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="utf-8"?>
+<config>
+    <feature name="com.google.android.feature.WELLBEING" />
+</config>
diff --git a/gms.mk b/gms.mk
index a9ed620..c808341 100644
--- a/gms.mk
+++ b/gms.mk
@@ -22,7 +22,8 @@
     GoogleRestore \
     GoogleServicesFramework \
     Phonesky \
-    SetupWizard
+    SetupWizard \
+    Wellbeing
 
 ## FS Verity
 PRODUCT_COPY_FILES += \
diff --git a/prebuilt/common/Wellbeing.apk b/prebuilt/common/Wellbeing.apk
new file mode 100644
index 0000000..e425036
--- /dev/null
+++ b/prebuilt/common/Wellbeing.apk
Binary files differ