Add foldable config

Bug: 124461733
Bug: 124892924
Test: lunch sdk_gphone_x86_64; m -j32
Change-Id: I48470d0aa9a5b1a25a10a686c583c47598fefcec
diff --git a/data/etc/config.ini.foldable b/data/etc/config.ini.foldable
new file mode 100644
index 0000000..017cf5c
--- /dev/null
+++ b/data/etc/config.ini.foldable
@@ -0,0 +1,21 @@
+avd.ini.encoding=UTF-8
+disk.dataPartition.size=2G
+hw.accelerometer=yes
+hw.audioInput=yes
+hw.battery=yes
+hw.camera.back=emulated
+hw.camera.front=emulated
+hw.dPad=no
+hw.gps=yes
+hw.gpu.enabled=yes
+hw.keyboard=yes
+hw.lcd.density=420
+hw.mainKeys=no
+hw.ramSize=4096
+hw.sensors.orientation=yes
+hw.sensors.proximity=yes
+hw.keyboard.lid=yes
+image.sysdir.1=x86/
+skin.dynamic=no
+skin.name=1536x2152
+skin.path=1536x2152
\ No newline at end of file
diff --git a/overlay/frameworks/base/core/res/res/values/config.xml b/overlay/frameworks/base/core/res/res/values/config.xml
index e7923e4..b466231 100644
--- a/overlay/frameworks/base/core/res/res/values/config.xml
+++ b/overlay/frameworks/base/core/res/res/values/config.xml
@@ -36,4 +36,8 @@
     <!-- MMS user agent prolfile url -->
     <string name="config_mms_user_agent_profile_url" translatable="false">http://gsm.lge.com/html/gsm/Nexus5-M3.xml</string>
 
+    <!-- Indicate whether closing the lid causes the device to enter the folded state which means
+         to get a smaller screen and opening the lid causes the device to enter the unfolded state
+         which means to get a larger screen. -->
+    <bool name="config_lidControlsDisplayFold">true</bool>
 </resources>