Init for cm14

This commit is contained in:
Valera1978 2016-10-08 09:53:08 +03:00
parent 2a0d888962
commit 2711cc97da
11 changed files with 29 additions and 1998 deletions

View File

@ -34,7 +34,7 @@ TARGET_BOOTLOADER_BOARD_NAME := MSM8974
# Kernel
BOARD_KERNEL_BASE := 0x00000000
BOARD_KERNEL_CMDLINE := console=null androidboot.hardware=qcom user_debug=31 msm_rtb.filter=0x37 ehci-hcd.park=3
BOARD_KERNEL_CMDLINE := console=null androidboot.hardware=qcom user_debug=31 msm_rtb.filter=0x37 ehci-hcd.park=3 androidboot.selinux=permissive
BOARD_KERNEL_PAGESIZE := 2048
BOARD_KERNEL_SEPARATED_DT := true
BOARD_MKBOOTIMG_ARGS := --ramdisk_offset 0x02000000 --tags_offset 0x01E00000
@ -67,7 +67,7 @@ TARGET_PROVIDES_LIBLIGHT := true
# Bluetooth
BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := device/samsung/viennalte/bluetooth
BOARD_BLUEDROID_VENDOR_CONF := device/samsung/viennalte/bluetooth/vnd_viennalte.txt
BOARD_CUSTOM_BT_CONFIG := device/samsung/viennalte/bluetooth/vnd_viennalte.txt
BOARD_BLUETOOTH_USES_HCIATTACH_PROPERTY := false
BOARD_HAVE_BLUETOOTH_BCM := true
@ -91,7 +91,7 @@ TARGET_POWERHAL_VARIANT := qcom
TARGET_POWERHAL_SET_INTERACTIVE_EXT := device/samsung/viennalte/power/power_ext.c
# Recovery
COMMON_GLOBAL_CFLAGS += -DNO_SECURE_DISCARD
# COMMON_GLOBAL_CFLAGS += -DNO_SECURE_DISCARD
BOARD_HAS_LARGE_FILESYSTEM := true
BOARD_HAS_NO_MISC_PARTITION := true
BOARD_HAS_NO_SELECT_BUTTON := true

View File

@ -1,50 +0,0 @@
/*
* Copyright (C) 2014 The CyanogenMod Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.cyanogenmod.hardware;
import java.io.File;
import java.util.Scanner;
import org.cyanogenmod.hardware.util.FileUtils;
public class DisplayColorCalibration {
private static final String COLOR_FILE = "/sys/class/graphics/fb0/rgb";
public static boolean isSupported() {
File f = new File(COLOR_FILE);
return f.exists();
}
public static int getMaxValue() {
return 32768;
}
public static int getMinValue() {
return 255;
}
public static int getDefValue() {
return getMaxValue();
}
public static String getCurColors() {
return FileUtils.readOneLine(COLOR_FILE);
}
public static boolean setColors(String colors) {
return FileUtils.writeLine(COLOR_FILE, colors);
}
}

View File

@ -1,44 +0,0 @@
/*
* Copyright (C) 2014 The CyanogenMod Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.cyanogenmod.hardware;
import org.cyanogenmod.hardware.util.FileUtils;
/*
* Disable capacitive keys
*
* This is intended for use on devices in which the capacitive keys
* can be fully disabled for replacement with a soft navbar. You
* really should not be using this on a device with mechanical or
* otherwise visible-when-inactive keys
*/
public class KeyDisabler {
private static String CONTROL_PATH = "/sys/class/sec/sec_touchkey/tsp_keys_enabled";
public static boolean isSupported() { return true; }
public static boolean isActive() {
return (FileUtils.readOneLine(CONTROL_PATH).equals("0"));
}
public static boolean setActive(boolean state) {
return FileUtils.writeLine(CONTROL_PATH, (state ? "0" : "1"));
}
}

View File

