├── lineage.dependencies
├── keylayout
└── sec_touchkey.kl
├── validityservice
├── proguard.flags
├── res
│ ├── drawable
│ │ └── icon.png
│ └── values
│ │ └── strings.xml
├── src
│ └── com
│ │ └── validity
│ │ └── fingerprint
│ │ ├── VcsInt.java
│ │ ├── VcsByteArray.java
│ │ ├── VcsStringArray.java
│ │ ├── RemoveEnroll.java
│ │ ├── FingerprintEvent.java
│ │ ├── SensorInfo.java
│ │ ├── FingerprintBitmap.java
│ │ ├── EnrollUser.java
│ │ ├── VcsAddInfo.java
│ │ ├── ConsumerInfo.java
│ │ ├── EnrollCaptureStatus.java
│ │ ├── IdentifyResult.java
│ │ ├── ValidityServiceStarter.java
│ │ └── VLog.java
├── Android.mk
└── AndroidManifest.xml
├── wifi
└── wpa_supplicant.conf
├── rootdir
├── sbin
│ └── cbd
├── Android.mk
└── etc
│ ├── fstab.universal3470
│ └── init.wifi.rc
├── vendorsetup.sh
├── apps
├── ExtendedSettings
│ ├── res
│ │ ├── drawable
│ │ │ └── setting_bg.png
│ │ ├── mipmap-hdpi
│ │ │ └── ic_launcher_settings.png
│ │ ├── mipmap-xhdpi
│ │ │ └── ic_launcher_settings.png
│ │ ├── values-v14
│ │ │ └── styles.xml
│ │ ├── values-v21
│ │ │ └── styles.xml
│ │ ├── values-ru
│ │ │ ├── arrays.xml
│ │ │ └── strings.xml
│ │ ├── layout
│ │ │ ├── top.xml
│ │ │ └── gsensor.xml
│ │ ├── values-ro
│ │ │ ├── arrays.xml
│ │ │ └── strings.xml
│ │ ├── values-sr
│ │ │ ├── arrays.xml
│ │ │ └── strings.xml
│ │ ├── xml
│ │ │ ├── performance_preferences.xml
│ │ │ ├── touchkey_preferences.xml
│ │ │ ├── general_preferences.xml
│ │ │ └── bln_preferences.xml
│ │ ├── values
│ │ │ ├── styles.xml
│ │ │ └── arrays.xml
│ │ ├── values-pt
│ │ │ └── strings.xml
│ │ ├── values-zh-rCN
│ │ │ ├── arrays.xml
│ │ │ └── strings.xml
│ │ ├── values-pl
│ │ │ ├── arrays.xml
│ │ │ └── strings.xml
│ │ ├── values-it
│ │ │ └── arrays.xml
│ │ ├── values-es
│ │ │ ├── arrays.xml
│ │ │ └── strings.xml
│ │ ├── values-hu
│ │ │ ├── arrays.xml
│ │ │ └── strings.xml
│ │ ├── values-nl
│ │ │ ├── arrays.xml
│ │ │ └── strings.xml
│ │ ├── values-el
│ │ │ ├── arrays.xml
│ │ │ └── strings.xml
│ │ └── values-de
│ │ │ └── arrays.xml
│ ├── src
│ │ └── com
│ │ │ └── cyanogenmod
│ │ │ └── settings
│ │ │ └── device
│ │ │ ├── Startup.java
│ │ │ ├── OTGCharge.java
│ │ │ ├── PerformanceFragmentActivity.java
│ │ │ ├── FastCharge.java
│ │ │ ├── A2dpSink.java
│ │ │ └── GeneralFragmentActivity.java
│ └── Android.mk
└── Android.mk
├── lineage.mk
├── sepolicy
├── device.te
├── file.te
└── file_contexts
├── init
├── Android.mk
└── init_kminilte.cpp
├── recovery
└── root
│ └── etc
│ └── twrp.fstab
├── libsensors
├── sensors_local.h
├── LightSensor.h
├── ProximitySensor.h
├── HeartRateSensor.h
├── SamsungSensorBase.h
├── ProximitySensor.cpp
├── LightSensor.cpp
└── CompassSensor.HSCDTD008A.h
├── system.prop
├── Android.mk
├── overlay
├── packages
│ ├── apps
│ │ ├── Bluetooth
│ │ │ └── res
│ │ │ │ └── values
│ │ │ │ └── config.xml
│ │ ├── Dialer
│ │ │ └── res
│ │ │ │ └── values
│ │ │ │ └── config.xml
│ │ ├── Settings
│ │ │ └── res
│ │ │ │ └── values
│ │ │ │ ├── dimens.xml
│ │ │ │ └── bools.xml
│ │ ├── SamsungServiceMode
│ │ │ └── res
│ │ │ │ └── values
│ │ │ │ └── config.xml
│ │ ├── FlipFlap
│ │ │ └── res
│ │ │ │ └── values
│ │ │ │ ├── config.xml
│ │ │ │ └── dimens.xml
│ │ └── Snap
│ │ │ └── res
│ │ │ └── values
│ │ │ └── config.xml
│ └── services
│ │ └── Telephony
│ │ └── res
│ │ └── values
│ │ └── config.xml
├── frameworks
│ └── base
│ │ ├── packages
│ │ ├── SystemUI
│ │ │ └── res
│ │ │ │ └── values
│ │ │ │ └── config.xml
│ │ └── Keyguard
│ │ │ └── res
│ │ │ └── values
│ │ │ └── config.xml
│ │ └── core
│ │ └── res
│ │ └── res
│ │ ├── values
│ │ └── cm_arrays.xml
│ │ └── xml
│ │ └── power_profile.xml
└── lineage-sdk
│ └── lineage
│ └── res
│ └── res
│ └── values
│ └── config.xml
├── bluetooth
└── bdroid_buildcfg.h
├── fingerprint
├── Android.mk
└── fp_klte.h
├── power
├── Android.mk
└── power.c
├── consumerir
└── Android.mk
├── liblights
└── Android.mk
├── full_kminilte.mk
├── extract-files.sh
├── lineagehw
└── org
│ └── lineageos
│ └── hardware
│ ├── KeyDisabler.java
│ ├── AdaptiveBacklight.java
│ ├── TouchscreenHovering.java
│ └── HighTouchSensitivity.java
├── setup-makefiles.sh
├── BoardConfig.mk
├── nfc
├── libnfc-sec-hal.conf
└── nfcee_access.xml
└── audio
└── audio_policy.conf
/lineage.dependencies:
--------------------------------------------------------------------------------
1 | [
2 | ]
3 |
--------------------------------------------------------------------------------
/keylayout/sec_touchkey.kl:
--------------------------------------------------------------------------------
1 | key 254 APP_SWITCH VIRTUAL
2 | key 158 BACK VIRTUAL
3 |
--------------------------------------------------------------------------------
/validityservice/proguard.flags:
--------------------------------------------------------------------------------
1 | -verbose
2 | -keep class com.validity.fingerprint.* {*;}
3 |
--------------------------------------------------------------------------------
/wifi/wpa_supplicant.conf:
--------------------------------------------------------------------------------
1 | update_config=1
2 | eapol_version=1
3 | ap_scan=1
4 | fast_reauth=1
5 |
--------------------------------------------------------------------------------
/rootdir/sbin/cbd:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cm-3470/android_device_samsung_kminilte/HEAD/rootdir/sbin/cbd
--------------------------------------------------------------------------------
/vendorsetup.sh:
--------------------------------------------------------------------------------
1 | add_lunch_combo lineage_kminilte-eng
2 | add_lunch_combo lineage_kminilte-user
3 | add_lunch_combo lineage_kminilte-userdebug
4 |
--------------------------------------------------------------------------------
/validityservice/res/drawable/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cm-3470/android_device_samsung_kminilte/HEAD/validityservice/res/drawable/icon.png
--------------------------------------------------------------------------------
/apps/ExtendedSettings/res/drawable/setting_bg.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cm-3470/android_device_samsung_kminilte/HEAD/apps/ExtendedSettings/res/drawable/setting_bg.png
--------------------------------------------------------------------------------
/apps/ExtendedSettings/res/mipmap-hdpi/ic_launcher_settings.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cm-3470/android_device_samsung_kminilte/HEAD/apps/ExtendedSettings/res/mipmap-hdpi/ic_launcher_settings.png
--------------------------------------------------------------------------------
/apps/ExtendedSettings/res/mipmap-xhdpi/ic_launcher_settings.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cm-3470/android_device_samsung_kminilte/HEAD/apps/ExtendedSettings/res/mipmap-xhdpi/ic_launcher_settings.png
--------------------------------------------------------------------------------
/apps/ExtendedSettings/res/values-v14/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
6 |
7 |
--------------------------------------------------------------------------------
/apps/ExtendedSettings/res/values-v21/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
6 |
7 |
--------------------------------------------------------------------------------
/lineage.mk:
--------------------------------------------------------------------------------
1 | # Inherit some common Lineage stuff.
2 | $(call inherit-product, vendor/lineage/config/common_full_phone.mk)
3 | $(call inherit-product, device/samsung/kminilte/full_kminilte.mk)
4 |
5 | PRODUCT_NAME := lineage_kminilte
6 |
--------------------------------------------------------------------------------
/sepolicy/device.te:
--------------------------------------------------------------------------------
1 | # /dev/s5p-smem
2 | type secmem_device, dev_type;
3 |
4 | # Unified Memory Management device
5 | type ump_device, dev_type;
6 |
7 | # /dev/umts_boot*, /dev/ehci_power
8 | type mif_device, dev_type;
9 |
10 |
--------------------------------------------------------------------------------
/init/Android.mk:
--------------------------------------------------------------------------------
1 | LOCAL_PATH := $(call my-dir)
2 |
3 | include $(CLEAR_VARS)
4 |
5 | LOCAL_MODULE_TAGS := optional
6 | LOCAL_C_INCLUDES := system/core/init
7 | LOCAL_CFLAGS := -Wall -DANDROID_TARGET=\"$(TARGET_BOARD_PLATFORM)\"
8 | LOCAL_STATIC_LIBRARIES := libbase liblog
9 | LOCAL_SRC_FILES := init_kminilte.cpp
10 | LOCAL_MODULE := libinit_kminilte
11 |
12 | include $(BUILD_STATIC_LIBRARY)
13 |
--------------------------------------------------------------------------------
/apps/ExtendedSettings/res/values-ru/arrays.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | - По умолчанию (1.6 секунд)
5 | - 0.5 секунд
6 | - 1 секунд
7 | - 2 секунд
8 | - 5 секунд
9 | - Никогда
10 |
11 |
12 |
--------------------------------------------------------------------------------
/recovery/root/etc/twrp.fstab:
--------------------------------------------------------------------------------
1 | # mount point fstype device device2
2 | /efs ext4 /dev/block/mmcblk0p3 flags=display="EFS";backup=1
3 | /boot emmc /dev/block/mmcblk0p9
4 | /misc emmc /dev/block/mmcblk0p11
5 | /recovery emmc /dev/block/mmcblk0p10
6 | /cache auto /dev/block/mmcblk0p19
7 | /system ext4 /dev/block/mmcblk0p18
8 | /data auto /dev/block/mmcblk0p21 length=-16384
9 | /modem emmc /dev/block/mmcblk0p13
10 | /preload ext4 /dev/block/mmcblk0p20
11 |
12 | /external_sd auto /dev/block/mmcblk1p1 flags=display="Micro SDcard";storage;wipeingui;removable
13 |
--------------------------------------------------------------------------------
/libsensors/sensors_local.h:
--------------------------------------------------------------------------------
1 | #ifndef SENSORS_LOCAL_H
2 | #define SENSORS_LOCAL_H
3 |
4 | #include "sensors.h"
5 |
6 | /* additional IDs */
7 | enum {
8 | ID_L = 0x100,
9 | ID_PX,
10 | ID_HR
11 | };
12 |
13 | // EVENT_TYPE_MAGV_n already defined in sensors.h
14 | // -> Use EVENT_TYPE_REL_MAGV_n instead.
15 | #define EVENT_TYPE_REL_MAGV_X REL_X
16 | #define EVENT_TYPE_REL_MAGV_Y REL_Y
17 | #define EVENT_TYPE_REL_MAGV_Z REL_Z
18 | #define EVENT_TYPE_MAG_TIME_HI REL_DIAL
19 | #define EVENT_TYPE_MAG_TIME_LO REL_MISC
20 |
21 | #endif // SENSORS_LOCAL_H
22 |
--------------------------------------------------------------------------------
/system.prop:
--------------------------------------------------------------------------------
1 | #
2 | # system.prop for kminilte
3 | #
4 |
5 | ro.sf.lcd_density=320
6 | persist.hdmi.hdcp_enabled=0
7 | persist.demo.hdmirotationlock=0
8 | rild.libpath=/system/lib/libsec-ril.so
9 | rild.libargs=-d /dev/umts_ipc0
10 |
11 | ro.ril.hsxpa=1
12 | ro.ril.gprsclass=10
13 | ro.ril.telephony.mqanelements=6
14 | ro.telephony.default_network=9
15 | telephony.lteOnCdmaDevice=0
16 | persist.radio.apm_sim_not_pwdn=1
17 | persist.radio.add_power_save=1
18 |
19 | # Uncomment the following line to enable Bluetooth A2DP sink
20 | #persist.service.bt.a2dp.sink=true
21 |
22 | ro.nfc.sec_hal=true
23 |
24 | # this affects lock screen ColorFader and ensures release of /dev/pvrsrvkm GPU ressources
25 | ro.egl.destroy_after_detach=true
26 |
27 |
--------------------------------------------------------------------------------
/apps/Android.mk:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (C) 2017 The LineageOS Project
3 | #
4 | # Licensed under the Apache License, Version 2.0 (the "License");
5 | # you may not use this file except in compliance with the License.
6 | # You may obtain a copy of the License at
7 | #
8 | # http://www.apache.org/licenses/LICENSE-2.0
9 | #
10 | # Unless required by applicable law or agreed to in writing, software
11 | # distributed under the License is distributed on an "AS IS" BASIS,
12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | # See the License for the specific language governing permissions and
14 | # limitations under the License.
15 | #
16 |
17 | LOCAL_PATH := $(call my-dir)
18 | include $(call all-makefiles-under,$(LOCAL_PATH))
19 |
--------------------------------------------------------------------------------
/Android.mk:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (C) 2017 The LineageOS Project
3 | #
4 | # Licensed under the Apache License, Version 2.0 (the "License");
5 | # you may not use this file except in compliance with the License.
6 | # You may obtain a copy of the License at
7 | #
8 | # http://www.apache.org/licenses/LICENSE-2.0
9 | #
10 | # Unless required by applicable law or agreed to in writing, software
11 | # distributed under the License is distributed on an "AS IS" BASIS,
12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | # See the License for the specific language governing permissions and
14 | # limitations under the License.
15 | #
16 |
17 | LOCAL_PATH := $(call my-dir)
18 |
19 | ifeq ($(TARGET_DEVICE),kminilte)
20 | include $(call all-makefiles-under,$(LOCAL_PATH))
21 | endif
22 |
--------------------------------------------------------------------------------
/overlay/packages/apps/Bluetooth/res/values/config.xml:
--------------------------------------------------------------------------------
1 |
2 |
15 |
16 |
17 |
18 |
--------------------------------------------------------------------------------
/sepolicy/file.te:
--------------------------------------------------------------------------------
1 | ### efs types
2 | type app_efs_file, file_type;
3 | type battery_efs_type, file_type;
4 | type baro_delta_factoryapp_efs_file, file_type;
5 | type bin_nv_data_efs_file, file_type;
6 | type cbd_log_data, file_type;
7 | # widewine, drm
8 | type cpk_efs_file, file_type;
9 | type drm_efs_file, file_type;
10 | type factorymode_factoryapp_efs_file, file_type;
11 | type imei_efs_file, file_type;
12 | type prov_efs_file, file_type;
13 | type radio_factoryapp_efs_file, file_type;
14 | type sensor_efs_file, file_type;
15 | type wifi_efs_file, file_type;
16 |
17 | ### sysfs types
18 | type sysfs_multipdp_writable, fs_type, sysfs_type, mlstrustedobject;
19 | type sysfs_usb_power_writable, fs_type, sysfs_type, mlstrustedobject;
20 | type sysfs_otg_writable, fs_type, sysfs_type;
21 | type sysfs_graphics, fs_type, sysfs_type, mlstrustedobject;
22 |
23 | allow sysfs_type tmpfs:filesystem associate;
24 |
--------------------------------------------------------------------------------
/bluetooth/bdroid_buildcfg.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2014 The CyanogenMod Project
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | #ifndef _BDROID_BUILDCFG_H
18 | #define _BDROID_BUILDCFG_H
19 |
20 | // Commented out for variant support
21 | // when null the product model is used
22 | // #define BTM_DEF_LOCAL_NAME "SM-G800F"
23 |
24 | #endif
25 |
--------------------------------------------------------------------------------
/overlay/packages/apps/Dialer/res/values/config.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 | true
19 | 4
20 |
21 |
--------------------------------------------------------------------------------
/validityservice/src/com/validity/fingerprint/VcsInt.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2016 The Android Open Source Project
3 | * Copyright (C) 2016 The Mokee Project
4 | * Copyright (C) 2016 The CyanogenMod Project
5 | *
6 | * Licensed under the Apache License, Version 2.0 (the "License");
7 | * you may not use this file except in compliance with the License.
8 | * You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing, software
13 | * distributed under the License is distributed on an "AS IS" BASIS,
14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | * See the License for the specific language governing permissions and
16 | * limitations under the License.
17 | */
18 |
19 | package com.validity.fingerprint;
20 |
21 | public class VcsInt {
22 | public int num;
23 | }
24 |
--------------------------------------------------------------------------------
/validityservice/src/com/validity/fingerprint/VcsByteArray.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2016 The Android Open Source Project
3 | * Copyright (C) 2016 The Mokee Project
4 | * Copyright (C) 2016 The CyanogenMod Project
5 | *
6 | * Licensed under the Apache License, Version 2.0 (the "License");
7 | * you may not use this file except in compliance with the License.
8 | * You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing, software
13 | * distributed under the License is distributed on an "AS IS" BASIS,
14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | * See the License for the specific language governing permissions and
16 | * limitations under the License.
17 | */
18 |
19 | package com.validity.fingerprint;
20 |
21 | public class VcsByteArray {
22 | public byte data[];
23 | }
24 |
--------------------------------------------------------------------------------
/validityservice/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
18 |
19 | Validity service
20 |
21 |
--------------------------------------------------------------------------------
/validityservice/src/com/validity/fingerprint/VcsStringArray.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2016 The Android Open Source Project
3 | * Copyright (C) 2016 The Mokee Project
4 | * Copyright (C) 2016 The CyanogenMod Project
5 | *
6 | * Licensed under the Apache License, Version 2.0 (the "License");
7 | * you may not use this file except in compliance with the License.
8 | * You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing, software
13 | * distributed under the License is distributed on an "AS IS" BASIS,
14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | * See the License for the specific language governing permissions and
16 | * limitations under the License.
17 | */
18 |
19 | package com.validity.fingerprint;
20 |
21 | public class VcsStringArray {
22 | public String strlist[];
23 | }
24 |
--------------------------------------------------------------------------------
/apps/ExtendedSettings/res/layout/top.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
20 |
--------------------------------------------------------------------------------
/validityservice/src/com/validity/fingerprint/RemoveEnroll.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2016 The Android Open Source Project
3 | * Copyright (C) 2016 The Mokee Project
4 | * Copyright (C) 2016 The CyanogenMod Project
5 | *
6 | * Licensed under the Apache License, Version 2.0 (the "License");
7 | * you may not use this file except in compliance with the License.
8 | * You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing, software
13 | * distributed under the License is distributed on an "AS IS" BASIS,
14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | * See the License for the specific language governing permissions and
16 | * limitations under the License.
17 | */
18 |
19 | package com.validity.fingerprint;
20 |
21 | public class RemoveEnroll {
22 | public int fingerIndex;
23 | public String userId;
24 | }
25 |
--------------------------------------------------------------------------------
/validityservice/src/com/validity/fingerprint/FingerprintEvent.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2016 The Android Open Source Project
3 | * Copyright (C) 2016 The Mokee Project
4 | * Copyright (C) 2016 The CyanogenMod Project
5 | *
6 | * Licensed under the Apache License, Version 2.0 (the "License");
7 | * you may not use this file except in compliance with the License.
8 | * You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing, software
13 | * distributed under the License is distributed on an "AS IS" BASIS,
14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | * See the License for the specific language governing permissions and
16 | * limitations under the License.
17 | */
18 |
19 | package com.validity.fingerprint;
20 |
21 | public class FingerprintEvent {
22 | public Object eventData;
23 | public int eventId;
24 | }
25 |
--------------------------------------------------------------------------------
/overlay/packages/apps/Settings/res/values/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 |
19 | 5dp
20 | - 94.68%
21 |
22 |
--------------------------------------------------------------------------------
/validityservice/src/com/validity/fingerprint/SensorInfo.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2016 The Android Open Source Project
3 | * Copyright (C) 2016 The Mokee Project
4 | * Copyright (C) 2016 The CyanogenMod Project
5 | *
6 | * Licensed under the Apache License, Version 2.0 (the "License");
7 | * you may not use this file except in compliance with the License.
8 | * You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing, software
13 | * distributed under the License is distributed on an "AS IS" BASIS,
14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | * See the License for the specific language governing permissions and
16 | * limitations under the License.
17 | */
18 |
19 | package com.validity.fingerprint;
20 |
21 | public class SensorInfo {
22 | public int flexId;
23 | public String fwVersion;
24 | public int productId;
25 | }
26 |
--------------------------------------------------------------------------------
/validityservice/src/com/validity/fingerprint/FingerprintBitmap.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2016 The Android Open Source Project
3 | * Copyright (C) 2016 The Mokee Project
4 | * Copyright (C) 2016 The CyanogenMod Project
5 | *
6 | * Licensed under the Apache License, Version 2.0 (the "License");
7 | * you may not use this file except in compliance with the License.
8 | * You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing, software
13 | * distributed under the License is distributed on an "AS IS" BASIS,
14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | * See the License for the specific language governing permissions and
16 | * limitations under the License.
17 | */
18 |
19 | package com.validity.fingerprint;
20 |
21 | import android.graphics.Bitmap;
22 |
23 | public class FingerprintBitmap {
24 | public Bitmap fingerprint;
25 | public int quality;
26 | }
27 |
--------------------------------------------------------------------------------
/fingerprint/Android.mk:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (C) 2016 The CyanogenMod Project
3 | # Copyright (C) 2016 The Mokee Project
4 | #
5 | # Licensed under the Apache License, Version 2.0 (the "License");
6 | # you may not use this file except in compliance with the License.
7 | # You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
11 | # Unless required by applicable law or agreed to in writing, software
12 | # distributed under the License is distributed on an "AS IS" BASIS,
13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | # See the License for the specific language governing permissions and
15 | # limitations under the License.
16 | #
17 |
18 | LOCAL_PATH := $(call my-dir)
19 |
20 | include $(CLEAR_VARS)
21 |
22 | LOCAL_MODULE := fingerprint.universal3470
23 | LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/hw
24 | LOCAL_SRC_FILES := fingerprint.c
25 | LOCAL_SHARED_LIBRARIES := liblog
26 | LOCAL_MODULE_TAGS := optional
27 |
28 | include $(BUILD_SHARED_LIBRARY)
29 |
--------------------------------------------------------------------------------
/overlay/packages/apps/SamsungServiceMode/res/values/config.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
20 | 2
21 |
22 |
--------------------------------------------------------------------------------
/validityservice/src/com/validity/fingerprint/EnrollUser.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2016 The Android Open Source Project
3 | * Copyright (C) 2016 The Mokee Project
4 | * Copyright (C) 2016 The CyanogenMod Project
5 | *
6 | * Licensed under the Apache License, Version 2.0 (the "License");
7 | * you may not use this file except in compliance with the License.
8 | * You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing, software
13 | * distributed under the License is distributed on an "AS IS" BASIS,
14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | * See the License for the specific language governing permissions and
16 | * limitations under the License.
17 | */
18 |
19 | package com.validity.fingerprint;
20 |
21 | public class EnrollUser {
22 | public int fingerIndex;
23 | public int mode;
24 | public String userId;
25 |
26 | public EnrollUser() {
27 | mode = 1;
28 | }
29 |
30 | }
31 |
--------------------------------------------------------------------------------
/apps/ExtendedSettings/res/values-ro/arrays.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 | - Implicit(1.6 secunde)
19 | - 0.5 secunde
20 | - 1 secunde
21 | - 2 secunde
22 | - 5 secunde
23 | - Niciodata
24 |
25 |
26 |
--------------------------------------------------------------------------------
/apps/ExtendedSettings/res/values-sr/arrays.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 | - Стандардно (1.6 секунди)
19 | - 0.5 секунди
20 | - 1 секунда
21 | - 2 секунде
22 | - 5 секунди
23 | - Никад
24 |
25 |
26 |
--------------------------------------------------------------------------------
/power/Android.mk:
--------------------------------------------------------------------------------
1 | # Copyright (C) 2014, The CyanogenMod Project
2 | #
3 | # Licensed under the Apache License, Version 2.0 (the "License");
4 | # you may not use this file except in compliance with the License.
5 | # You may obtain a copy of the License at
6 | #
7 | # http://www.apache.org/licenses/LICENSE-2.0
8 | #
9 | # Unless required by applicable law or agreed to in writing, software
10 | # distributed under the License is distributed on an "AS IS" BASIS,
11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | # See the License for the specific language governing permissions and
13 | # limitations under the License.
14 |
15 | LOCAL_PATH := $(call my-dir)
16 |
17 | ifeq ($(TARGET_POWERHAL_VARIANT),exynos3)
18 |
19 | include $(CLEAR_VARS)
20 |
21 | LOCAL_MODULE := power.exynos3
22 | LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/hw
23 | LOCAL_SRC_FILES := power.c
24 | LOCAL_SHARED_LIBRARIES := liblog
25 | LOCAL_MODULE_TAGS := optional
26 |
27 | include $(BUILD_SHARED_LIBRARY)
28 |
29 | endif # TARGET_POWERHAL_VARIANT == exynos3
30 |
--------------------------------------------------------------------------------
/consumerir/Android.mk:
--------------------------------------------------------------------------------
1 | # Copyright (C) 2013 The Android Open Source Project
2 | #
3 | # Licensed under the Apache License, Version 2.0 (the "License");
4 | # you may not use this file except in compliance with the License.
5 | # You may obtain a copy of the License at
6 | #
7 | # http://www.apache.org/licenses/LICENSE-2.0
8 | #
9 | # Unless required by applicable law or agreed to in writing, software
10 | # distributed under the License is distributed on an "AS IS" BASIS,
11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | # See the License for the specific language governing permissions and
13 | # limitations under the License.
14 |
15 | # HAL module implementation stored in
16 | # hw/..so
17 |
18 | LOCAL_PATH := $(call my-dir)
19 |
20 | include $(CLEAR_VARS)
21 |
22 | LOCAL_MODULE := consumerir.universal3470
23 | LOCAL_MODULE_PATH := $(TARGET_OUT_SHARED_LIBRARIES)/hw
24 | LOCAL_SRC_FILES := consumerir.c
25 | LOCAL_SHARED_LIBRARIES := liblog libcutils
26 | LOCAL_MODULE_TAGS := optional
27 |
28 | include $(BUILD_SHARED_LIBRARY)
29 |
--------------------------------------------------------------------------------
/liblights/Android.mk:
--------------------------------------------------------------------------------
1 | # Copyright (C) 2012 The CyanogenMod Project
2 | #
3 | # Licensed under the Apache License, Version 2.0 (the "License");
4 | # you may not use this file except in compliance with the License.
5 | # You may obtain a copy of the License at
6 | #
7 | # http://www.apache.org/licenses/LICENSE-2.0
8 | #
9 | # Unless required by applicable law or agreed to in writing, software
10 | # distributed under the License is distributed on an "AS IS" BASIS,
11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | # See the License for the specific language governing permissions and
13 | # limitations under the License.
14 |
15 | LOCAL_PATH:= $(call my-dir)
16 | # HAL module implemenation stored in
17 | # hw/..so
18 | include $(CLEAR_VARS)
19 |
20 | LOCAL_SRC_FILES := lights.c
21 |
22 |
23 | LOCAL_SHARED_LIBRARIES := liblog
24 |
25 | LOCAL_MODULE := lights.exynos3
26 | LOCAL_MODULE_RELATIVE_PATH := hw
27 | LOCAL_PROPRIETARY_MODULE := true
28 |
29 | LOCAL_MODULE_TAGS := optional
30 |
31 | include $(BUILD_SHARED_LIBRARY)
32 |
--------------------------------------------------------------------------------
/validityservice/src/com/validity/fingerprint/VcsAddInfo.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2016 The Android Open Source Project
3 | * Copyright (C) 2016 The Mokee Project
4 | * Copyright (C) 2016 The CyanogenMod Project
5 | *
6 | * Licensed under the Apache License, Version 2.0 (the "License");
7 | * you may not use this file except in compliance with the License.
8 | * You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing, software
13 | * distributed under the License is distributed on an "AS IS" BASIS,
14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | * See the License for the specific language governing permissions and
16 | * limitations under the License.
17 | */
18 |
19 | package com.validity.fingerprint;
20 |
21 | public class VcsAddInfo {
22 | public int algID;
23 | public byte data[];
24 |
25 | public VcsAddInfo() {
26 | }
27 |
28 | public VcsAddInfo(int algorithmID) {
29 | algID = algorithmID;
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/validityservice/src/com/validity/fingerprint/ConsumerInfo.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2016 The Android Open Source Project
3 | * Copyright (C) 2016 The Mokee Project
4 | * Copyright (C) 2016 The CyanogenMod Project
5 | *
6 | * Licensed under the Apache License, Version 2.0 (the "License");
7 | * you may not use this file except in compliance with the License.
8 | * You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing, software
13 | * distributed under the License is distributed on an "AS IS" BASIS,
14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | * See the License for the specific language governing permissions and
16 | * limitations under the License.
17 | */
18 |
19 | package com.validity.fingerprint;
20 |
21 |
22 | public class ConsumerInfo {
23 | public Object info;
24 | public int type;
25 |
26 | public ConsumerInfo() {
27 | }
28 |
29 | public ConsumerInfo(int type) {
30 | this.type = type;
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/full_kminilte.mk:
--------------------------------------------------------------------------------
1 | # Copyright (C) 2017 The LineageOS Project
2 | #
3 | # Licensed under the Apache License, Version 2.0 (the "License");
4 | # you may not use this file except in compliance with the License.
5 | # You may obtain a copy of the License at
6 | #
7 | # http://www.apache.org/licenses/LICENSE-2.0
8 | #
9 | # Unless required by applicable law or agreed to in writing, software
10 | # distributed under the License is distributed on an "AS IS" BASIS,
11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | # See the License for the specific language governing permissions and
13 | # limitations under the License.
14 |
15 | # Inherit from those products. Most specific first.
16 | $(call inherit-product, $(SRC_TARGET_DIR)/product/full_base_telephony.mk)
17 | # Inherit from kminilte device
18 | $(call inherit-product, device/samsung/kminilte/device.mk)
19 |
20 | # Set those variables here to overwrite the inherited values.
21 | PRODUCT_NAME := full_kminilte
22 | PRODUCT_DEVICE := kminilte
23 | PRODUCT_BRAND := samsung
24 | PRODUCT_MANUFACTURER := samsung
25 | PRODUCT_MODEL := SM-G800
26 |
--------------------------------------------------------------------------------
/overlay/frameworks/base/packages/SystemUI/res/values/config.xml:
--------------------------------------------------------------------------------
1 |
2 |
19 |
20 |
22 |
23 |
24 |
26 | true
27 |
28 |
29 |
--------------------------------------------------------------------------------
/validityservice/Android.mk:
--------------------------------------------------------------------------------
1 | # Copyright (C) 2016 The Android Open Source Project
2 | #
3 | # Licensed under the Apache License, Version 2.0 (the "License");
4 | # you may not use this file except in compliance with the License.
5 | # You may obtain a copy of the License at
6 | #
7 | # http://www.apache.org/licenses/LICENSE-2.0
8 | #
9 | # Unless required by applicable law or agreed to in writing, software
10 | # distributed under the License is distributed on an "AS IS" BASIS,
11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | # See the License for the specific language governing permissions and
13 | # limitations under the License.
14 |
15 | LOCAL_PATH:= $(call my-dir)
16 |
17 | include $(CLEAR_VARS)
18 |
19 | LOCAL_PACKAGE_NAME := ValidityService
20 |
21 | LOCAL_SRC_FILES := $(call all-java-files-under, src)
22 |
23 | LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/res
24 | LOCAL_AAPT_FLAGS := --auto-add-overlay
25 |
26 | LOCAL_PROGUARD_FLAG_FILES := proguard.flags
27 |
28 | LOCAL_CERTIFICATE := platform
29 | LOCAL_PRIVILEGED_MODULE := true
30 |
31 | #LOCAL_JACK_ENABLED := disabled
32 |
33 | include $(BUILD_PACKAGE)
34 |
--------------------------------------------------------------------------------
/apps/ExtendedSettings/src/com/cyanogenmod/settings/device/Startup.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2013 The CyanogenMod Project
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.cyanogenmod.settings.device;
18 |
19 | import android.content.BroadcastReceiver;
20 | import android.content.Context;
21 | import android.content.Intent;
22 |
23 | public class Startup extends BroadcastReceiver {
24 |
25 | @Override
26 | public void onReceive(final Context context, final Intent bootintent) {
27 | GeneralFragmentActivity.restore(context);
28 | PerformanceFragmentActivity.restore(context);
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/validityservice/src/com/validity/fingerprint/EnrollCaptureStatus.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2016 The Android Open Source Project
3 | * Copyright (C) 2016 The Mokee Project
4 | * Copyright (C) 2016 The CyanogenMod Project
5 | *
6 | * Licensed under the Apache License, Version 2.0 (the "License");
7 | * you may not use this file except in compliance with the License.
8 | * You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing, software
13 | * distributed under the License is distributed on an "AS IS" BASIS,
14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | * See the License for the specific language governing permissions and
16 | * limitations under the License.
17 | */
18 |
19 | package com.validity.fingerprint;
20 |
21 | public class EnrollCaptureStatus {
22 |
23 | public int badSwipes;
24 | public int cumulativeCoverageMap;
25 | public int currentCoverageMap;
26 | public int imageQuality;
27 | public int positionFeedback;
28 | public int progress;
29 | public int templateResult;
30 | public int totalSwipes;
31 |
32 | }
33 |
--------------------------------------------------------------------------------
/apps/ExtendedSettings/Android.mk:
--------------------------------------------------------------------------------
1 | # Copyright (C) 2011-2013 The CyanogenMod Project
2 | #
3 | # Licensed under the Apache License, Version 2.0 (the "License");
4 | # you may not use this file except in compliance with the License.
5 | # You may obtain a copy of the License at
6 | #
7 | # http://www.apache.org/licenses/LICENSE-2.0
8 | #
9 | # Unless required by applicable law or agreed to in writing, software
10 | # distributed under the License is distributed on an "AS IS" BASIS,
11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | # See the License for the specific language governing permissions and
13 | # limitations under the License.
14 |
15 | LOCAL_PATH:= $(call my-dir)
16 | include $(CLEAR_VARS)
17 |
18 | LOCAL_MODULE_TAGS := optional
19 |
20 | LOCAL_STATIC_JAVA_LIBRARIES := android-support-v13
21 |
22 | LOCAL_SRC_FILES := $(call all-java-files-under, src)
23 |
24 | LOCAL_PACKAGE_NAME := AriesParts
25 | LOCAL_CERTIFICATE := platform
26 | LOCAL_PRIVILEGED_MODULE := true
27 |
28 | # Required so that symbols used by the jni library doesn't get stripped out
29 | LOCAL_PROGUARD_ENABLED := disabled
30 |
31 | include $(BUILD_PACKAGE)
32 |
33 | include $(call all-makefiles-under,$(LOCAL_PATH))
34 |
--------------------------------------------------------------------------------
/apps/ExtendedSettings/res/xml/performance_preferences.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
--------------------------------------------------------------------------------
/overlay/frameworks/base/packages/Keyguard/res/values/config.xml:
--------------------------------------------------------------------------------
1 |
2 |
19 |
20 |
21 |
22 |
23 |
27 | false
28 |
29 |
--------------------------------------------------------------------------------
/overlay/packages/apps/FlipFlap/res/values/config.xml:
--------------------------------------------------------------------------------
1 |
2 |
20 |
21 |
22 |
29 | 3
30 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/overlay/packages/apps/FlipFlap/res/values/dimens.xml:
--------------------------------------------------------------------------------
1 |
2 |
20 |
21 |
22 |
23 |
24 | 0px
25 | 40px
26 | 640px
27 | 640px
28 |
29 |
30 |
31 |
--------------------------------------------------------------------------------
/validityservice/src/com/validity/fingerprint/IdentifyResult.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2016 The Android Open Source Project
3 | * Copyright (C) 2016 The Mokee Project
4 | * Copyright (C) 2016 The CyanogenMod Project
5 | *
6 | * Licensed under the Apache License, Version 2.0 (the "License");
7 | * you may not use this file except in compliance with the License.
8 | * You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing, software
13 | * distributed under the License is distributed on an "AS IS" BASIS,
14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | * See the License for the specific language governing permissions and
16 | * limitations under the License.
17 | */
18 |
19 | package com.validity.fingerprint;
20 |
21 | public class IdentifyResult {
22 | public byte templateId[] = new byte[16];
23 | public int matchedFingerIndexes[] = new int[20];
24 | public int corrMinuCount[] = new int[4];
25 | public int vMinuCount[] = new int[4];
26 | public String appData;
27 | public int fMinuCount;
28 | public int fingerIndex;
29 | public float matchRate;
30 | public int matchScore;
31 | public int templateUpdated;
32 | public String userId;
33 | }
34 |
--------------------------------------------------------------------------------
/validityservice/src/com/validity/fingerprint/ValidityServiceStarter.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2016 The Android Open Source Project
3 | * Copyright (C) 2016 The Mokee Project
4 | * Copyright (C) 2016 The CyanogenMod Project
5 | *
6 | * Licensed under the Apache License, Version 2.0 (the "License");
7 | * you may not use this file except in compliance with the License.
8 | * You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing, software
13 | * distributed under the License is distributed on an "AS IS" BASIS,
14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | * See the License for the specific language governing permissions and
16 | * limitations under the License.
17 | */
18 |
19 | package com.validity.fingerprint;
20 |
21 | import android.app.Application;
22 | import android.content.Context;
23 | import android.content.Intent;
24 | import android.util.Log;
25 |
26 | public class ValidityServiceStarter extends Application {
27 |
28 | @Override
29 | public void onCreate() {
30 | super.onCreate();
31 | VLog.v("onCreate");
32 | Intent serviceintent = new Intent(this, ValidityService.class);
33 | startService(serviceintent);
34 | }
35 |
36 | }
37 |
--------------------------------------------------------------------------------
/rootdir/Android.mk:
--------------------------------------------------------------------------------
1 | LOCAL_PATH := $(call my-dir)
2 |
3 | include $(CLEAR_VARS)
4 | LOCAL_MODULE := fstab.universal3470
5 | LOCAL_MODULE_TAGS := optional eng
6 | LOCAL_MODULE_CLASS := ETC
7 | LOCAL_SRC_FILES := etc/fstab.universal3470
8 | LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)
9 | include $(BUILD_PREBUILT)
10 |
11 | include $(CLEAR_VARS)
12 | LOCAL_MODULE := init.universal3470.rc
13 | LOCAL_MODULE_TAGS := optional eng
14 | LOCAL_MODULE_CLASS := ETC
15 | LOCAL_SRC_FILES := etc/init.universal3470.rc
16 | LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)
17 | include $(BUILD_PREBUILT)
18 |
19 | include $(CLEAR_VARS)
20 | LOCAL_MODULE := init.universal3470.usb.rc
21 | LOCAL_MODULE_TAGS := optional eng
22 | LOCAL_MODULE_CLASS := ETC
23 | LOCAL_SRC_FILES := etc/init.universal3470.usb.rc
24 | LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)
25 | include $(BUILD_PREBUILT)
26 |
27 | include $(CLEAR_VARS)
28 | LOCAL_MODULE := init.wifi.rc
29 | LOCAL_MODULE_TAGS := optional eng
30 | LOCAL_MODULE_CLASS := ETC
31 | LOCAL_SRC_FILES := etc/init.wifi.rc
32 | LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)
33 | include $(BUILD_PREBUILT)
34 |
35 | include $(CLEAR_VARS)
36 | LOCAL_MODULE := ueventd.universal3470.rc
37 | LOCAL_MODULE_TAGS := optional eng
38 | LOCAL_MODULE_CLASS := ETC
39 | LOCAL_SRC_FILES := etc/ueventd.universal3470.rc
40 | LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)
41 | include $(BUILD_PREBUILT)
42 |
--------------------------------------------------------------------------------
/overlay/packages/apps/Settings/res/values/bools.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 |
19 | true
20 |
21 | true
22 |
23 | false
24 |
25 |
31 | 1
32 |
33 |
--------------------------------------------------------------------------------
/apps/ExtendedSettings/res/layout/gsensor.xml:
--------------------------------------------------------------------------------
1 |
2 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/extract-files.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | set -e
4 | export DEVICE=kminilte
5 | export VENDOR=samsung
6 |
7 | if [ $# -eq 0 ]; then
8 | SRC=adb
9 | else
10 | if [ $# -eq 1 ]; then
11 | SRC=$1
12 | else
13 | echo "$0: bad number of arguments"
14 | echo ""
15 | echo "usage: $0 [PATH_TO_EXPANDED_ROM]"
16 | echo ""
17 | echo "If PATH_TO_EXPANDED_ROM is not specified, blobs will be extracted from"
18 | echo "the device using adb pull."
19 | exit 1
20 | fi
21 | fi
22 |
23 | BASE=../../../vendor/$VENDOR/$DEVICE/proprietary
24 | rm -rf $BASE/*
25 |
26 | for FILE in `egrep -v '(^#|^$)' proprietary-files.txt`; do
27 | echo "Extracting /system/$FILE ..."
28 | OLDIFS=$IFS IFS=":" PARSING_ARRAY=($FILE) IFS=$OLDIFS
29 | FILE=`echo ${PARSING_ARRAY[0]} | sed -e "s/^-//g"`
30 | DEST=${PARSING_ARRAY[1]}
31 | if [ -z $DEST ]
32 | then
33 | DEST=$FILE
34 | fi
35 | DIR=`dirname $FILE`
36 | if [ ! -d $BASE/$DIR ]; then
37 | mkdir -p $BASE/$DIR
38 | fi
39 | if [ "$SRC" = "adb" ]; then
40 | adb pull /system/$FILE $BASE/$DEST
41 | # if file dot not exist try destination
42 | if [ "$?" != "0" ]
43 | then
44 | adb pull /system/$DEST $BASE/$DEST
45 | fi
46 | else
47 | cp $SRC/system/$FILE $BASE/$DEST
48 | # if file dot not exist try destination
49 | if [ "$?" != "0" ]
50 | then
51 | cp $SRC/system/$DEST $BASE/$DEST
52 | fi
53 | fi
54 | done
55 |
56 | ./setup-makefiles.sh
57 |
--------------------------------------------------------------------------------
/overlay/packages/apps/Snap/res/values/config.xml:
--------------------------------------------------------------------------------
1 |
2 |
14 |
15 |
17 |
18 |
19 | false
20 |
21 |
22 | false
23 |
24 |
25 | true
26 |
27 |
28 | true
29 |
30 |
--------------------------------------------------------------------------------
/apps/ExtendedSettings/res/values/styles.xml:
--------------------------------------------------------------------------------
1 |
2 |
17 |
18 |
19 |
23 |
30 |
31 |
32 |
35 |
36 |
37 |
--------------------------------------------------------------------------------
/apps/ExtendedSettings/src/com/cyanogenmod/settings/device/OTGCharge.java:
--------------------------------------------------------------------------------
1 | package com.cyanogenmod.settings.device;
2 |
3 | import android.content.Context;
4 | import android.content.SharedPreferences;
5 | import android.preference.Preference;
6 | import android.preference.Preference.OnPreferenceChangeListener;
7 | import android.preference.PreferenceManager;
8 |
9 | public class OTGCharge implements OnPreferenceChangeListener {
10 |
11 | private static final String FILE = "/sys/class/sec/switch/otg_cable_type";
12 | private static final String DEFAULT_OTG_POWER_MODE = "BATTERY";
13 |
14 | public OTGCharge() {
15 | }
16 |
17 | public static boolean isSupported() {
18 | return Utils.fileExists(FILE);
19 | }
20 |
21 | /**
22 | * Restore OTG charge setting (Write to kernel.)
23 | * @param context The context to read the SharedPreferences from
24 | */
25 | public static void restore(Context context) {
26 | if (isSupported()) {
27 | SharedPreferences sharedPrefs = PreferenceManager.getDefaultSharedPreferences(context);
28 | String mode = sharedPrefs.getString(DeviceSettings.KEY_OTG_POWER, DEFAULT_OTG_POWER_MODE);
29 | if (!mode.equals(DEFAULT_OTG_POWER_MODE))
30 | Utils.writeValue(FILE, mode);
31 | }
32 | }
33 |
34 | @Override
35 | public boolean onPreferenceChange(Preference preference, Object newValue) {
36 | Utils.writeValue(FILE, (String)newValue);
37 | return true;
38 | }
39 | }
40 |
41 |
--------------------------------------------------------------------------------
/apps/ExtendedSettings/src/com/cyanogenmod/settings/device/PerformanceFragmentActivity.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2013 The CyanogenMod Project
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.cyanogenmod.settings.device;
18 |
19 | import android.content.Context;
20 | import android.os.Bundle;
21 | import android.preference.CheckBoxPreference;
22 | import android.preference.PreferenceFragment;
23 |
24 | import com.cyanogenmod.settings.device.R;
25 |
26 | public class PerformanceFragmentActivity extends PreferenceFragment {
27 |
28 | @Override
29 | public void onCreate(Bundle savedInstanceState) {
30 | super.onCreate(savedInstanceState);
31 |
32 | addPreferencesFromResource(R.xml.performance_preferences);
33 | }
34 |
35 | @Override
36 | public void onActivityCreated(Bundle savedInstanceState) {
37 | super.onActivityCreated(savedInstanceState);
38 | }
39 |
40 | public static void restore(Context context) {
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/validityservice/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
22 |
23 |
24 |
25 |
31 |
32 |
34 |
35 |
36 |
37 |
38 |
--------------------------------------------------------------------------------
/libsensors/LightSensor.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2011 Samsung
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | #ifndef ANDROID_LIGHT_SENSOR_H
18 | #define ANDROID_LIGHT_SENSOR_H
19 |
20 | #include
21 | #include
22 | #include
23 | #include
24 |
25 | #include "sensors_local.h"
26 | #include "SamsungSensorBase.h"
27 | #include "InputEventReader.h"
28 |
29 | /*****************************************************************************/
30 |
31 | struct input_event;
32 |
33 | class LightSensor: public SamsungSensorBase {
34 | public:
35 | LightSensor();
36 |
37 | virtual bool handleEvent(input_event const * event);
38 |
39 | private:
40 | /* Ambient Light Sensor (ALS) channel data */
41 | int mALSData;
42 | /* White channel data */
43 | int mWhiteData;
44 | /* last reported lux value (-1 if uninitialized)*/
45 | int mLastLux;
46 | };
47 |
48 | /*****************************************************************************/
49 |
50 | #endif /* ANDROID_LIGHT_SENSOR_H */
51 |
--------------------------------------------------------------------------------
/overlay/frameworks/base/core/res/res/values/cm_arrays.xml:
--------------------------------------------------------------------------------
1 |
2 |
19 |
20 |
21 |
22 |
28 |
29 |
31 |
37 |
38 |
39 |
--------------------------------------------------------------------------------
/overlay/packages/services/Telephony/res/values/config.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
19 |
20 |
21 |
22 |
25 | true
26 |
27 |
28 | true
29 |
30 |
31 | true
32 |
33 |
34 | false
35 |
36 |
--------------------------------------------------------------------------------
/lineagehw/org/lineageos/hardware/KeyDisabler.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2014 The CyanogenMod Project
3 | * Copyright (C) 2017 The LineageOS Project
4 | *
5 | * Licensed under the Apache License, Version 2.0 (the "License");
6 | * you may not use this file except in compliance with the License.
7 | * You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | package org.lineageos.hardware;
19 |
20 | import org.lineageos.internal.util.FileUtils;
21 |
22 | /*
23 | * Disable capacitive keys
24 | *
25 | * This is intended for use on devices in which the capacitive keys
26 | * can be fully disabled for replacement with a soft navbar. You
27 | * really should not be using this on a device with mechanical or
28 | * otherwise visible-when-inactive keys
29 | */
30 |
31 | public class KeyDisabler {
32 |
33 | private static String CONTROL_PATH = "/sys/class/sec/sec_touchkey/input/enabled";
34 |
35 | public static boolean isSupported() {
36 | return true;
37 | }
38 |
39 | public static boolean isActive() {
40 | return (FileUtils.readOneLine(CONTROL_PATH).equals("0"));
41 | }
42 |
43 | public static boolean setActive(boolean state) {
44 | return FileUtils.writeLine(CONTROL_PATH, (state ? "0" : "1"));
45 | }
46 |
47 | }
48 |
--------------------------------------------------------------------------------
/validityservice/src/com/validity/fingerprint/VLog.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2016 The Android Open Source Project
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.validity.fingerprint;
18 |
19 | import android.util.Log;
20 |
21 | public class VLog {
22 | private static final String TAG = "ValidityService";
23 | private static final boolean DEBUG = false;
24 |
25 | public static void i(final String message) {
26 | Log.i(TAG, message);
27 | }
28 |
29 | public static void d(final String message) {
30 | if (DEBUG) {
31 | Log.d(TAG, message);
32 | }
33 | }
34 |
35 | public static void v(final String message) {
36 | if (DEBUG) {
37 | Log.v(TAG, message);
38 | }
39 | }
40 |
41 | public static void e(final String message, final Throwable t) {
42 | Log.e(TAG, message, t);
43 | }
44 |
45 | public static void e(final String message) {
46 | Log.e(TAG, message);
47 | }
48 |
49 | public static void w(final String message, final Throwable t) {
50 | Log.w(TAG, message, t);
51 | }
52 |
53 | public static void w(final String message) {
54 | Log.w(TAG, message);
55 | }
56 | }
57 |
--------------------------------------------------------------------------------
/apps/ExtendedSettings/res/values-pt/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 | Configurações Avançadas
18 |
19 | Tela
20 | Botões Touch
21 | Tempo Limite da Iluminação
22 | Ajuste o tempo para desligar a iluminação dos Botões Touch
23 |
24 | Calibração horizontal
25 | Calibrar horizontalmente utilizando o acelerómetro
26 | Coloque o dispositivo numa superfície de nível e toque em Calibrar
27 | A calibrar. Não desloque o dispositivo. Aguarde...
28 | Impossível encontrar ficheiro de deslocamento. Tente novamente
29 | Calibrada
30 | Concluída
31 | Calibrar
32 |
33 |
--------------------------------------------------------------------------------
/libsensors/ProximitySensor.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2011 Samsung
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | #ifndef ANDROID_PROXIMITY_SENSOR_H
18 | #define ANDROID_PROXIMITY_SENSOR_H
19 |
20 | #include
21 | #include
22 | #include
23 | #include
24 |
25 | #include "sensors_local.h"
26 | #include "SamsungSensorBase.h"
27 | #include "InputEventReader.h"
28 |
29 | /* the CM36686 is a binary proximity sensor that triggers around 5 cm on
30 | * this hardware */
31 | #define PROXIMITY_THRESHOLD_CM36686 5.0f
32 |
33 | /*****************************************************************************/
34 |
35 | struct input_event;
36 |
37 | class ProximitySensor: public SamsungSensorBase {
38 | public:
39 | ProximitySensor();
40 |
41 | virtual int setDelay(int32_t handle, int64_t ns);
42 | virtual bool hasPendingEvents() const;
43 |
44 | virtual int handleEnable(int en);
45 | virtual bool handleEvent(input_event const * event);
46 |
47 | float indexToValue(size_t index) const;
48 |
49 | private:
50 | int mFar; // 0: close, 1: far
51 | int mLastFar; // last reported mFar value, -1 if uninitialized
52 | };
53 |
54 | /*****************************************************************************/
55 |
56 | #endif /* ANDROID_PROXIMITY_SENSOR_H */
57 |
--------------------------------------------------------------------------------
/overlay/frameworks/base/core/res/res/xml/power_profile.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | - 0
4 | - 70
5 | - 176
6 | - 1
7 | - 145
8 | - 4
9 | - 171
10 | - 240
11 | - 4
12 | - 38
13 | - 189
14 | - 250
15 | - 82
16 |
17 | 3.4
18 | 3.4
19 |
20 |
21 | 1400000
22 | 1300000
23 | 1200000
24 | 1100000
25 | 1000000
26 | 900000
27 | 800000
28 | 700000
29 | 600000
30 | 500000
31 | 400000
32 |
33 | - 2.7
34 | - 0.15
35 |
36 | 134
37 | 97
38 | 86
39 | 78
40 | 72
41 | 64
42 | 60
43 | 55
44 | 50
45 | 46
46 | 43
47 |
48 | - 2100
49 |
50 | .0002
51 | .002
52 | .02
53 | .2
54 | 2
55 |
56 |
57 |
58 |
--------------------------------------------------------------------------------
/libsensors/HeartRateSensor.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2011 Samsung
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | #ifndef ANDROID_HEARTRATE_SENSOR_H
18 | #define ANDROID_HEARTRATE_SENSOR_H
19 |
20 | #include
21 | #include
22 | #include
23 | #include
24 |
25 | #include "sensors_local.h"
26 | #include "SamsungSensorBase.h"
27 | #include "InputEventReader.h"
28 |
29 | /*****************************************************************************/
30 |
31 | struct input_event;
32 |
33 | class HeartRateSensor: public SamsungSensorBase
34 | {
35 | public:
36 | HeartRateSensor();
37 | ~HeartRateSensor();
38 |
39 | virtual int enable(int32_t handle, int en);
40 | virtual bool handleEvent(input_event const * event);
41 |
42 | private:
43 |
44 | bool sync();
45 |
46 | void pulseDetectReset();
47 | bool pulseDetect(int *chanSums, int *chanData);
48 |
49 | private:
50 |
51 | int mRawBuffer[8];
52 | int mRawBufferIndex;
53 | int mSumSlotA;
54 | int mSumSlotB;
55 | int mSubMode;
56 |
57 | private:
58 |
59 | int mAvg[8];
60 | int mMinVal[8];
61 | int mMaxVal[8];
62 | bool mLastDetect;
63 | int mBpm;
64 | int64_t mLastPulseTime;
65 | };
66 |
67 | /*****************************************************************************/
68 |
69 | #endif /* ANDROID_HEARTRATE_SENSOR_H */
70 |
--------------------------------------------------------------------------------
/apps/ExtendedSettings/res/xml/touchkey_preferences.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 |
19 |
20 |
27 |
32 |
33 |
34 |
35 |
36 |
40 |
41 |
42 |
--------------------------------------------------------------------------------
/apps/ExtendedSettings/res/values-zh-rCN/arrays.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 | - 默认 (1.6 秒)
19 | - 0.5 秒
20 | - 1 秒
21 | - 2 秒
22 | - 5 秒
23 | - 极速关闭
24 |
25 |
26 |
27 | - 不使用
28 | - 呼吸灯
29 | - 常亮灯
30 | - 呼吸和常亮灯
31 |
32 |
33 |
34 | - 10 秒
35 | - 15 秒
36 | - 20 秒
37 | - 30 秒
38 | - 1 分钟
39 | - 2 分钟
40 | - 5 分钟
41 | - 10 分钟
42 | - 15 分钟
43 | - 30 分钟
44 | - 45 分钟
45 | - 1 小时
46 |
47 |
48 |
49 | - 0.25 秒
50 | - 0.5 秒
51 | - 1 秒
52 | - 1.5 秒
53 | - 2 秒
54 | - 3 秒
55 | - 4 秒
56 | - 5 秒
57 |
58 |
59 |
--------------------------------------------------------------------------------
/libsensors/SamsungSensorBase.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2011 Samsung
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | #ifndef SAMSUNG_SENSORBASE_H
18 | #define SAMSUNG_SENSORBASE_H
19 |
20 | #include
21 | #include
22 | #include
23 | #include
24 | #include
25 |
26 | #include "sensors.h"
27 | #include "SensorBase.h"
28 | #include "InputEventReader.h"
29 |
30 | #define UNUSED(expr) (void)(expr)
31 |
32 | /*****************************************************************************/
33 |
34 | class SamsungSensorBase:public SensorBase {
35 | protected:
36 | bool mEnabled;
37 | bool mHasPendingEvent;
38 | int64_t mDelay;
39 | InputEventCircularReader mInputReader;
40 | sensors_event_t mPendingEvent;
41 | char *mInputSysfsEnable;
42 | char *mInputSysfsPollDelay;
43 | pthread_mutex_t mLock;
44 |
45 | char *makeSysfsName(const char *input_name,
46 | const char *input_file);
47 |
48 | virtual int handleEnable(int en);
49 | virtual bool handleEvent(input_event const * event);
50 |
51 | public:
52 | SamsungSensorBase(const char* dev_name,
53 | const char* data_name);
54 |
55 | virtual ~SamsungSensorBase();
56 | virtual int enable(int32_t handle, int en);
57 | virtual int setDelay(int32_t handle, int64_t ns);
58 | virtual int readEvents(sensors_event_t *data, int count);
59 | };
60 | #endif /* SAMSUNG_SENSORBASE_H */
61 |
--------------------------------------------------------------------------------
/apps/ExtendedSettings/src/com/cyanogenmod/settings/device/FastCharge.java:
--------------------------------------------------------------------------------
1 | package com.cyanogenmod.settings.device;
2 |
3 | import android.content.Context;
4 | import android.content.Intent;
5 | import android.content.IntentFilter;
6 | import android.os.BatteryManager;
7 | import android.preference.Preference;
8 | import android.preference.Preference.OnPreferenceChangeListener;
9 | import android.widget.Toast;
10 |
11 | public class FastCharge implements OnPreferenceChangeListener {
12 |
13 | private static final String FILE = "/sys/kernel/fast_charge/force_fast_charge";
14 | private Context mContext;
15 |
16 | public FastCharge(Context context) {
17 | mContext = context;
18 | }
19 |
20 | public static String getFilePath() {
21 | return FILE;
22 | }
23 |
24 | public static boolean isSupported() {
25 | return Utils.fileExists(FILE);
26 | }
27 |
28 | public static boolean isActive() {
29 | return isSupported() && (Utils.readValue(FILE)).equals("1");
30 | }
31 |
32 | /**
33 | * Restore fast charge setting from SharedPreferences. (Write to kernel.)
34 | * @param context The context to read the SharedPreferences from
35 | */
36 | public static void restore(Context context) {
37 | if (!isSupported()) {
38 | return;
39 | }
40 | }
41 |
42 | @Override
43 | public boolean onPreferenceChange(Preference preference, Object newValue) {
44 | Intent intent = mContext.registerReceiver(null, new IntentFilter(Intent.ACTION_BATTERY_CHANGED));
45 | int plugged = intent.getIntExtra(BatteryManager.EXTRA_PLUGGED, -1);
46 | boolean USBIsPlugged = (plugged == BatteryManager.BATTERY_PLUGGED_AC || plugged == BatteryManager.BATTERY_PLUGGED_USB);
47 |
48 | if (USBIsPlugged == true) {
49 | Toast.makeText(mContext, mContext.getString(R.string.force_fast_charge_usbwarning), Toast.LENGTH_SHORT).show();
50 | return false;
51 | } else {
52 | Utils.writeValue(FILE, ((Boolean)newValue) ? "1" : "0");
53 | return true;
54 | }
55 | }
56 |
57 | }
58 |
59 |
--------------------------------------------------------------------------------
/apps/ExtendedSettings/res/values-pl/arrays.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 | - Domyślnie (1.6 sekundy)
19 | - 0.5 sekundy
20 | - 1 sekunda
21 | - 2 sekundy
22 | - 5 sekund
23 | - Nigdy
24 |
25 |
26 |
27 | - Wyłączone
28 | - Migotanie
29 | - Światło ciągłe
30 | - Migotanie i światło ciągłe
31 |
32 |
33 |
34 | - 10 sekund
35 | - 15 sekund
36 | - 20 sekund
37 | - 30 sekund
38 | - 1 minuta
39 | - 2 minuty
40 | - 5 minut
41 | - 10 minut
42 | - 15 minut
43 | - 30 minut
44 | - 45 minut
45 | - 1 godzina
46 |
47 |
48 |
49 | - 0.25 sekundy
50 | - 0.5 sekundy
51 | - 1 sekunda
52 | - 1.5 sekundy
53 | - 2 sekundy
54 | - 3 sekundy
55 | - 4 sekundy
56 | - 5 sekundy
57 |
58 |
59 |
--------------------------------------------------------------------------------
/apps/ExtendedSettings/res/values-it/arrays.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 | - Default (1.6 secondi)
19 | - 0.5 secondi
20 | - 1 secondo
21 | - 2 secondi
22 | - 5 secondi
23 | - Mai
24 |
25 |
26 |
27 | - Disabilitato
28 | - Led lampeggianti
29 | - Led fissi
30 | - Led lampeggianti, poi fissi
31 |
32 |
33 |
34 | - 10 secondi
35 | - 15 secondi
36 | - 20 secondi
37 | - 30 secondi
38 | - 1 minuto
39 | - 2 minuti
40 | - 5 minuti
41 | - 10 minuti
42 | - 15 minuti
43 | - 30 minuti
44 | - 45 minuti
45 | - 1 ora
46 |
47 |
48 |
49 | - 0.25 secondi
50 | - 0.5 secondi
51 | - 1 secondo
52 | - 1.5 secondi
53 | - 2 secondi
54 | - 3 secondi
55 | - 4 secondi
56 | - 5 secondi
57 |
58 |
59 |
--------------------------------------------------------------------------------
/apps/ExtendedSettings/res/xml/general_preferences.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 |
19 |
20 |
26 |
27 |
28 |
29 |
30 |
35 |
36 |
37 |
38 |
39 |
46 |
47 |
48 |
49 |
--------------------------------------------------------------------------------
/apps/ExtendedSettings/res/values-es/arrays.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 | - Por defecto (1.6 segundos)
19 | - 0.5 segundos
20 | - 1 segundos
21 | - 2 segundos
22 | - 5 segundos
23 | - Nunca
24 |
25 |
26 |
27 | - Desactivadas
28 | - Parpadeo
29 | - Fijas
30 | - Parpadeo y después fijas
31 |
32 |
33 |
34 | - 10 segundos
35 | - 15 segundos
36 | - 20 segundos
37 | - 30 segundos
38 | - 1 minuto
39 | - 2 minutos
40 | - 5 minutos
41 | - 10 minutos
42 | - 15 minutos
43 | - 30 minutos
44 | - 45 minutos
45 | - 1 hora
46 |
47 |
48 |
49 | - 0.25 segundos
50 | - 0.5 segundos
51 | - 1 segundos
52 | - 1.5 segundos
53 | - 2 segundos
54 | - 3 segundos
55 | - 4 segundos
56 | - 5 segundos
57 |
58 |
59 |
--------------------------------------------------------------------------------
/apps/ExtendedSettings/res/values-hu/arrays.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 | - Alapértelmezett (1.6 maásodperc)
19 | - 0.5 másodperc
20 | - 1 másodperc
21 | - 2 másodperc
22 | - 5 másodperc
23 | - Soha
24 |
25 |
26 |
27 | - Kikapcsolva
28 | - Villogás
29 | - Folytonos
30 | - Villogás és folytonos felváltva
31 |
32 |
33 |
34 | - 10 másodperc
35 | - 15 másodperc
36 | - 20 másodperc
37 | - 30 másodperc
38 | - 1 perc
39 | - 2 perc
40 | - 5 perc
41 | - 10 perc
42 | - 15 perc
43 | - 30 perc
44 | - 45 perc
45 | - 1 óra
46 |
47 |
48 |
49 | - 0.25 másodperc
50 | - 0.5 másodperc
51 | - 1 másodperc
52 | - 1.5 másodperc
53 | - 2 másodperc
54 | - 3 másodperc
55 | - 4 másodperc
56 | - 5 másodperc
57 |
58 |
59 |
--------------------------------------------------------------------------------
/apps/ExtendedSettings/res/values-nl/arrays.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 | - Standaard (1.6 seconden)
19 | - 0.5 seconden
20 | - 1 seconden
21 | - 2 seconden
22 | - 5 seconden
23 | - Nooit
24 |
25 |
26 |
27 | - Uitgeschakeld
28 | - Knipperend licht
29 | - Continu licht
30 | - Knipperend en continu licht
31 |
32 |
33 |
34 | - 10 seconden
35 | - 15 seconden
36 | - 20 seconden
37 | - 30 seconden
38 | - 1 minuut
39 | - 2 minuut
40 | - 5 minuut
41 | - 10 minuut
42 | - 15 minuut
43 | - 30 minuut
44 | - 45 minuut
45 | - 1 uur
46 |
47 |
48 |
49 | - 0.25 seconden
50 | - 0.5 seconden
51 | - 1 seconden
52 | - 1.5 seconden
53 | - 2 seconden
54 | - 3 seconden
55 | - 4 seconden
56 | - 5 seconden
57 |
58 |
59 |
--------------------------------------------------------------------------------
/apps/ExtendedSettings/res/values-el/arrays.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 | - Προκαθορισμένο (1.6 δευτερόλεπτα)
19 | - 0.5 δευτερόλεπτα
20 | - 1 δευτερόλεπτα
21 | - 2 δευτερόλεπτα
22 | - 5 δευτερόλεπτα
23 | - Ποτέ
24 |
25 |
26 |
27 | - Απενεργοποιημένο
28 | - Φώτα που αναβοσβήνουν
29 | - Στατικά Φώτα
30 | - Φώτα που είναι στατικά και αναβοσβήνουν
31 |
32 |
33 |
34 | - 10 δευτερόλεπτα
35 | - 15 δευτερόλεπτα
36 | - 20 δευτερόλεπτα
37 | - 30 δευτερόλεπτα
38 | - 1 λεπτό
39 | - 2 λεπτά
40 | - 5 λεπτά
41 | - 10 λεπτά
42 | - 15 λεπτά
43 | - 30 λεπτά
44 | - 45 λεπτά
45 | - 1 ώρα
46 |
47 |
48 |
49 | - 0.25 δευτερόλεπτα
50 | - 0.5 δευτερόλεπτα
51 | - 1 δευτερόλεπτα
52 | - 1.5 δευτερόλεπτα
53 | - 2 δευτερόλεπτα
54 | - 3 δευτερόλεπτα
55 | - 4 δευτερόλεπτα
56 | - 5 δευτερόλεπτα
57 |
58 |
59 |
--------------------------------------------------------------------------------
/rootdir/etc/fstab.universal3470:
--------------------------------------------------------------------------------
1 | # Android fstab file.
2 | #
3 | # The filesystem that contains the filesystem checker binary (typically /system) cannot
4 | # specify MF_CHECK, and must come before any filesystems that do specify MF_CHECK
5 | # data partition must be located at the bottom for supporting device encryption
6 |
7 |
8 | /dev/block/platform/dw_mmc.0/by-name/SYSTEM /system ext4 ro,errors=panic wait
9 | /dev/block/platform/dw_mmc.0/by-name/USERDATA /data f2fs nosuid,nodev,noatime,rw,inline_xattr wait,check,encryptable=footer,length=-16384
10 | /dev/block/platform/dw_mmc.0/by-name/USERDATA /data ext4 nosuid,nodev,noatime,noauto_da_alloc,discard,journal_async_commit,errors=panic wait,check,encryptable=footer,length=-16384
11 | /dev/block/platform/dw_mmc.0/by-name/CACHE /cache f2fs nosuid,nodev,noatime,rw,inline_xattr wait,check
12 | /dev/block/platform/dw_mmc.0/by-name/CACHE /cache ext4 nosuid,nodev,noatime,noauto_da_alloc,discard,journal_async_commit,errors=panic wait,check
13 | /dev/block/platform/dw_mmc.0/by-name/EFS /efs ext4 nosuid,nodev,noatime,noauto_da_alloc,discard,journal_async_commit,errors=panic wait,check
14 | /dev/block/platform/dw_mmc.0/by-name/OTA /misc emmc defaults defaults
15 | /dev/block/platform/dw_mmc.0/by-name/BOOT /boot emmc defaults recoveryonly
16 | /dev/block/platform/dw_mmc.0/by-name/RECOVERY /recovery emmc defaults recoveryonly
17 |
18 | # VOLD
19 | /devices/platform/dw_mmc.2/mmc_host/mmc2* auto auto defaults voldmanaged=sdcard1:auto,encryptable=userdata
20 | /devices/platform/s5p-ehci/usb1* auto auto defaults voldmanaged=usb:auto
21 |
--------------------------------------------------------------------------------
/apps/ExtendedSettings/res/values-de/arrays.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 | - Default (1.6 Sekunden)
19 | - 0.5 Sekunden
20 | - 1 Sekunde
21 | - 2 Sekunden
22 | - 5 Sekunden
23 | - Nie
24 |
25 |
26 |
27 | - Deaktiviert
28 | - Intervall
29 | - Statisch
30 | - Intervall und statisch
31 |
32 |
33 |
34 | - 10 Sekunden
35 | - 15 Sekunden
36 | - 20 Sekunden
37 | - 30 Sekunden
38 | - 1 Minute
39 | - 2 Minuten
40 | - 5 Minuten
41 | - 10 Minuten
42 | - 15 Minuten
43 | - 30 Minuten
44 | - 45 Minuten
45 | - 1 Stunde
46 |
47 |
48 |
49 | - 0.25 Sekunden
50 | - 0.5 Sekunden
51 | - 1 Sekunde
52 | - 1.5 Sekunden
53 | - 2 Sekunden
54 | - 3 Sekunden
55 | - 4 Sekunden
56 | - 5 Sekunden
57 |
58 |
59 |
60 | - Aktiv (Nicht wasserfest)
61 | - Passiv (Default / Wasserfest)
62 | - Passiv + Laden (Wasserfest)
63 |
64 |
65 |
--------------------------------------------------------------------------------
/apps/ExtendedSettings/res/values-sr/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 | Напредна подешавања
18 |
19 | Додирни тастери
20 | Осветљеност тастера
21 | Подеси дужину трајања осветљености
22 | Осветљеност тастера при додиру екрана
23 | Укључује осветљеност приликом додира екрана
24 |
25 | Екран
26 | Хоризонтална калибрација
27 | Хоризонтална калибрација помоћу акцелерометра
28 | Поставите уређај на равну површину и притисните Калибриши
29 | Калибрација у току. Не померајте уређај. Сачекајте...
30 | Није могуће пронаћи offset фајл. Покушајте поново
31 | Калибрисано
32 | Заврши
33 | Калибриши
34 |
35 | Брзо пуњење
36 | Укључи брзо пуњење
37 | Препознај USB конекцију рачунара као зидни прикључак за брже пуњење
38 |
39 | Нежељени притисци тастера
40 | Одбацивање нежељених притисака
41 | Одбацивање нежељених притисака тастера, узрокованих сметњама антене (екстерна апликација)
42 |
43 |
--------------------------------------------------------------------------------
/apps/ExtendedSettings/res/values-ru/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 | Расширенные настройки
18 |
19 | Сенсорные кнопки
20 | Подсветка кнопок
21 | Настройка времени подсветки сенсорных кнопок
22 | Подсветка при касании экрана
23 | Включение подсветки при касании сенсорного экрана
24 |
25 | Экран
26 | Горизонтальная калибровка
27 | Горизонтальная калибровка с помощью акселерометра
28 | Положите устройство на ровную поверхность и нажмите "Калибровка"
29 | Калибровка. Не перемещайте устройство. Пожалуйста, подождите...
30 | Невозможно найти файл калибровки. Попытайтесь снова
31 | Откалибровано
32 | Завершено
33 | Калибровка
34 |
35 | Поддержка быстрой зарядки
36 | Быстрая зарядка
37 | Определяет компьютер, подключенный через USB-порт, как зарядное устройство для более быстрого режима зарядки.
38 |
39 | Фантомные нажатия
40 | Фильтр фантомных нажатий
41 | Фильтр ненужных нажатий на кнопки, возникающих из-за интерференции антенны (дополнительное приложение)
42 |
43 |
--------------------------------------------------------------------------------
/apps/ExtendedSettings/res/values-ro/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 | Setari Avansate
18 |
19 | Tastele Sensibile la atingere
20 | Durata iluminarii de fundal
21 | Reglarea unei intarzieri inainte ca lumina de fundal a tastelor tactile sa se opreasca
22 | Iluminare tastelor la atingerea ecranului
23 | Activarea starii luminei de fundal a tastelor tactile la atingerea ecranului
24 |
25 | Ecran
26 | Calibrare orizontala
27 | Calibrare orizontala folosind accelerometrul
28 | Plasati dispozitivul pe o suprafata dreapta si apasati Calibrare
29 | Se calibreaza.Nu misca dispozitivul.Te rugam sa astepti...
30 | Imposibil de gasit fisierul.Incercati din nou
31 | Calibrat
32 | Terminat
33 | Calibreaza
34 |
35 | Suport pentru Incarcarea Rapida
36 | Fortarea Incarcarii Rapide
37 | Detectarea USB--ului conectat la PC ca un incarcator, pentru o incarcare mai rapida
38 |
39 | Atingerile "fantoma"
40 | Filtru pentru atingerile "fantoma"
41 | Filtrarea atingerilor nedorite cauzate de interferenta antenei (folosind o aplicatie externa)
42 |
43 |
--------------------------------------------------------------------------------
/lineagehw/org/lineageos/hardware/AdaptiveBacklight.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2013 The CyanogenMod Project
3 | * Copyright (C) 2017 The LineageOS Project
4 | *
5 | * Licensed under the Apache License, Version 2.0 (the "License");
6 | * you may not use this file except in compliance with the License.
7 | * You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | package org.lineageos.hardware;
19 |
20 | import org.lineageos.internal.util.FileUtils;
21 |
22 | import android.os.SystemProperties;
23 | import android.text.TextUtils;
24 |
25 | import java.io.File;
26 |
27 | /**
28 | * Adaptive backlight support (this refers to technologies like NVIDIA SmartDimmer,
29 | * QCOM CABL or Samsung CABC).
30 | */
31 | public class AdaptiveBacklight {
32 |
33 | private static String FILE_CABC = SystemProperties.get("ro.cm.hardware.cabc", "/sys/class/lcd/panel/power_reduce");
34 |
35 | /**
36 | * Whether device supports an adaptive backlight technology.
37 | *
38 | * @return boolean Supported devices must return always true
39 | */
40 | public static boolean isSupported() {
41 | File f = new File(FILE_CABC);
42 | return f.exists();
43 | }
44 |
45 | /**
46 | * This method return the current activation status of the adaptive backlight technology.
47 | *
48 | * @return boolean Must be false when adaptive backlight is not supported or not activated, or
49 | * the operation failed while reading the status; true in any other case.
50 | */
51 | public static boolean isEnabled() {
52 | if (TextUtils.equals(FileUtils.readOneLine(FILE_CABC), "1")) {
53 | return true;
54 | } else {
55 | return false;
56 | }
57 | }
58 |
59 | /**
60 | * This method allows to setup adaptive backlight technology status.
61 | *
62 | * @param status The new adaptive backlight status
63 | * @return boolean Must be false if adaptive backlight is not supported or the operation
64 | * failed; true in any other case.
65 | */
66 | public static boolean setEnabled(boolean status) {
67 | if (status == true) {
68 | return FileUtils.writeLine(FILE_CABC, "1");
69 | } else {
70 | return FileUtils.writeLine(FILE_CABC, "0");
71 | }
72 | }
73 | }
74 |
--------------------------------------------------------------------------------
/rootdir/etc/init.wifi.rc:
--------------------------------------------------------------------------------
1 | on post-fs-data
2 | # give system access to wpa_supplicant.conf for backup and restore
3 | mkdir /data/misc/wifi 0770 wifi system
4 | chmod 0660 /data/misc/wifi/wpa_supplicant.conf
5 | mkdir /data/misc/wifi/sockets 0770 wifi wifi
6 | mkdir /data/misc/dhcp 0775 dhcp dhcp
7 | chown dhcp dhcp /data/misc/dhcp
8 |
9 | # for WIFI TRP/TIS
10 | chown system root /data/.psm.info
11 | chmod 0664 /data/.psm.info
12 |
13 | # for WIFI Version
14 | write /data/.wifiver.info 0
15 | chown system root /data/.wifiver.info
16 | chmod 0666 /data/.wifiver.info
17 |
18 | # for WIFI Cert
19 | chmod 0664 /data/.bustxglom.info
20 | chmod 0664 /data/.roamoff.info
21 | chmod 0664 /data/.frameburst.info
22 | chmod 0664 /data/.txbf.info
23 | # for WIFI MAC address
24 | mkdir /efs/wifi 0775 radio system
25 | chown system wifi /efs/wifi/.mac.info
26 | chmod 0660 /efs/wifi/.mac.info
27 |
28 | # Wifi firmware reload path
29 | chown wifi wifi /sys/module/dhd/parameters/firmware_path
30 |
31 | on boot
32 | setprop wifi.interface wlan0
33 |
34 | # Run deferred initcalls of builtin kernel modules (bcmdhd)
35 | service wifiloader /system/bin/wifiloader
36 | class main
37 | # seclabel u:r:wifiloader:s0
38 | oneshot
39 |
40 | service wpa_supplicant /vendor/bin/hw/wpa_supplicant \
41 | -iwlan0 -Dnl80211 -c/data/misc/wifi/wpa_supplicant.conf \
42 | -I/system/etc/wifi/wpa_supplicant_overlay.conf -O/data/misc/wifi/sockets -N \
43 | -ip2p0 -Dnl80211 -c/data/misc/wifi/p2p_supplicant.conf \
44 | -I/system/etc/wifi/p2p_supplicant_overlay.conf \
45 | -puse_p2p_group_interface=1 -puse_multi_chan_concurrent=1 \
46 | -e/data/misc/wifi/entropy.bin -g@android:wpa_wlan0
47 | class main
48 | socket wpa_wlan0 dgram 660 wifi wifi
49 | disabled
50 | group system wakelock
51 | oneshot
52 |
53 | # start for WiFi MFG (TestMode)
54 | service mfgloader /system/bin/mfgloader
55 | class main
56 | disabled
57 | oneshot
58 |
59 | service wlandutservice /system/bin/wlandutservice
60 | class main
61 | user system
62 | group wifi net_raw net_admin system inet
63 | disabled
64 | oneshot
65 |
66 | service macloader /system/bin/macloader
67 | class main
68 | # seclabel u:r:macloader:s0
69 | oneshot
70 |
71 | on property:init.svc.macloader=stopped
72 | chown system root /data/.cid.info
73 | chmod 0664 /data/.cid.info
74 | chown system root /data/.rev
75 | chmod 0664 /data/.rev
76 |
77 | # end of WiFi MFG (TestMode)
78 |
79 | service olsrd /system/bin/olsrd -f /etc/wifi/olsrd.conf
80 | class main
81 | disabled
82 | oneshot
83 |
84 | on property:init.svc.dhcpcd_ibss=running
85 | start olsrd
86 |
87 | on property:init.svc.dhcpcd_ibss=stopped
88 | stop olsrd
89 |
90 |
--------------------------------------------------------------------------------
/power/power.c:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2014, The CyanogenMod Project
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 | #include
17 | #include
18 | #include
19 | #include
20 | #include
21 |
22 | #define LOG_TAG "Exynos3 PowerHAL"
23 | #include
24 |
25 | #include
26 | #include
27 |
28 | #define TOUCHKEY_POWER "/sys/class/sec/sec_touchkey/input/enabled"
29 | #define TOUCHSCREEN_POWER "/sys/class/sec/tsp/input/enabled"
30 | #define BATT_LCD_POWER "/sys/class/power_supply/battery/lcd"
31 |
32 | static void sysfs_write(char *path, char *s) {
33 | char buf[80];
34 | int len;
35 | int fd = open(path, O_WRONLY);
36 |
37 | if (fd < 0) {
38 | strerror_r(errno, buf, sizeof(buf));
39 | ALOGE("Error opening %s: %s\n", path, buf);
40 | return;
41 | }
42 |
43 | len = write(fd, s, strlen(s));
44 | if (len < 0) {
45 | strerror_r(errno, buf, sizeof(buf));
46 | ALOGE("Error writing to %s: %s\n", path, buf);
47 | }
48 |
49 | close(fd);
50 | }
51 |
52 | static void power_init(struct power_module *module)
53 | {
54 | }
55 |
56 | static void power_set_interactive(struct power_module *module, int on)
57 | {
58 | ALOGD("%s: %s input devices", __func__, on ? "enabling" : "disabling");
59 | sysfs_write(TOUCHSCREEN_POWER, on ? "1" : "0");
60 | sysfs_write(TOUCHKEY_POWER, on ? "1" : "0");
61 | sysfs_write(BATT_LCD_POWER, on ? "1" : "0");
62 | }
63 |
64 | static void power_hint(struct power_module *module, power_hint_t hint,
65 | void *data) {
66 | switch (hint) {
67 | default:
68 | break;
69 | }
70 | }
71 |
72 | static struct hw_module_methods_t power_module_methods = {
73 | .open = NULL,
74 | };
75 |
76 | struct power_module HAL_MODULE_INFO_SYM = {
77 | .common = {
78 | .tag = HARDWARE_MODULE_TAG,
79 | .module_api_version = POWER_MODULE_API_VERSION_0_2,
80 | .hal_api_version = HARDWARE_HAL_API_VERSION,
81 | .id = POWER_HARDWARE_MODULE_ID,
82 | .name = "Exynos3 Power HAL",
83 | .author = "The CyanogenMod Project",
84 | .methods = &power_module_methods,
85 | },
86 |
87 | .init = power_init,
88 | .setInteractive = power_set_interactive,
89 | .powerHint = power_hint,
90 | };
91 |
--------------------------------------------------------------------------------
/apps/ExtendedSettings/res/xml/bln_preferences.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 |
19 |
20 |
27 |
34 |
41 |
48 |
55 |
56 |
57 |
58 |
--------------------------------------------------------------------------------
/libsensors/ProximitySensor.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2011 Samsung
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | #include
18 | #include
19 | #include
20 | #include
21 | #include
22 | #include
23 | #include
24 | #include
25 |
26 | #include
27 |
28 | #include "ProximitySensor.h"
29 |
30 | #define PROXIMITY_EVENT_DEBUG 0
31 |
32 | /*
33 | * Datasheet CM36686 (Capella Micro) is available under the
34 | * alias name VCNL4040M3OE (Vishay).
35 | */
36 |
37 | ProximitySensor::ProximitySensor() :
38 | SamsungSensorBase(NULL, "proximity_sensor"),
39 | mFar(0),
40 | mLastFar(-1)
41 | {
42 | mPendingEvent.sensor = ID_PX;
43 | mPendingEvent.type = SENSOR_TYPE_PROXIMITY;
44 | }
45 |
46 | int ProximitySensor::setDelay(int32_t handle, int64_t ns)
47 | {
48 | UNUSED(handle);
49 | UNUSED(ns);
50 | return -1;
51 | }
52 |
53 | bool ProximitySensor::hasPendingEvents() const
54 | {
55 | return mHasPendingEvent;
56 | }
57 |
58 | int ProximitySensor::handleEnable(int en)
59 | {
60 | if (!en)
61 | return 0;
62 |
63 | struct input_absinfo absinfo;
64 | if (!ioctl(data_fd, EVIOCGABS(ABS_DISTANCE), &absinfo)) {
65 | mHasPendingEvent = true;
66 | mPendingEvent.distance = indexToValue(absinfo.value);
67 | return 0;
68 | } else {
69 | return -1;
70 | }
71 | }
72 |
73 | float ProximitySensor::indexToValue(size_t index) const
74 | {
75 | // index: 0 is close, 1 is far
76 | return index * PROXIMITY_THRESHOLD_CM36686;
77 | }
78 |
79 | bool ProximitySensor::handleEvent(input_event const *event)
80 | {
81 | /*
82 | * See kernel drivers/sensors/cm36686.c for event details.
83 | */
84 |
85 | if (event->type == EV_ABS) {
86 | if (event->code == ABS_DISTANCE) {
87 | mFar = event->value;
88 | }
89 | } else if (event->type == EV_SYN) {
90 | if (mFar != mLastFar) {
91 | mPendingEvent.distance = indexToValue(mFar);
92 | mLastFar = mFar;
93 | LOGI_IF(PROXIMITY_EVENT_DEBUG, "proximity (dist: %d, %f)", mFar, mPendingEvent.distance);
94 | return true;
95 | }
96 | }
97 |
98 | // no event created
99 | return false;
100 | }
101 |
--------------------------------------------------------------------------------
/overlay/lineage-sdk/lineage/res/res/values/config.xml:
--------------------------------------------------------------------------------
1 |
2 |
19 |
20 |
21 |
22 |
37 | 75
38 |
39 |
51 | 83
52 |
53 |
65 | 65
66 |
67 |
68 | true
69 |
70 |
71 |
--------------------------------------------------------------------------------
/setup-makefiles.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | VENDOR=samsung
4 | DEVICE=kminilte
5 | OUTDIR=vendor/$VENDOR/$DEVICE
6 | MAKEFILE=../../../$OUTDIR/$DEVICE-vendor-blobs.mk
7 |
8 | (cat << EOF) > $MAKEFILE
9 | # Copyright (C) 2017 The LineageOS Project
10 | #
11 | # Licensed under the Apache License, Version 2.0 (the "License");
12 | # you may not use this file except in compliance with the License.
13 | # You may obtain a copy of the License at
14 | #
15 | # http://www.apache.org/licenses/LICENSE-2.0
16 | #
17 | # Unless required by applicable law or agreed to in writing, software
18 | # distributed under the License is distributed on an "AS IS" BASIS,
19 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
20 | # See the License for the specific language governing permissions and
21 | # limitations under the License.
22 |
23 | # This file is generated by device/$VENDOR/$DEVICE/setup-makefiles.sh
24 |
25 | PRODUCT_COPY_FILES += \\
26 | EOF
27 |
28 | LINEEND=" \\"
29 | COUNT=`wc -l proprietary-files.txt | awk {'print $1'}`
30 | DISM=`egrep -c '(^#|^$)' proprietary-files.txt`
31 | COUNT=`expr $COUNT - $DISM`
32 | for FILE in `egrep -v '(^#|^$)' ../$DEVICE/proprietary-files.txt`; do
33 | COUNT=`expr $COUNT - 1`
34 | if [ $COUNT = "0" ]; then
35 | LINEEND=""
36 | fi
37 | # Split the file from the destination (format is "file[:destination]")
38 | OLDIFS=$IFS IFS=":" PARSING_ARRAY=($FILE) IFS=$OLDIFS
39 | FILE=${PARSING_ARRAY[0]}
40 | DEST=${PARSING_ARRAY[1]}
41 | if [ -n "$DEST" ]; then
42 | FILE=$DEST
43 | fi
44 | echo " $OUTDIR/proprietary/$FILE:system/$FILE$LINEEND" >> $MAKEFILE
45 | done
46 |
47 | (cat << EOF) > ../../../$OUTDIR/$DEVICE-vendor.mk
48 | # Copyright (C) 2017 The LineageOS Project
49 | #
50 | # Licensed under the Apache License, Version 2.0 (the "License");
51 | # you may not use this file except in compliance with the License.
52 | # You may obtain a copy of the License at
53 | #
54 | # http://www.apache.org/licenses/LICENSE-2.0
55 | #
56 | # Unless required by applicable law or agreed to in writing, software
57 | # distributed under the License is distributed on an "AS IS" BASIS,
58 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
59 | # See the License for the specific language governing permissions and
60 | # limitations under the License.
61 |
62 | # This file is generated by device/$VENDOR/$DEVICE/setup-makefiles.sh
63 |
64 | # Pick up overlay for features that depend on non-open-source files
65 | DEVICE_PACKAGE_OVERLAYS := vendor/$VENDOR/$DEVICE/overlay
66 |
67 | \$(call inherit-product, vendor/$VENDOR/$DEVICE/$DEVICE-vendor-blobs.mk)
68 | EOF
69 |
70 | (cat << EOF) > ../../../$OUTDIR/BoardConfigVendor.mk
71 | # Copyright (C) 2017 The LineageOS Project
72 | #
73 | # Licensed under the Apache License, Version 2.0 (the "License");
74 | # you may not use this file except in compliance with the License.
75 | # You may obtain a copy of the License at
76 | #
77 | # http://www.apache.org/licenses/LICENSE-2.0
78 | #
79 | # Unless required by applicable law or agreed to in writing, software
80 | # distributed under the License is distributed on an "AS IS" BASIS,
81 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
82 | # See the License for the specific language governing permissions and
83 | # limitations under the License.
84 |
85 | # This file is generated by device/$VENDOR/$DEVICE/setup-makefiles.sh
86 |
87 | EOF
88 |
--------------------------------------------------------------------------------
/sepolicy/file_contexts:
--------------------------------------------------------------------------------
1 | ##########################
2 | # Devices
3 | #
4 |
5 | /dev/akm8963 u:object_r:sensors_device:s0
6 | /dev/alps_io u:object_r:input_device:s0
7 | /dev/ehci_power u:object_r:mif_device:s0
8 | /dev/fimg2d u:object_r:video_device:s0
9 | /dev/mali[0-9]* u:object_r:gpu_device:s0
10 | /dev/media[0-3]* u:object_r:camera_device:s0
11 | /dev/mobicore u:object_r:tee_device:s0
12 | /dev/mobicore-user u:object_r:tee_device:s0
13 | /dev/mtp_usb* u:object_r:mtp_device:s0
14 | /dev/sec-nfc u:object_r:nfc_device:s0
15 | /dev/s5p-smem u:object_r:secmem_device:s0
16 | /dev/ttySAC0 u:object_r:hci_attach_dev:s0
17 | /dev/umts.* u:object_r:mif_device:s0
18 | /dev/v4l-subdev[0-9]* u:object_r:video_device:s0
19 |
20 | ####################################
21 | # efs files
22 | #
23 |
24 | /efs/FactoryApp(/.*)? u:object_r:app_efs_file:s0
25 | /efs/FactoryApp/baro_delta u:object_r:baro_delta_factoryapp_efs_file:s0
26 | /efs/FactoryApp/factorymode u:object_r:factorymode_factoryapp_efs_file:s0
27 | /efs/FactoryApp/fdata u:object_r:radio_factoryapp_efs_file:s0
28 | /efs/FactoryApp/hist_nv u:object_r:radio_factoryapp_efs_file:s0
29 | /efs/FactoryApp/test_nv u:object_r:radio_factoryapp_efs_file:s0
30 | /efs/bluetooth(/.*)? u:object_r:bluetooth_efs_file:s0
31 | /efs/Battery(/.*)? u:object_r:battery_efs_type:s0
32 | /efs/calibration_data u:object_r:sensor_efs_file:s0
33 | /efs/grip_cal_data u:object_r:sensor_efs_file:s0
34 | /efs/gyro_cal_data u:object_r:sensor_efs_file:s0
35 | /efs/h2k\.dat u:object_r:cpk_efs_file:s0
36 | /efs/redata\.bin u:object_r:cpk_efs_file:s0
37 | /efs/imei(/.*)? u:object_r:imei_efs_file:s0
38 | /efs/nv_data\.bin(.*) u:object_r:bin_nv_data_efs_file:s0
39 | /efs/nv_fsm_data\.bin u:object_r:bin_nv_data_efs_file:s0
40 | /efs/nv\.log u:object_r:cbd_log_data:s0
41 | /efs/prov(/.*)? u:object_r:prov_efs_file:s0
42 | /efs/prov_data(/.*)? u:object_r:prov_efs_file:s0
43 | /efs/wifi(/.*)? u:object_r:wifi_efs_file:s0
44 | /efs/wv\.keys u:object_r:cpk_efs_file:s0
45 | /efs/drm(/.*)? u:object_r:drm_efs_file:s0
46 |
47 | ####################################
48 | # data files
49 | #
50 |
51 | /data/camera(/.*)? u:object_r:camera_data_file:s0
52 | /data/nfc(/.*)? u:object_r:nfc_data_file:s0
53 | /data/.wifiver.info u:object_r:wifi_data_file:s0
54 | /data/misc/radio(/.*)? u:object_r:radio_data_file:s0
55 | /efs/wifi/.mac.info u:object_r:wifi_data_file:s0
56 |
57 | ####################################
58 | # sysfs files
59 | #
60 |
61 | /sys/class/graphics/fb[0-9](/.*)? -- u:object_r:sysfs_graphics:s0
62 | /sys/devices/platform/bcm4334_bluetooth/rfkill/rfkill0/state -- u:object_r:sysfs_bluetooth_writable:s0
63 | /sys/devices/platform/bcm4334_bluetooth/rfkill/rfkill0/type -- u:object_r:sysfs_bluetooth_writable:s0
64 | /sys/devices/platform/s5p-ehci/ehci_power u:object_r:sysfs_usb_power_writable:s0
65 | /sys/devices/virtual/misc/multipdp(/.*) u:object_r:sysfs_multipdp_writable:s0
66 | /sys/devices/virtual/sec/switch/otg_cable_type u:object_r:sysfs_otg_writable:s0
67 |
68 | ####################################
69 | # deamons
70 | #
71 | /system/bin/mcDriverDaemon -- u:object_r:tee_exec:s0
72 |
73 |
--------------------------------------------------------------------------------
/libsensors/LightSensor.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2011 Samsung
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | #include
18 | #include
19 | #include
20 | #include
21 | #include
22 | #include
23 | #include
24 | #include
25 | #include
26 |
27 | #include "LightSensor.h"
28 |
29 | #define LIGHT_EVENT_DEBUG 0
30 |
31 | /*
32 | * Datasheet CM36686 (Capella Micro) is available under the
33 | * alias name VCNL4040M3OE (Vishay).
34 | */
35 |
36 | LightSensor::LightSensor() :
37 | SamsungSensorBase(NULL, "light_sensor"),
38 | mALSData(0),
39 | mWhiteData(0),
40 | mLastLux(-1)
41 | {
42 | mPendingEvent.sensor = ID_L;
43 | mPendingEvent.type = SENSOR_TYPE_LIGHT;
44 | }
45 |
46 | /*
47 | * The CM36686 kernel driver selects an integration time of 80 ms,
48 | * resulting in 1/10 lx per step (table 14).
49 | * It seems that the front glass filters some of the light, so we
50 | * have to adjust the values.
51 | */
52 | static float computeLux(int als, int white)
53 | {
54 | if ((white <= 4) || (als <= 4)) {
55 | return 0;
56 | }
57 |
58 | float scale;
59 | float alsToWhiteRel = (float)als / (float)white;
60 | if (alsToWhiteRel >= 0.3) {
61 | scale = 0.6642 * pow(alsToWhiteRel, 0.1294);
62 | }
63 | else {
64 | scale = 0.4073 * pow(als, 0.0324);
65 | }
66 | return scale * als;
67 | }
68 |
69 | bool LightSensor::handleEvent(input_event const *event)
70 | {
71 | /*
72 | * See kernel drivers/sensors/cm36686.c for event details.
73 | * For some reason the driver uses (fake) relative events
74 | * and adds an offsets for the data of 1.
75 | */
76 |
77 | if (event->type == EV_REL) {
78 | if (event->code == REL_DIAL) {
79 | LOGI_IF(LIGHT_EVENT_DEBUG, "light (als: %d)", event->value);
80 | mALSData = event->value - 1; // remove offset
81 | } else if (event->code == REL_WHEEL) {
82 | LOGI_IF(LIGHT_EVENT_DEBUG, "light (white: %d)", event->value);
83 | mWhiteData = event->value - 1; // remove offset
84 | } else if (event->code == REL_MISC) {
85 | // TODO: does not seem to be used by the kernel driver
86 | LOGI_IF(LIGHT_EVENT_DEBUG, "light (misc: %d)", event->value);
87 | }
88 | } else if (event->type == EV_SYN) {
89 | // round to full lux to better recognize changes
90 | int lux = (int)computeLux(mALSData, mWhiteData);
91 | if (lux != mLastLux) {
92 | mPendingEvent.light = (float)lux;
93 | mLastLux = lux;
94 | LOGI_IF(LIGHT_EVENT_DEBUG, "light (als: %d, white: %d, lux: %f)",
95 | mALSData, mWhiteData, mPendingEvent.light);
96 | return true;
97 | }
98 | }
99 |
100 | // no event created
101 | return false;
102 | }
103 |
--------------------------------------------------------------------------------
/apps/ExtendedSettings/src/com/cyanogenmod/settings/device/A2dpSink.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2014 The CyanogenMod Project
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.cyanogenmod.settings.device;
18 |
19 | import android.bluetooth.BluetoothAdapter;
20 | import android.content.Context;
21 | import android.os.SystemProperties;
22 | import android.preference.Preference;
23 | import android.preference.Preference.OnPreferenceChangeListener;
24 |
25 | import com.cyanogenmod.settings.device.R;
26 |
27 | public class A2dpSink implements OnPreferenceChangeListener {
28 |
29 | // Keys of used system properties
30 | private static final String A2DPSINK_PROP_KEY = "persist.service.bt.a2dp.sink";
31 |
32 | // A2dpSink property is supported starting from Android 5.0 (Lollipop)
33 | private static final float MIN_VERSION_SUPPORTED = 5.0f;
34 |
35 | /**
36 | * Checks if the feature is supported
37 | * @return True if the feature is supported, otherwise false
38 | */
39 | public static boolean isSupported() {
40 | return BuildProp.isSupportedSystem(MIN_VERSION_SUPPORTED);
41 | }
42 |
43 | /**
44 | * Gets the current value of A2dpSink property inside system properties
45 | * @return The A2dpSink value currently set
46 | */
47 | public static boolean getPropertyValue() {
48 | return SystemProperties.getBoolean(A2DPSINK_PROP_KEY, false);
49 | }
50 |
51 | /**
52 | * Stores the value of A2dpSink property inside system properties
53 | * @param value The value to store
54 | * @return True if the store succeeded, otherwise false
55 | */
56 | private static boolean storePropertyValue(Boolean value) {
57 | SystemProperties.set(A2DPSINK_PROP_KEY, value.toString());
58 | return true;
59 | }
60 |
61 | @Override
62 | public boolean onPreferenceChange(Preference preference, Object value) {
63 | // Get the preference context
64 | final Context context = preference.getContext();
65 |
66 | BluetoothAdapter mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter();
67 | if (mBluetoothAdapter == null) {
68 | // device does not support Bluetooth (should never happen)
69 | return false;
70 | }
71 | if (mBluetoothAdapter.isEnabled()) {
72 | // although the a2dp.sink property can be changed anytime, the change will
73 | // only be effective when the bluetooth service is (re-)started.
74 | // As the user has to restart bluetooth in any case, allow changes to the settings only if
75 | // bluetooth is off. This way we also prevent side effects which might occur if the property
76 | // is changed while bluetooth is active.
77 | // Note that for some reason Android does not allow sink and source at the same time.
78 | Utils.showErrorDialog(context, R.string.a2dp_sink_title, R.string.a2dp_sink_error_bt_active);
79 | return false;
80 | }
81 |
82 | // Store the new value
83 | return storePropertyValue((Boolean)value);
84 | }
85 |
86 | }
87 |
--------------------------------------------------------------------------------
/BoardConfig.mk:
--------------------------------------------------------------------------------
1 | #
2 | # Copyright (C) 2017 The LineageOS Project
3 | #
4 | # Licensed under the Apache License, Version 2.0 (the "License");
5 | # you may not use this file except in compliance with the License.
6 | # You may obtain a copy of the License at
7 | #
8 | # http://www.apache.org/licenses/LICENSE-2.0
9 | #
10 | # Unless required by applicable law or agreed to in writing, software
11 | # distributed under the License is distributed on an "AS IS" BASIS,
12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | # See the License for the specific language governing permissions and
14 | # limitations under the License.
15 | #
16 |
17 | # inherit from common smdk3470
18 | -include device/samsung/smdk3470-common/BoardConfigCommon.mk
19 |
20 | DEVICE_PATH := device/samsung/kminilte
21 |
22 | # Assert
23 | TARGET_OTA_ASSERT_DEVICE := kminiltexx,kminiltedv,kminilteub,kminilte
24 |
25 | # Filesystems
26 | # Note: the BOARD_...IMAGE_PARTITION_SIZE values define the image sizes,
27 | # not the partition sizes. So the image sizes can also be lower than the partition size.
28 |
29 | # Real partition sizes
30 | #BOARD_BOOTIMAGE_PARTITION_SIZE := 10485760
31 | #BOARD_CACHEIMAGE_PARTITION_SIZE := 314572800
32 | #BOARD_RECOVERYIMAGE_PARTITION_SIZE := 12582912
33 | #BOARD_SYSTEMIMAGE_PARTITION_SIZE := 2411724800
34 | #BOARD_USERDATAIMAGE_PARTITION_SIZE := 12834570240(-16384)
35 |
36 | # Image sizes
37 | BOARD_BOOTIMAGE_PARTITION_SIZE := 10485760
38 | BOARD_CACHEIMAGE_PARTITION_SIZE := 314572800
39 | BOARD_RECOVERYIMAGE_PARTITION_SIZE := 12582912
40 | BOARD_SYSTEMIMAGE_PARTITION_SIZE := 2147483648
41 | BOARD_USERDATAIMAGE_PARTITION_SIZE := 12833521664
42 |
43 | # Include path
44 | TARGET_SPECIFIC_HEADER_PATH += $(DEVICE_PATH)/include
45 |
46 | # Kernel
47 | TARGET_KERNEL_CONFIG := kminilte_00_defconfig
48 | TARGET_KERNEL_SOURCE := kernel/samsung/kminilte
49 |
50 | # Lineage Hardware
51 | BOARD_HARDWARE_CLASS := $(DEVICE_PATH)/lineagehw
52 |
53 | # Bluetooth
54 | BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := $(DEVICE_PATH)/bluetooth
55 |
56 | # NFC
57 | # Chipset: Samsung s3fwrn5
58 | # Note: as libnfc-nci only supports pn547 and bcm2079x, select pn547 here but use the stock s3fwrn5 hal
59 | BOARD_NFC_CHIPSET := pn547
60 | BOARD_NFC_HAL_SUFFIX := universal3470
61 |
62 | # PowerHAL
63 | TARGET_POWERHAL_VARIANT := exynos3
64 |
65 | # Lights
66 | TARGET_PROVIDES_LIBLIGHT := true
67 |
68 | # Charger
69 | RED_LED_PATH := "/sys/class/leds/led_r/brightness"
70 | GREEN_LED_PATH := "/sys/class/leds/led_g/brightness"
71 | BLUE_LED_PATH := "/sys/class/leds/led_b/brightness"
72 |
73 | # Sensors
74 | TARGET_PROVIDES_LIBSENSORS := true
75 |
76 | # GUI
77 | BOARD_EGL_NEEDS_HANDLE_VALUE := true
78 |
79 | # Vendor Init
80 | TARGET_INIT_VENDOR_LIB := libinit_kminilte
81 | TARGET_LIBINIT_DEFINES_FILE := $(DEVICE_PATH)/init/init_kminilte.cpp
82 |
83 | # Recovery
84 | TARGET_RECOVERY_DEVICE_DIRS += $(DEVICE_PATH)
85 | TARGET_RECOVERY_FSTAB := $(DEVICE_PATH)/rootdir/etc/fstab.universal3470
86 | BOARD_HAS_LARGE_FILESYSTEM := true
87 |
88 | # TWRP (not compatible with user build variant)
89 | #RECOVERY_VARIANT := twrp
90 | DEVICE_RESOLUTION := 720x1280
91 | RECOVERY_SDCARD_ON_DATA := true
92 | BOARD_HAS_NO_REAL_SDCARD := true
93 | TW_BRIGHTNESS_PATH := /sys/devices/platform/s5p-mipi-dsim.0/backlight/panel/brightness
94 | TW_NO_REBOOT_BOOTLOADER := true
95 | TW_HAS_DOWNLOAD_MODE := true
96 | TW_INCLUDE_NTFS_3G := true
97 | TW_INCLUDE_CRYPTO := true
98 | #TW_USE_TOOLBOX := true
99 | TWRP_INCLUDE_LOGCAT := true
100 | TW_NO_LEGACY_PROPS := true
101 |
102 | # SELinux
103 | BOARD_SEPOLICY_DIRS := \
104 | $(DEVICE_PATH)/sepolicy
105 |
--------------------------------------------------------------------------------
/nfc/libnfc-sec-hal.conf:
--------------------------------------------------------------------------------
1 | ############################
2 | ## NFC device is going to sleep mode after SLEEP_TIMEOUT(ms) and the device needs
3 | ## wakeup delay(ms) when it is going to wake up from sleep mode.
4 | SLEEP_TIMEOUT=1000
5 | WAKEUP_DELAY=20
6 |
7 | ############################
8 | ## Pathes
9 | ## F/W image
10 | FW_IMAGE="/vendor/firmware/sec_s3fwrn5_firmware.bin"
11 | #FW_IMAGE="/vendor/firmware/sec_s3frrn3_firmware.bin"
12 | ## Pwoer driver
13 | POWER_DRIVER="/dev/sec-nfc"
14 | ## Transport driver
15 | TRANS_DRIVER="/dev/sec-nfc"
16 | #TRANS_DRIVER="/dev/ttySAC0"
17 |
18 | ############################
19 | ## TRACE_LEVEL (0: only err, 1: and debug, 2: trace also)
20 | ## DATA TRACE level (0: not display, 1: simply, 2: all of data trace)
21 | TRACE_LEVEL=2
22 | DATA_TRACE=2
23 |
24 | ############################
25 | # F/W options
26 | #F/W Update mode: 0 (IMG version != FW version; default)
27 | # 1 (IMG version > FW version)
28 | # 2 (Force update)
29 | FW_UPDATE_MODE=0
30 |
31 | ############################
32 | ## RF register
33 | ## RF register ID1 Card mode
34 | # RF_REG1=0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x20 0x22 0xB8 0x30 0x72 0xC8 \
35 | # 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x20 0x21 0x38 0x30 0x72 0xC8 \
36 | # 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x20 0x21 0x38 0x30 0x6A 0xD8 \
37 | # 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x20 0x20 0x78 0x30 0x6A 0xD8 \
38 | # 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x20 0x22 0xB8 0x30 0x50 0xC8 \
39 | # 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x20 0x21 0x38 0x30 0x50 0xC8 \
40 | # 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x20 0x21 0x38 0x30 0x38 0xC8 \
41 | # 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x20 0x21 0x38 0x30 0xCA 0xC8 \
42 | # 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x20 0x21 0x38 0x24 0x38 0xC8 \
43 | # 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x20 0x21 0x38 0x24 0x0A 0xC8 \
44 | # 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x20 0x22 0xB8 0x30 0x50 0xC8 \
45 | # 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x20 0x22 0xB8 0x30 0x50 0xC8
46 | ### RF register ID2 Reader mode
47 | #RF_REG2=0xD0 0xD0 0xBB 0x00 0x26 0x5E 0xD8 0x00 0xFE 0xCB 0x00 0x1D 0xF0 0x00 0x27 \
48 | # 0xC0 0xC0 0xB0 0x03 0xE8 0x59 0x00 0x00 0xFE 0xCF 0x00 0x1D 0xF0 0x00 0x27 \
49 | # 0xC0 0xC0 0xB0 0x03 0xE8 0x59 0x00 0x00 0xFE 0xCF 0x00 0x1D 0xF0 0x00 0x27 \
50 | # 0xC0 0xC0 0xB0 0x03 0xE8 0x59 0x00 0x00 0xFE 0xCF 0x00 0x1D 0xF0 0x00 0x27 \
51 | # 0xD8 0xD8 0xBB 0xE0 0x06 0x5E 0xD8 0x00 0xFE 0xCF 0x00 0x1D 0x30 0x00 0x27 \
52 | # 0xC0 0xC0 0xB0 0x03 0xE8 0x59 0x00 0xAE 0x51 0x4B 0x00 0x1D 0xF0 0x00 0x27 \
53 | # 0xC0 0xC0 0xB0 0x03 0xE8 0x59 0x00 0xAE 0x51 0x4F 0x00 0x1D 0xF0 0x00 0x27 \
54 | # 0xC0 0xC0 0xB0 0x03 0xE8 0x59 0x00 0xAE 0x51 0x4F 0x00 0x1D 0xF0 0x00 0x27 \
55 | # 0xC0 0xC0 0xB0 0x03 0xE8 0x59 0x00 0xAE 0x51 0x4F 0x00 0x1D 0xF0 0x00 0x27 \
56 | # 0xC0 0xC0 0xB0 0xE3 0xC4 0xDF 0x00 0xAE 0x51 0x4B 0x00 0x1D 0xF0 0x00 0x27 \
57 | # 0xC0 0xC0 0xB0 0x03 0xE8 0x59 0x00 0xAE 0x51 0x4B 0x00 0x1D 0xF0 0x00 0x27 \
58 | # 0xD8 0xD8 0xBB 0x00 0x24 0x88 0xD8 0x00 0xFE 0xCB 0x00 0x1D 0xF0 0x00 0x27 \
59 | # 0xE8 0xE8 0xBB 0x00 0x24 0x28 0xD8 0x00 0xFE 0xCB 0x00 0x1D 0xF0 0x00 0x27 \
60 | # 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0xFE 0xCB 0x21 0x38 0x30 0x72 0xC8 \
61 | # 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0xAE 0x51 0x4B 0x21 0x38 0x38 0xB4 0xC8 \
62 | # 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0xAE 0x51 0x4B 0x21 0x38 0x38 0xB4 0xC8
63 |
64 | ############################
65 | ## Clock Configuration
66 | FW_CFG_CLK_TYPE=0x13
67 | FW_CFG_CLK_SPEED=0x00
68 | FW_CFG_CLK_REQ=0x01
69 |
70 | RFREG_FILE="/etc/sec_s3fwrn5_rfreg.bin"
71 |
--------------------------------------------------------------------------------
/lineagehw/org/lineageos/hardware/TouchscreenHovering.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2015 The CyanogenMod Project
3 | * Copyright (C) 2017 The LineageOS Project
4 | *
5 | * Licensed under the Apache License, Version 2.0 (the "License");
6 | * you may not use this file except in compliance with the License.
7 | * You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | package org.lineageos.hardware;
19 |
20 | import org.lineageos.internal.util.FileUtils;
21 |
22 | import java.io.BufferedReader;
23 | import java.io.File;
24 | import java.io.FileReader;
25 | import java.io.IOException;
26 |
27 | import android.util.Log;
28 |
29 | /**
30 | * Touchscreen Hovering
31 | */
32 | public class TouchscreenHovering {
33 |
34 | private static String TAG = "TouchscreenHovering";
35 |
36 | private static String COMMAND_PATH = "/sys/class/sec/tsp/cmd";
37 | /* FIXME: cyttsp5 driver does not have cmd_list entry */
38 | //private static String COMMAND_LIST_PATH = "/sys/class/sec/tsp/cmd_list";
39 | private static String COMMAND_RESULT_PATH = "/sys/class/sec/tsp/cmd_result";
40 | private static String HOVER_MODE = "hover_enable";
41 | private static String HOVER_MODE_ENABLE = "hover_enable,1";
42 | private static String HOVER_MODE_DISABLE = "hover_enable,0";
43 | private static String STATUS_OK = ":OK";
44 |
45 | /**
46 | * Whether device supports touchscreen hovering.
47 | *
48 | * @return boolean Supported devices must return always true
49 | */
50 | public static boolean isSupported() {
51 | /*
52 | File f = new File(COMMAND_PATH);
53 | if (f.exists()) {
54 | BufferedReader reader = null;
55 | try {
56 | String currentLine;
57 | reader = new BufferedReader(new FileReader(COMMAND_LIST_PATH));
58 | while ((currentLine = reader.readLine()) != null) {
59 | if (HOVER_MODE.equals(currentLine))
60 | return true;
61 | }
62 | } catch (IOException e) {
63 | // Ignore exception, will be false anyway
64 | } finally {
65 | if (reader != null) {
66 | try {
67 | reader.close();
68 | } catch (IOException e) {
69 | // Ignore exception, no recovery possible
70 | }
71 | }
72 | }
73 | }
74 | return false;
75 | */
76 | return true;
77 | }
78 |
79 | /** This method returns the current activation status of touchscreen hovering
80 | *
81 | * @return boolean Must be false if touchscreen hovering is not supported or not activated,
82 | * or the operation failed while reading the status; true in any other case.
83 | */
84 | public static boolean isEnabled() {
85 | return FileUtils.readOneLine(COMMAND_RESULT_PATH).equals(HOVER_MODE_ENABLE + STATUS_OK);
86 | }
87 |
88 | /**
89 | * This method allows to setup touchscreen hovering status.
90 | *
91 | * @param status The new touchscreen hovering status
92 | * @return boolean Must be false if touchscreen hovering is not supported or the operation
93 | * failed; true in any other case.
94 | */
95 | public static boolean setEnabled(boolean status) {
96 | return FileUtils.writeLine(COMMAND_PATH, status ? HOVER_MODE_ENABLE : HOVER_MODE_DISABLE);
97 | }
98 | }
99 |
--------------------------------------------------------------------------------
/lineagehw/org/lineageos/hardware/HighTouchSensitivity.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2014 The CyanogenMod Project
3 | * Copyright (C) 2017 The LineageOS Project
4 | *
5 | * Licensed under the Apache License, Version 2.0 (the "License");
6 | * you may not use this file except in compliance with the License.
7 | * You may obtain a copy of the License at
8 | *
9 | * http://www.apache.org/licenses/LICENSE-2.0
10 | *
11 | * Unless required by applicable law or agreed to in writing, software
12 | * distributed under the License is distributed on an "AS IS" BASIS,
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 | * See the License for the specific language governing permissions and
15 | * limitations under the License.
16 | */
17 |
18 | package org.lineageos.hardware;
19 |
20 | import org.lineageos.internal.util.FileUtils;
21 |
22 | import java.io.BufferedReader;
23 | import java.io.File;
24 | import java.io.FileReader;
25 | import java.io.IOException;
26 |
27 | import android.util.Log;
28 |
29 | /**
30 | * Glove mode / high touch sensitivity
31 | */
32 | public class HighTouchSensitivity {
33 |
34 | private static String TAG = "HighTouchSensitivity";
35 |
36 | private static String COMMAND_PATH = "/sys/class/sec/tsp/cmd";
37 | /* FIXME: cyttsp5 driver does not have cmd_list entry */
38 | //private static String COMMAND_LIST_PATH = "/sys/class/sec/tsp/cmd_list";
39 | private static String COMMAND_RESULT_PATH = "/sys/class/sec/tsp/cmd_result";
40 | private static String GLOVE_MODE = "glove_mode";
41 | private static String GLOVE_MODE_ENABLE = "glove_mode,1";
42 | private static String GLOVE_MODE_DISABLE = "glove_mode,0";
43 | private static String STATUS_OK = ":OK";
44 |
45 | /**
46 | * Whether device supports high touch sensitivity.
47 | *
48 | * @return boolean Supported devices must return always true
49 | */
50 | public static boolean isSupported() {
51 | /*
52 | File f = new File(COMMAND_PATH);
53 | if (f.exists()) {
54 | BufferedReader reader = null;
55 | try {
56 | String currentLine;
57 | reader = new BufferedReader(new FileReader(COMMAND_LIST_PATH));
58 | while ((currentLine = reader.readLine()) != null) {
59 | if (GLOVE_MODE.equals(currentLine))
60 | return true;
61 | }
62 | } catch (IOException e) {
63 | // Ignore exception, will be false anyway
64 | } finally {
65 | if (reader != null) {
66 | try {
67 | reader.close();
68 | } catch (IOException e) {
69 | // Ignore exception, no recovery possible
70 | }
71 | }
72 | }
73 | }
74 | return false;
75 | */
76 | return true;
77 | }
78 |
79 | /** This method returns the current activation status of high touch sensitivity
80 | *
81 | * @return boolean Must be false if high touch sensitivity is not supported or not activated,
82 | * or the operation failed while reading the status; true in any other case.
83 | */
84 | public static boolean isEnabled() {
85 | return FileUtils.readOneLine(COMMAND_RESULT_PATH).equals(GLOVE_MODE_ENABLE + STATUS_OK);
86 | }
87 |
88 | /**
89 | * This method allows to setup high touch sensitivity status.
90 | *
91 | * @param status The new high touch sensitivity status
92 | * @return boolean Must be false if high touch sensitivity is not supported or the operation
93 | * failed; true in any other case.
94 | */
95 | public static boolean setEnabled(boolean status) {
96 | return FileUtils.writeLine(COMMAND_PATH, status ? GLOVE_MODE_ENABLE : GLOVE_MODE_DISABLE);
97 | }
98 | }
99 |
--------------------------------------------------------------------------------
/apps/ExtendedSettings/src/com/cyanogenmod/settings/device/GeneralFragmentActivity.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2013 The CyanogenMod Project
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | package com.cyanogenmod.settings.device;
18 |
19 | import android.content.Context;
20 | import android.os.Bundle;
21 | import android.os.Handler;
22 | import android.os.FileObserver;
23 | import android.preference.CheckBoxPreference;
24 | import android.preference.ListPreference;
25 | import android.preference.Preference;
26 | import android.preference.PreferenceFragment;
27 |
28 | import com.cyanogenmod.settings.device.R;
29 |
30 | public class GeneralFragmentActivity extends PreferenceFragment {
31 |
32 | private CheckBoxPreference mFastCharge;
33 | private ListPreference mOTGPower;
34 | private CheckBoxPreference mA2dpSinkStatus;
35 | private FileObserver mObserver;
36 |
37 | private Handler mHandler = new Handler();
38 |
39 | private final Runnable mFileChangedRunnable = new Runnable() {
40 | @Override
41 | public void run() {
42 | boolean mNewFeatureValue = FastCharge.isActive();
43 | onFileChanged(mNewFeatureValue);
44 | mFastCharge.setChecked(mNewFeatureValue);
45 | }
46 | };
47 |
48 | /**
49 | * subclasses can override onFileChanged() to hook
50 | * into the FileObserver onEvent() callback
51 | */
52 |
53 | protected void onFileChanged(boolean featureState){}
54 |
55 | @Override
56 | public void onCreate(Bundle savedInstanceState) {
57 | super.onCreate(savedInstanceState);
58 |
59 | addPreferencesFromResource(R.xml.general_preferences);
60 |
61 | Context mContext = getActivity();
62 |
63 | mA2dpSinkStatus = (CheckBoxPreference) findPreference(DeviceSettings.KEY_A2DP_SINK);
64 | mA2dpSinkStatus.setEnabled(A2dpSink.isSupported());
65 | mA2dpSinkStatus.setOnPreferenceChangeListener(new A2dpSink());
66 |
67 | mFastCharge = (CheckBoxPreference) findPreference(DeviceSettings.KEY_FAST_CHARGE);
68 | mFastCharge.setEnabled(FastCharge.isSupported());
69 | mFastCharge.setOnPreferenceChangeListener(new FastCharge(mContext));
70 |
71 | mObserver = new FileObserver(FastCharge.getFilePath(), FileObserver.MODIFY) {
72 | @Override
73 | public void onEvent(int event, String file) {
74 | mHandler.postDelayed(mFileChangedRunnable, 1);
75 | }
76 | };
77 | mObserver.startWatching();
78 |
79 | mOTGPower = (ListPreference) findPreference(DeviceSettings.KEY_OTG_POWER);
80 | mOTGPower.setEnabled(OTGCharge.isSupported());
81 | mOTGPower.setOnPreferenceChangeListener(new OTGCharge());
82 | }
83 |
84 | @Override
85 | public void onActivityCreated(Bundle savedInstanceState) {
86 | super.onActivityCreated(savedInstanceState);
87 | mFastCharge.setChecked(FastCharge.isActive());
88 | mA2dpSinkStatus.setChecked(A2dpSink.getPropertyValue());
89 | }
90 |
91 | @Override
92 | public void onDestroy() {
93 | mObserver.stopWatching();
94 | super.onDestroy();
95 | }
96 |
97 | public static void restore(Context context) {
98 | OTGCharge.restore(context);
99 | }
100 | }
101 |
--------------------------------------------------------------------------------
/libsensors/CompassSensor.HSCDTD008A.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2012 The Android Open Source Project
3 | *
4 | * Licensed under the Apache License, Version 2.0 (the "License");
5 | * you may not use this file except in compliance with the License.
6 | * You may obtain a copy of the License at
7 | *
8 | * http://www.apache.org/licenses/LICENSE-2.0
9 | *
10 | * Unless required by applicable law or agreed to in writing, software
11 | * distributed under the License is distributed on an "AS IS" BASIS,
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 | * See the License for the specific language governing permissions and
14 | * limitations under the License.
15 | */
16 |
17 | #ifndef COMPASS_SENSOR_H
18 | #define COMPASS_SENSOR_H
19 |
20 | #include
21 | #include
22 | #include
23 | #include
24 |
25 | #include "sensors_local.h"
26 | #include "SamsungSensorBase.h"
27 |
28 | #define TIME_HI_SHIFT 32
29 |
30 | enum sensor_mask_t {
31 | SENSOR_NONE = 0,
32 | SENSOR_M = 1,
33 | SENSOR_RM = 2,
34 | SENSOR_M_RM = 3, // M + RM enabled
35 | };
36 |
37 | /*
38 | * Sensor implementation for ALPS HSCDTD008A
39 | */
40 |
41 | struct sensor_data_t {
42 | int x;
43 | int y;
44 | int z;
45 | uint32_t time_hi;
46 | uint32_t time_lo;
47 | };
48 |
49 | struct compass_data_t {
50 | /* time is in nanosecond */
51 | int64_t timestamp;
52 | /* mask determines which sensor data is valid: SENSOR_M->magnetic, SENSOR_RM->uncalibrated_magnetic */
53 | int validMask;
54 | /* calibrated data */
55 | sensors_vec_t magnetic;
56 | /* raw data */
57 | uncalibrated_event_t uncalibrated_magnetic;
58 | };
59 |
60 | /*****************************************************************************/
61 |
62 | class CompassSensor : public SamsungSensorBase {
63 |
64 | protected:
65 |
66 | public:
67 | CompassSensor();
68 | virtual ~CompassSensor();
69 |
70 |
71 | // make sure either 3rd-party compass solution has following virtual
72 | // functions, or SensorBase.cpp could provide equal functionalities
73 | //virtual int getFd() const;
74 | virtual int getRawFd() {return 0;};
75 | virtual int enable(int32_t handle, int en);
76 | virtual int getEnable(int32_t handle);
77 | virtual int64_t getDelay(int32_t handle);
78 | virtual int setDelay(int32_t handle, int64_t ns);
79 | virtual int64_t getMinDelay() { return -1; } // stub
80 |
81 | virtual bool handleEvent(input_event const *event);
82 |
83 | // following four APIs need further implementation for MPL's
84 | // reference (look into .cpp for detailed information, also refer to
85 | // 3rd-party's readEvents() for relevant APIs)
86 | int readSample(long *data, int64_t *timestamp);
87 | int readRawSample(float *data, int64_t *timestamp);
88 | void fillList(struct sensor_t *list);
89 | void getOrientationMatrix(signed char *orient);
90 | int getAccuracy();
91 | virtual void getCompassBias(long *bias) { UNUSED(bias); return; };
92 |
93 | // if 3rd-party provides calibrated compass data, just return 1
94 | int providesCalibration() { return 1; }
95 |
96 | // hard-coded for 3rd-party's sensitivity transformation
97 | long getSensitivity() { return (1L << 30); }
98 |
99 | /* all 3rd pary solution have compasses on the primary bus, hence they
100 | have no dependency on the MPU */
101 | int isIntegrated() { return 0; }
102 |
103 | int checkCoilsReset(void) { return 0; };
104 | int isYasCompass(void) { return 0; };
105 |
106 | private:
107 | int mAccuracy;
108 | int mSelectMask;
109 | sensor_data_t mCachedCompassData;
110 | compass_data_t mLastCompassData;
111 | };
112 |
113 | /*****************************************************************************/
114 |
115 | #endif // COMPASS_SENSOR_H
116 |
--------------------------------------------------------------------------------
/apps/ExtendedSettings/res/values/arrays.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 |
18 | - Default (1.6 seconds)
19 | - 0.5 seconds
20 | - 1 seconds
21 | - 2 seconds
22 | - 5 seconds
23 | - Never
24 |
25 |
26 |
27 | - 1600
28 | - 500
29 | - 1000
30 | - 2000
31 | - 5000
32 | - -1
33 |
34 |
35 |
36 | - Disabled
37 | - Blinking Lights
38 | - Static Lights
39 | - Blinking And Static Lights
40 |
41 |
42 |
43 | - NONE
44 | - BLINK
45 | - STATIC
46 | - BLINK_AND_STATIC
47 |
48 |
49 |
50 | - 10 seconds
51 | - 15 seconds
52 | - 20 seconds
53 | - 30 seconds
54 | - 1 minute
55 | - 2 minutes
56 | - 5 minutes
57 | - 10 minutes
58 | - 15 minutes
59 | - 30 minutes
60 | - 45 minutes
61 | - 1 hour
62 |
63 |
64 |
65 | - 10
66 | - 15
67 | - 20
68 | - 30
69 | - 60
70 | - 120
71 | - 300
72 | - 600
73 | - 900
74 | - 1800
75 | - 2700
76 | - 3600
77 |
78 |
79 |
80 | - 0.25 seconds
81 | - 0.5 seconds
82 | - 1 seconds
83 | - 1.5 seconds
84 | - 2 seconds
85 | - 3 seconds
86 | - 4 seconds
87 | - 5 seconds
88 |
89 |
90 |
91 | - 250
92 | - 500
93 | - 1000
94 | - 1500
95 | - 2000
96 | - 3000
97 | - 4000
98 | - 5000
99 |
100 |
101 |
102 | - Powered (Not waterproof)
103 | - Unpowered (Default / Waterproof)
104 | - Unpowered + Charge (Waterproof)
105 |
106 |
107 |
108 | - OTG
109 | - BATTERY
110 | - USB
111 |
112 |
113 |
--------------------------------------------------------------------------------
/init/init_kminilte.cpp:
--------------------------------------------------------------------------------
1 | /*
2 | Copyright (c) 2013, The Linux Foundation. All rights reserved.
3 |
4 | Redistribution and use in source and binary forms, with or without
5 | modification, are permitted provided that the following conditions are
6 | met:
7 | * Redistributions of source code must retain the above copyright
8 | notice, this list of conditions and the following disclaimer.
9 | * Redistributions in binary form must reproduce the above
10 | copyright notice, this list of conditions and the following
11 | disclaimer in the documentation and/or other materials provided
12 | with the distribution.
13 | * Neither the name of The Linux Foundation nor the names of its
14 | contributors may be used to endorse or promote products derived
15 | from this software without specific prior written permission.
16 |
17 | THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
18 | WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
19 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
20 | ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
21 | BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
22 | CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
23 | SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
24 | BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
25 | WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
26 | OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
27 | IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 | */
29 |
30 | #include
31 | #include
32 | #include
33 |
34 | #define _REALLY_INCLUDE_SYS__SYSTEM_PROPERTIES_H_
35 | #include
36 |
37 | #include
38 |
39 | #include "property_service.h"
40 | #include "vendor_init.h"
41 |
42 | #define LOG_TAG "init_properties"
43 | #include
44 |
45 | void property_override(char const prop[], char const value[])
46 | {
47 | prop_info *pi;
48 |
49 | pi = (prop_info*) __system_property_find(prop);
50 | if (pi)
51 | __system_property_update(pi, value, strlen(value));
52 | else
53 | __system_property_add(prop, strlen(prop), value, strlen(value));
54 | }
55 |
56 | void vendor_load_properties()
57 | {
58 | std::string platform = android::base::GetProperty("ro.board.platform", "");
59 | std::string bootloader = android::base::GetProperty("ro.bootloader", "");
60 |
61 | if (platform != ANDROID_TARGET) {
62 | return;
63 | }
64 |
65 | if (bootloader.find("G800F") != std::string::npos) {
66 | /* kminiltexx */
67 | property_override("ro.build.fingerprint", "samsung/kminiltexx/kminilte:6.0.1/MMB29K/G800FXXU1CPK5:user/release-keys");
68 | property_override("ro.build.description", "kminiltexx-user 6.0.1 MMB29K G800FXXU1CPK5 release-keys");
69 | property_override("ro.product.model", "SM-G800F");
70 | property_override("ro.product.device", "kminiltexx");
71 | } else if (bootloader.find("G800Y") != std::string::npos) {
72 | /* kminiltedv */
73 | property_override("ro.build.fingerprint", "samsung/kminiltedv/kminilte:5.1.1/LMY49J/G800YUIS1BPL1:user/release-keys");
74 | property_override("ro.build.description", "kminiltedv-user 5.1.1 LMY49J G800YUIS1BPL1 release-keys");
75 | property_override("ro.product.model", "SM-G800Y");
76 | property_override("ro.product.device", "kminiltedv");
77 | } else if (bootloader.find("G800M") != std::string::npos) {
78 | /* kminilteub */
79 | property_override("ro.build.fingerprint", "samsung/kminilteub/kminilte:6.0.1/MMB29K/G800MUBU1CPL1:user/release-keys");
80 | property_override("ro.build.description", "kminilteub-user 6.0.1 MMB29K G800MUBU1CPL1 release-keys");
81 | property_override("ro.product.model", "SM-G800M");
82 | property_override("ro.product.device", "kminilteub");
83 | }
84 |
85 | std::string device = android::base::GetProperty("ro.product.device", "");
86 | ALOGI("Found bootloader id %s setting build properties for %s device\n", bootloader.c_str(), device.c_str());
87 | }
88 |
89 |
--------------------------------------------------------------------------------
/fingerprint/fp_klte.h:
--------------------------------------------------------------------------------
1 | /*
2 | * Copyright (C) 2014 The Android Open Source Project
3 | * Copyright (C) 2016 The CyanogenMod Project
4 | * Copyright (C) 2016 The Mokee Project
5 | *
6 | * Licensed under the Apache License, Version 2.0 (the "License");
7 | * you may not use this file except in compliance with the License.
8 | * You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing, software
13 | * distributed under the License is distributed on an "AS IS" BASIS,
14 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 | * See the License for the specific language governing permissions and
16 | * limitations under the License.
17 | */
18 |
19 | #include
20 | #include
21 |
22 | #define CALL_BASE 0
23 |
24 | #define CALL_INITSERVICE 1
25 | #define CALL_ENROLL 2
26 | //userId ,fingerIndex
27 | #define CALL_CANCEL 3
28 | #define CALL_REMOVE 4
29 | //userId ,fingerIndex
30 | #define CALL_IDENTIFY 5
31 | //userId
32 | #define CALL_GET_ENROLLED_FINGER_LIST 6
33 | //userId
34 | #define CALL_CLEANUP 7
35 |
36 | typedef enum worker_state_t {
37 | STATE_IDLE = 0,
38 | STATE_ENROLL,
39 | STATE_SCAN,
40 | STATE_EXIT
41 | } worker_state_t;
42 |
43 | typedef struct worker_thread_t {
44 | pthread_t thread;
45 | worker_state_t state;
46 | } worker_thread_t;
47 |
48 | typedef struct vcs_fingerprint_device_t {
49 | fingerprint_device_t device; // "inheritance"
50 | worker_thread_t listener;
51 | uint64_t op_id;
52 | uint64_t challenge;
53 | uint64_t user_id;
54 | uint64_t group_id;
55 | uint64_t secure_user_id;
56 | uint64_t authenticator_id;
57 | uint32_t active_gid;
58 | int send_fd; //send to validity service
59 | int receive_fd; //recevie from validity service
60 | bool init;
61 | pthread_mutex_t lock;
62 | } vcs_fingerprint_device_t;
63 |
64 | static __inline__ int fd_write(int fd, const void* buff, int len){
65 | int len2;
66 | do {
67 | len2 = write(fd, buff, len);
68 | } while (len2 < 0 && errno == EINTR);
69 | return len2;
70 | }
71 | static __inline__ int fd_read(int fd, void* buff, int len){
72 | int len2;
73 | do {
74 | len2 = read(fd, buff, len);
75 | } while (len2 < 0 && errno == EINTR);
76 | return len2;
77 | }
78 |
79 | static void checkinit(vcs_fingerprint_device_t* vdev);
80 | static int sendcommand(vcs_fingerprint_device_t* vdev, uint8_t* command, int num);
81 | static int getfingermask(vcs_fingerprint_device_t* vdev);
82 | static int initService(vcs_fingerprint_device_t* vdev);
83 |
84 | static void send_error_notice(vcs_fingerprint_device_t* vdev, fingerprint_error_t error_info);
85 | static void send_acquired_notice(vcs_fingerprint_device_t* vdev, fingerprint_acquired_info_t acquired_info);
86 | static void send_enroll_notice(vcs_fingerprint_device_t* vdev, int fid, int remaining);
87 | static void send_authenticated_notice(vcs_fingerprint_device_t* vdev, int fid);
88 | static void send_remove_notice(vcs_fingerprint_device_t* vdev, int fid);
89 |
90 | static uint64_t get_64bit_rand();
91 | static uint64_t fingerprint_get_auth_id(struct fingerprint_device* device);
92 | static int fingerprint_set_active_group(struct fingerprint_device *device, uint32_t gid,
93 | const char __unused *path);
94 | static int fingerprint_authenticate(struct fingerprint_device *device,
95 | uint64_t operation_id, __unused uint32_t gid);
96 | static int fingerprint_enroll(struct fingerprint_device *device,
97 | const hw_auth_token_t *hat,
98 | uint32_t __unused gid,
99 | uint32_t __unused timeout_sec);
100 | static uint64_t fingerprint_pre_enroll(struct fingerprint_device *device);
101 | static int fingerprint_post_enroll(struct fingerprint_device* device);
102 | static int fingerprint_cancel(struct fingerprint_device *device);
103 | static int fingerprint_enumerate(struct fingerprint_device *device,
104 | fingerprint_finger_id_t *results, uint32_t *max_size);
105 | static int fingerprint_remove(struct fingerprint_device *device,
106 | uint32_t __unused gid, uint32_t fid);
107 | static int set_notify_callback(struct fingerprint_device *device,
108 | fingerprint_notify_t notify);
109 |
110 | static worker_state_t getListenerState(vcs_fingerprint_device_t* dev);
111 | static void* listenerSocket(void* data);
112 |
113 | static int fingerprint_close(hw_device_t* device);
114 | static int fingerprint_open(const hw_module_t* module, const char __unused *id,
115 | hw_device_t** device);
116 |
117 |
--------------------------------------------------------------------------------
/apps/ExtendedSettings/res/values-hu/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 | Haladó beállítások
18 |
19 |
20 | ÁLTALÁNOS
21 | TELJESÍTMÉNY
22 | ÉRINTŐGOMBOK
23 | BLN
24 |
25 |
26 | Kijelző
27 | Vízszintes kalibrálás
28 | Vízszintes kalibrálás a gyorulásmérő használatával
29 | Helyezd a készüléket vízszintes felületre és érintsd meg a "Kalibrálás" gombot
30 | Kalibrálás folyamatban...Kérlek ne mozgasd a készüléket!
31 | A fájl nem található. Kérlek próbáld újra
32 | Kalibrálva
33 | Befejezve
34 | Kalibrálás
35 |
36 | Gyors töltés engedélyezése
37 | Gyors töltés kényszerítése
38 | A PC-hez való USB csatlakozást érzékelje fali töltőként a gyorsabb töltés érdekében
39 |
40 |
41 | Teljesítmény
42 | Alacsony RAM-használat
43 | Alacsony RAM-használat engedélyezve, ezzel járó memóriakezelési tiltásokkal együtt
44 | Alacsony RAM-használat letiltva, memóriakezelési tiltások feloldva
45 | Hiba! Engedélyezd ennek az alkalmazásnak a root-jogokat!
46 |
47 | A beállítás engedélyezéséhez újra kell indítani a készüléket.\nSzeretnéd most megtenni?\n\nNyomj igent ha most, nem-et ha később indítanál újra.
48 | A készülék %1$d másodperc múlva újraindul, kis türelem...
49 | Igen
50 | Nem
51 |
52 |
53 | Érintőgombok
54 | Érintőgombok időzítése
55 | Állísd be, meddig tartson az érintőgombok háttérvilágítása
56 | Gombnyomásra világítás
57 | A háttérvilágítás ki/bekapcsolásának beállítása
58 |
59 | Véletlenszerű gomblenyomás-érzékelés
60 | Véletlenszerű gomblenyomások
61 | Külső alkalmazás segítségével szűrje az antenna-interferencia okozta gombnyomásokat
62 |
63 |
64 | Háttérvilágításos értesítések
65 | Értesítés formája
66 | Állítsd be, értesítés esetén hogyan világítsanak az érintőgombok
67 | Villogó gombok időtartama
68 | Állítsd be meddig villogjon a háttérvilágítás
69 | Felvillanás időtartama
70 | Állítsd be meddig tartson egy felvillanás
71 | Szünet időtartama
72 | Állítsd be mekkora legyen a szünet két villanás közt
73 | Folytonos világítás időtartama
74 | Állítsd be meddig tartson a folytonos világítás
75 |
76 |
--------------------------------------------------------------------------------
/apps/ExtendedSettings/res/values-es/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 | Opciones avanzadas
18 |
19 |
20 | GENERAL
21 | RENDIMENTO
22 | TECLAS
23 | BLN
24 |
25 |
26 | Pantalla
27 | Calibración horizontal
28 | Calibrar dispositivo con el acelerómetro
29 | Coloca el dispositivo en una superficie plana y pulsa Calibrar
30 | Calibración en curso. No muevas el dispositivo. Espera, por favor...
31 | Imposible encontrar el archivo offset. Inténtalo de nuevo
32 | Calibración completada
33 | Completo
34 | Calibrar
35 |
36 | Carga rápida
37 | Desconecta el cable USB
38 | Forzar carga rápida
39 | Detectar PC conectado al puerto USB como un cargador USB, para una carga más rápida
40 |
41 |
42 | Rendimento
43 | Optimizar RAM
44 | Uso óptimo de RAM activado. Las funciones con gran consumo de RAM están desactivadas
45 | Uso óptimo de RAM desactivado. Las funciones con gran consumo de RAM están activadas
46 | Imposible optimizar RAM. Por favor, establece permisos root para esta función
47 |
48 | Para aplicar la configuración es necesario reiniciar.\n¿Reiniciar ahora?\n\nPulsa Sí para reiniciar ahora, o pulsa No para reiniciar más tarde.
49 | El dispositivo se reiniciará en %1$d segundos. Espera, por favor.
50 | Sí
51 | No
52 |
53 |
54 | Teclas táctiles
55 | Duración de retroiluminación
56 | "Configurar la duración de la iluminacion de las teclas"
57 | Retroiluminación al pulsar en la pantalla
58 | Iluminar teclas táctiles al pulsar en la pantalla
59 |
60 | Pulsaciones fantasmas
61 | Filtro de las pulsaciones fantasma
62 | "Filtra las pulsaciones fantasma de las teclas, causadas por la interferencia de la antena (aplicación externa)"
63 |
64 |
65 | Notificaciones luminosas
66 | Tipo de notificación
67 | Configurar notificaciones luminosas
68 | Duración del parpadeo
69 | Configurar la duración del parpadeo
70 | LED encendido
71 | Tiempo que estará el LED encendido en cada parpadeo
72 | LED apagado
73 | Tiempo que estará el LED apagado en cada parpadeo
74 | Duración de LED encendido estático
75 | Tiempo que estará el LED encendido estático
76 |
77 |
--------------------------------------------------------------------------------
/apps/ExtendedSettings/res/values-pl/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 | Zaawansowane ustawienia
18 |
19 |
20 | OGÓLNE
21 | WYDAJNOŚĆ
22 | KLAWISZE DOTYKOWE
23 | BLN
24 |
25 |
26 | Ekran
27 | Pozioma kalibracja
28 | Kalibruj poziomo używajac akceleromentra
29 | Połóż urządzenie na płaskiej powierzchni i kliknij Kalibruj
30 | Kalibracja. Nie ruszaj urządzenia. Proszę czekać...
31 | Nie można znaleźć właściwego pliku. Spróbuj ponownie
32 | Skalibrowano
33 | Ukończono
34 | Kalibruj
35 |
36 | Wsparcie dla szybkiego ładowania
37 | Wymuś szybkie ładowanie
38 | Podłącz telefon do komputera przez port USB w celu włączenia szybkiego ładowania
39 |
40 |
41 | Wydajność
42 | Kontrola Low RAM
43 | Low RAM jest włączony, funkcje wymagające dużej ilości RAM-u są wyłączone
44 | Low RAM jest wyłączony, funkcje wymagające dużej ilości RAM-u są włączone
45 | Nie udało się zmienić ustawień Low RAM. Proszę nadać uprawnienia root dla tej aplikacji.
46 |
47 | Aby zastosować ustawienia, wymagane jest ponowne uruchomienie telefonu.\nCzy chcesz uruchomić ponownie telefon teraz?\n\nNaciśnij TAK, aby uruchomić ponownie telefon. NIE, jeżeli chcesz uruchomić ponownie telefon później.
48 | Telefon zostanie ponownie uruchomiony za %1$d sekund, proszę czekać.
49 | Tak
50 | Nie
51 |
52 |
53 | Klawisze dotykowe
54 | Czas trwania podświetlenia
55 | Ustaw czas po jakim zgaśnie podświetlenie klawiszy dotykowych
56 | Wyłączenie podświetlenia po kliknięciu w ekran dotykowy
57 | Aktywuj wyłączenie podświetlania po kliknięciu w ekran dotykowy
58 |
59 | Przypadkowe kliknięcia
60 | Filtr przypadkowych kliknięć
61 | Filtr przypadkowych kliknięć spowodowanych zakłóceniami (zewnętrzna aplikacja)
62 |
63 |
64 | Powiadomienia podświetleniem
65 | Typ powiadomienia
66 | Wybierz w jaki sposób będziesz powiadamiany poprzez podświetlanie klawiszy funkcyjnych
67 | Długość migania światła
68 | Ustaw czas trwania migania
69 | Przerwa po zapaleniu światła
70 | Ustaw czas trwania przerwy po każdym zapaleniu światła
71 | Przerwa po zgaszeniu światła
72 | Ustaw czas trwania przerwy po każdym zgaszeniu światła
73 | Długość świecenia ciągłego światła
74 | Ustaw długość trwania świecenia ciągłego światła
75 |
76 |
--------------------------------------------------------------------------------
/apps/ExtendedSettings/res/values-nl/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 | Geavanceerde instellingen
18 |
19 |
20 | ALGEMEEN
21 | PERFORMANTIE
22 | TOUCHKEY
23 | BLN
24 |
25 |
26 | Scherm
27 | Horizontale kalibratie
28 | Horizontaal kalibreren met de acceleratiemeter
29 | Plaats op een vlakke ondergrond en tik op Kalibreren
30 | Kalibreren. Verplaats apparaat niet. Even geduld...
31 | Kan margebestand niet vinden. Probeer het opnieuw
32 | Gekalibreerd
33 | Voltooid
34 | Kalibreer
35 |
36 | Snel Opladen ondersteuning
37 | Forceer snel opladen
38 | Detecteert een via USB verbonden PC als een gewone lader, om sneller op te laden
39 |
40 |
41 | Performantie
42 | Weinig RAM schakelaar
43 | Weinig RAM is ingeschakeld, functionaliteit voor apparaten met veel RAM is niet beschikbaar
44 | Weinig RAM is uitgeschakeld, functionaliteit voor apparaten met veel RAM is beschikbaar
45 | Onmogelijk om de instelling aan te passen, gelieve voor deze applicatie root-toegang toe te staan
46 |
47 | Om deze instelling toe te passen is opnieuw opstarten noodzakelijk.\nWilt u nu opnieuw opstarten?\n\nTik op Ja om nu opnieuw op te starten of op Nee als u dit later wilt doen.
48 | Het apparaat wordt opnieuw opgestart over %1$d seconden, even geduld.
49 | Ja
50 | Nee
51 |
52 |
53 | Aanraakknoppen
54 | Time-out achtergrondverlichting
55 | Vertraging voor automatisch uitschakelen achtergrondverlichting aanpassen
56 | Achtergrondverlichting als op het scherm wordt getikt
57 | Actievatiestatus van achtergrondverlichting indien op het scherm wordt getikt
58 |
59 | Fout geregistreerde tikken
60 | Filter fout geregistreerde tikken
61 | Filter tikken op de aanraakknoppen veroorzaakt door interferentie van de antenne (externe applicatie)
62 |
63 |
64 | Achtergrondverlichting Notificatie
65 | Notificatietype
66 | De manier waarop een notificatie wordt weergegeven door de achtergrondverlichting
67 | Knipperen time-out
68 | De periode waarin de lichten knipperen
69 | Knipperen AAN interval
70 | Het interval waarin het licht AAN is
71 | Knipperen UIT interval
72 | Het interval waarin het licht UIT is
73 | Continu licht time-out
74 | De periode waarin het licht continu aan blijft
75 |
76 |
77 |
--------------------------------------------------------------------------------
/apps/ExtendedSettings/res/values-zh-rCN/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 | 高级设置
18 |
19 |
20 | 调整
21 | 性能
22 | 触控键
23 | 呼吸灯
24 |
25 |
26 | 屏幕
27 | 水平校准
28 | 使用加速计作水平校准
29 | 将手机放在水平面上,然后轻触“校准”
30 | 校准中... 请勿移动手机
31 | 找不到文件,请重试
32 | 校准
33 | 完成
34 | 校准
35 |
36 | 快速充电设置
37 | 移除 USB 线缆
38 | 启用快速充电
39 | 若检测到USB线连接到电脑,充电会加快。(提醒:打开后无法使用大容量存储)
40 |
41 | USB-OTG
42 |
43 | 蓝牙
44 | A2DP Sink
45 | A2DP Sink 已启用, A2DP Source 已禁用
46 | A2DP Sink 已禁用, A2DP Source 已启用
47 | 更改 A2DP 模式前请先关闭蓝牙
48 |
49 |
50 | 性能
51 | 高品质图形效果切换
52 | 高品质图形效果已启用,状态栏、通知栏等透明特效已启用
53 | 高品质图形效果已禁用,状态栏、通知栏等透明特效已禁用
54 | 无法设置,请先允许该应用程序获取ROOT权限
55 |
56 | 低RAM切换
57 | 低RAM优化已启用, 部分占用较多RAM的系统功能已禁用
58 | 低RAM优化已禁用, 部分占用较多RAM的系统功能已启用
59 | 无法调用低RAM优化设置,请先允许该应用程序获取ROOT权限
60 |
61 | 应用程序与服务
62 | 最多后台进程数量
63 | 设置最多可同时在后台运行的应用程序数量
64 | 无法设置后台进程数量,请先授予ROOT权限
65 |
66 | 最多后台服务数量
67 | 设置最多可同时在后台运行的服务数量
68 | 无法设置后台服务数量,请先授予ROOT权限
69 |
70 | 需要重启手机来应用你的更改\n你想现在重启手机吗?\n\n点是立即重启,点否稍后重启
71 | 设备将会在 %1$d 秒后重启, 请稍后
72 | 是
73 | 否
74 |
75 |
76 | 触控键
77 | 按键灯超时
78 | 调整触控键背光自动关闭前的延迟时间
79 | 点击屏幕时背光
80 | 点击屏幕时激活触控键背光状态
81 |
82 | 虚假触控键
83 | 触控过滤值
84 | 调用第三方软件调节虚拟触控值,能避免天线信号干扰造成的自动返回桌面等问题
85 |
86 |
87 | 呼吸灯通知
88 | 通知类型
89 | 设置触控键呼吸灯闪烁的方式
90 | 呼吸灯超时
91 | 设置闪烁的总持续时间
92 | 点亮时长
93 | 设置每次呼吸灯点亮的时长
94 | 熄灭时长
95 | 设置每次呼吸灯熄灭的时长
96 | 常亮灯超时
97 | 设置常亮灯的总持续时间
98 |
99 |
--------------------------------------------------------------------------------
/apps/ExtendedSettings/res/values-el/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
16 |
17 | Προηγμένες ρυθμίσεις
18 |
19 |
20 | Γενικά
21 | Επίδοση
22 | TOUCHKEY
23 | BLN
24 |
25 |
26 | Οθόνη
27 | Oριζόντια βαθμονόμηση
28 | Οριζόντια βαθμονόμηση χρησιμοποιώντας το επιταχυνσιόμετρο
29 | Τοποθετήστε τη συσκευή σε μια επίπεδη επιφάνεια και πιέστε Εκτελέστε βαθμονόμηση
30 | Βαθμονόμηση. Μην μετακινείτε τη συσκευή. Παρακαλώ περιμένετε ...
31 | Αδύνατο να βρεθεί η θέση του αρχείου.Δοκιμάστε ξανά
32 | Βαθμονομημένο
33 | Ολοκληρώθηκε
34 | Βαθμονόμησε
35 |
36 | Υποστήριξη γρήγορης φόρτισης
37 | Πολύ γρήγορη φόρτιση
38 | Εντοπισμός σύνδεσης USB-PC ως USB Wall Charger, για γρηγορότερη κατάσταση φόρτισης
39 |
40 |
41 | Επίδοση
42 | Αλλαγή σε Low RAM
43 | Η Low RAM ειναι ενεργή, τα χαρακτηριστικά της large-RAM είναι ανενεργά
44 | Η Low RAM είναι ανενεργή, τα χαρακτηριστικά τηςlarge-RAM είναι ενεργά
45 | Αδύνατο να ορίσετε τη ρύθμιση LowRam, παρακαλούμε να εκχωρήσετε τα δικαιώματα root για αυτήν την εφαρμογή.
46 |
47 | Για να εφαρμόσετε τη ρύθμιση, απαιτείται επανεκκίνηση.\nΘέλετε να κάνετε επανεκκίνηση τώρα;\n\nΠατήστε Ναι για να επανεκκινήσετε τώρα, Όχι αν προτιμάτε να επανεκκινήσετε αργότερα.
48 | Η συσκευή θα κάνει επανεκκίνηση σε %1$d δευτερόλεπτα, παρακαλώ περιμένετε.
49 | Ναι
50 | Όχι
51 |
52 |
53 | Touch Keys
54 | Χρονικό περιθώριο Backlight
55 | Προσαρμογή της καθυστέρησης πριν κλείσει αυτόματο το touch key backlight
56 | Backlight στην Οθόνη τύπου αφής
57 | Ενεργοποίηση κατάστασης των touchkeys backlight στην οθόνη τύπου αφής
58 |
59 | Phantom key presses
60 | Phantom key presses filter
61 | Φιλτράρισμα των ανεπιθύμητων πατημάτων πλήκτρων εξαιτίας της παρεμβολής της κεραίας (εξωτερική εφαρμογή)
62 |
63 |
64 | Ειδοποίηση Backlight
65 | Τύπος Ειδοποίησης
66 | Ρύθμιση του τρόπου που θα αναφέρεται μια ειδοποίηση από τα touchkey lights
67 | Χρονικό περιθώριο Blinking Lights
68 | Ρύθμιση της διάρκειας χρόνου των blinking lights
69 | Blink ON Interval
70 | Ρύθμιση της διάρκειας διαστήματος για κάθε ενεργό blink
71 | Blink OFF Interval
72 | Ρύθμιση της διάρκειας διαστήματος για κάθε κλείσιμο του blink
73 | Χρονικό περιθώριο των Static Lights
74 | Ρύθμιση της χρονικής διάρκειας των στατικών φώτων
75 |
76 |
--------------------------------------------------------------------------------
/audio/audio_policy.conf:
--------------------------------------------------------------------------------
1 | # Global configuration section: lists input and output devices always present on the device
2 | # as well as the output device selected by default.
3 | # Devices are designated by a string that corresponds to the enum in audio.h
4 |
5 | global_configuration {
6 | attached_output_devices AUDIO_DEVICE_OUT_EARPIECE|AUDIO_DEVICE_OUT_SPEAKER
7 | default_output_device AUDIO_DEVICE_OUT_SPEAKER
8 | attached_input_devices AUDIO_DEVICE_IN_BUILTIN_MIC|AUDIO_DEVICE_IN_BACK_MIC|AUDIO_DEVICE_IN_VOICE_CALL|AUDIO_DEVICE_IN_REMOTE_SUBMIX
9 | }
10 |
11 | # audio hardware module section: contains descriptors for all audio hw modules present on the
12 | # device. Each hw module node is named after the corresponding hw module library base name.
13 | # For instance, "primary" corresponds to audio.primary..so.
14 | # The "primary" module is mandatory and must include at least one output with
15 | # AUDIO_OUTPUT_FLAG_PRIMARY flag.
16 | # Each module descriptor contains one or more output profile descriptors and zero or more
17 | # input profile descriptors. Each profile lists all the parameters supported by a given output
18 | # or input stream category.
19 | # The "channel_masks", "formats", "devices" and "flags" are specified using strings corresponding
20 | # to enums in audio.h and audio_policy.h. They are concatenated by use of "|" without space or "\n".
21 |
22 | audio_hw_modules {
23 | primary {
24 | outputs {
25 | primary {
26 | sampling_rates 48000
27 | channel_masks AUDIO_CHANNEL_OUT_STEREO
28 | formats AUDIO_FORMAT_PCM_16_BIT
29 | devices AUDIO_DEVICE_OUT_EARPIECE|AUDIO_DEVICE_OUT_SPEAKER|AUDIO_DEVICE_OUT_ALL_SCO|AUDIO_DEVICE_OUT_WIRED_HEADSET|AUDIO_DEVICE_OUT_WIRED_HEADPHONE|AUDIO_DEVICE_OUT_ANLG_DOCK_HEADSET
30 | flags AUDIO_OUTPUT_FLAG_PRIMARY
31 | }
32 | hdmi {
33 | sampling_rates 48000
34 | channel_masks dynamic
35 | formats AUDIO_FORMAT_PCM_16_BIT
36 | devices AUDIO_DEVICE_OUT_AUX_DIGITAL
37 | flags AUDIO_OUTPUT_FLAG_MULTI_CH
38 | }
39 | }
40 | inputs {
41 | primary {
42 | sampling_rates 8000|11025|16000|22050|24000|32000|44100|48000
43 | channel_masks AUDIO_CHANNEL_IN_MONO|AUDIO_CHANNEL_IN_STEREO|AUDIO_CHANNEL_IN_VOICE_UPLINK|AUDIO_CHANNEL_IN_VOICE_DNLINK
44 | formats AUDIO_FORMAT_PCM_16_BIT
45 | devices AUDIO_DEVICE_IN_BUILTIN_MIC|AUDIO_DEVICE_IN_BLUETOOTH_SCO_HEADSET|AUDIO_DEVICE_IN_WIRED_HEADSET|AUDIO_DEVICE_IN_BACK_MIC|AUDIO_DEVICE_IN_FM|AUDIO_DEVICE_IN_VOICE_CALL
46 | }
47 | }
48 | }
49 | a2dp {
50 | outputs {
51 | a2dp {
52 | sampling_rates 44100
53 | channel_masks AUDIO_CHANNEL_OUT_STEREO
54 | formats AUDIO_FORMAT_PCM_16_BIT
55 | devices AUDIO_DEVICE_OUT_ALL_A2DP
56 | }
57 | }
58 | inputs {
59 | a2dp {
60 | sampling_rates 44100|48000
61 | channel_masks AUDIO_CHANNEL_IN_MONO|AUDIO_CHANNEL_IN_STEREO
62 | formats AUDIO_FORMAT_PCM_16_BIT
63 | devices AUDIO_DEVICE_IN_BLUETOOTH_A2DP
64 | }
65 | }
66 | }
67 | usb {
68 | outputs {
69 | usb_accessory {
70 | sampling_rates 44100
71 | channel_masks AUDIO_CHANNEL_OUT_STEREO
72 | formats AUDIO_FORMAT_PCM_16_BIT
73 | devices AUDIO_DEVICE_OUT_USB_ACCESSORY
74 | }
75 | usb_device {
76 | sampling_rates 44100|48000
77 | channel_masks AUDIO_CHANNEL_OUT_STEREO
78 | formats AUDIO_FORMAT_PCM_16_BIT
79 | devices AUDIO_DEVICE_OUT_USB_DEVICE|AUDIO_DEVICE_OUT_DGTL_DOCK_HEADSET
80 | }
81 | }
82 | inputs {
83 | usb_device {
84 | sampling_rates 8000|11025|16000|22050|24000|32000|44100|48000
85 | channel_masks AUDIO_CHANNEL_IN_MONO|AUDIO_CHANNEL_IN_STEREO
86 | formats AUDIO_FORMAT_PCM_16_BIT
87 | devices AUDIO_DEVICE_IN_DGTL_DOCK_HEADSET
88 | }
89 | }
90 | }
91 | tms {
92 | outputs {
93 | tms {
94 | sampling_rates 8000|11025|12000|16000|22050|24000|32000|44100|48000
95 | channel_masks AUDIO_CHANNEL_OUT_STEREO
96 | formats AUDIO_FORMAT_PCM_16_BIT
97 | devices AUDIO_DEVICE_OUT_EXTERNAL_TMS
98 | }
99 | }
100 | inputs {
101 | tms {
102 | sampling_rates 8000|11025|12000|16000|22050|24000|32000|44100|48000
103 | channel_masks AUDIO_CHANNEL_IN_MONO|AUDIO_CHANNEL_IN_STEREO
104 | formats AUDIO_FORMAT_PCM_16_BIT
105 | devices AUDIO_DEVICE_IN_EXTERNAL_TMS
106 | }
107 | }
108 | }
109 | r_submix {
110 | outputs {
111 | submix {
112 | sampling_rates 48000
113 | channel_masks AUDIO_CHANNEL_OUT_STEREO
114 | formats AUDIO_FORMAT_PCM_16_BIT
115 | devices AUDIO_DEVICE_OUT_REMOTE_SUBMIX
116 | }
117 | }
118 | inputs {
119 | submix {
120 | sampling_rates 48000
121 | channel_masks AUDIO_CHANNEL_IN_STEREO
122 | formats AUDIO_FORMAT_PCM_16_BIT
123 | devices AUDIO_DEVICE_IN_REMOTE_SUBMIX
124 | }
125 | }
126 | }
127 | }
128 |
--------------------------------------------------------------------------------
/nfc/nfcee_access.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
--------------------------------------------------------------------------------