aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjrior001 <jriordan001@gmail.com>2016-11-24 22:38:52 -0500
committerJason Riordan <jriordan001@gmail.com>2016-12-31 19:09:51 +0000
commitd84bebb6f76db26a4eb949a0e8c8ede19b2ef930 (patch)
tree1fac50dddd0370fb21e95dad61ae0bc10bf3d2f6
parent009403a19a7dbfe892ed81c3f59c4b4254fffd9a (diff)
mofd: build FlipFlap app
add overlays for FlipFlap app remove lidControlsSleep config overlay Change-Id: Id97745d038088b9683fba4edfb472c711350be81
-rw-r--r--cm.dependencies4
-rw-r--r--mofd.mk4
-rw-r--r--overlay/frameworks/base/core/res/res/values/config.xml5
-rw-r--r--overlay/packages/apps/FlipFlap/res/values/config.xml21
4 files changed, 29 insertions, 5 deletions
diff --git a/cm.dependencies b/cm.dependencies
index 9742006..29e080e 100644
--- a/cm.dependencies
+++ b/cm.dependencies
@@ -10,5 +10,9 @@
{
"repository": "android_packages_resources_devicesettings",
"target_path": "packages/resources/devicesettings"
+ },
+ {
+ "repository": "android_packages_apps_FlipFlap",
+ "target_path": "packages/apps/FlipFlap"
}
]
diff --git a/mofd.mk b/mofd.mk
index 1e85b3c..0bc2a51 100644
--- a/mofd.mk
+++ b/mofd.mk
@@ -85,6 +85,10 @@ PRODUCT_COPY_FILES += \
ADDITIONAL_DEFAULT_PROPERTIES += \
ro.frp.pst=/dev/block/by-name/persistent
+# Flip Cover App
+PRODUCT_PACKAGES += \
+ FlipFlap
+
# GPS
PRODUCT_COPY_FILES += \
device/asus/mofd-common/configs/gps.conf:system/etc/gps.conf \
diff --git a/overlay/frameworks/base/core/res/res/values/config.xml b/overlay/frameworks/base/core/res/res/values/config.xml
index a82d54f..fb523d7 100644
--- a/overlay/frameworks/base/core/res/res/values/config.xml
+++ b/overlay/frameworks/base/core/res/res/values/config.xml
@@ -60,11 +60,6 @@
capability can provide power savings when wifi needs to be always kept on. -->
<bool name="config_wifi_background_scan_support">true</bool>
- <!-- Indicate whether closing the lid causes the device to go to sleep and opening
- it causes the device to wake up.
- The default is false. -->
- <bool name="config_lidControlsSleep">true</bool>
-
<!-- This string array should be overridden by the device to present a list of network
attributes. This is used by the connectivity manager to decide which networks can coexist
based on the hardware -->
diff --git a/overlay/packages/apps/FlipFlap/res/values/config.xml b/overlay/packages/apps/FlipFlap/res/values/config.xml
new file mode 100644
index 0000000..a8fba9f
--- /dev/null
+++ b/overlay/packages/apps/FlipFlap/res/values/config.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+
+ <!-- Define Device Lid Style
+
+ 1 HTC Style Dotcase
+ 2 Asus/LG Style Circle Window Cover
+
+ For example, a device with Asus Circle Cover would set 2 -->
+ <integer name="config_deviceCoverType">2</integer>
+
+ <!-- Define Path to lid switch node. Node should report the following:
+ OEPN = 0, Closed =1
+ example path : "/sys/devices/virtual/switch/smartcover/state" -->
+ <string name="cover_node" translatable="false">/sys/devices/virtual/switch/smartcover/state</string>
+
+ <!-- Define path to lid Uevent node. Node should trigger on every cover change
+ example path : "DEVPATH=/devices/virtual/switch/smartcover" -->
+ <string name="cover_uevent_match" translatable="false">DEVPATH=/devices/virtual/switch/smartcover</string>
+
+</resources>