CSI to use framework's fallback home activity am: d27f9dd2f8 am: c847b16712 am: 72eb6cdff9

Change-Id: I00f5cab18e3b1d687d2a77f934864c7baececf6d
diff --git a/mgsi/csi_arm64.mk b/mgsi/csi_arm64.mk
index 142a8ec..ac0cb12 100644
--- a/mgsi/csi_arm64.mk
+++ b/mgsi/csi_arm64.mk
@@ -44,6 +44,10 @@
 # Don't build super.img.
 PRODUCT_BUILD_SUPER_PARTITION := false
 
+# Instruct AM to enable framework's fallback home activity
+PRODUCT_SYSTEM_EXT_PROPERTIES += ro.system_user_home_needed=true
+# Add RRO needed by CSI
+PRODUCT_PACKAGE_OVERLAYS := device/generic/common/mgsi/overlay
 
 PRODUCT_NAME := csi_arm64
 PRODUCT_DEVICE := dummy_arm64
diff --git a/mgsi/csi_x86.mk b/mgsi/csi_x86.mk
index 07cc5bd..070f4dd 100644
--- a/mgsi/csi_x86.mk
+++ b/mgsi/csi_x86.mk
@@ -43,6 +43,10 @@
 # Don't build super.img.
 PRODUCT_BUILD_SUPER_PARTITION := false
 
+# Instruct AM to enable framework's fallback home activity
+PRODUCT_SYSTEM_EXT_PROPERTIES += ro.system_user_home_needed=true
+# Add RRO needed by CSI
+PRODUCT_PACKAGE_OVERLAYS := device/generic/common/mgsi/overlay
 
 PRODUCT_NAME := csi_x86
 PRODUCT_DEVICE := dummy_x86
diff --git a/mgsi/overlay/frameworks/base/packages/SettingsProvider/res/values/defaults.xml b/mgsi/overlay/frameworks/base/packages/SettingsProvider/res/values/defaults.xml
new file mode 100644
index 0000000..188916d
--- /dev/null
+++ b/mgsi/overlay/frameworks/base/packages/SettingsProvider/res/values/defaults.xml
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+/**
+ * Copyright (c) 2020, The Android Open Source 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.
+ */
+-->
+
+<resources>
+    <!-- Skip setup so Home softkey could work. -->
+    <bool name="def_user_setup_complete">true</bool>
+</resources>