qcom-common: Clean up Samsung device inheritance
* Move platform specific definitions to platform trees
* Declare dependency on hardware/samsung
* Delete unused releasetools
* Add common postrecoveryboot script
* Remove init.qcom.class_core.sh
* Remove init.qcom.class_main.sh
* Remove init.qcom.early_boot.sh
* Remove init.qcom.efs_sync.sh
* Remove init.qcom.post_boot.sh
* Remove init.qcom.ril.sh
* Remove init.qcom.sh
* Remove init.qcom.syspart_fixup.sh
* Remove init.qcom.thermal_conf.sh
* Remove thermal configs, move to platform trees
* Remove init.qcom.usb.sh
* Remove init.qcom.lpm_boot.sh
* Move QCOM_BSP to platform/device repos
* Move mic mute overlay option to qcom-common
* Move reboot to download option to qcom-common
* Move common overlay options to qcom-common
* Move lpm.rc to msm8660-common
* Provide both 8660/8960 and 8974 power saving options for recovery
Change-Id: I4b11b63e36b243a2a23594dc88b4f3e506f01d53
diff --git a/BoardConfigCommon.mk b/BoardConfigCommon.mk
index 1ef0d5e..3e18a81 100644
--- a/BoardConfigCommon.mk
+++ b/BoardConfigCommon.mk
@@ -21,35 +21,26 @@
TARGET_ARCH := arm
TARGET_CPU_ABI := armeabi-v7a
TARGET_CPU_ABI2 := armeabi
+TARGET_CPU_SMP := true
TARGET_ARCH_VARIANT := armv7-a-neon
-# chargers
+# Charger
BOARD_CHARGER_RES := device/samsung/qcom-common/charger
-# Recovery
-TARGET_RECOVERY_PIXEL_FORMAT := "RGBX_8888"
-
-# QCOM hardware
-TARGET_QCOM_AUDIO_VARIANT := caf
-TARGET_QCOM_DISPLAY_VARIANT := caf
-BOARD_USES_LEGACY_ALSA_AUDIO := true
-
-# Use CM PowerHAL by default
-TARGET_POWERHAL_VARIANT := cm
+# CMHW
+BOARD_HARDWARE_CLASS += hardware/samsung/cmhw
# Graphics
USE_OPENGL_RENDERER := true
TARGET_USES_C2D_COMPOSITION := true
TARGET_USES_ION := true
-# Charging mode
-BOARD_CHARGING_MODE_BOOTING_LPM := /sys/class/power_supply/battery/batt_lp_charging
-BOARD_BATTERY_DEVICE_NAME := "battery"
-
-TARGET_RELEASETOOLS_EXTENSIONS := device/samsung/qcom-common
-
-BOARD_HARDWARE_CLASS += hardware/samsung/cmhw
-
-# Override healthd HAL
+# Healthd
BOARD_HAL_STATIC_LIBRARIES := libhealthd.qcom
+# Qualcomm support
+COMMON_GLOBAL_CFLAGS += -DQCOM_HARDWARE
+BOARD_USES_QCOM_HARDWARE := true
+
+# Recovery
+TARGET_RECOVERY_PIXEL_FORMAT := "RGBX_8888"
diff --git a/cm.dependencies b/cm.dependencies
new file mode 100644
index 0000000..37d61b6
--- /dev/null
+++ b/cm.dependencies
@@ -0,0 +1,6 @@
+[
+ {
+ "repository": "android_hardware_samsung",
+ "target_path": "hardware/samsung"
+ }
+]
diff --git a/media/Android.mk b/media/Android.mk
deleted file mode 100644
index 1dee53f..0000000
--- a/media/Android.mk
+++ /dev/null
@@ -1,25 +0,0 @@
-ifeq ($(call is-board-platform-in-list,msm8960 msm8660),true)
-
-LOCAL_PATH := $(call my-dir)
-include $(CLEAR_VARS)
-
-include $(CLEAR_VARS)
-LOCAL_MODULE := media_codecs.xml
-LOCAL_MODULE_TAGS := optional
-LOCAL_MODULE_CLASS := ETC
-LOCAL_MODULE_PATH := $(TARGET_OUT_ETC)/
-LOCAL_SRC_FILES := media_codecs.xml
-include $(BUILD_PREBUILT)
-
-else
-
-LOCAL_PATH := $(call my-dir)
-include $(CLEAR_VARS)
-LOCAL_MODULE := media_codecs.xml
-LOCAL_MODULE_TAGS := optional
-LOCAL_MODULE_CLASS := ETC
-LOCAL_MODULE_PATH := $(TARGET_OUT_ETC)/
-LOCAL_SRC_FILES := media_codecs_8974.xml
-include $(BUILD_PREBUILT)
-
-endif
\ No newline at end of file
diff --git a/media/media_codecs.xml b/media/media_codecs.xml
deleted file mode 100644
index 74aed30..0000000
--- a/media/media_codecs.xml
+++ /dev/null
@@ -1,148 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!-- Copyright (C) 2012-2013, The Linux Foundation. All rights reserved.
- Not a contribution.
-
- Copyright (C) 2012 The Android Open Source 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.
--->
-
-<MediaCodecs>
- <Encoders>
- <MediaCodec name="OMX.google.aac.encoder" type="audio/mp4a-latm" />
- <MediaCodec name="OMX.qcom.audio.encoder.evrc" type="audio/evrc" >
- <Quirk name="requires-allocate-on-input-ports" />
- <Quirk name="requires-allocate-on-output-ports" />
- </MediaCodec>
- <MediaCodec name="OMX.google.flac.encoder" type="audio/flac"/>
- <MediaCodec name="OMX.qcom.audio.encoder.qcelp13" type="audio/qcelp" >
- <Quirk name="requires-allocate-on-input-ports" />
- <Quirk name="requires-allocate-on-output-ports" />
- </MediaCodec>
- <MediaCodec name="AACEncoder" type="audio/mp4a-latm" />
- <MediaCodec name="OMX.google.amrnb.encoder" type="audio/3gpp" />
- <MediaCodec name="OMX.google.amrwb.encoder" type="audio/amr-wb" />
- <MediaCodec name="OMX.qcom.video.encoder.mpeg4" type="video/mp4v-es" >
- <Quirk name="requires-allocate-on-input-ports" />
- <Quirk name="requires-allocate-on-output-ports"/>
- <Quirk name="requires-loaded-to-idle-after-allocation"/>
- </MediaCodec>
- <MediaCodec name="OMX.qcom.video.encoder.h263" type="video/3gpp" >
- <Quirk name="requires-allocate-on-input-ports" />
- <Quirk name="requires-allocate-on-output-ports"/>
- <Quirk name="requires-loaded-to-idle-after-allocation"/>
- </MediaCodec>
- <MediaCodec name="OMX.qcom.video.encoder.avc" type="video/avc" >
- <Quirk name="requires-allocate-on-input-ports" />
- <Quirk name="requires-allocate-on-output-ports"/>
- <Quirk name="requires-loaded-to-idle-after-allocation"/>
- </MediaCodec>
-
- <MediaCodec name="OMX.google.vp8.encoder" type="video/x-vnd.on2.vp8" />
- </Encoders>
- <Decoders>
- <!-- Audio Hardware -->
- <MediaCodec name="OMX.qcom.audio.decoder.wma" type="audio/x-ms-wma" >
- <Quirk name="requires-global-flush" />
- <Quirk name="requires-wma-pro-component" />
- </MediaCodec>
- <MediaCodec name="OMX.qcom.audio.decoder.wmaLossLess" type="audio/x-ms-wma" >
- <Quirk name="requires-global-flush" />
- </MediaCodec>
- <MediaCodec name="OMX.qcom.audio.decoder.wma10Pro" type="audio/x-ms-wma" >
- <Quirk name="requires-global-flush" />
- </MediaCodec>
- <MediaCodec name="OMX.qcom.audio.decoder.amrwbplus" type="audio/amr-wb-plus" >
- </MediaCodec>
- <!-- Audio Software -->
- <MediaCodec name="OMX.google.vorbis.decoder" type="audio/vorbis" />
- <MediaCodec name="OMX.google.gsm.decoder" type="audio/gsm" />
- <MediaCodec name="OMX.google.mp3.decoder" type="audio/mpeg" />
- <MediaCodec name="MP3Decoder" type="audio/mpeg" />
- <MediaCodec name="OMX.google.amrnb.decoder" type="audio/3gpp" />
- <MediaCodec name="OMX.google.amrwb.decoder" type="audio/amr-wb" />
- <MediaCodec name="OMX.google.aac.decoder" type="audio/mp4a-latm" />
- <MediaCodec name="OMX.google.g711.alaw.decoder" type="audio/g711-alaw" />
- <MediaCodec name="OMX.google.g711.mlaw.decoder" type="audio/g711-mlaw" />
- <MediaCodec name="OMX.qcom.audio.decoder.Qcelp13" type="audio/qcelp" >
- <Quirk name="requires-global-flush" />
- </MediaCodec>
- <MediaCodec name="OMX.qcom.audio.decoder.evrc" type="audio/evrc" >
- <Quirk name="requires-global-flush" />
- </MediaCodec>
- <MediaCodec name="OMX.qcom.video.decoder.vc1" type="video/x-ms-wmv" >
- <Quirk name="requires-allocate-on-input-ports" />
- <Quirk name="requires-allocate-on-output-ports" />
- <Quirk name="defers-output-buffer-allocation" />
- </MediaCodec>
- <MediaCodec name="OMX.qcom.video.decoder.divx" type="video/divx" >
- <Quirk name="requires-allocate-on-input-ports" />
- <Quirk name="requires-allocate-on-output-ports" />
- <Quirk name="defers-output-buffer-allocation" />
- </MediaCodec>
- <MediaCodec name="OMX.qcom.video.decoder.divx311" type="video/divx311" >
- <Quirk name="requires-allocate-on-input-ports" />
- <Quirk name="requires-allocate-on-output-ports" />
- <Quirk name="defers-output-buffer-allocation" />
- </MediaCodec>
- <MediaCodec name="OMX.qcom.video.decoder.divx4" type="video/divx4" >
- <Quirk name="requires-allocate-on-input-ports" />
- <Quirk name="requires-allocate-on-output-ports" />
- <Quirk name="defers-output-buffer-allocation" />
- </MediaCodec>
- <MediaCodec name="OMX.qcom.video.decoder.avc" type="video/avc" >
- <Quirk name="requires-allocate-on-input-ports" />
- <Quirk name="requires-allocate-on-output-ports"/>
- <Quirk name="defers-output-buffer-allocation"/>
- </MediaCodec>
- <MediaCodec name="OMX.qcom.video.decoder.mpeg2" type="video/mpeg2" >
- <Quirk name="requires-allocate-on-input-ports" />
- <Quirk name="requires-allocate-on-output-ports"/>
- <Quirk name="defers-output-buffer-allocation"/>
- </MediaCodec>
- <MediaCodec name="OMX.qcom.video.decoder.mpeg4" type="video/mp4v-es" >
- <Quirk name="requires-allocate-on-input-ports" />
- <Quirk name="requires-allocate-on-output-ports"/>
- <Quirk name="defers-output-buffer-allocation"/>
- </MediaCodec>
- <MediaCodec name="OMX.qcom.video.decoder.h263" type="video/3gpp" >
- <Quirk name="requires-allocate-on-input-ports" />
- <Quirk name="requires-allocate-on-output-ports"/>
- <Quirk name="defers-output-buffer-allocation"/>
- </MediaCodec>
- <MediaCodec name="OMX.google.vp8.decoder" type="video/x-vnd.on2.vp8" />
- <MediaCodec name="OMX.google.vp9.decoder" type="video/x-vnd.on2.vp9" />
- <MediaCodec name="OMX.google.h264.decoder" type="video/avc" />
- <MediaCodec name="OMX.google.h263.decoder" type="video/3gpp" />
- <MediaCodec name="OMX.google.mpeg4.decoder" type="video/mp4v-es" />
-
- <!-- ffmpeg audio codecs -->
- <MediaCodec name="OMX.ffmpeg.ra.decoder" type="audio/vnd.rn-realaudio"/>
- <MediaCodec name="OMX.ffmpeg.flac.decoder" type="audio/flac"/>
- <MediaCodec name="OMX.ffmpeg.mp2.decoder" type="audio/mpeg-L2"/>
- <MediaCodec name="OMX.ffmpeg.ac3.decoder" type="audio/ac3"/>
- <MediaCodec name="OMX.ffmpeg.ape.decoder" type="audio/x-ape"/>
- <MediaCodec name="OMX.ffmpeg.dts.decoder" type="audio/vnd.dts"/>
- <MediaCodec name="OMX.ffmpeg.atrial.decoder" type="audio/ffmpeg"/>
-
- <!-- ffmpeg video codecs -->
- <MediaCodec name="OMX.ffmpeg.mpeg2v.decoder" type="video/mpeg2"/>
- <MediaCodec name="OMX.ffmpeg.wmv.decoder" type="video/x-ms-wmv"/>
- <MediaCodec name="OMX.ffmpeg.rv.decoder" type="video/vnd.rn-realvideo"/>
- <MediaCodec name="OMX.ffmpeg.vc1.decoder" type="video/vc1"/>
- <MediaCodec name="OMX.ffmpeg.flv1.decoder" type="video/x-flv"/>
- <MediaCodec name="OMX.ffmpeg.divx.decoder" type="video/divx"/>
- <MediaCodec name="OMX.ffmpeg.hevc.decoder" type="video/hevc"/>
- <MediaCodec name="OMX.ffmpeg.vtrial.decoder" type="video/ffmpeg"/>
- </Decoders>
-</MediaCodecs>
diff --git a/media/media_codecs_8974.xml b/media/media_codecs_8974.xml
deleted file mode 100644
index 24116a2..0000000
--- a/media/media_codecs_8974.xml
+++ /dev/null
@@ -1,169 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!-- Copyright (C) 2012-2013 The Android Open Source Project
- Copyright (C) 2012-2013 The Linux Foundation. All rights reserved.
- Not a contribution.
-
- 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.
--->
-<CodecList>
- <Encoders>
- <!-- Audio Hardware -->
- <MediaCodec name="OMX.google.aac.encoder" type="audio/mp4a-latm" />
- <MediaCodec name="OMX.qcom.audio.encoder.evrc" type="audio/evrc" >
- <Quirk name="requires-allocate-on-input-ports" />
- <Quirk name="requires-allocate-on-output-ports" />
- </MediaCodec>
- <MediaCodec name="OMX.google.flac.encoder" type="audio/flac"/>
- <MediaCodec name="OMX.qcom.audio.encoder.qcelp13" type="audio/qcelp" >
- <Quirk name="requires-allocate-on-input-ports" />
- <Quirk name="requires-allocate-on-output-ports" />
- </MediaCodec>
- <!-- Audio Software -->
- <MediaCodec name="AACEncoder" type="audio/mp4a-latm" />
- <MediaCodec name="OMX.google.amrnb.encoder" type="audio/3gpp" />
- <MediaCodec name="OMX.google.amrwb.encoder" type="audio/amr-wb" />
- <!-- Video Hardware -->
- <MediaCodec name="OMX.qcom.video.encoder.avc" type="video/avc" >
- <Quirk name="requires-allocate-on-input-ports" />
- <Quirk name="requires-allocate-on-output-ports" />
- <Quirk name="requires-loaded-to-idle-after-allocation" />
- </MediaCodec>
- <MediaCodec name="OMX.qcom.video.encoder.mpeg4" type="video/mp4v-es" >
- <Quirk name="requires-allocate-on-input-ports" />
- <Quirk name="requires-allocate-on-output-ports" />
- <Quirk name="requires-loaded-to-idle-after-allocation"/>
- </MediaCodec>
- <MediaCodec name="OMX.qcom.video.encoder.h263" type="video/3gpp" >
- <Quirk name="requires-allocate-on-input-ports" />
- <Quirk name="requires-allocate-on-output-ports" />
- <Quirk name="requires-loaded-to-idle-after-allocation" />
- </MediaCodec>
- <!-- Video Software -->
- <MediaCodec name="OMX.google.h264.encoder" type="video/avc" />
- <MediaCodec name="OMX.google.mpeg4.encoder" type="video/mp4v-es" />
- <MediaCodec name="OMX.google.h263.encoder" type="video/3gpp" />
- </Encoders>
- <Decoders>
- <!-- Audio Hardware -->
- <MediaCodec name="OMX.qcom.audio.decoder.wma" type="audio/x-ms-wma" >
- <Quirk name="requires-global-flush" />
- <Quirk name="requires-wma-pro-component" />
- </MediaCodec>
- <MediaCodec name="OMX.qcom.audio.decoder.wmaLossLess" type="audio/x-ms-wma" >
- <Quirk name="requires-global-flush" />
- </MediaCodec>
- <MediaCodec name="OMX.qcom.audio.decoder.wma10Pro" type="audio/x-ms-wma" >
- <Quirk name="requires-global-flush" />
- </MediaCodec>
- <MediaCodec name="OMX.qcom.audio.decoder.amrwbplus" type="audio/amr-wb-plus" >
- </MediaCodec>
- <!-- Audio Software -->
- <MediaCodec name="OMX.google.vorbis.decoder" type="audio/vorbis" />
- <MediaCodec name="OMX.google.mp3.decoder" type="audio/mpeg" />
- <MediaCodec name="MP3Decoder" type="audio/mpeg" />
- <MediaCodec name="OMX.google.amrnb.decoder" type="audio/3gpp" />
- <MediaCodec name="OMX.google.amrwb.decoder" type="audio/amr-wb" />
- <MediaCodec name="OMX.google.aac.decoder" type="audio/mp4a-latm" />
- <MediaCodec name="AACDecoder" type="audio/mp4a-latm" />
- <MediaCodec name="OMX.google.g711.alaw.decoder" type="audio/g711-alaw" />
- <MediaCodec name="OMX.google.g711.mlaw.decoder" type="audio/g711-mlaw" />
- <MediaCodec name="OMX.qcom.audio.decoder.Qcelp13" type="audio/qcelp" >
- <Quirk name="requires-global-flush" />
- </MediaCodec>
- <MediaCodec name="OMX.qcom.audio.decoder.evrc" type="audio/evrc" >
- <Quirk name="requires-global-flush" />
- </MediaCodec>
- <!-- Video Hardware -->
- <MediaCodec name="OMX.qcom.video.decoder.avc" type="video/avc" >
- <Quirk name="requires-allocate-on-input-ports" />
- <Quirk name="requires-allocate-on-output-ports" />
- <Quirk name="defers-output-buffer-allocation" />
- </MediaCodec>
- <MediaCodec name="OMX.qcom.video.decoder.mpeg2" type="video/mpeg2" >
- <Quirk name="requires-allocate-on-input-ports" />
- <Quirk name="requires-allocate-on-output-ports" />
- <Quirk name="defers-output-buffer-allocation" />
- </MediaCodec>
- <MediaCodec name="OMX.qcom.video.decoder.mpeg4" type="video/mp4v-es" >
- <Quirk name="requires-allocate-on-input-ports" />
- <Quirk name="requires-allocate-on-output-ports" />
- <Quirk name="defers-output-buffer-allocation" />
- </MediaCodec>
- <MediaCodec name="OMX.qcom.video.decoder.h263" type="video/3gpp" >
- <Quirk name="requires-allocate-on-input-ports" />
- <Quirk name="requires-allocate-on-output-ports" />
- <Quirk name="defers-output-buffer-allocation" />
- </MediaCodec>
- <MediaCodec name="OMX.qcom.video.decoder.vc1" type="video/x-ms-wmv" >
- <Quirk name="requires-allocate-on-input-ports" />
- <Quirk name="requires-allocate-on-output-ports" />
- <Quirk name="defers-output-buffer-allocation" />
- </MediaCodec>
- <MediaCodec name="OMX.qcom.video.decoder.divx" type="video/divx" >
- <Quirk name="requires-allocate-on-input-ports" />
- <Quirk name="requires-allocate-on-output-ports" />
- <Quirk name="defers-output-buffer-allocation" />
- </MediaCodec>
- <MediaCodec name="OMX.qcom.video.decoder.divx311" type="video/divx311" >
- <Quirk name="requires-allocate-on-input-ports" />
- <Quirk name="requires-allocate-on-output-ports" />
- <Quirk name="defers-output-buffer-allocation" />
- </MediaCodec>
- <MediaCodec name="OMX.qcom.video.decoder.divx4" type="video/divx4" >
- <Quirk name="requires-allocate-on-input-ports" />
- <Quirk name="requires-allocate-on-output-ports" />
- <Quirk name="defers-output-buffer-allocation" />
- </MediaCodec>
- <MediaCodec name="OMX.qcom.video.decoder.vp8" type="video/x-vnd.on2.vp8" >
- <Quirk name="requires-allocate-on-input-ports" />
- <Quirk name="requires-allocate-on-output-ports" />
- <Quirk name="defers-output-buffer-allocation" />
- </MediaCodec>
- <MediaCodec name="OMX.qcom.video.decoder.hevc" type="video/hevc" >
- <Quirk name="requires-allocate-on-input-ports" />
- <Quirk name="requires-allocate-on-output-ports" />
- <Quirk name="defers-output-buffer-allocation" />
- </MediaCodec>
- <MediaCodec name="OMX.qcom.video.decoder.hevchybrid" type="video/hevc" >
- <Quirk name="requires-allocate-on-input-ports" />
- <Quirk name="requires-allocate-on-output-ports" />
- <Quirk name="defers-output-buffer-allocation" />
- </MediaCodec>
- <!-- Video Software -->
- <MediaCodec name="OMX.google.h264.decoder" type="video/avc" />
- <MediaCodec name="OMX.google.mpeg4.decoder" type="video/mp4v-es" />
- <MediaCodec name="OMX.google.h263.decoder" type="video/3gpp" />
- <MediaCodec name="OMX.google.vp8.decoder" type="video/x-vnd.on2.vp8" />
- <MediaCodec name="OMX.google.vp9.decoder" type="video/x-vnd.on2.vp9" />
-
- <!-- ffmpeg audio codecs -->
- <MediaCodec name="OMX.ffmpeg.ra.decoder" type="audio/vnd.rn-realaudio"/>
- <MediaCodec name="OMX.ffmpeg.flac.decoder" type="audio/flac"/>
- <MediaCodec name="OMX.ffmpeg.mp2.decoder" type="audio/mpeg-L2"/>
- <MediaCodec name="OMX.ffmpeg.ac3.decoder" type="audio/ac3"/>
- <MediaCodec name="OMX.ffmpeg.ape.decoder" type="audio/x-ape"/>
- <MediaCodec name="OMX.ffmpeg.dts.decoder" type="audio/vnd.dts"/>
- <MediaCodec name="OMX.ffmpeg.atrial.decoder" type="audio/ffmpeg"/>
-
- <!-- ffmpeg video codecs -->
- <MediaCodec name="OMX.ffmpeg.mpeg2v.decoder" type="video/mpeg2"/>
- <MediaCodec name="OMX.ffmpeg.wmv.decoder" type="video/x-ms-wmv"/>
- <MediaCodec name="OMX.ffmpeg.rv.decoder" type="video/vnd.rn-realvideo"/>
- <MediaCodec name="OMX.ffmpeg.vc1.decoder" type="video/vc1"/>
- <MediaCodec name="OMX.ffmpeg.flv1.decoder" type="video/x-flv"/>
- <MediaCodec name="OMX.ffmpeg.divx.decoder" type="video/divx"/>
- <MediaCodec name="OMX.ffmpeg.hevc.decoder" type="video/hevc"/>
- <MediaCodec name="OMX.ffmpeg.vtrial.decoder" type="video/ffmpeg"/>
-
- </Decoders>
-</CodecList>
diff --git a/overlay/frameworks/base/core/res/res/values/arrays.xml b/overlay/frameworks/base/core/res/res/values/arrays.xml
new file mode 100644
index 0000000..2576220
--- /dev/null
+++ b/overlay/frameworks/base/core/res/res/values/arrays.xml
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+**
+** Copyright 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.
+*/
+-->
+
+<resources>
+
+ <!-- Defines the shutdown options shown in the reboot dialog. -->
+ <array name="shutdown_reboot_options" translatable="false">
+ <item>@string/reboot_reboot</item>
+ <item>@string/reboot_recovery</item>
+ <item>@string/reboot_download</item>
+ </array>
+
+ <!-- Do not translate. Defines the shutdown actions passed to the kernel.
+ The first item should be empty for regular reboot. -->
+ <string-array name="shutdown_reboot_actions" translatable="false">
+ <item></item>
+ <item>recovery</item>
+ <item>download</item>
+ </string-array>
+
+</resources>
diff --git a/overlay/frameworks/base/core/res/res/values/config.xml b/overlay/frameworks/base/core/res/res/values/config.xml
new file mode 100644
index 0000000..059c231
--- /dev/null
+++ b/overlay/frameworks/base/core/res/res/values/config.xml
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+/*
+** Copyright 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.
+*/
+-->
+
+<resources>
+
+ <!-- Our amoled doesn't animate well. needed for crt effect -->
+ <bool name="config_animateScreenLights">false</bool>
+
+ <!-- Flag indicating whether we should enable the automatic brightness in Settings.
+ config_hardware_automatic_brightness_available is not set, so we will use software implementation -->
+ <bool name="config_automatic_brightness_available">true</bool>
+
+ <!-- If this is true, the screen will come on when you unplug usb/power/whatever. -->
+ <bool name="config_unplugTurnsOnScreen">true</bool>
+
+</resources>
diff --git a/overlay/frameworks/base/packages/SystemUI/res/values/config.xml b/overlay/frameworks/base/core/res/res/values/strings.xml
similarity index 65%
rename from overlay/frameworks/base/packages/SystemUI/res/values/config.xml
rename to overlay/frameworks/base/core/res/res/values/strings.xml
index f5efbdc..1608414 100644
--- a/overlay/frameworks/base/packages/SystemUI/res/values/config.xml
+++ b/overlay/frameworks/base/core/res/res/values/strings.xml
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
-/*
-** Copyright 2013, The Android Open Source Project
+**
+** Copyright 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.
@@ -17,12 +17,6 @@
*/
-->
-<!-- These resources are around just to allow their values to be customized
- for different hardware and product builds. -->
<resources>
-
- <!-- Should "4G" be shown instead of "LTE" when the network is
- NETWORK_TYPE_LTE? -->
- <bool name="config_show4GForLTE">false</bool>
-
+ <string name="roamingText3">Network Extender</string>
</resources>
diff --git a/overlay/packages/services/Telephony/res/values/config.xml b/overlay/packages/services/Telephony/res/values/config.xml
new file mode 100644
index 0000000..537ef6b
--- /dev/null
+++ b/overlay/packages/services/Telephony/res/values/config.xml
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- 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.
+-->
+
+<resources>
+ <!-- Determine whether calls to mute the microphone in PhoneUtils
+ are routed through the android.media.AudioManager class (true) or through
+ the com.android.internal.telephony.Phone interface (false). -->
+ <bool name="send_mic_mute_to_AudioManager">true</bool>
+
+ <!-- Flag indicating if the tty is enabled -->
+ <bool name="tty_enabled">true</bool>
+</resources>
diff --git a/qcom-common.mk b/qcom-common.mk
index b577def..12f426f 100644
--- a/qcom-common.mk
+++ b/qcom-common.mk
@@ -12,40 +12,28 @@
# See the License for the specific language governing permissions and
# limitations under the License.
+# Overlay
+DEVICE_PACKAGE_OVERLAYS += \
+ device/samsung/qcom-common/overlay
-# Media config
-PRODUCT_PACKAGES += media_codecs.xml
-
-# QCOM Display
-PRODUCT_PACKAGES += \
- libgenlock \
- libmemalloc \
- liboverlay \
- libqdutils
+# System properties
+PRODUCT_PROPERTY_OVERRIDES += \
+ com.qc.hardware=true
PRODUCT_PROPERTY_OVERRIDES += \
- debug.sf.hw=1 \
debug.egl.hw=1 \
- persist.hwc.mdpcomp.enable=true \
+ debug.sf.hw=1 \
debug.mdpcomp.logs=0 \
- ro.telephony.ril_class=SamsungQualcommRIL \
- ro.telephony.call_ring.multiple=0
+ persist.hwc.mdpcomp.enable=true
-# Omx
+PRODUCT_PROPERTY_OVERRIDES += \
+ ro.telephony.call_ring.multiple=0 \
+ ro.telephony.ril_class=SamsungQualcommRIL
+
+# Charger
PRODUCT_PACKAGES += \
- libdivxdrmdecrypt \
- libmm-omxcore \
- libOmxCore \
- libc2dcolorconvert \
- libOmxVdecHevc \
- libstagefrighthw \
- libOmxVdec \
- libOmxVenc \
- libOmxAacEnc \
- libOmxAmrEnc \
- libOmxEvrcEnc \
- libOmxQcelp13Enc \
- libdashplayer
+ charger \
+ charger_res_images
# Filesystem management tools
PRODUCT_PACKAGES += \
@@ -53,39 +41,9 @@
e2fsck \
setup_fs
-# Thermal profiles
+# Recovery
PRODUCT_PACKAGES += \
- thermald-8064ab.conf \
- thermald-8064.conf \
- thermald-8930.conf \
- thermald-8930ab.conf \
- thermald-8960.conf \
- thermald-8260a.conf \
- thermald-8960ab.conf \
- thermal-engine-8064ab.conf \
- init.qcom.thermal_conf.sh
+ init.recovery.qcom.rc
-# Init scripts
-PRODUCT_PACKAGES += \
- init.qcom.post_boot.sh \
- init.qcom.efs.sync.sh \
- init.qcom.sh \
- init.qcom.class_core.sh \
- init.qcom.class_main.sh \
- init.qcom.syspart_fixup.sh \
- init.qcom.early_boot.sh \
- init.qcom.mdm_links.sh \
- init.qcom.modem_links.sh \
- init.qcom.usb.sh \
- lpm.rc \
- init.qcom.lpm_boot.sh \
- init.recovery.qcom.rc \
- init.qcom.ril.sh
-
-# Charger
-PRODUCT_PACKAGES += charger charger_res_images
-
-PRODUCT_BUILD_PROP_OVERRIDES += BUILD_UTC_DATE=0
-
-# Common overlay
-DEVICE_PACKAGE_OVERLAYS += device/samsung/qcom-common/overlay
+PRODUCT_COPY_FILES += \
+ $(LOCAL_PATH)/recovery/postrecoveryboot.sh:recovery/root/sbin/postrecoveryboot.sh
diff --git a/recovery/postrecoveryboot.sh b/recovery/postrecoveryboot.sh
new file mode 100644
index 0000000..7b15d7f
--- /dev/null
+++ b/recovery/postrecoveryboot.sh
@@ -0,0 +1,21 @@
+#!/sbin/sh
+
+# The partition to use is named "PARAM" and can be found by dumping the PIT.
+
+# 0: charge
+# 1: direct
+# 2: recovery_enter
+# 3: recovery_end
+# 4: download_end
+
+target=`getprop ro.board.platform`
+
+case "$target" in
+ "msm8660")
+ # hack because 8660 doesn't support partitions by-name
+ echo -n -e '\x03\x00\x00\x00' > /dev/block/mmcblk0p12
+ ;;
+ *)
+ echo -n -e '\x03\x00\x00\x00' > /dev/block/platform/msm_sdcc.1/by-name/param
+ ;;
+esac
diff --git a/releasetools.py b/releasetools.py
deleted file mode 100644
index 8c63d9c..0000000
--- a/releasetools.py
+++ /dev/null
@@ -1,37 +0,0 @@
-# Copyright (C) 2009 The Android Open Source 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.
-
-import common
-import re
-import os
-
-TARGET_DIR = os.getenv('OUT')
-
-def FullOTA_Assertions(info):
- AddBootloaderAssertion(info, info.input_zip)
-
-
-def IncrementalOTA_Assertions(info):
- AddBootloaderAssertion(info, info.target_zip)
-
-
-def AddBootloaderAssertion(info, input_zip):
- android_info = input_zip.read("OTA/android-info.txt")
- m = re.search(r"require\s+version-bootloader\s*=\s*(\S+)", android_info)
- if m:
- bootloaders = m.group(1).split("|")
- if "*" not in bootloaders:
- info.script.AssertSomeBootloader(*bootloaders)
- info.metadata["pre-bootloader"] = m.group(1)
-
diff --git a/rootdir/Android.mk b/rootdir/Android.mk
index 1e0aacc..f04bf84 100644
--- a/rootdir/Android.mk
+++ b/rootdir/Android.mk
@@ -1,83 +1,4 @@
LOCAL_PATH:= $(call my-dir)
-include $(CLEAR_VARS)
-
-include $(CLEAR_VARS)
-LOCAL_MODULE := init.qcom.post_boot.sh
-LOCAL_MODULE_TAGS := optional eng
-LOCAL_MODULE_CLASS := ETC
-LOCAL_SRC_FILES := etc/init.qcom.post_boot.sh
-include $(BUILD_PREBUILT)
-
-include $(CLEAR_VARS)
-LOCAL_MODULE := init.qcom.efs.sync.sh
-LOCAL_MODULE_TAGS := optional eng
-LOCAL_MODULE_CLASS := ETC
-LOCAL_SRC_FILES := etc/init.qcom.efs.sync.sh
-include $(BUILD_PREBUILT)
-
-include $(CLEAR_VARS)
-LOCAL_MODULE := init.qcom.sh
-LOCAL_MODULE_TAGS := optional eng
-LOCAL_MODULE_CLASS := ETC
-LOCAL_SRC_FILES := etc/init.qcom.sh
-LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)
-include $(BUILD_PREBUILT)
-
-include $(CLEAR_VARS)
-LOCAL_MODULE := init.qcom.class_core.sh
-LOCAL_MODULE_TAGS := optional eng
-LOCAL_MODULE_CLASS := ETC
-LOCAL_SRC_FILES := etc/init.qcom.class_core.sh
-LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)
-include $(BUILD_PREBUILT)
-
-include $(CLEAR_VARS)
-LOCAL_MODULE := init.qcom.class_main.sh
-LOCAL_MODULE_TAGS := optional eng
-LOCAL_MODULE_CLASS := ETC
-LOCAL_SRC_FILES := etc/init.qcom.class_main.sh
-LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)
-include $(BUILD_PREBUILT)
-
-include $(CLEAR_VARS)
-LOCAL_MODULE := init.qcom.usb.sh
-LOCAL_MODULE_TAGS := optional eng
-LOCAL_MODULE_CLASS := ETC
-LOCAL_SRC_FILES := etc/init.qcom.usb.sh
-LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)
-include $(BUILD_PREBUILT)
-
-include $(CLEAR_VARS)
-LOCAL_MODULE := init.qcom.syspart_fixup.sh
-LOCAL_MODULE_TAGS := optional eng
-LOCAL_MODULE_CLASS := ETC
-LOCAL_SRC_FILES := etc/init.qcom.syspart_fixup.sh
-LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)
-include $(BUILD_PREBUILT)
-
-include $(CLEAR_VARS)
-LOCAL_MODULE := init.qcom.early_boot.sh
-LOCAL_MODULE_TAGS := optional eng
-LOCAL_MODULE_CLASS := ETC
-LOCAL_SRC_FILES := etc/init.qcom.early_boot.sh
-LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)
-include $(BUILD_PREBUILT)
-
-include $(CLEAR_VARS)
-LOCAL_MODULE := lpm.rc
-LOCAL_MODULE_TAGS := optional eng
-LOCAL_MODULE_CLASS := ETC
-LOCAL_SRC_FILES := etc/lpm.rc
-LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)
-include $(BUILD_PREBUILT)
-
-include $(CLEAR_VARS)
-LOCAL_MODULE := init.qcom.lpm_boot.sh
-LOCAL_MODULE_TAGS := optional eng
-LOCAL_MODULE_CLASS := ETC
-LOCAL_SRC_FILES := etc/init.qcom.lpm_boot.sh
-LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)
-include $(BUILD_PREBUILT)
include $(CLEAR_VARS)
LOCAL_MODULE := init.recovery.qcom.rc
@@ -86,97 +7,3 @@
LOCAL_SRC_FILES := etc/init.recovery.qcom.rc
LOCAL_MODULE_PATH := $(TARGET_ROOT_OUT)
include $(BUILD_PREBUILT)
-
-include $(CLEAR_VARS)
-LOCAL_MODULE := init.qcom.ril.sh
-LOCAL_MODULE_TAGS := optional eng
-LOCAL_MODULE_CLASS := ETC
-LOCAL_SRC_FILES := etc/init.qcom.ril.sh
-include $(BUILD_PREBUILT)
-
-ifeq ($(call is-board-platform-in-list,msm8960 msm8660),true)
-# Thermal profiles
-include $(CLEAR_VARS)
-LOCAL_MODULE := thermald-8064ab.conf
-LOCAL_MODULE_TAGS := optional eng
-LOCAL_MODULE_CLASS := ETC
-LOCAL_SRC_FILES := etc/thermald-8064ab.conf
-include $(BUILD_PREBUILT)
-
-include $(CLEAR_VARS)
-LOCAL_MODULE := thermald-8064.conf
-LOCAL_MODULE_TAGS := optional eng
-LOCAL_MODULE_CLASS := ETC
-LOCAL_SRC_FILES := etc/thermald-8064.conf
-include $(BUILD_PREBUILT)
-
-include $(CLEAR_VARS)
-LOCAL_MODULE := thermald-8930.conf
-LOCAL_MODULE_TAGS := optional eng
-LOCAL_MODULE_CLASS := ETC
-LOCAL_SRC_FILES := etc/thermald-8930.conf
-include $(BUILD_PREBUILT)
-
-include $(CLEAR_VARS)
-LOCAL_MODULE := thermald-8930ab.conf
-LOCAL_MODULE_TAGS := optional eng
-LOCAL_MODULE_CLASS := ETC
-LOCAL_SRC_FILES := etc/thermald-8930ab.conf
-include $(BUILD_PREBUILT)
-
-include $(CLEAR_VARS)
-LOCAL_MODULE := thermald-8960.conf
-LOCAL_MODULE_TAGS := optional eng
-LOCAL_MODULE_CLASS := ETC
-LOCAL_SRC_FILES := etc/thermald-8960.conf
-include $(BUILD_PREBUILT)
-
-include $(CLEAR_VARS)
-LOCAL_MODULE := thermald-8260a.conf
-LOCAL_MODULE_TAGS := optional eng
-LOCAL_MODULE_CLASS := ETC
-LOCAL_SRC_FILES := etc/thermald-8260a.conf
-include $(BUILD_PREBUILT)
-
-include $(CLEAR_VARS)
-LOCAL_MODULE := thermald-8960ab.conf
-LOCAL_MODULE_TAGS := optional eng
-LOCAL_MODULE_CLASS := ETC
-LOCAL_SRC_FILES := etc/thermald-8960ab.conf
-include $(BUILD_PREBUILT)
-
-include $(CLEAR_VARS)
-LOCAL_MODULE := thermal-engine-8064ab.conf
-LOCAL_MODULE_TAGS := optional eng
-LOCAL_MODULE_CLASS := ETC
-LOCAL_SRC_FILES := etc/thermal-engine-8064ab.conf
-include $(BUILD_PREBUILT)
-
-include $(CLEAR_VARS)
-LOCAL_MODULE := thermal-engine-8064.conf
-LOCAL_MODULE_TAGS := optional eng
-LOCAL_MODULE_CLASS := ETC
-LOCAL_SRC_FILES := etc/thermal-engine-8064.conf
-include $(BUILD_PREBUILT)
-
-include $(CLEAR_VARS)
-LOCAL_MODULE := thermal-engine-8930.conf
-LOCAL_MODULE_TAGS := optional eng
-LOCAL_MODULE_CLASS := ETC
-LOCAL_SRC_FILES := etc/thermal-engine-8930.conf
-include $(BUILD_PREBUILT)
-
-include $(CLEAR_VARS)
-LOCAL_MODULE := thermal-engine-8960.conf
-LOCAL_MODULE_TAGS := optional eng
-LOCAL_MODULE_CLASS := ETC
-LOCAL_SRC_FILES := etc/thermal-engine-8960.conf
-include $(BUILD_PREBUILT)
-
-include $(CLEAR_VARS)
-LOCAL_MODULE := init.qcom.thermal_conf.sh
-LOCAL_MODULE_TAGS := optional eng
-LOCAL_MODULE_CLASS := ETC
-LOCAL_SRC_FILES := etc/init.qcom.thermal_conf.sh
-include $(BUILD_PREBUILT)
-endif
diff --git a/rootdir/etc/init.qcom.class_core.sh b/rootdir/etc/init.qcom.class_core.sh
deleted file mode 100644
index 0345bfc..0000000
--- a/rootdir/etc/init.qcom.class_core.sh
+++ /dev/null
@@ -1,208 +0,0 @@
-#!/system/bin/sh
-# Copyright (c) 2012-2013, The Linux Foundation. All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions are met:
-# * Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# * Redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-# * Neither the name of The Linux Foundation nor
-# the names of its contributors may be used to endorse or promote
-# products derived from this software without specific prior written
-# permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
-# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-# IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-# NON-INFRINGEMENT ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
-# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
-# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
-# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
-# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
-# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
-# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
-# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-#
-
-# Set platform variables
-target=`getprop ro.board.platform`
-if [ -f /sys/devices/soc0/hw_platform ]; then
- soc_hwplatform=`cat /sys/devices/soc0/hw_platform` 2> /dev/null
-else
- soc_hwplatform=`cat /sys/devices/system/soc/soc0/hw_platform` 2> /dev/null
-fi
-if [ -f /sys/devices/soc0/soc_id ]; then
- soc_hwid=`cat /sys/devices/soc0/soc_id` 2> /dev/null
-else
- soc_hwid=`cat /sys/devices/system/soc/soc0/id` 2> /dev/null
-fi
-if [ -f /sys/devices/soc0/platform_version ]; then
- soc_hwver=`cat /sys/devices/soc0/platform_version` 2> /dev/null
-else
- soc_hwver=`cat /sys/devices/system/soc/soc0/platform_version` 2> /dev/null
-fi
-
-
-# Dynamic Memory Managment (DMM) provides a sys file system to the userspace
-# that can be used to plug in/out memory that has been configured as unstable.
-# This unstable memory can be in Active or In-Active State.
-# Each of which the userspace can request by writing to a sys file.
-#
-# ro.dev.dmm = 1; Indicates that DMM is enabled in the Android User Space. This
-# property is set in the Android system properties file.
-#
-# If ro.dev.dmm.dpd.start_address is set here then the target has a memory
-# configuration that supports DynamicMemoryManagement.
-init_DMM()
-{
- block=-1
-
- case "$target" in
- "msm7630_surf" | "msm7630_1x" | "msm7630_fusion" | "msm8960")
- ;;
- *)
- return
- ;;
- esac
-
- mem="/sys/devices/system/memory"
- op=`cat $mem/movable_start_bytes`
- case "$op" in
- "0")
- log -p i -t DMM DMM Disabled. movable_start_bytes not set: $op
- ;;
-
- "$mem/movable_start_bytes: No such file or directory ")
- log -p i -t DMM DMM Disabled. movable_start_bytes does not exist: $op
- ;;
-
- *)
- log -p i -t DMM DMM available. movable_start_bytes at $op
- movable_start_bytes=0x`cat $mem/movable_start_bytes`
- block_size_bytes=0x`cat $mem/block_size_bytes`
- block=$((#${movable_start_bytes}/${block_size_bytes}))
-
- chown -h system.system $mem/memory$block/state
- chown -h system.system $mem/probe
- chown -h system.system $mem/active
- chown -h system.system $mem/remove
-
- case "$target" in
- "msm7630_surf" | "msm7630_1x" | "msm7630_fusion")
- echo $movable_start_bytes > $mem/probe
- case "$?" in
- "0")
- log -p i -t DMM $movable_start_bytes to physical hotplug succeeded.
- ;;
- *)
- log -p e -t DMM $movable_start_bytes to physical hotplug failed.
- return
- ;;
- esac
-
- echo online > $mem/memory$block/state
- case "$?" in
- "0")
- log -p i -t DMM \'echo online\' to logical hotplug succeeded.
- ;;
- *)
- log -p e -t DMM \'echo online\' to logical hotplug failed.
- return
- ;;
- esac
- ;;
- esac
-
- setprop ro.dev.dmm.dpd.start_address $movable_start_bytes
- setprop ro.dev.dmm.dpd.block $block
- ;;
- esac
-
- case "$target" in
- "msm8960")
- return
- ;;
- esac
-
- # For 7X30 targets:
- # ro.dev.dmm.dpd.start_address is set when the target has a 2x256Mb memory
- # configuration. This is also used to indicate that the target is capable of
- # setting EBI-1 to Deep Power Down or Self Refresh.
- op=`cat $mem/low_power_memory_start_bytes`
- case "$op" in
- "0")
- log -p i -t DMM Self-Refresh-Only Disabled. low_power_memory_start_bytes not set:$op
- ;;
- "$mem/low_power_memory_start_bytes No such file or directory ")
- log -p i -t DMM Self-Refresh-Only Disabled. low_power_memory_start_bytes does not exist:$op
- ;;
- *)
- log -p i -t DMM Self-Refresh-Only available. low_power_memory_start_bytes at $op
- ;;
- esac
-}
-
-#
-# For controlling console and shell on console on 8960 - perist.serial.enable 8960
-# On other target use default ro.debuggable property.
-#
-serial=`getprop persist.serial.enable`
-dserial=`getprop ro.debuggable`
-case "$target" in
- "msm8960")
- case "$serial" in
- "0")
- echo 0 > /sys/devices/platform/msm_serial_hsl.0/console
- ;;
- "1")
- echo 1 > /sys/devices/platform/msm_serial_hsl.0/console
- start console
- ;;
- *)
- case "$dserial" in
- "1")
- start console
- ;;
- esac
- ;;
- esac
- ;;
- *)
- case "$dserial" in
- "1")
- start console
- ;;
- esac
- ;;
-esac
-
-#
-# Allow persistent faking of bms
-# User needs to set fake bms charge in persist.bms.fake_batt_capacity
-#
-fake_batt_capacity=`getprop persist.bms.fake_batt_capacity`
-case "$fake_batt_capacity" in
- "") ;; #Do nothing here
- * )
- echo "$fake_batt_capacity" > /sys/class/power_supply/battery/capacity
- ;;
-esac
-
-case "$target" in
- "msm7630_surf" | "msm7630_1x" | "msm7630_fusion")
- insmod /system/lib/modules/ss_mfcinit.ko
- insmod /system/lib/modules/ss_vencoder.ko
- insmod /system/lib/modules/ss_vdecoder.ko
- chmod -h 0666 /dev/ss_mfc_reg
- chmod -h 0666 /dev/ss_vdec
- chmod -h 0666 /dev/ss_venc
-
- init_DMM
- ;;
-
- "msm8960")
- init_DMM
- ;;
-esac
diff --git a/rootdir/etc/init.qcom.class_main.sh b/rootdir/etc/init.qcom.class_main.sh
deleted file mode 100644
index 1ec30e7..0000000
--- a/rootdir/etc/init.qcom.class_main.sh
+++ /dev/null
@@ -1,69 +0,0 @@
-#!/system/bin/sh
-# Copyright (c) 2012, The Linux Foundation. All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions are met:
-# * Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# * Redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-# * Neither the name of The Linux Foundation nor
-# the names of its contributors may be used to endorse or promote
-# products derived from this software without specific prior written
-# permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
-# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-# IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-# NON-INFRINGEMENT ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
-# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
-# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
-# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
-# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
-# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
-# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
-# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-#
-
-#
-# start ril-daemon only for targets on which radio is present
-#
-baseband=`getprop ro.baseband`
-multirild=`getprop ro.multi.rild`
-dsds=`getprop persist.dsds.enabled`
-netmgr=`getprop ro.use_data_netmgrd`
-sgltecsfb=`getprop persist.radio.sglte_csfb`
-
-case "$baseband" in
- "apq")
- setprop ro.radio.noril yes
- stop ril-daemon
-esac
-
-case "$baseband" in
- "msm" | "csfb" | "svlte2a" | "mdm" | "sglte" | "unknown")
- start qmuxd
- case "$baseband" in
- "svlte2a" | "csfb")
- start qmiproxy
- ;;
- "sglte")
- if [ "x$sgltecsfb" != "xtrue" ]; then
- start qmiproxy
- else
- setprop persist.radio.voice.modem.index 0
- fi
- esac
- case "$multirild" in
- "true")
- case "$dsds" in
- "true")
- start ril-daemon1
- esac
- esac
- case "$netmgr" in
- "true")
- start netmgrd
- esac
-esac
diff --git a/rootdir/etc/init.qcom.early_boot.sh b/rootdir/etc/init.qcom.early_boot.sh
deleted file mode 100644
index ff3c40a..0000000
--- a/rootdir/etc/init.qcom.early_boot.sh
+++ /dev/null
@@ -1,79 +0,0 @@
-#!/system/bin/sh
-# Copyright (c) 2012-2013, The Linux Foundation. All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions are met:
-# * Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# * Redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-# * Neither the name of The Linux Foundation nor
-# the names of its contributors may be used to endorse or promote
-# products derived from this software without specific prior written
-# permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
-# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-# IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-# NON-INFRINGEMENT ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
-# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
-# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
-# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
-# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
-# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
-# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
-# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-#
-
-export PATH=/system/bin
-
-# Set platform variables
-if [ -f /sys/devices/soc0/hw_platform ]; then
- soc_hwplatform=`cat /sys/devices/soc0/hw_platform` 2> /dev/null
-else
- soc_hwplatform=`cat /sys/devices/system/soc/soc0/hw_platform` 2> /dev/null
-fi
-if [ -f /sys/devices/soc0/soc_id ]; then
- soc_hwid=`cat /sys/devices/soc0/soc_id` 2> /dev/null
-else
- soc_hwid=`cat /sys/devices/system/soc/soc0/id` 2> /dev/null
-fi
-if [ -f /sys/devices/soc0/platform_version ]; then
- soc_hwver=`cat /sys/devices/soc0/platform_version` 2> /dev/null
-else
- soc_hwver=`cat /sys/devices/system/soc/soc0/platform_version` 2> /dev/null
-fi
-
-log -t BOOT -p i "MSM target '$1', SoC '$soc_hwplatform', HwID '$soc_hwid', SoC ver '$soc_hwver'"
-
-# Setup HDMI related nodes & permissions
-# HDMI can be fb1 or fb2
-# Loop through the sysfs nodes and determine
-# the HDMI(dtv panel)
-for fb_cnt in 0 1 2
-do
-file=/sys/class/graphics/fb$fb_cnt
-dev_file=/dev/graphics/fb$fb_cnt
- if [ -d "$file" ]
- then
- value=`cat $file/msm_fb_type`
- case "$value" in
- "dtv panel")
- chown -h system.graphics $file/hpd
- chown -h system.system $file/hdcp/tp
- chown -h system.graphics $file/vendor_name
- chown -h system.graphics $file/product_description
- chmod -h 0664 $file/hpd
- chmod -h 0664 $file/hdcp/tp
- chmod -h 0664 $file/vendor_name
- chmod -h 0664 $file/product_description
- chmod -h 0664 $file/video_mode
- chmod -h 0664 $file/format_3d
- # create symbolic link
- ln -s $dev_file /dev/graphics/hdmi
- # Change owner and group for media server and surface flinger
- chown -h system.system $file/format_3d;;
- esac
- fi
-done
diff --git a/rootdir/etc/init.qcom.efs.sync.sh b/rootdir/etc/init.qcom.efs.sync.sh
deleted file mode 100644
index e216b10..0000000
--- a/rootdir/etc/init.qcom.efs.sync.sh
+++ /dev/null
@@ -1,34 +0,0 @@
-#!/system/bin/sh
-# Copyright (c) 2012, The Linux Foundation. All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions are
-# met:
-# * Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# * Redistributions in binary form must reproduce the above
-# copyright notice, this list of conditions and the following
-# disclaimer in the documentation and/or other materials provided
-# with the distribution.
-# * Neither the name of The Linux Foundation nor the names of its
-# contributors may be used to endorse or promote products derived
-# from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
-# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
-# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
-# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
-# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
-# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
-# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
-# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-#
-#
-
-PATH=/system/bin:$PATH
-export PATH
-cat /sys/devices/platform/rs300000a7.65536/force_sync
-cat /sys/devices/platform/rs300100a7.65536/force_sync
diff --git a/rootdir/etc/init.qcom.lpm_boot.sh b/rootdir/etc/init.qcom.lpm_boot.sh
deleted file mode 100644
index 176b027..0000000
--- a/rootdir/etc/init.qcom.lpm_boot.sh
+++ /dev/null
@@ -1,94 +0,0 @@
-#!/system/bin/sh
-# Copyright (c) 2012, Code Aurora Forum. All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions are
-# met:
-# * Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# * Redistributions in binary form must reproduce the above
-# copyright notice, this list of conditions and the following
-# disclaimer in the documentation and/or other materials provided
-# with the distribution.
-# * Neither the name of Code Aurora Forum, Inc. nor the names of its
-# contributors may be used to endorse or promote products derived
-# from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
-# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
-# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
-# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
-# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
-# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
-# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
-# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-#
-#
-# Allow unique persistent serial numbers for devices connected via usb
-# User needs to set unique usb serial number to persist.usb.serialno and
-# if persistent serial number is not set then Update USB serial number if
-# passed from command line
-#
-
-#
-# Allow persistent usb charging disabling
-# User needs to set usb charging disabled in persist.usb.chgdisabled
-#
-echo 1 > /sys/devices/system/cpu/cpu1/online
-echo 1 > /sys/devices/system/cpu/cpu2/online
-echo 1 > /sys/devices/system/cpu/cpu3/online
-
-if [ -d /sys/module/lpm_resources ]; then
- echo 2 > /sys/module/lpm_resources/enable_low_power/l2
- echo 1 > /sys/module/lpm_resources/enable_low_power/pxo
- echo 1 > /sys/module/lpm_resources/enable_low_power/vdd_dig
- echo 1 > /sys/module/lpm_resources/enable_low_power/vdd_mem
-else
- echo 1 > /sys/module/rpm_resources/enable_low_power/l2
- echo 1 > /sys/module/rpm_resources/enable_low_power/pxo
- echo 1 > /sys/module/rpm_resources/enable_low_power/vdd_dig
- echo 1 > /sys/module/rpm_resources/enable_low_power/vdd_mem
-fi
-
-echo 1 > /sys/module/pm_8x60/modes/cpu0/power_collapse/suspend_enabled
-echo 1 > /sys/module/pm_8x60/modes/cpu1/power_collapse/suspend_enabled
-echo 1 > /sys/module/pm_8x60/modes/cpu2/power_collapse/suspend_enabled
-echo 1 > /sys/module/pm_8x60/modes/cpu3/power_collapse/suspend_enabled
-echo 1 > /sys/module/pm_8x60/modes/cpu0/standalone_power_collapse/suspend_enabled
-echo 1 > /sys/module/pm_8x60/modes/cpu1/standalone_power_collapse/suspend_enabled
-echo 1 > /sys/module/pm_8x60/modes/cpu2/standalone_power_collapse/suspend_enabled
-echo 1 > /sys/module/pm_8x60/modes/cpu3/standalone_power_collapse/suspend_enabled
-echo 1 > /sys/module/pm_8x60/modes/cpu0/standalone_power_collapse/idle_enabled
-echo 1 > /sys/module/pm_8x60/modes/cpu1/standalone_power_collapse/idle_enabled
-echo 1 > /sys/module/pm_8x60/modes/cpu2/standalone_power_collapse/idle_enabled
-echo 1 > /sys/module/pm_8x60/modes/cpu3/standalone_power_collapse/idle_enabled
-echo 0 > /sys/module/pm_8x60/modes/cpu0/power_collapse/idle_enabled
-echo 0 > /sys/module/pm_8x60/modes/cpu1/power_collapse/idle_enabled
-echo 0 > /sys/module/pm_8x60/modes/cpu2/power_collapse/idle_enabled
-echo 0 > /sys/module/pm_8x60/modes/cpu3/power_collapse/idle_enabled
-echo 1 > /sys/module/pm_8660/modes/cpu0/power_collapse/suspend_enabled
-echo 1 > /sys/module/pm_8660/modes/cpu1/power_collapse/suspend_enabled
-echo 1 > /sys/module/pm_8660/modes/cpu2/power_collapse/suspend_enabled
-echo 1 > /sys/module/pm_8660/modes/cpu3/power_collapse/suspend_enabled
-echo 1 > /sys/module/pm_8660/modes/cpu0/standalone_power_collapse/suspend_enabled
-echo 1 > /sys/module/pm_8660/modes/cpu1/standalone_power_collapse/suspend_enabled
-echo 1 > /sys/module/pm_8660/modes/cpu2/standalone_power_collapse/suspend_enabled
-echo 1 > /sys/module/pm_8660/modes/cpu3/standalone_power_collapse/suspend_enabled
-echo 0 > /sys/module/pm_8660/modes/cpu0/standalone_power_collapse/idle_enabled
-echo 0 > /sys/module/pm_8660/modes/cpu1/standalone_power_collapse/idle_enabled
-echo 0 > /sys/module/pm_8660/modes/cpu2/standalone_power_collapse/idle_enabled
-echo 0 > /sys/module/pm_8660/modes/cpu3/standalone_power_collapse/idle_enabled
-echo 0 > /sys/module/pm_8660/modes/cpu0/power_collapse/idle_enabled
-echo 0 > /sys/module/pm_8660/modes/cpu1/power_collapse/idle_enabled
-echo 0 > /sys/module/pm_8660/modes/cpu2/power_collapse/idle_enabled
-echo 0 > /sys/module/pm_8660/modes/cpu3/power_collapse/idle_enabled
-echo "powersave" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
-echo "powersave" > /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor
-echo "powersave" > /sys/devices/system/cpu/cpu2/cpufreq/scaling_governor
-echo "powersave" > /sys/devices/system/cpu/cpu3/cpufreq/scaling_governor
-echo 0 > /sys/devices/system/cpu/cpu1/online
-echo 0 > /sys/devices/system/cpu/cpu2/online
-echo 0 > /sys/devices/system/cpu/cpu3/online
diff --git a/rootdir/etc/init.qcom.post_boot.sh b/rootdir/etc/init.qcom.post_boot.sh
deleted file mode 100755
index b0b2f54..0000000
--- a/rootdir/etc/init.qcom.post_boot.sh
+++ /dev/null
@@ -1,606 +0,0 @@
-#!/system/bin/sh
-# Copyright (c) 2012-2013, The Linux Foundation. All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions are met:
-# * Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# * Redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-# * Neither the name of The Linux Foundation nor
-# the names of its contributors may be used to endorse or promote
-# products derived from this software without specific prior written
-# permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
-# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-# IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-# NON-INFRINGEMENT ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
-# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
-# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
-# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
-# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
-# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
-# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
-# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-#
-
-target=`getprop ro.board.platform`
-case "$target" in
- "msm7201a_ffa" | "msm7201a_surf" | "msm7627_ffa" | "msm7627_6x" | "msm7627a" | "msm7627_surf" | \
- "qsd8250_surf" | "qsd8250_ffa" | "msm7630_surf" | "msm7630_1x" | "msm7630_fusion" | "qsd8650a_st1x")
- echo "ondemand" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
- echo 90 > /sys/devices/system/cpu/cpufreq/ondemand/up_threshold
- ;;
-esac
-
-case "$target" in
- "msm7201a_ffa" | "msm7201a_surf")
- echo 500000 > /sys/devices/system/cpu/cpufreq/ondemand/sampling_rate
- ;;
-esac
-
-case "$target" in
- "msm7630_surf" | "msm7630_1x" | "msm7630_fusion")
- echo 75000 > /sys/devices/system/cpu/cpufreq/ondemand/sampling_rate
- echo 1 > /sys/module/pm2/parameters/idle_sleep_mode
- ;;
-esac
-
-case "$target" in
- "msm7201a_ffa" | "msm7201a_surf" | "msm7627_ffa" | "msm7627_6x" | "msm7627_surf" | "msm7630_surf" | "msm7630_1x" | "msm7630_fusion" | "msm7627a" )
- echo 245760 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
- ;;
-esac
-
-case "$target" in
- "msm8660")
- echo 1 > /sys/module/rpm_resources/enable_low_power/L2_cache
- echo 1 > /sys/module/rpm_resources/enable_low_power/pxo
- echo 2 > /sys/module/rpm_resources/enable_low_power/vdd_dig
- echo 2 > /sys/module/rpm_resources/enable_low_power/vdd_mem
- echo 1 > /sys/module/rpm_resources/enable_low_power/rpm_cpu
- echo 1 > /sys/module/pm_8x60/modes/cpu0/power_collapse/suspend_enabled
- echo 1 > /sys/module/pm_8x60/modes/cpu1/power_collapse/suspend_enabled
- echo 1 > /sys/module/pm_8x60/modes/cpu0/standalone_power_collapse/suspend_enabled
- echo 1 > /sys/module/pm_8x60/modes/cpu1/standalone_power_collapse/suspend_enabled
- echo 1 > /sys/module/pm_8x60/modes/cpu0/power_collapse/idle_enabled
- echo 1 > /sys/module/pm_8x60/modes/cpu1/power_collapse/idle_enabled
- echo 1 > /sys/module/pm_8x60/modes/cpu0/standalone_power_collapse/idle_enabled
- echo 1 > /sys/module/pm_8x60/modes/cpu1/standalone_power_collapse/idle_enabled
- #echo "ondemand" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
- #echo "ondemand" > /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor
- #echo 50000 > /sys/devices/system/cpu/cpufreq/ondemand/sampling_rate
- #echo 90 > /sys/devices/system/cpu/cpufreq/ondemand/up_threshold
- #echo 1 > /sys/devices/system/cpu/cpufreq/ondemand/io_is_busy
- #echo 4 > /sys/devices/system/cpu/cpufreq/ondemand/sampling_down_factor
- echo "interactive" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
- echo "interactive" > /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor
- echo 1 > /sys/devices/system/cpu/cpufreq/interactive/io_is_busy
- echo 384000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
- echo 384000 > /sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq
- chown -h root.system /sys/devices/system/cpu/mfreq
- chmod -h 220 /sys/devices/system/cpu/mfreq
- chown -h root.system /sys/devices/system/cpu/cpu1/online
- chmod -h 664 /sys/devices/system/cpu/cpu1/online
- ;;
-esac
-
-case "$target" in
- "msm8960")
- echo 1 > /sys/module/rpm_resources/enable_low_power/L2_cache
- echo 1 > /sys/module/rpm_resources/enable_low_power/pxo
- echo 1 > /sys/module/rpm_resources/enable_low_power/vdd_dig
- echo 1 > /sys/module/rpm_resources/enable_low_power/vdd_mem
- echo 1 > /sys/module/pm_8x60/modes/cpu0/retention/idle_enabled
- echo 1 > /sys/module/pm_8x60/modes/cpu1/retention/idle_enabled
- echo 1 > /sys/module/pm_8x60/modes/cpu2/retention/idle_enabled
- echo 1 > /sys/module/pm_8x60/modes/cpu3/retention/idle_enabled
- echo 1 > /sys/module/pm_8x60/modes/cpu0/power_collapse/suspend_enabled
- echo 1 > /sys/module/pm_8x60/modes/cpu1/power_collapse/suspend_enabled
- echo 1 > /sys/module/pm_8x60/modes/cpu2/power_collapse/suspend_enabled
- echo 1 > /sys/module/pm_8x60/modes/cpu3/power_collapse/suspend_enabled
- echo 1 > /sys/module/pm_8x60/modes/cpu0/standalone_power_collapse/suspend_enabled
- echo 1 > /sys/module/pm_8x60/modes/cpu1/standalone_power_collapse/suspend_enabled
- echo 1 > /sys/module/pm_8x60/modes/cpu2/standalone_power_collapse/suspend_enabled
- echo 1 > /sys/module/pm_8x60/modes/cpu3/standalone_power_collapse/suspend_enabled
- echo 1 > /sys/module/pm_8x60/modes/cpu0/standalone_power_collapse/idle_enabled
- echo 1 > /sys/module/pm_8x60/modes/cpu1/standalone_power_collapse/idle_enabled
- echo 1 > /sys/module/pm_8x60/modes/cpu2/standalone_power_collapse/idle_enabled
- echo 1 > /sys/module/pm_8x60/modes/cpu3/standalone_power_collapse/idle_enabled
- echo 1 > /sys/module/pm_8x60/modes/cpu0/power_collapse/idle_enabled
- echo 0 > /sys/module/msm_thermal/core_control/enabled
- echo 1 > /sys/devices/system/cpu/cpu1/online
- echo 1 > /sys/devices/system/cpu/cpu2/online
- echo 1 > /sys/devices/system/cpu/cpu3/online
- #echo "ondemand" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
- #echo "ondemand" > /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor
- #echo "ondemand" > /sys/devices/system/cpu/cpu2/cpufreq/scaling_governor
- #echo "ondemand" > /sys/devices/system/cpu/cpu3/cpufreq/scaling_governor
- #echo 50000 > /sys/devices/system/cpu/cpufreq/ondemand/sampling_rate
- #echo 90 > /sys/devices/system/cpu/cpufreq/ondemand/up_threshold
- #echo 1 > /sys/devices/system/cpu/cpufreq/ondemand/io_is_busy
- #echo 1 > /sys/devices/system/cpu/cpufreq/ondemand/sampling_down_factor
- #echo 10 > /sys/devices/system/cpu/cpufreq/ondemand/down_differential
- #echo 70 > /sys/devices/system/cpu/cpufreq/ondemand/up_threshold_multi_core
- #echo 3 > /sys/devices/system/cpu/cpufreq/ondemand/down_differential_multi_core
- #echo 918000 > /sys/devices/system/cpu/cpufreq/ondemand/optimal_freq
- #echo 918000 > /sys/devices/system/cpu/cpufreq/ondemand/sync_freq
- #echo 80 > /sys/devices/system/cpu/cpufreq/ondemand/up_threshold_any_cpu_load
- echo "interactive" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
- echo "interactive" > /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor
- echo "interactive" > /sys/devices/system/cpu/cpu2/cpufreq/scaling_governor
- echo "interactive" > /sys/devices/system/cpu/cpu3/cpufreq/scaling_governor
- echo 90000 > /sys/devices/system/cpu/cpufreq/interactive/min_sample_time
- echo 1134000 > /sys/devices/system/cpu/cpufreq/interactive/hispeed_freq
- echo 30000 > /sys/devices/system/cpu/cpufreq/interactive/above_hispeed_delay
- echo 30000 > /sys/devices/system/cpu/cpufreq/interactive/timer_rate
- echo 1026000 > /sys/devices/system/cpu/cpufreq/interactive/sync_freq
- echo 80 > /sys/devices/system/cpu/cpufreq/interactive/sync_freq_load_threshold
- echo 95 > /sys/devices/system/cpu/cpufreq/interactive/go_hispeed_load
- echo 1 > /sys/devices/system/cpu/cpufreq/interactive/io_is_busy
- echo 1134000 > /sys/devices/system/cpu/cpufreq/interactive/up_threshold_any_cpu_freq
- echo 70 > /sys/devices/system/cpu/cpufreq/interactive/up_threshold_any_cpu_load
- echo 384000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
- echo 384000 > /sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq
- echo 384000 > /sys/devices/system/cpu/cpu2/cpufreq/scaling_min_freq
- echo 384000 > /sys/devices/system/cpu/cpu3/cpufreq/scaling_min_freq
- echo 1 > /dev/cpuctl/apps/cpu.notify_on_migrate
- echo 1 > /sys/module/msm_thermal/core_control/enabled
- chown -h system.system /sys/devices/system/cpu/mfreq
- chmod -h 220 /sys/devices/system/cpu/mfreq
- chown -h system.system /sys/devices/system/cpu/cpu1/online
- chown -h system.system /sys/devices/system/cpu/cpu2/online
- chown -h system.system /sys/devices/system/cpu/cpu3/online
- chmod -h 664 /sys/devices/system/cpu/cpu1/online
- chmod -h 664 /sys/devices/system/cpu/cpu2/online
- chmod -h 664 /sys/devices/system/cpu/cpu3/online
- # set DCVS parameters for CPU
- echo 40000 > /sys/module/msm_dcvs/cores/cpu0/slack_time_max_us
- echo 40000 > /sys/module/msm_dcvs/cores/cpu0/slack_time_min_us
- echo 100000 > /sys/module/msm_dcvs/cores/cpu0/em_win_size_min_us
- echo 500000 > /sys/module/msm_dcvs/cores/cpu0/em_win_size_max_us
- echo 0 > /sys/module/msm_dcvs/cores/cpu0/slack_mode_dynamic
- echo 1000000 > /sys/module/msm_dcvs/cores/cpu0/disable_pc_threshold
- echo 25000 > /sys/module/msm_dcvs/cores/cpu1/slack_time_max_us
- echo 25000 > /sys/module/msm_dcvs/cores/cpu1/slack_time_min_us
- echo 100000 > /sys/module/msm_dcvs/cores/cpu1/em_win_size_min_us
- echo 500000 > /sys/module/msm_dcvs/cores/cpu1/em_win_size_max_us
- echo 0 > /sys/module/msm_dcvs/cores/cpu1/slack_mode_dynamic
- echo 1000000 > /sys/module/msm_dcvs/cores/cpu1/disable_pc_threshold
- echo 25000 > /sys/module/msm_dcvs/cores/cpu2/slack_time_max_us
- echo 25000 > /sys/module/msm_dcvs/cores/cpu2/slack_time_min_us
- echo 100000 > /sys/module/msm_dcvs/cores/cpu2/em_win_size_min_us
- echo 500000 > /sys/module/msm_dcvs/cores/cpu2/em_win_size_max_us
- echo 0 > /sys/module/msm_dcvs/cores/cpu2/slack_mode_dynamic
- echo 1000000 > /sys/module/msm_dcvs/cores/cpu2/disable_pc_threshold
- echo 25000 > /sys/module/msm_dcvs/cores/cpu3/slack_time_max_us
- echo 25000 > /sys/module/msm_dcvs/cores/cpu3/slack_time_min_us
- echo 100000 > /sys/module/msm_dcvs/cores/cpu3/em_win_size_min_us
- echo 500000 > /sys/module/msm_dcvs/cores/cpu3/em_win_size_max_us
- echo 0 > /sys/module/msm_dcvs/cores/cpu3/slack_mode_dynamic
- echo 1000000 > /sys/module/msm_dcvs/cores/cpu3/disable_pc_threshold
- # set DCVS parameters for GPU
- echo 20000 > /sys/module/msm_dcvs/cores/gpu0/slack_time_max_us
- echo 20000 > /sys/module/msm_dcvs/cores/gpu0/slack_time_min_us
- echo 0 > /sys/module/msm_dcvs/cores/gpu0/slack_mode_dynamic
- # set msm_mpdecision parameters
- echo 45000 > /sys/module/msm_mpdecision/slack_time_max_us
- echo 15000 > /sys/module/msm_mpdecision/slack_time_min_us
- echo 100000 > /sys/module/msm_mpdecision/em_win_size_min_us
- echo 1000000 > /sys/module/msm_mpdecision/em_win_size_max_us
- echo 3 > /sys/module/msm_mpdecision/online_util_pct_min
- echo 25 > /sys/module/msm_mpdecision/online_util_pct_max
- echo 97 > /sys/module/msm_mpdecision/em_max_util_pct
- echo 2 > /sys/module/msm_mpdecision/rq_avg_poll_ms
- echo 10 > /sys/module/msm_mpdecision/mp_em_rounding_point_min
- echo 85 > /sys/module/msm_mpdecision/mp_em_rounding_point_max
- echo 50 > /sys/module/msm_mpdecision/iowait_threshold_pct
- #set permissions for the nodes needed by display on/off hook
- chown -h system /sys/module/msm_dcvs/cores/cpu0/slack_time_max_us
- chown -h system /sys/module/msm_dcvs/cores/cpu0/slack_time_min_us
- chown -h system /sys/module/msm_mpdecision/slack_time_max_us
- chown -h system /sys/module/msm_mpdecision/slack_time_min_us
- chmod -h 664 /sys/module/msm_dcvs/cores/cpu0/slack_time_max_us
- chmod -h 664 /sys/module/msm_dcvs/cores/cpu0/slack_time_min_us
- chmod -h 664 /sys/module/msm_mpdecision/slack_time_max_us
- chmod -h 664 /sys/module/msm_mpdecision/slack_time_min_us
- if [ -f /sys/devices/soc0/soc_id ]; then
- soc_id=`cat /sys/devices/soc0/soc_id`
- else
- soc_id=`cat /sys/devices/system/soc/soc0/id`
- fi
- case "$soc_id" in
- "130")
- echo 230 > /sys/class/gpio/export
- echo 228 > /sys/class/gpio/export
- echo 229 > /sys/class/gpio/export
- echo "in" > /sys/class/gpio/gpio230/direction
- echo "rising" > /sys/class/gpio/gpio230/edge
- echo "in" > /sys/class/gpio/gpio228/direction
- echo "rising" > /sys/class/gpio/gpio228/edge
- echo "in" > /sys/class/gpio/gpio229/direction
- echo "rising" > /sys/class/gpio/gpio229/edge
- echo 253 > /sys/class/gpio/export
- echo 254 > /sys/class/gpio/export
- echo 257 > /sys/class/gpio/export
- echo 258 > /sys/class/gpio/export
- echo 259 > /sys/class/gpio/export
- echo "out" > /sys/class/gpio/gpio253/direction
- echo "out" > /sys/class/gpio/gpio254/direction
- echo "out" > /sys/class/gpio/gpio257/direction
- echo "out" > /sys/class/gpio/gpio258/direction
- echo "out" > /sys/class/gpio/gpio259/direction
- chown -h media /sys/class/gpio/gpio253/value
- chown -h media /sys/class/gpio/gpio254/value
- chown -h media /sys/class/gpio/gpio257/value
- chown -h media /sys/class/gpio/gpio258/value
- chown -h media /sys/class/gpio/gpio259/value
- chown -h media /sys/class/gpio/gpio253/direction
- chown -h media /sys/class/gpio/gpio254/direction
- chown -h media /sys/class/gpio/gpio257/direction
- chown -h media /sys/class/gpio/gpio258/direction
- chown -h media /sys/class/gpio/gpio259/direction
- echo 0 > /sys/module/rpm_resources/enable_low_power/vdd_dig
- echo 0 > /sys/module/rpm_resources/enable_low_power/vdd_mem
- ;;
- esac
- ;;
-esac
-
-case "$target" in
- "msm8974")
- echo 2 > /sys/module/lpm_resources/enable_low_power/l2
- echo 1 > /sys/module/lpm_resources/enable_low_power/pxo
- echo 1 > /sys/module/lpm_resources/enable_low_power/vdd_dig
- echo 1 > /sys/module/lpm_resources/enable_low_power/vdd_mem
- echo 1 > /sys/module/msm_pm/modes/cpu0/power_collapse/suspend_enabled
- echo 1 > /sys/module/msm_pm/modes/cpu1/power_collapse/suspend_enabled
- echo 1 > /sys/module/msm_pm/modes/cpu2/power_collapse/suspend_enabled
- echo 1 > /sys/module/msm_pm/modes/cpu3/power_collapse/suspend_enabled
- echo 1 > /sys/module/msm_pm/modes/cpu0/power_collapse/idle_enabled
- echo 1 > /sys/module/msm_pm/modes/cpu1/power_collapse/idle_enabled
- echo 1 > /sys/module/msm_pm/modes/cpu2/power_collapse/idle_enabled
- echo 1 > /sys/module/msm_pm/modes/cpu3/power_collapse/idle_enabled
- echo 1 > /sys/module/msm_pm/modes/cpu0/standalone_power_collapse/suspend_enabled
- echo 1 > /sys/module/msm_pm/modes/cpu1/standalone_power_collapse/suspend_enabled
- echo 1 > /sys/module/msm_pm/modes/cpu2/standalone_power_collapse/suspend_enabled
- echo 1 > /sys/module/msm_pm/modes/cpu3/standalone_power_collapse/suspend_enabled
- echo 1 > /sys/module/msm_pm/modes/cpu0/standalone_power_collapse/idle_enabled
- echo 1 > /sys/module/msm_pm/modes/cpu1/standalone_power_collapse/idle_enabled
- echo 1 > /sys/module/msm_pm/modes/cpu2/standalone_power_collapse/idle_enabled
- echo 1 > /sys/module/msm_pm/modes/cpu3/standalone_power_collapse/idle_enabled
- echo 1 > /sys/module/msm_pm/modes/cpu0/retention/idle_enabled
- echo 1 > /sys/module/msm_pm/modes/cpu1/retention/idle_enabled
- echo 1 > /sys/module/msm_pm/modes/cpu2/retention/idle_enabled
- echo 1 > /sys/module/msm_pm/modes/cpu3/retention/idle_enabled
- echo 1 > /sys/module/msm_pm/modes/cpu0/retention/suspend_enabled
- echo 1 > /sys/module/msm_pm/modes/cpu1/retention/suspend_enabled
- echo 1 > /sys/module/msm_pm/modes/cpu2/retention/suspend_enabled
- echo 1 > /sys/module/msm_pm/modes/cpu3/retention/suspend_enabled
- echo 1 > /sys/module/msm_thermal/core_control/enabled
- echo 1 > /sys/devices/system/cpu/cpu1/online
- echo 1 > /sys/devices/system/cpu/cpu2/online
- echo 1 > /sys/devices/system/cpu/cpu3/online
- if [ -f /sys/devices/soc0/soc_id ]; then
- soc_id=`cat /sys/devices/soc0/soc_id`
- else
- soc_id=`cat /sys/devices/system/soc/soc0/id`
- fi
- case "$soc_id" in
- "208" | "211" | "214" | "217" | "209" | "212" | "215" | "218" | "194" | "210" | "213" | "216")
- for devfreq_gov in /sys/class/devfreq/qcom,cpubw*/governor
- do
- echo "cpubw_hwmon" > $devfreq_gov
- done
- echo "interactive" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
- echo "interactive" > /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor
- echo "interactive" > /sys/devices/system/cpu/cpu2/cpufreq/scaling_governor
- echo "interactive" > /sys/devices/system/cpu/cpu3/cpufreq/scaling_governor
- echo "20000 1400000:40000 1700000:20000" > /sys/devices/system/cpu/cpufreq/interactive/above_hispeed_delay
- echo 90 > /sys/devices/system/cpu/cpufreq/interactive/go_hispeed_load
- echo 1497600 > /sys/devices/system/cpu/cpufreq/interactive/hispeed_freq
- echo "85 1500000:90 1800000:70" > /sys/devices/system/cpu/cpufreq/interactive/target_loads
- echo 40000 > /sys/devices/system/cpu/cpufreq/interactive/min_sample_time
- echo 30000 > /sys/devices/system/cpu/cpufreq/interactive/timer_rate
- echo 20 > /sys/module/cpu_boost/parameters/boost_ms
- echo 1728000 > /sys/module/cpu_boost/parameters/sync_threshold
- echo 100000 > /sys/devices/system/cpu/cpufreq/interactive/sampling_down_factor
- echo 1497600 > /sys/module/cpu_boost/parameters/input_boost_freq
- echo 40 > /sys/module/cpu_boost/parameters/input_boost_ms
- ;;
- *)
- echo "interactive" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
- echo "interactive" > /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor
- echo "interactive" > /sys/devices/system/cpu/cpu2/cpufreq/scaling_governor
- echo "interactive" > /sys/devices/system/cpu/cpu3/cpufreq/scaling_governor
- echo "20000 1400000:40000 1700000:20000" > /sys/devices/system/cpu/cpufreq/interactive/above_hispeed_delay
- echo 90 > /sys/devices/system/cpu/cpufreq/interactive/go_hispeed_load
- echo 1497600 > /sys/devices/system/cpu/cpufreq/interactive/hispeed_freq
- echo 1 > /sys/devices/system/cpu/cpufreq/interactive/io_is_busy
- echo "85 1500000:90 1800000:70" > /sys/devices/system/cpu/cpufreq/interactive/target_loads
- echo 40000 > /sys/devices/system/cpu/cpufreq/interactive/min_sample_time
- echo 30000 > /sys/devices/system/cpu/cpufreq/interactive/timer_rate
- echo 20 > /sys/module/cpu_boost/parameters/boost_ms
- echo 1728000 > /sys/module/cpu_boost/parameters/sync_threshold
- echo 100000 > /sys/devices/system/cpu/cpufreq/interactive/sampling_down_factor
- echo 1497600 > /sys/module/cpu_boost/parameters/input_boost_freq
- echo 40 > /sys/module/cpu_boost/parameters/input_boost_ms
- ;;
- esac
- echo 300000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
- echo 300000 > /sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq
- echo 300000 > /sys/devices/system/cpu/cpu2/cpufreq/scaling_min_freq
- echo 300000 > /sys/devices/system/cpu/cpu3/cpufreq/scaling_min_freq
- echo 1 > /sys/module/msm_thermal/core_control/enabled
- chown -h root.system /sys/devices/system/cpu/mfreq
- chmod -h 220 /sys/devices/system/cpu/mfreq
- chown -h root.system /sys/devices/system/cpu/cpu1/online
- chown -h root.system /sys/devices/system/cpu/cpu2/online
- chown -h root.system /sys/devices/system/cpu/cpu3/online
- chmod -h 664 /sys/devices/system/cpu/cpu1/online
- chmod -h 664 /sys/devices/system/cpu/cpu2/online
- chmod -h 664 /sys/devices/system/cpu/cpu3/online
- echo 1 > /dev/cpuctl/apps/cpu.notify_on_migrate
- ;;
-esac
-
-case "$target" in
- "msm8226")
- echo 2 > /sys/module/lpm_resources/enable_low_power/l2
- soc_revision=`cat /sys/devices/soc0/revision`
- if [ "$soc_revision" != "1.0" ]; then
- echo 1 > /sys/module/lpm_resources/enable_low_power/pxo
- fi
- echo 1 > /sys/module/msm_pm/modes/cpu0/power_collapse/suspend_enabled
- echo 1 > /sys/module/msm_pm/modes/cpu1/power_collapse/suspend_enabled
- echo 1 > /sys/module/msm_pm/modes/cpu2/power_collapse/suspend_enabled
- echo 1 > /sys/module/msm_pm/modes/cpu3/power_collapse/suspend_enabled
- echo 1 > /sys/module/msm_pm/modes/cpu0/standalone_power_collapse/suspend_enabled
- echo 1 > /sys/module/msm_pm/modes/cpu1/standalone_power_collapse/suspend_enabled
- echo 1 > /sys/module/msm_pm/modes/cpu2/standalone_power_collapse/suspend_enabled
- echo 1 > /sys/module/msm_pm/modes/cpu3/standalone_power_collapse/suspend_enabled
- echo 1 > /sys/module/msm_pm/modes/cpu0/standalone_power_collapse/idle_enabled
- echo 1 > /sys/module/msm_pm/modes/cpu1/standalone_power_collapse/idle_enabled
- echo 1 > /sys/module/msm_pm/modes/cpu2/standalone_power_collapse/idle_enabled
- echo 1 > /sys/module/msm_pm/modes/cpu3/standalone_power_collapse/idle_enabled
- echo 1 > /sys/module/msm_pm/modes/cpu0/power_collapse/idle_enabled
- echo 1 > /sys/devices/system/cpu/cpu1/online
- echo 1 > /sys/devices/system/cpu/cpu2/online
- echo 1 > /sys/devices/system/cpu/cpu3/online
- echo "ondemand" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
- echo 50000 > /sys/devices/system/cpu/cpufreq/ondemand/sampling_rate
- echo 90 > /sys/devices/system/cpu/cpufreq/ondemand/up_threshold
- echo 1 > /sys/devices/system/cpu/cpufreq/ondemand/io_is_busy
- echo 2 > /sys/devices/system/cpu/cpufreq/ondemand/sampling_down_factor
- echo 10 > /sys/devices/system/cpu/cpufreq/ondemand/down_differential
- echo 70 > /sys/devices/system/cpu/cpufreq/ondemand/up_threshold_multi_core
- echo 10 > /sys/devices/system/cpu/cpufreq/ondemand/down_differential_multi_core
- echo 787200 > /sys/devices/system/cpu/cpufreq/ondemand/optimal_freq
- echo 300000 > /sys/devices/system/cpu/cpufreq/ondemand/sync_freq
- echo 80 > /sys/devices/system/cpu/cpufreq/ondemand/up_threshold_any_cpu_load
- echo 300000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
- chown -h root.system /sys/devices/system/cpu/cpu1/online
- chown -h root.system /sys/devices/system/cpu/cpu2/online
- chown -h root.system /sys/devices/system/cpu/cpu3/online
- chmod -h 664 /sys/devices/system/cpu/cpu1/online
- chmod -h 664 /sys/devices/system/cpu/cpu2/online
- chmod -h 664 /sys/devices/system/cpu/cpu3/online
- ;;
-esac
-
-case "$target" in
- "msm8610")
- echo 2 > /sys/module/lpm_resources/enable_low_power/l2
- echo 1 > /sys/module/lpm_resources/enable_low_power/pxo
- echo 1 > /sys/module/lpm_resources/enable_low_power/vdd_dig
- echo 1 > /sys/module/lpm_resources/enable_low_power/vdd_mem
- echo 1 > /sys/module/msm_pm/modes/cpu0/power_collapse/suspend_enabled
- echo 1 > /sys/module/msm_pm/modes/cpu1/power_collapse/suspend_enabled
- echo 1 > /sys/module/msm_pm/modes/cpu2/power_collapse/suspend_enabled
- echo 1 > /sys/module/msm_pm/modes/cpu3/power_collapse/suspend_enabled
- echo 1 > /sys/module/msm_pm/modes/cpu0/standalone_power_collapse/suspend_enabled
- echo 1 > /sys/module/msm_pm/modes/cpu1/standalone_power_collapse/suspend_enabled
- echo 1 > /sys/module/msm_pm/modes/cpu2/standalone_power_collapse/suspend_enabled
- echo 1 > /sys/module/msm_pm/modes/cpu3/standalone_power_collapse/suspend_enabled
- echo 1 > /sys/module/msm_pm/modes/cpu0/standalone_power_collapse/idle_enabled
- echo 1 > /sys/module/msm_pm/modes/cpu1/standalone_power_collapse/idle_enabled
- echo 1 > /sys/module/msm_pm/modes/cpu2/standalone_power_collapse/idle_enabled
- echo 1 > /sys/module/msm_pm/modes/cpu3/standalone_power_collapse/idle_enabled
- echo 1 > /sys/module/msm_pm/modes/cpu0/power_collapse/idle_enabled
- echo 1 > /sys/devices/system/cpu/cpu1/online
- echo 1 > /sys/devices/system/cpu/cpu2/online
- echo 1 > /sys/devices/system/cpu/cpu3/online
- echo "ondemand" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
- echo 50000 > /sys/devices/system/cpu/cpufreq/ondemand/sampling_rate
- echo 90 > /sys/devices/system/cpu/cpufreq/ondemand/up_threshold
- echo 1 > /sys/devices/system/cpu/cpufreq/ondemand/io_is_busy
- echo 2 > /sys/devices/system/cpu/cpufreq/ondemand/sampling_down_factor
- echo 10 > /sys/devices/system/cpu/cpufreq/ondemand/down_differential
- echo 70 > /sys/devices/system/cpu/cpufreq/ondemand/up_threshold_multi_core
- echo 3 > /sys/devices/system/cpu/cpufreq/ondemand/down_differential_multi_core
- echo 300000 > /sys/devices/system/cpu/cpufreq/ondemand/optimal_freq
- echo 300000 > /sys/devices/system/cpu/cpufreq/ondemand/sync_freq
- echo 80 > /sys/devices/system/cpu/cpufreq/ondemand/up_threshold_any_cpu_load
- echo 300000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
- chown -h root.system /sys/devices/system/cpu/cpu1/online
- chown -h root.system /sys/devices/system/cpu/cpu2/online
- chown -h root.system /sys/devices/system/cpu/cpu3/online
- chmod -h 664 /sys/devices/system/cpu/cpu1/online
- chmod -h 664 /sys/devices/system/cpu/cpu2/online
- chmod -h 664 /sys/devices/system/cpu/cpu3/online
- ;;
-esac
-
-case "$target" in
- "apq8084")
- echo 4 > /sys/module/lpm_levels/enable_low_power/l2
- echo 1 > /sys/module/msm_pm/modes/cpu0/power_collapse/suspend_enabled
- echo 1 > /sys/module/msm_pm/modes/cpu1/power_collapse/suspend_enabled
- echo 1 > /sys/module/msm_pm/modes/cpu2/power_collapse/suspend_enabled
- echo 1 > /sys/module/msm_pm/modes/cpu3/power_collapse/suspend_enabled
- echo 1 > /sys/module/msm_pm/modes/cpu0/power_collapse/idle_enabled
- echo 1 > /sys/module/msm_pm/modes/cpu0/standalone_power_collapse/suspend_enabled
- echo 1 > /sys/module/msm_pm/modes/cpu1/standalone_power_collapse/suspend_enabled
- echo 1 > /sys/module/msm_pm/modes/cpu2/standalone_power_collapse/suspend_enabled
- echo 1 > /sys/module/msm_pm/modes/cpu3/standalone_power_collapse/suspend_enabled
- echo 1 > /sys/module/msm_pm/modes/cpu0/standalone_power_collapse/idle_enabled
- echo 1 > /sys/module/msm_pm/modes/cpu1/standalone_power_collapse/idle_enabled
- echo 1 > /sys/module/msm_pm/modes/cpu2/standalone_power_collapse/idle_enabled
- echo 1 > /sys/module/msm_pm/modes/cpu3/standalone_power_collapse/idle_enabled
- echo 1 > /sys/module/msm_pm/modes/cpu0/retention/idle_enabled
- echo 1 > /sys/module/msm_pm/modes/cpu1/retention/idle_enabled
- echo 1 > /sys/module/msm_pm/modes/cpu2/retention/idle_enabled
- echo 1 > /sys/module/msm_pm/modes/cpu3/retention/idle_enabled
- echo 0 > /sys/module/msm_thermal/core_control/enabled
- echo 1 > /sys/devices/system/cpu/cpu1/online
- echo 1 > /sys/devices/system/cpu/cpu2/online
- echo 1 > /sys/devices/system/cpu/cpu3/online
- echo "ondemand" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
- echo "ondemand" > /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor
- echo "ondemand" > /sys/devices/system/cpu/cpu2/cpufreq/scaling_governor
- echo "ondemand" > /sys/devices/system/cpu/cpu3/cpufreq/scaling_governor
- echo 50000 > /sys/devices/system/cpu/cpufreq/ondemand/sampling_rate
- echo 90 > /sys/devices/system/cpu/cpufreq/ondemand/up_threshold
- echo 1 > /sys/devices/system/cpu/cpufreq/ondemand/io_is_busy
- echo 2 > /sys/devices/system/cpu/cpufreq/ondemand/sampling_down_factor
- echo 300000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
- echo 300000 > /sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq
- echo 300000 > /sys/devices/system/cpu/cpu2/cpufreq/scaling_min_freq
- echo 300000 > /sys/devices/system/cpu/cpu3/cpufreq/scaling_min_freq
- echo 1 > /sys/module/msm_thermal/core_control/enabled
- chown -h root.system /sys/devices/system/cpu/mfreq
- chmod -h 220 /sys/devices/system/cpu/mfreq
- chown -h root.system /sys/devices/system/cpu/cpu1/online
- chown -h root.system /sys/devices/system/cpu/cpu2/online
- chown -h root.system /sys/devices/system/cpu/cpu3/online
- chmod -h 664 /sys/devices/system/cpu/cpu1/online
- chmod -h 664 /sys/devices/system/cpu/cpu2/online
- chmod -h 664 /sys/devices/system/cpu/cpu3/online
- ;;
-esac
-
-case "$target" in
- "msm7627_ffa" | "msm7627_surf" | "msm7627_6x")
- echo 25000 > /sys/devices/system/cpu/cpufreq/ondemand/sampling_rate
- ;;
-esac
-
-case "$target" in
- "qsd8250_surf" | "qsd8250_ffa" | "qsd8650a_st1x")
- echo 50000 > /sys/devices/system/cpu/cpufreq/ondemand/sampling_rate
- ;;
-esac
-
-case "$target" in
- "qsd8650a_st1x")
- mount -t debugfs none /sys/kernel/debug
- ;;
-esac
-
-chown -h system /sys/devices/system/cpu/cpufreq/ondemand/sampling_rate
-chown -h system /sys/devices/system/cpu/cpufreq/ondemand/sampling_down_factor
-chown -h system /sys/devices/system/cpu/cpufreq/ondemand/io_is_busy
-
-emmc_boot=`getprop ro.boot.emmc`
-case "$emmc_boot"
- in "true")
- chown -h system /sys/devices/platform/rs300000a7.65536/force_sync
- chown -h system /sys/devices/platform/rs300000a7.65536/sync_sts
- chown -h system /sys/devices/platform/rs300100a7.65536/force_sync
- chown -h system /sys/devices/platform/rs300100a7.65536/sync_sts
- ;;
-esac
-
-case "$target" in
- "msm8960" | "msm8660" | "msm7630_surf")
- echo 10 > /sys/devices/platform/msm_sdcc.3/idle_timeout
- ;;
- "msm7627a")
- echo 10 > /sys/devices/platform/msm_sdcc.1/idle_timeout
- ;;
-esac
-
-# Post-setup services
-case "$target" in
- "msm8660" | "msm8960" | "msm8226" | "msm8610")
- start mpdecision
- ;;
- "msm8974")
- start mpdecision
- echo 512 > /sys/block/mmcblk0/bdi/read_ahead_kb
- ;;
- "apq8084")
- rm /data/system/default_values
- start mpdecision
- echo 512 > /sys/block/mmcblk0/bdi/read_ahead_kb
- echo 512 > /sys/block/sda/bdi/read_ahead_kb
- echo 512 > /sys/block/sdb/bdi/read_ahead_kb
- echo 512 > /sys/block/sdc/bdi/read_ahead_kb
- echo 512 > /sys/block/sdd/bdi/read_ahead_kb
- echo 512 > /sys/block/sde/bdi/read_ahead_kb
- echo 512 > /sys/block/sdf/bdi/read_ahead_kb
- echo 512 > /sys/block/sdg/bdi/read_ahead_kb
- echo 512 > /sys/block/sdh/bdi/read_ahead_kb
- ;;
- "msm7627a")
- if [ -f /sys/devices/soc0/soc_id ]; then
- soc_id=`cat /sys/devices/soc0/soc_id`
- else
- soc_id=`cat /sys/devices/system/soc/soc0/id`
- fi
- case "$soc_id" in
- "127" | "128" | "129")
- start mpdecision
- ;;
- esac
- ;;
-esac
-
-# Enable Power modes and set the CPU Freq Sampling rates
-case "$target" in
- "msm7627a")
- start qosmgrd
- echo 1 > /sys/module/pm2/modes/cpu0/standalone_power_collapse/idle_enabled
- echo 1 > /sys/module/pm2/modes/cpu1/standalone_power_collapse/idle_enabled
- echo 1 > /sys/module/pm2/modes/cpu0/standalone_power_collapse/suspend_enabled
- echo 1 > /sys/module/pm2/modes/cpu1/standalone_power_collapse/suspend_enabled
- #SuspendPC:
- echo 1 > /sys/module/pm2/modes/cpu0/power_collapse/suspend_enabled
- #IdlePC:
- echo 1 > /sys/module/pm2/modes/cpu0/power_collapse/idle_enabled
- echo 25000 > /sys/devices/system/cpu/cpufreq/ondemand/sampling_rate
- ;;
-esac
-
-# Change adj level and min_free_kbytes setting for lowmemory killer to kick in
-case "$target" in
- "msm7627a")
- echo 0,1,2,4,9,12 > /sys/module/lowmemorykiller/parameters/adj
- echo 5120 > /proc/sys/vm/min_free_kbytes
- ;;
-esac
-
-# Install AdrenoTest.apk if not already installed
-if [ -f /data/prebuilt/AdrenoTest.apk ]; then
- if [ ! -d /data/data/com.qualcomm.adrenotest ]; then
- pm install /data/prebuilt/AdrenoTest.apk
- fi
-fi
-
-# Install SWE_Browser.apk if not already installed
-if [ -f /data/prebuilt/SWE_Browser.apk ]; then
- if [ ! -d /data/data/org.codeaurora.swe.browser ]; then
- pm install /data/prebuilt/SWE_Browser.apk
- fi
-fi
-
-# Change adj level and min_free_kbytes setting for lowmemory killer to kick in
-case "$target" in
- "msm8660")
- start qosmgrd
- echo 0,1,2,4,9,12 > /sys/module/lowmemorykiller/parameters/adj
- echo 5120 > /proc/sys/vm/min_free_kbytes
- ;;
-esac
diff --git a/rootdir/etc/init.qcom.ril.sh b/rootdir/etc/init.qcom.ril.sh
deleted file mode 100644
index 87f06b3..0000000
--- a/rootdir/etc/init.qcom.ril.sh
+++ /dev/null
@@ -1,38 +0,0 @@
-#!/system/bin/sh
-# Copyright (c) 2013, The Linux Foundation. All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions are met:
-# * Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# * Redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-# * Neither the name of Linux Foundation nor
-# the names of its contributors may be used to endorse or promote
-# products derived from this software without specific prior written
-# permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
-# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-# IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-# NON-INFRINGEMENT ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
-# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
-# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
-# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
-# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
-# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
-# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
-# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-#
-
-#
-# start two rild when dsds property enabled
-#
-multisim=`getprop persist.multisim.config`
-if [ "$multisim" = "dsds" ] || [ "$multisim" = "dsda" ]; then
- setprop ro.multi.rild true
- stop ril-daemon
- start ril-daemon
- start ril-daemon1
-fi
diff --git a/rootdir/etc/init.qcom.sh b/rootdir/etc/init.qcom.sh
deleted file mode 100644
index 9178da7..0000000
--- a/rootdir/etc/init.qcom.sh
+++ /dev/null
@@ -1,222 +0,0 @@
-#!/system/bin/sh
-# Copyright (c) 2009-2013, The Linux Foundation. All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions are met:
-# * Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# * Redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-# * Neither the name of The Linux Foundation nor
-# the names of its contributors may be used to endorse or promote
-# products derived from this software without specific prior written
-# permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
-# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-# IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-# NON-INFRINGEMENT ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
-# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
-# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
-# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
-# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
-# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
-# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
-# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-#
-
-target=`getprop ro.board.platform`
-if [ -f /sys/devices/soc0/soc_id ]; then
- platformid=`cat /sys/devices/soc0/soc_id`
-else
- platformid=`cat /sys/devices/system/soc/soc0/id`
-fi
-#
-# Function to start sensors for DSPS enabled platforms
-#
-start_sensors()
-{
- if [ -c /dev/msm_dsps -o -c /dev/sensors ]; then
- chmod -h 775 /persist/sensors
- chmod -h 664 /persist/sensors/sensors_settings
- chown -h system.root /persist/sensors/sensors_settings
-
- mkdir -p /data/misc/sensors
- chmod -h 775 /data/misc/sensors
-
- start sensors
- fi
-}
-
-start_battery_monitor()
-{
- if ls /sys/bus/spmi/devices/qpnp-bms-*/fcc_data ; then
- chown -h root.system /sys/module/pm8921_bms/parameters/*
- chown -h root.system /sys/module/qpnp_bms/parameters/*
- chown -h root.system /sys/bus/spmi/devices/qpnp-bms-*/fcc_data
- chown -h root.system /sys/bus/spmi/devices/qpnp-bms-*/fcc_temp
- chown -h root.system /sys/bus/spmi/devices/qpnp-bms-*/fcc_chgcyl
- chmod -h 0660 /sys/module/qpnp_bms/parameters/*
- chmod -h 0660 /sys/module/pm8921_bms/parameters/*
- mkdir -p /data/bms
- chown -h root.system /data/bms
- chmod -h 0770 /data/bms
- start battery_monitor
- fi
-}
-
-start_charger_monitor()
-{
- if ls /sys/module/qpnp_charger/parameters/charger_monitor; then
- chown -h root.system /sys/module/qpnp_charger/parameters/*
- chown -h root.system /sys/class/power_supply/battery/input_current_max
- chown -h root.system /sys/class/power_supply/battery/input_current_trim
- chown -h root.system /sys/class/power_supply/battery/voltage_min
- chmod -h 0664 /sys/class/power_supply/battery/input_current_max
- chmod -h 0664 /sys/class/power_supply/battery/input_current_trim
- chmod -h 0664 /sys/class/power_supply/battery/voltage_min
- chmod -h 0664 /sys/module/qpnp_charger/parameters/charger_monitor
- start charger_monitor
- fi
-}
-
-baseband=`getprop ro.baseband`
-izat_premium_enablement=`getprop ro.qc.sdk.izat.premium_enabled`
-izat_service_mask=`getprop ro.qc.sdk.izat.service_mask`
-
-#
-# Suppress default route installation during RA for IPV6; user space will take
-# care of this
-# exception default ifc
-for file in /proc/sys/net/ipv6/conf/*
-do
- echo 0 > $file/accept_ra_defrtr
-done
-echo 1 > /proc/sys/net/ipv6/conf/default/accept_ra_defrtr
-
-#
-# Start gpsone_daemon for SVLTE Type I & II devices
-#
-
-# platform id 126 is for MSM8974
-case "$platformid" in
- "126")
- start gpsone_daemon
-esac
-case "$target" in
- "msm7630_fusion")
- start gpsone_daemon
-esac
-case "$baseband" in
- "svlte2a")
- start gpsone_daemon
- start bridgemgrd
- ;;
- "sglte" | "sglte2")
- start gpsone_daemon
- ;;
-esac
-
-let "izat_service_gtp_wifi=$izat_service_mask & 2#1"
-let "izat_service_gtp_wwan_lite=($izat_service_mask & 2#10)>>1"
-let "izat_service_pip=($izat_service_mask & 2#100)>>2"
-
-if [ "$izat_premium_enablement" -ne 1 ]; then
- if [ "$izat_service_gtp_wifi" -ne 0 ]; then
-# GTP WIFI bit shall be masked by the premium service flag
- let "izat_service_gtp_wifi=0"
- fi
-fi
-
-if [ "$izat_service_gtp_wwan_lite" -ne 0 ] ||
- [ "$izat_service_gtp_wifi" -ne 0 ] ||
- [ "$izat_service_pip" -ne 0 ]; then
-# OS Agent would also be started under the same condition
- start location_mq
-fi
-
-if [ "$izat_service_gtp_wwan_lite" -ne 0 ] ||
- [ "$izat_service_gtp_wifi" -ne 0 ]; then
-# start GTP services shared by WiFi and WWAN Lite
- start xtwifi_inet
- start xtwifi_client
-fi
-
-if [ "$izat_service_gtp_wifi" -ne 0 ] ||
- [ "$izat_service_pip" -ne 0 ]; then
-# advanced WiFi scan service shared by WiFi and PIP
- start lowi-server
-fi
-
-if [ "$izat_service_pip" -ne 0 ]; then
-# PIP services
- start quipc_main
- start quipc_igsn
-fi
-
-start_sensors
-
-case "$target" in
- "msm7630_surf" | "msm7630_1x" | "msm7630_fusion")
- if [ -f /sys/devices/soc0/hw_platform ]; then
- value=`cat /sys/devices/soc0/hw_platform`
- else
- value=`cat /sys/devices/system/soc/soc0/hw_platform`
- fi
- case "$value" in
- "Fluid")
- start profiler_daemon;;
- esac
- ;;
- "msm8660" )
- if [ -f /sys/devices/soc0/hw_platform ]; then
- platformvalue=`cat /sys/devices/soc0/hw_platform`
- else
- platformvalue=`cat /sys/devices/system/soc/soc0/hw_platform`
- fi
- case "$platformvalue" in
- "Fluid")
- start profiler_daemon;;
- esac
- ;;
- "msm8960")
- case "$baseband" in
- "msm")
- start_battery_monitor;;
- esac
-
- if [ -f /sys/devices/soc0/hw_platform ]; then
- platformvalue=`cat /sys/devices/soc0/hw_platform`
- else
- platformvalue=`cat /sys/devices/system/soc/soc0/hw_platform`
- fi
- case "$platformvalue" in
- "Fluid")
- start profiler_daemon;;
- "Liquid")
- start profiler_daemon;;
- esac
- ;;
- "msm8974")
- platformvalue=`cat /sys/devices/soc0/hw_platform`
- case "$platformvalue" in
- "Fluid")
- start profiler_daemon;;
- "Liquid")
- start profiler_daemon;;
- esac
- case "$baseband" in
- "msm")
- start_battery_monitor
- ;;
- esac
- start_charger_monitor
- ;;
- "msm8226")
- start_charger_monitor
- ;;
- "msm8610")
- start_charger_monitor
- ;;
-esac
diff --git a/rootdir/etc/init.qcom.syspart_fixup.sh b/rootdir/etc/init.qcom.syspart_fixup.sh
deleted file mode 100644
index 9599878..0000000
--- a/rootdir/etc/init.qcom.syspart_fixup.sh
+++ /dev/null
@@ -1,91 +0,0 @@
-#!/system/bin/sh
-# Copyright (c) 2012, The Linux Foundation. All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions are met:
-# * Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# * Redistributions in binary form must reproduce the above copyright
-# notice, this list of conditions and the following disclaimer in the
-# documentation and/or other materials provided with the distribution.
-# * Neither the name of The Linux Foundation nor
-# the names of its contributors may be used to endorse or promote
-# products derived from this software without specific prior written
-# permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
-# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-# IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-# NON-INFRINGEMENT ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
-# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
-# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
-# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
-# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
-# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
-# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
-# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-#
-
-target="$1"
-serial="$2"
-
-# No path is set up at this point so we have to do it here.
-PATH=/sbin:/system/sbin:/system/bin:/system/xbin
-export PATH
-
-mount_needed=false;
-
-if [ ! -f /system/etc/boot_fixup ];then
-# This should be the first command
-# remount system as read-write.
- mount -o rw,remount,barrier=1 /system
- mount_needed=true;
-fi
-
-# **** WARNING *****
-# This runs in a single-threaded, critical path portion
-# of the Android bootup sequence. This is to guarantee
-# all necessary system partition fixups are done before
-# the rest of the system starts up. Run any non-
-# timing critical tasks in a separate process to
-# prevent slowdown at boot.
-
-# Run modem link script
-if [ -f /system/etc/init.qcom.modem_links.sh ]; then
- /system/bin/sh /system/etc/init.qcom.modem_links.sh
-fi
-
-# Run mdm link script
-if [ -f /system/etc/init.qcom.mdm_links.sh ]; then
- /system/bin/sh /system/etc/init.qcom.mdm_links.sh
-fi
-
-setprop ro.modem.links.done 1
-
-# Run thermal script
-if [ -f /system/etc/init.qcom.thermal_conf.sh ]; then
- /system/bin/sh /system/etc/init.qcom.thermal_conf.sh
-fi
-
-# Run wifi script
-if [ -f /system/etc/init.qcom.wifi.sh ]; then
- /system/bin/sh /system/etc/init.qcom.wifi.sh "$target" "$serial"
-fi
-
-# Run the sensor script
-if [ -f /system/etc/init.qcom.sensor.sh ]; then
- /system/bin/sh /system/etc/init.qcom.sensor.sh
-fi
-
-# Run usf script
-if [ -f /system/etc/usf_settings.sh ]; then
- /system/bin/sh /system/etc/usf_settings.sh
-fi
-
-touch /system/etc/boot_fixup
-
-if $mount_needed ;then
-# This should be the last command
-# remount system as read-only.
- mount -o ro,remount,barrier=1 /system
-fi
diff --git a/rootdir/etc/init.qcom.thermal_conf.sh b/rootdir/etc/init.qcom.thermal_conf.sh
deleted file mode 100755
index 3fc15a3..0000000
--- a/rootdir/etc/init.qcom.thermal_conf.sh
+++ /dev/null
@@ -1,109 +0,0 @@
-#!/system/bin/sh
-# Copyright (c) 2012, The Linux Foundation. All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions are
-# met:
-# * Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# * Redistributions in binary form must reproduce the above
-# copyright notice, this list of conditions and the following
-# disclaimer in the documentation and/or other materials provided
-# with the distribution.
-# * Neither the name of The Linux Foundation nor the names of its
-# contributors may be used to endorse or promote products derived
-# from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
-# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
-# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
-# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
-# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
-# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
-# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
-# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-#
-#
-
-# No path is set up at this point so we have to do it here.
-PATH=/sbin:/system/sbin:/system/bin:/system/xbin
-export PATH
-
-THERMALD_CONF_SYMLINK=/etc/thermald.conf
-
-# Set a default value
-setprop qcom.thermal thermald
-
-# Figure out if thermal-engine should start
-platformid=`cat /sys/devices/system/soc/soc0/id`
-case "$platformid" in
- "153") #APQ/MPQ8064ab
- setprop qcom.thermal thermal-engine
- ;;
-esac
-
-# Check if symlink does not exist
-if [ ! -h $THERMALD_CONF_SYMLINK ]; then
- # create symlink to target-specific config file
- case "$platformid" in
- "109" | "130") #APQ/MPQ8064
- ln -s /etc/thermald-8064.conf $THERMALD_CONF_SYMLINK 2>/dev/null
- ;;
-
- "153") #APQ/MPQ8064ab
- ln -s /etc/thermald-8064ab.conf $THERMALD_CONF_SYMLINK 2>/dev/null
- ;;
-
- "116" | "117" | "118" | "119" | "120" | "121" | "142" | "143" | "144" | "160" | "179" | "180" | "181") #MSM8x30&MSM8x27
- ln -s /etc/thermald-8930.conf $THERMALD_CONF_SYMLINK 2>/dev/null
- ;;
-
- "154" | "155" | "156" | "157") #MSM8930ab
- ln -s /etc/thermald-8930ab.conf $THERMALD_CONF_SYMLINK 2>/dev/null
- ;;
-
- "138" | "139" | "140" | "141") #MSM8960ab
- ln -s /etc/thermald-8960ab.conf $THERMALD_CONF_SYMLINK 2>/dev/null
- ;;
-
- "123") #MSM8260a
- revision=`getprop ro.revision`
- if [ "$revision" = "4" ]; then
- ln -s /etc/thermald-8260a.conf $THERMALD_CONF_SYMLINK 2>/dev/null
- else
- ln -s /etc/thermald-8960.conf $THERMALD_CONF_SYMLINK 2>/dev/null
- fi
- ;;
-
- *) #MSM8960, etc
- ln -s /etc/thermald-8960.conf $THERMALD_CONF_SYMLINK 2>/dev/null
- ;;
- esac
-fi
-
-THERMAL_ENGINE_CONF_SYMLINK=/etc/thermal-engine.conf
-# Check if symlink does not exist
-if [ ! -h $THERMAL_ENGINE_CONF_SYMLINK ]; then
- # create symlink to target-specific config file
- case "$platformid" in
- "109" | "130") #APQ/MPQ8064
- ln -s /etc/thermal-engine-8064.conf $THERMAL_ENGINE_CONF_SYMLINK 2>/dev/null
- ;;
-
- "153") #APQ/MPQ8064ab
- ln -s /etc/thermal-engine-8064ab.conf $THERMAL_ENGINE_CONF_SYMLINK 2>/dev/null
- ;;
-
- "116" | "117" | "118" | "119" | "120" | "121" | "142" | "143" | "144" | "160" | "179" | "180" | "181") #MSM8x30&MSM8x27
- ln -s /etc/thermal-engine-8930.conf $THERMAL_ENGINE_CONF_SYMLINK 2>/dev/null
- ;;
-
- *) #MSM8960, etc
- ln -s /etc/thermal-engine-8960.conf $THERMAL_ENGINE_CONF_SYMLINK 2>/dev/null
- ;;
- esac
-fi
-
diff --git a/rootdir/etc/init.qcom.usb.sh b/rootdir/etc/init.qcom.usb.sh
deleted file mode 100644
index a4c29bb..0000000
--- a/rootdir/etc/init.qcom.usb.sh
+++ /dev/null
@@ -1,179 +0,0 @@
-#!/system/bin/sh
-# Copyright (c) 2012, The Linux Foundation. All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions are
-# met:
-# * Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# * Redistributions in binary form must reproduce the above
-# copyright notice, this list of conditions and the following
-# disclaimer in the documentation and/or other materials provided
-# with the distribution.
-# * Neither the name of The Linux Foundation nor the names of its
-# contributors may be used to endorse or promote products derived
-# from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
-# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
-# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
-# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
-# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
-# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
-# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
-# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-#
-#
-# Update USB serial number from persist storage if present, if not update
-# with value passed from kernel command line, if none of these values are
-# set then use the default value. This order is needed as for devices which
-# do not have unique serial number.
-# User needs to set unique usb serial number to persist.usb.serialno
-#
-serialno=`getprop persist.usb.serialno`
-case "$serialno" in
- "")
- serialnum=`getprop ro.serialno`
- case "$serialnum" in
- "");; #Do nothing, use default serial number
- *)
- echo "$serialnum" > /sys/class/android_usb/android0/iSerial
- esac
- ;;
- *)
- echo "$serialno" > /sys/class/android_usb/android0/iSerial
-esac
-
-chown -h root.system /sys/devices/platform/msm_hsusb/gadget/wakeup
-chmod -h 220 /sys/devices/platform/msm_hsusb/gadget/wakeup
-
-#
-# Allow persistent usb charging disabling
-# User needs to set usb charging disabled in persist.usb.chgdisabled
-#
-target=`getprop ro.board.platform`
-usbchgdisabled=`getprop persist.usb.chgdisabled`
-case "$usbchgdisabled" in
- "") ;; #Do nothing here
- * )
- case $target in
- "msm8660")
- echo "$usbchgdisabled" > /sys/module/pmic8058_charger/parameters/disabled
- echo "$usbchgdisabled" > /sys/module/smb137b/parameters/disabled
- ;;
- "msm8960")
- echo "$usbchgdisabled" > /sys/module/pm8921_charger/parameters/disabled
- ;;
- esac
-esac
-
-usbcurrentlimit=`getprop persist.usb.currentlimit`
-case "$usbcurrentlimit" in
- "") ;; #Do nothing here
- * )
- case $target in
- "msm8960")
- echo "$usbcurrentlimit" > /sys/module/pm8921_charger/parameters/usb_max_current
- ;;
- esac
-esac
-#
-# Allow USB enumeration with default PID/VID
-#
-baseband=`getprop ro.baseband`
-echo 1 > /sys/class/android_usb/f_mass_storage/lun/nofua
-usb_config=`getprop persist.sys.usb.config`
-case "$usb_config" in
- "" | "adb") #USB persist config not set, select default configuration
- setprop persist.sys.usb.config mtp
- ;;
- * ) ;; #USB persist config exists, do nothing
-esac
-
-#
-# Add support for exposing lun0 as cdrom in mass-storage
-#
-target=`getprop ro.product.device`
-cdromname="/system/etc/cdrom_install.iso"
-cdromenable=`getprop persist.service.cdrom.enable`
-case "$target" in
- "msm8226" | "msm8610")
- case "$cdromenable" in
- 0)
- echo "" > /sys/class/android_usb/android0/f_mass_storage/lun0/file
- ;;
- 1)
- echo "mounting usbcdrom lun"
- echo $cdromname > /sys/class/android_usb/android0/f_mass_storage/lun0/file
- ;;
- esac
- ;;
-esac
-
-#
-# Do target specific things
-#
-case "$target" in
- "msm8974")
-# Select USB BAM - 2.0 or 3.0
- echo ssusb > /sys/bus/platform/devices/usb_bam/enable
- ;;
- "apq8084")
- if [ "$baseband" == "apq" ]; then
- echo "msm_hsic_host" > /sys/bus/platform/drivers/xhci_msm_hsic/unbind
- fi
- ;;
- "msm8226")
- if [ -e /sys/bus/platform/drivers/msm_hsic_host ]; then
- if [ ! -L /sys/bus/usb/devices/1-1 ]; then
- echo msm_hsic_host > /sys/bus/platform/drivers/msm_hsic_host/unbind
- fi
- fi
- ;;
-esac
-
-#
-# set module params for embedded rmnet devices
-#
-rmnetmux=`getprop persist.rmnet.mux`
-case "$baseband" in
- "mdm" | "dsda" | "sglte2")
- case "$rmnetmux" in
- "enabled")
- echo 1 > /sys/module/rmnet_usb/parameters/mux_enabled
- echo 8 > /sys/module/rmnet_usb/parameters/no_fwd_rmnet_links
- echo 17 > /sys/module/rmnet_usb/parameters/no_rmnet_insts_per_dev
- ;;
- esac
- echo 1 > /sys/module/rmnet_usb/parameters/rmnet_data_init
- # Allow QMUX daemon to assign port open wait time
- chown -h radio.radio /sys/devices/virtual/hsicctl/hsicctl0/modem_wait
- ;;
- "dsda2")
- echo 2 > /sys/module/rmnet_usb/parameters/no_rmnet_devs
- echo hsicctl,hsusbctl > /sys/module/rmnet_usb/parameters/rmnet_dev_names
- case "$rmnetmux" in
- "enabled") #mux is neabled on both mdms
- echo 3 > /sys/module/rmnet_usb/parameters/mux_enabled
- echo 8 > /sys/module/rmnet_usb/parameters/no_fwd_rmnet_links
- echo 17 > write /sys/module/rmnet_usb/parameters/no_rmnet_insts_per_dev
- ;;
- "enabled_hsic") #mux is enabled on hsic mdm
- echo 1 > /sys/module/rmnet_usb/parameters/mux_enabled
- echo 8 > /sys/module/rmnet_usb/parameters/no_fwd_rmnet_links
- echo 17 > /sys/module/rmnet_usb/parameters/no_rmnet_insts_per_dev
- ;;
- "enabled_hsusb") #mux is enabled on hsusb mdm
- echo 2 > /sys/module/rmnet_usb/parameters/mux_enabled
- echo 8 > /sys/module/rmnet_usb/parameters/no_fwd_rmnet_links
- echo 17 > /sys/module/rmnet_usb/parameters/no_rmnet_insts_per_dev
- ;;
- esac
- echo 1 > /sys/module/rmnet_usb/parameters/rmnet_data_init
- # Allow QMUX daemon to assign port open wait time
- chown -h radio.radio /sys/devices/virtual/hsicctl/hsicctl0/modem_wait
- ;;
-esac
diff --git a/rootdir/etc/init.recovery.qcom.rc b/rootdir/etc/init.recovery.qcom.rc
index 9285072..9714ed2 100644
--- a/rootdir/etc/init.recovery.qcom.rc
+++ b/rootdir/etc/init.recovery.qcom.rc
@@ -1,5 +1,7 @@
on boot
# Enable Power modes and set the CPU Freq Sampling rates
+
+ # For 8660/8960
write /sys/module/rpm_resources/enable_low_power/L2_cache 1
write /sys/module/rpm_resources/enable_low_power/pxo 1
write /sys/module/rpm_resources/enable_low_power/vdd_dig 1
@@ -9,6 +11,21 @@
write /sys/module/pm_8x60/modes/cpu2/power_collapse/suspend_enabled 1
write /sys/module/pm_8x60/modes/cpu3/power_collapse/suspend_enabled 1
write /sys/module/pm_8x60/modes/cpu0/power_collapse/idle_enabled 1
+
+ # For 8974
+ write /sys/module/lpm_resources/enable_low_power/l2 2
+ write /sys/module/lpm_resources/enable_low_power/pxo 1
+ write /sys/module/lpm_resources/enable_low_power/vdd_dig 1
+ write /sys/module/lpm_resources/enable_low_power/vdd_mem 1
+ write /sys/module/msm_pm/modes/cpu0/power_collapse/suspend_enabled 1
+ write /sys/module/msm_pm/modes/cpu1/power_collapse/suspend_enabled 1
+ write /sys/module/msm_pm/modes/cpu2/power_collapse/suspend_enabled 1
+ write /sys/module/msm_pm/modes/cpu3/power_collapse/suspend_enabled 1
+ write /sys/module/msm_pm/modes/cpu0/power_collapse/idle_enabled 1
+ write /sys/module/msm_pm/modes/cpu1/power_collapse/idle_enabled 1
+ write /sys/module/msm_pm/modes/cpu2/power_collapse/idle_enabled 1
+ write /sys/module/msm_pm/modes/cpu3/power_collapse/idle_enabled 1
+
write /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq 384000
write /sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq 384000
write /sys/devices/system/cpu/cpu2/cpufreq/scaling_min_freq 384000
@@ -35,4 +52,3 @@
write /sys/devices/system/cpu/cpu1/online 0
write /sys/devices/system/cpu/cpu2/online 0
write /sys/devices/system/cpu/cpu3/online 0
-
diff --git a/rootdir/etc/lpm.rc b/rootdir/etc/lpm.rc
deleted file mode 100644
index 8d6a8b5..0000000
--- a/rootdir/etc/lpm.rc
+++ /dev/null
@@ -1,88 +0,0 @@
-on early-init
- start ueventd
-
-on init
-
-sysclktz 0
-
-loglevel 3
-
-# setup the global environment
- export PATH /sbin:/vendor/bin:/system/sbin:/system/bin:/system/xbin
- export LD_LIBRARY_PATH /vendor/lib:/system/lib
- export ANDROID_BOOTLOGO 1
- export ANDROID_ROOT /system
- export ANDROID_ASSETS /system/app
- export ANDROID_DATA /data
-
- write /proc/sys/kernel/panic_on_oops 1
- write /proc/sys/kernel/hung_task_timeout_secs 0
- write /proc/cpu/alignment 4
- write /proc/sys/kernel/sched_latency_ns 10000000
- write /proc/sys/kernel/sched_wakeup_granularity_ns 2000000
- write /proc/sys/kernel/sched_compat_yield 1
- write /proc/sys/kernel/sched_child_runs_first 0
-
-on boot
- # change cpufreq governor
- exec /system/bin/sh /init.qcom.lpm_boot.sh
-
- class_start core
-
-service ueventd /sbin/ueventd
- class core
- critical
-
-service console /system/bin/sh
- class core
- console
-
-service charger /charger
- class core
- user root
-
-# Used to disable USB when switching states
-on property:sys.usb.config=none
- stop adbd
- write /sys/class/android_usb/android0/enable 0
- write /sys/class/android_usb/android0/bDeviceClass 0
- setprop sys.usb.state $sys.usb.config
-
-# adb only USB configuration
-# This should only be used during device bringup
-# and as a fallback if the USB manager fails to set a standard configuration
-on property:sys.usb.config=adb
- write /sys/class/android_usb/android0/enable 0
- write /sys/class/android_usb/android0/idVendor 04E8
- write /sys/class/android_usb/android0/idProduct 685E
- write /sys/class/android_usb/android0/f_diag/clients diag
- write /sys/class/android_usb/android0/f_rmnet/instances 1
- write /sys/class/android_usb/android0/functions diag,adb
- write /sys/class/android_usb/android0/enable 1
- start adbd
- setprop sys.usb.state $sys.usb.config
-
-# Used to set USB configuration at boot and to switch the configuration
-# when changing the default configuration
-on property:persist.sys.usb.config=*
- setprop sys.usb.config $persist.sys.usb.config
-# adbd is controlled via property triggers in init.<platform>.usb.rc
-service adbd /sbin/adbd
- class core
- disabled
-
-# adbd on at boot in emulator
-on property:ro.kernel.qemu=1
- start adbd
-
-# This property trigger has added to imitiate the previous behavior of "adb root".
-# The adb gadget driver used to reset the USB bus when the adbd daemon exited,
-# and the host side adb relied on this behavior to force it to reconnect with the
-# new adbd instance after init relaunches it. So now we force the USB bus to reset
-# here when adbd sets the service.adb.root property to 1. We also restart adbd here
-# rather than waiting for init to notice its death and restarting it so the timing
-# of USB resetting and adb restarting more closely matches the previous behavior.
-on property:service.adb.root=1
- write /sys/class/android_usb/android0/enable 0
- restart adbd
- write /sys/class/android_usb/android0/enable 1
diff --git a/rootdir/etc/thermal-engine-8064.conf b/rootdir/etc/thermal-engine-8064.conf
deleted file mode 100644
index 77e2d72..0000000
--- a/rootdir/etc/thermal-engine-8064.conf
+++ /dev/null
@@ -1,38 +0,0 @@
-sampling 5000
-
-[CPU0_MONITOR]
-algo_type monitor
-sensor cpu0
-sampling 1000
-thresholds 90000 100000 110000 115000 120000
-thresholds_clr 85000 95000 105000 110000 115000
-actions battery battery battery battery shutdown
-action_info 0 1 2 3 5000
-
-[CPU1_MONITOR]
-algo_type monitor
-sensor cpu1
-sampling 1000
-thresholds 120000
-thresholds_clr 115000
-actions shutdown
-action_info 5000
-
-[CPU2_MONITOR]
-algo_type monitor
-sensor cpu2
-sampling 1000
-thresholds 120000
-thresholds_clr 115000
-actions shutdown
-action_info 5000
-
-[CPU3_MONITOR]
-algo_type monitor
-sensor cpu3
-sampling 1000
-thresholds 120000
-thresholds_clr 115000
-actions shutdown
-action_info 5000
-
diff --git a/rootdir/etc/thermal-engine-8064ab.conf b/rootdir/etc/thermal-engine-8064ab.conf
deleted file mode 100644
index fea3151..0000000
--- a/rootdir/etc/thermal-engine-8064ab.conf
+++ /dev/null
@@ -1,47 +0,0 @@
-sampling 5000
-
-[HYBRID-THRESH]
-algo_type monitor
-sensor tsens_tz_sensor0
-sampling 1000
-thresholds 70000
-thresholds_clr 67000
-actions none
-action_info 0
-
-[CPU0_MONITOR]
-algo_type monitor
-sensor cpu0
-sampling 1000
-thresholds 70000 85000 90000 95000 100000 105000 110000 120000
-thresholds_clr 67000 80000 85000 90000 95000 100000 105000 115000
-actions cpu+battery cpu+battery cpu+battery cpu+battery cpu+battery cpu+battery cpu+battery shutdown
-action_info 1890000+0 1674000+0 1350000+1 1026000+1 810000+2 594000+2 384000+3 5000
-
-[CPU1_MONITOR]
-algo_type monitor
-sensor cpu1
-sampling 1000
-thresholds 70000 85000 90000 95000 100000 105000 110000 120000
-thresholds_clr 67000 80000 85000 90000 95000 100000 105000 115000
-actions cpu cpu cpu cpu cpu cpu cpu shutdown
-action_info 1890000 1674000 1350000 1026000 810000 594000 384000 5000
-
-[CPU2_MONITOR]
-algo_type monitor
-sensor cpu2
-sampling 1000
-thresholds 70000 85000 90000 95000 100000 105000 110000 120000
-thresholds_clr 67000 80000 85000 90000 95000 100000 105000 115000
-actions cpu cpu cpu cpu cpu cpu cpu shutdown
-action_info 1890000 1674000 1350000 1026000 810000 594000 384000 5000
-
-[CPU3_MONITOR]
-algo_type monitor
-sensor cpu3
-sampling 1000
-thresholds 70000 85000 90000 95000 100000 105000 110000 120000
-thresholds_clr 67000 80000 85000 90000 95000 100000 105000 115000
-actions cpu cpu cpu cpu cpu cpu cpu shutdown
-action_info 1890000 1674000 1350000 1026000 810000 594000 384000 5000
-
diff --git a/rootdir/etc/thermal-engine-8930.conf b/rootdir/etc/thermal-engine-8930.conf
deleted file mode 100644
index ed86677..0000000
--- a/rootdir/etc/thermal-engine-8930.conf
+++ /dev/null
@@ -1,20 +0,0 @@
-sampling 5000
-
-[PA0_MONITOR]
-algo_type monitor
-sensor pa_therm0
-sampling 100000
-thresholds 65000 70000 75000 80000 85000 90000
-thresholds_clr 60000 65000 70000 75000 80000 85000
-actions none none none none none none
-action_info 0 0 0 0 0 0
-
-[CPU0_MONITOR]
-algo_type monitor
-sensor cpu0
-sampling 1000
-thresholds 120000
-thresholds_clr 115000
-actions shutdown
-action_info 5000
-
diff --git a/rootdir/etc/thermal-engine-8960.conf b/rootdir/etc/thermal-engine-8960.conf
deleted file mode 100644
index 1472553..0000000
--- a/rootdir/etc/thermal-engine-8960.conf
+++ /dev/null
@@ -1,29 +0,0 @@
-sampling 5000
-
-[PA0_MONITOR]
-algo_type monitor
-sensor pa_therm0
-sampling 100000
-thresholds 65000 70000 75000 80000 85000 90000
-thresholds_clr 60000 65000 70000 75000 80000 85000
-actions none none none none none none
-action_info 0 0 0 0 0 0
-
-[CPU0_MONITOR]
-algo_type monitor
-sensor cpu0
-sampling 1000
-thresholds 105000
-thresholds_clr 102000
-actions shutdown
-action_info 5000
-
-[POPMEM_MONITOR]
-algo_type monitor
-sensor pop_mem
-sampling 1000
-thresholds 90000
-thresholds_clr 87000
-actions shutdown
-action_info 5000
-
diff --git a/rootdir/etc/thermald-8064.conf b/rootdir/etc/thermald-8064.conf
deleted file mode 100644
index 01b6a9c..0000000
--- a/rootdir/etc/thermald-8064.conf
+++ /dev/null
@@ -1,92 +0,0 @@
-sampling 5000
-
-[pa_therm0]
-sampling 5000
-thresholds 70
-thresholds_clr 67
-actions none
-action_info 0
-
-[tsens_tz_sensor0]
-sampling 1000
-thresholds 70
-thresholds_clr 67
-actions none
-action_info 0
-
-[tsens_tz_sensor1]
-sampling 1000
-thresholds 70
-thresholds_clr 67
-actions none
-action_info 0
-
-[tsens_tz_sensor2]
-sampling 1000
-thresholds 70
-thresholds_clr 67
-actions none
-action_info 0
-
-[tsens_tz_sensor3]
-sampling 1000
-thresholds 70
-thresholds_clr 67
-actions none
-action_info 0
-
-[tsens_tz_sensor4]
-sampling 1000
-thresholds 70
-thresholds_clr 67
-actions none
-action_info 0
-
-[tsens_tz_sensor5]
-sampling 1000
-thresholds 70
-thresholds_clr 67
-actions none
-action_info 0
-
-[tsens_tz_sensor6]
-sampling 1000
-thresholds 70
-thresholds_clr 67
-actions none
-action_info 0
-
-[tsens_tz_sensor7]
-sampling 1000
-thresholds 70 90 95 100 105 110 115 120
-thresholds_clr 67 85 90 95 100 105 110 115
-actions cpu+battery cpu+battery cpu+battery cpu+battery cpu+battery cpu+battery cpu+battery shutdown
-action_info 1728000+0 1188000+0 810000+1 648000+1 540000+2 487000+2 384000+3 5000
-
-[tsens_tz_sensor8]
-sampling 1000
-thresholds 70 90 95 100 105 110 115 120
-thresholds_clr 67 85 90 95 100 105 110 115
-actions cpu cpu cpu cpu cpu cpu cpu shutdown
-action_info 1728000 1188000 810000 648000 540000 487000 384000 5000
-
-[tsens_tz_sensor9]
-sampling 1000
-thresholds 70 90 95 100 105 110 115 120
-thresholds_clr 67 85 90 95 100 105 110 115
-actions cpu cpu cpu cpu cpu cpu cpu shutdown
-action_info 1728000 1188000 810000 648000 540000 487000 384000 5000
-
-[tsens_tz_sensor10]
-sampling 1000
-thresholds 70 90 95 100 105 110 115 120
-thresholds_clr 67 85 90 95 100 105 110 115
-actions cpu cpu cpu cpu cpu cpu cpu shutdown
-action_info 1728000 1188000 810000 648000 540000 487000 384000 5000
-
-[pm8821_tz]
-thresholds 107
-thresholds_clr 103
-actions cpu
-action_info 918000
-
diff --git a/rootdir/etc/thermald-8064ab.conf b/rootdir/etc/thermald-8064ab.conf
deleted file mode 100644
index 6eeb0c4..0000000
--- a/rootdir/etc/thermald-8064ab.conf
+++ /dev/null
@@ -1,92 +0,0 @@
-sampling 5000
-
-[pa_therm0]
-sampling 5000
-thresholds 70
-thresholds_clr 67
-actions none
-action_info 0
-
-[tsens_tz_sensor0]
-sampling 1000
-thresholds 70
-thresholds_clr 67
-actions none
-action_info 0
-
-[tsens_tz_sensor1]
-sampling 1000
-thresholds 70
-thresholds_clr 67
-actions none
-action_info 0
-
-[tsens_tz_sensor2]
-sampling 1000
-thresholds 70
-thresholds_clr 67
-actions none
-action_info 0
-
-[tsens_tz_sensor3]
-sampling 1000
-thresholds 70
-thresholds_clr 67
-actions none
-action_info 0
-
-[tsens_tz_sensor4]
-sampling 1000
-thresholds 70
-thresholds_clr 67
-actions none
-action_info 0
-
-[tsens_tz_sensor5]
-sampling 1000
-thresholds 70
-thresholds_clr 67
-actions none
-action_info 0
-
-[tsens_tz_sensor6]
-sampling 1000
-thresholds 70
-thresholds_clr 67
-actions none
-action_info 0
-
-[tsens_tz_sensor7]
-sampling 1000
-thresholds 70 85 90 95 100 105 110 120
-thresholds_clr 67 80 85 90 95 100 105 115
-actions cpu+battery cpu+battery cpu+battery cpu+battery cpu+battery cpu+battery cpu+battery shutdown
-action_info 1890000+0 1674000+0 1350000+1 1026000+1 810000+2 594000+2 384000+3 5000
-
-[tsens_tz_sensor8]
-sampling 1000
-thresholds 70 85 90 95 100 105 110 120
-thresholds_clr 67 80 85 90 95 100 105 115
-actions cpu cpu cpu cpu cpu cpu cpu shutdown
-action_info 1890000 1674000 1350000 1026000 810000 594000 384000 5000
-
-[tsens_tz_sensor9]
-sampling 1000
-thresholds 70 85 90 95 100 105 110 120
-thresholds_clr 67 80 85 90 95 100 105 115
-actions cpu cpu cpu cpu cpu cpu cpu shutdown
-action_info 1890000 1674000 1350000 1026000 810000 594000 384000 5000
-
-[tsens_tz_sensor10]
-sampling 1000
-thresholds 70 85 90 95 100 105 110 120
-thresholds_clr 67 80 85 90 95 100 105 115
-actions cpu cpu cpu cpu cpu cpu cpu shutdown
-action_info 1890000 1674000 1350000 1026000 810000 594000 384000 5000
-
-[pm8821_tz]
-thresholds 107
-thresholds_clr 103
-actions cpu
-action_info 918000
-
diff --git a/rootdir/etc/thermald-8260a.conf b/rootdir/etc/thermald-8260a.conf
deleted file mode 100644
index 7d0e005..0000000
--- a/rootdir/etc/thermald-8260a.conf
+++ /dev/null
@@ -1,44 +0,0 @@
-sampling 5000
-
-[pa_therm0]
-sampling 100000
-thresholds 65 70 75 80 85 90
-thresholds_clr 60 65 70 75 80 85
-actions none none none none none none
-action_info 0 0 0 0 0 0
-
-[tsens_tz_sensor0]
-sampling 1000
-thresholds 45 50 55 60 75 95 105
-thresholds_clr 42 47 52 57 72 92 102
-actions cpu cpu cpu cpu cpu cpu shutdown
-action_info 1512000 1296000 1188000 1026000 756000 648000 5000
-
-[tsens_tz_sensor1]
-sampling 1000
-thresholds 75
-thresholds_clr 72
-actions none
-action_info 0
-
-[tsens_tz_sensor2]
-sampling 1000
-thresholds 75
-thresholds_clr 72
-actions none
-action_info 0
-
-[tsens_tz_sensor3]
-sampling 1000
-thresholds 75 78 81 84 87 90
-thresholds_clr 72 75 78 81 84 87
-actions cpu cpu cpu cpu cpu shutdown
-action_info 1296000 1188000 918000 756000 648000 5000
-
-[tsens_tz_sensor4]
-sampling 1000
-thresholds 75
-thresholds_clr 72
-actions none
-action_info 0
-
diff --git a/rootdir/etc/thermald-8930.conf b/rootdir/etc/thermald-8930.conf
deleted file mode 100644
index f1c144c..0000000
--- a/rootdir/etc/thermald-8930.conf
+++ /dev/null
@@ -1,79 +0,0 @@
-sampling 5000
-
-[pa_therm0]
-sampling 100000
-thresholds 65 70 75 80 85 90
-thresholds_clr 60 65 70 75 80 85
-actions none none none none none none
-action_info 0 0 0 0 0 0
-
-[tsens_tz_sensor0]
-sampling 1000
-thresholds 60
-thresholds_clr 57
-actions none
-action_info 0
-
-[tsens_tz_sensor1]
-sampling 1000
-thresholds 60
-thresholds_clr 57
-actions none
-action_info 0
-
-[tsens_tz_sensor2]
-sampling 1000
-thresholds 60
-thresholds_clr 57
-actions none
-action_info 0
-
-[tsens_tz_sensor3]
-sampling 1000
-thresholds 60
-thresholds_clr 57
-actions none
-action_info 0
-
-[tsens_tz_sensor4]
-sampling 1000
-thresholds 60
-thresholds_clr 57
-actions none
-action_info 0
-
-[tsens_tz_sensor5]
-sampling 1000
-thresholds 60
-thresholds_clr 57
-actions none
-action_info 0
-
-[tsens_tz_sensor6]
-sampling 1000
-thresholds 60
-thresholds_clr 57
-actions none
-action_info 0
-
-[tsens_tz_sensor7]
-sampling 1000
-thresholds 60
-thresholds_clr 57
-actions none
-action_info 0
-
-[tsens_tz_sensor8]
-sampling 1000
-thresholds 60
-thresholds_clr 57
-actions none
-action_info 0
-
-[tsens_tz_sensor9]
-sampling 1000
-thresholds 60 90 95 100 105 110 115 120
-thresholds_clr 57 85 90 95 100 105 110 115
-actions cpu cpu cpu cpu cpu cpu cpu shutdown
-action_info 1404000 1296000 1188000 918000 756000 648000 384000 5000
-
diff --git a/rootdir/etc/thermald-8930ab.conf b/rootdir/etc/thermald-8930ab.conf
deleted file mode 100644
index c6ad3f1..0000000
--- a/rootdir/etc/thermald-8930ab.conf
+++ /dev/null
@@ -1,78 +0,0 @@
-sampling 5000
-
-[pa_therm0]
-sampling 100000
-thresholds 65 70 75 80 85 90
-thresholds_clr 60 65 70 75 80 85
-actions none none none none none none
-action_info 0 0 0 0 0 0
-
-[tsens_tz_sensor0]
-sampling 1000
-thresholds 50
-thresholds_clr 47
-actions none
-action_info 0
-
-[tsens_tz_sensor1]
-sampling 1000
-thresholds 70
-thresholds_clr 67
-actions none
-action_info 0
-
-[tsens_tz_sensor2]
-sampling 1000
-thresholds 70
-thresholds_clr 67
-actions none
-action_info 0
-
-[tsens_tz_sensor3]
-sampling 1000
-thresholds 70
-thresholds_clr 67
-actions none
-action_info 0
-
-[tsens_tz_sensor4]
-sampling 1000
-thresholds 70
-thresholds_clr 67
-actions none
-action_info 0
-
-[tsens_tz_sensor5]
-sampling 1000
-thresholds 70
-thresholds_clr 67
-actions none
-action_info 0
-
-[tsens_tz_sensor6]
-sampling 1000
-thresholds 70 90 95 100 105 110 120
-thresholds_clr 67 87 92 97 102 107 115
-actions cpu cpu cpu cpu cpu cpu shutdown
-action_info 1728000 1566000 1242000 1134000 810000 384000 1000
-
-[tsens_tz_sensor7]
-sampling 1000
-thresholds 70
-thresholds_clr 67
-actions none
-action_info 0
-
-[tsens_tz_sensor8]
-sampling 1000
-thresholds 70
-thresholds_clr 67
-actions none
-action_info 0
-
-[tsens_tz_sensor9]
-sampling 1000
-thresholds 70 90 95 100 105 110 120
-thresholds_clr 67 87 92 97 102 107 115
-actions cpu cpu cpu cpu cpu cpu shutdown
-action_info 1728000 1566000 1242000 1134000 810000 384000 1000
diff --git a/rootdir/etc/thermald-8960.conf b/rootdir/etc/thermald-8960.conf
deleted file mode 100644
index 7fd19b5..0000000
--- a/rootdir/etc/thermald-8960.conf
+++ /dev/null
@@ -1,44 +0,0 @@
-sampling 5000
-
-[pa_therm0]
-sampling 100000
-thresholds 65 70 75 80 85 90
-thresholds_clr 60 65 70 75 80 85
-actions none none none none none none
-action_info 0 0 0 0 0 0
-
-[tsens_tz_sensor0]
-sampling 1000
-thresholds 65 90 93 96 99 102 105
-thresholds_clr 62 87 90 93 96 99 102
-actions cpu cpu cpu cpu cpu cpu shutdown
-action_info 1512000 1296000 1188000 918000 756000 648000 5000
-
-[tsens_tz_sensor1]
-sampling 1000
-thresholds 75
-thresholds_clr 72
-actions none
-action_info 0
-
-[tsens_tz_sensor2]
-sampling 1000
-thresholds 75
-thresholds_clr 72
-actions none
-action_info 0
-
-[tsens_tz_sensor3]
-sampling 1000
-thresholds 75 78 81 84 87 90
-thresholds_clr 72 75 78 81 84 87
-actions cpu cpu cpu cpu cpu shutdown
-action_info 1296000 1188000 918000 756000 648000 5000
-
-[tsens_tz_sensor4]
-sampling 1000
-thresholds 75
-thresholds_clr 72
-actions none
-action_info 0
-
diff --git a/rootdir/etc/thermald-8960ab.conf b/rootdir/etc/thermald-8960ab.conf
deleted file mode 100644
index 1253e67..0000000
--- a/rootdir/etc/thermald-8960ab.conf
+++ /dev/null
@@ -1,44 +0,0 @@
-sampling 5000
-
-[pa_therm0]
-sampling 100000
-thresholds 65 70 75 80 85 90
-thresholds_clr 60 65 70 75 80 85
-actions none none none none none none
-action_info 0 0 0 0 0 0
-
-[tsens_tz_sensor0]
-sampling 1000
-thresholds 65 87 90 93 96 99 102 105
-thresholds_clr 62 84 87 90 93 96 99 102
-actions cpu cpu cpu cpu cpu cpu cpu shutdown
-action_info 1728000 1512000 1296000 1188000 918000 756000 648000 5000
-
-[tsens_tz_sensor1]
-sampling 1000
-thresholds 75
-thresholds_clr 72
-actions none
-action_info 0
-
-[tsens_tz_sensor2]
-sampling 1000
-thresholds 75
-thresholds_clr 72
-actions none
-action_info 0
-
-[tsens_tz_sensor3]
-sampling 1000
-thresholds 75 78 81 84 87 90
-thresholds_clr 72 75 78 81 84 87
-actions cpu cpu cpu cpu cpu shutdown
-action_info 1296000 1188000 918000 756000 648000 5000
-
-[tsens_tz_sensor4]
-sampling 1000
-thresholds 75
-thresholds_clr 72
-actions none
-action_info 0
-