@ -46,7 +46,9 @@ PRODUCT_COPY_FILES += \
frameworks/native/data/etc/com.android.nfc_extras.xml:system/etc/permissions/com.android.nfc_extras.xml \
frameworks/native/data/etc/com.nxp.mifare.xml:system/etc/permissions/com.nxp.mifare.xml \
frameworks/native/data/etc/handheld_core_hardware.xml:system/etc/permissions/handheld_core_hardware.xml \
frameworks/native/data/etc/tablet_core_hardware.xml:system/etc/permissions/tablet_core_hardware.xml
frameworks/native/data/etc/tablet_core_hardware.xml:system/etc/permissions/tablet_core_hardware.xml \
frameworks/native/data/etc/android.software.app_widgets.xml:system/etc/permissions/android.software.app_widgets.xml \
frameworks/native/data/etc/android.software.freeform_window_management.xml:system/etc/permissions/android.software.freeform_window_management.xml
# Audio
PRODUCT_COPY_FILES += \

File diff suppressed because it is too large Load Diff

View File

@ -27,9 +27,6 @@
rotations as the default behavior. -->
<bool name="config_allowAllRotations">true</bool>
<!-- Default color for notification LED is white. -->
<color name="config_defaultNotificationColor">#ffffffff</color>
<!-- Default value for led color when battery is medium charged -->
<!-- The green LED is brighter than red, bias closer to yellow. -->
<integer name="config_notificationsBatteryMediumARGB">0xFFFF6000</integer>
@ -153,9 +150,6 @@
<!-- Boolean indicating whether the wifi chipset has background scan support -->
<bool translatable="false" name="config_wifi_background_scan_support">false</bool>
<!-- Enables or disables fading edges when marquee is enabled in TextView. -->
<bool name="config_ui_enableFadingMarquee">false</bool>
<!-- The VoiceMail default value is displayed to my own number if it is true -->
<bool name="config_telephony_use_own_number_for_voicemail">true</bool>
@ -278,7 +272,7 @@
</string-array>
<!-- Boolean to enable stylus gestures -->
<bool name="config_stylusGestures">true</bool>
<!-- <bool name="config_stylusGestures">true</bool> -->
<!-- The RadioAccessFamilies supported by the device.
Empty is viewed as "all". Only used on devices which
@ -286,4 +280,7 @@
format is UMTS|LTE|... -->
<string translatable="false" name="config_radio_access_family">GSM|WCDMA|LTE</string>
<!-- Indicate whether the SD card is accessible without removing the battery. -->
<bool name="config_batterySdCardAccessibility">true</bool>
</resources>

View File

@ -15,9 +15,6 @@
-->
<resources>
<!-- Whether or not the dock settings are to be displayed for this device when docked
<bool name="has_dock_settings">true</bool>-->
<bool name="has_powercontrol_widget">true</bool>
<!-- make home button wake configurable in display settings -->
<bool name="config_show_homeWake">true</bool>

View File

