Skip to content

Commit

Permalink
mt2: Enable FlipFlap
Browse files Browse the repository at this point in the history
Change-Id: Ib2b9c2f5299f3ae6ced55f17389d3d88dffeccf3
  • Loading branch information
crpalmer authored and tdm committed Jun 11, 2018
1 parent 08ca018 commit bea9215
Show file tree
Hide file tree
Showing 5 changed files with 74 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lineage.dependencies
Expand Up @@ -10,5 +10,9 @@
{
"repository": "android_device_qcom_common",
"target_path": "device/qcom/common"
},
{
"repository": "android_packages_apps_FlipFlap",
"target_path": "packages/apps/FlipFlap"
}
]
4 changes: 4 additions & 0 deletions mt2.mk
Expand Up @@ -56,6 +56,10 @@ PRODUCT_PACKAGES += \
PRODUCT_PACKAGES += \
keystore.msm8226

# FlipFlap
PRODUCT_PACKAGES += \
FlipFlap

# FM radio
PRODUCT_PACKAGES += \
FM2 \
Expand Down
32 changes: 32 additions & 0 deletions overlay/packages/apps/FlipFlap/res/values/config.xml
@@ -0,0 +1,32 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (c) 2017 The LineageOS Project
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
Also add information on how to contact you by electronic and paper mail.
-->
<resources>

<!-- Define Device Lid Style
1 HTC/Xiaomi Style Dotcase
2 Asus/LG Style Circle Window Cover
3 Rectangular window Cover
4 Iceview style case where the entire screen is visible
For example, a device with Asus Circle Cover would set 2 -->
<integer name="config_deviceCoverType">3</integer>

</resources>
32 changes: 32 additions & 0 deletions overlay/packages/apps/FlipFlap/res/values/dimens.xml
@@ -0,0 +1,32 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (c) 2017 The LineageOS Project
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
Also add information on how to contact you by electronic and paper mail.
-->

<resources>

<!-- Rectangular parameters (config_deviceCoverType == 3) -->
<dimen name="rectangular_window_top">175px</dimen>
<dimen name="rectangular_window_left">360px</dimen>
<dimen name="rectangular_window_width">300px</dimen>
<dimen name="rectangular_window_height">675px</dimen>

<!-- Decrease font size so clock fits in small horizontal space -->
<dimen name="widget_medium_font_size">36dp</dimen>

</resources>
2 changes: 2 additions & 0 deletions rootdir/init.qcom.rc
Expand Up @@ -63,6 +63,8 @@ on boot

chown system system /sys/touch_screen/glove_func/signal_disparity
chown system system /sys/touch_screen/easy_wakeup_gesture
chown system system /sys/devices/8789.huawei_hall_sensor/enable_hall_sensor
write /sys/devices/8789.huawei_hall_sensor/enable_hall_sensor 1

#Create QMUX deamon socket area
mkdir /dev/socket/qmux_radio 0770 radio radio
Expand Down

0 comments on commit bea9215

Please sign in to comment.