@ -35,6 +35,7 @@ import java.util.Collections;
import com.android.internal.telephony.uicc.IccCardApplicationStatus;
import com.android.internal.telephony.uicc.IccCardStatus;
import com.android.internal.telephony.uicc.IccUtils;
/**
* RIL customization for tabpro LTE devices
@ -255,7 +256,7 @@ public class TabproLteRIL extends RIL {
@Override
protected void
processUnsolicited (Parcel p) {
processUnsolicited (Parcel p, int type) {
Object ret;
int dataPosition = p.dataPosition(); // save off position within the Parcel
int response = p.readInt();
@ -285,7 +286,7 @@ public class TabproLteRIL extends RIL {
p.setDataPosition(dataPosition);
// Forward responses that we are not overriding to the super class
super.processUnsolicited(p);
super.processUnsolicited(p, type);
return;
}
@ -307,7 +308,7 @@ public class TabproLteRIL extends RIL {
@Override
protected RILRequest
processSolicited (Parcel p) {
processSolicited (Parcel p, int type) {
int serial, error;
boolean found = false;
int dataPosition = p.dataPosition(); // save off position within the Parcel
@ -339,7 +340,7 @@ public class TabproLteRIL extends RIL {
/* Nothing we care about, go up */
p.setDataPosition(dataPosition);
// Forward responses that we are not overriding to the super class
return super.processSolicited(p);
return super.processSolicited(p, type);
}
rr = findAndRemoveRequestFromList(serial);
if (rr == null) {

View File

@ -40,7 +40,6 @@ on init
mkdir /persist 0771 system system
# Support legacy paths
symlink /sdcard /mnt/sdcard
symlink /sdcard /storage/sdcard0
on early-boot
@ -412,6 +411,7 @@ service wpa_supplicant /system/bin/wpa_supplicant \
class main
socket wpa_wlan0 dgram 660 wifi wifi
disabled
group system wakelock
oneshot
service p2p_supplicant /system/bin/wpa_supplicant \
@ -428,80 +428,21 @@ service p2p_supplicant /system/bin/wpa_supplicant \
class main
socket wpa_wlan0 dgram 660 wifi wifi
disabled
oneshot
service dhcpcd_wlan0 /system/bin/dhcpcd -aABDKL
class late_start
disabled
oneshot
service dhcpcd_ibss /system/bin/dhcpcd -BKM
class late_start
disabled
oneshot
service dhcpcd_p2p /system/bin/dhcpcd -aABKL
class late_start
disabled
oneshot
service iprenew_wlan0 /system/bin/dhcpcd -n
class late_start
disabled
oneshot
service iprenew_p2p /system/bin/dhcpcd -n
class late_start
disabled
oneshot
service dhcpcd_eth0 /system/bin/dhcpcd -aABDKL
class late_start
disabled
oneshot
service iprenew_eth0 /system/bin/dhcpcd -n
class late_start
disabled
oneshot
service dhcpcd_bnep0 /system/bin/dhcpcd -BKLG
disabled
oneshot
service dhcpcd_bnep1 /system/bin/dhcpcd -BKLG
disabled
oneshot
service dhcpcd_bnep2 /system/bin/dhcpcd -BKLG
disabled
oneshot
service dhcpcd_bnep3 /system/bin/dhcpcd -BKLG
disabled
oneshot
service dhcpcd_bnep4 /system/bin/dhcpcd -BKLG
disabled
oneshot
#for WiFi MFG(TestMode)
service mfgloader /system/bin/mfgloader
class main
disabled
oneshot
service wlandutservice /system/bin/wlandutservice
class main
user system
group wifi net_raw net_admin system inet
disabled
group system wakelock
oneshot
service macloader /system/bin/macloader
class main
oneshot
service ril-daemon /system/bin/rild
class main
socket rild stream 660 root radio
socket sap_uim_socket1 stream 660 bluetooth bluetooth
socket rild-debug stream 660 radio system
user root
group radio cache inet misc audio log wakelock qcom_diag
on property:init.svc.macloader=stopped
chown system root /data/.cid.info
chmod 0664 /data/.cid.info

View File

@ -2,10 +2,10 @@ allow mediaserver sysfs_camera:dir search;
allow mediaserver sysfs_camera:file { getattr open read };
allow mediaserver firmware_file:dir r_dir_perms;
allow mediaserver firmware_file:file r_file_perms;
allow mediaserver shell_data_file:dir search;
# allow mediaserver shell_data_file:dir search;
allow mediaserver socket_device:sock_file write;
allow mediaserver system_data_file:sock_file write;
allow mediaserver system_prop:property_service set;
allow mediaserver thermal-engine:unix_stream_socket connectto;
# This sucks but needed for libmmjpeg
allow mediaserver system_file:file execmod;
# allow mediaserver system_file:file execmod;

View File

@ -5,7 +5,7 @@ allow mm-qcamerad mpdecision:unix_stream_socket connectto;
allow mm-qcamerad camera_socket:sock_file { create unlink };
allow mm-qcamerad system_data_file:sock_file unlink;
allow mm-qcamerad socket_device:sock_file write;
allow mm-qcamerad system_file:file execmod;
# allow mm-qcamerad system_file:file execmod;
allow mm-qcamerad system_data_file:dir { add_name remove_name write };
allow mm-qcamerad system_server:unix_stream_socket rw_socket_perms;
@ -15,4 +15,4 @@ allow mm-qcamerad sysfs_camera:file { getattr open read write };
type_transition mm-qcamerad system_data_file:sock_file camera_socket "cam_socket3";
# This sucks but needed for libmmjpeg
allow mm-qcamerad system_file:file execmod;
# allow mm-qcamerad system_file:file execmod;