Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
matisse
android_device_samsung_msm8226-common
Commits
4f5d0fc7
Commit
4f5d0fc7
authored
8 years ago
by
sub77
Browse files
Options
Download
Email Patches
Plain Diff
update
parent
86053eb4
Changes
18
Hide whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
23 additions
and
485 deletions
+23
-485
BoardConfigCommon.mk
BoardConfigCommon.mk
+3
-18
bluetooth/bdroid_buildcfg.h
bluetooth/bdroid_buildcfg.h
+3
-8
camera/Android.mk
camera/Android.mk
+0
-4
camera/CameraWrapper.cpp
camera/CameraWrapper.cpp
+1
-1
libshims/Android.mk
libshims/Android.mk
+1
-1
libshims/ril_shim.c
libshims/ril_shim.c
+0
-0
libwcnss_qmi/Android.mk
libwcnss_qmi/Android.mk
+0
-28
libwcnss_qmi/wcnss_qmi_client.c
libwcnss_qmi/wcnss_qmi_client.c
+0
-61
msm8226.mk
msm8226.mk
+1
-24
patch/bionic/0001-PROP_VALUE_MAX-128.patch
patch/bionic/0001-PROP_VALUE_MAX-128.patch
+0
-26
patch/build/0001-PROP_VALUE_MAX-128.patch
patch/build/0001-PROP_VALUE_MAX-128.patch
+0
-26
patch/build/0001-unified-buildinfo.sh.patch
patch/build/0001-unified-buildinfo.sh.patch
+0
-218
patch/external_openssh/0001-create-EMPTY-folder.patch
patch/external_openssh/0001-create-EMPTY-folder.patch
+0
-32
patch/packages_apps_Settings/0001-Add-OpenDelta-Updater.patch
...h/packages_apps_Settings/0001-Add-OpenDelta-Updater.patch
+0
-33
patch/patch.tar.gz
patch/patch.tar.gz
+0
-0
rootdir/Android.mk
rootdir/Android.mk
+8
-0
rootdir/etc/init.qcom.rc
rootdir/etc/init.qcom.rc
+1
-4
system.prop
system.prop
+5
-1
No files found.
BoardConfigCommon.mk
View file @
4f5d0fc7
...
...
@@ -31,6 +31,7 @@ AUDIO_FEATURE_ENABLED_LOW_LATENCY_CAPTURE := true
BOARD_USES_ALSA_AUDIO
:=
true
# Bluetooth
BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR
:=
$(VENDOR_PATH)
/bluetooth
BOARD_HAVE_BLUETOOTH
:=
true
BOARD_HAVE_BLUETOOTH_QCOM
:=
true
BLUETOOTH_HCI_USE_MCT
:=
true
...
...
@@ -43,6 +44,8 @@ TARGET_BOOTLOADER_BOARD_NAME := MSM8226
TARGET_PROVIDES_CAMERA_HAL
:=
true
USE_DEVICE_SPECIFIC_CAMERA
:=
true
TARGET_USE_COMPAT_GRALLOC_ALIGN
:=
true
TARGET_NEEDS_PLATFORM_TEXT_RELOCATIONS
:=
true
TARGET_HAS_LEGACY_CAMERA_HAL1
:=
true
TARGET_USES_CPU_BOOST_HINT
:=
true
# Charger
...
...
@@ -79,9 +82,6 @@ MAX_EGL_CACHE_KEY_SIZE := 12*1024
# of the device.
MAX_EGL_CACHE_SIZE
:=
2048
*
1024
# Bluetooth
BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR
:=
$(VENDOR_PATH)
/bluetooth
# Lights
TARGET_PROVIDES_LIBLIGHT
:=
true
...
...
@@ -142,18 +142,3 @@ endif
# SELinux
-include
device/qcom/sepolicy/sepolicy.mk
BOARD_SEPOLICY_DIRS
+=
$(VENDOR_PATH)
/sepolicy
# Wifi
BOARD_HAS_QCOM_WLAN
:=
true
BOARD_HAS_QCOM_WLAN_SDK
:=
true
BOARD_WLAN_DEVICE
:=
qcwcn
BOARD_HOSTAPD_DRIVER
:=
NL80211
BOARD_HOSTAPD_PRIVATE_LIB
:=
lib_driver_cmd_
$(BOARD_WLAN_DEVICE)
BOARD_WPA_SUPPLICANT_DRIVER
:=
NL80211
BOARD_WPA_SUPPLICANT_PRIVATE_LIB
:=
lib_driver_cmd_
$(BOARD_WLAN_DEVICE)
TARGET_PROVIDES_WCNSS_QMI
:=
true
TARGET_USES_QCOM_WCNSS_QMI
:=
true
TARGET_USES_WCNSS_CTRL
:=
true
WPA_SUPPLICANT_VERSION
:=
VER_0_8_X
WIFI_DRIVER_FW_PATH_STA
:=
"sta"
WIFI_DRIVER_FW_PATH_AP
:=
"ap"
This diff is collapsed.
Click to expand it.
bluetooth/bdroid_buildcfg.h
View file @
4f5d0fc7
...
...
@@ -18,14 +18,9 @@
#ifndef _BDROID_BUILDCFG_H
#define _BDROID_BUILDCFG_H
#define BTM_DEF_LOCAL_NAME "Galaxy Tab 4"
#define BTA_DISABLE_DELAY 1000
/* in milliseconds */
#define BTM_DEF_LOCAL_NAME "Samsung Galaxy Tab Pro 8.4"
#define BLUETOOTH_QTI_SW TRUE
// Disables read remote device feature
#define BTA_SKIP_BLE_READ_REMOTE_FEAT FALSE
#define MAX_L2CAP_CHANNELS 16
// skips conn update at conn completion
#define BTA_BLE_SKIP_CONN_UPD FALSE
/* Defined if the kernel does not have support for CLOCK_BOOTTIME_ALARM */
#define KERNEL_MISSING_CLOCK_BOOTTIME_ALARM TRUE
#endif
This diff is collapsed.
Click to expand it.
camera/Android.mk
View file @
4f5d0fc7
...
...
@@ -21,10 +21,6 @@ ifeq ($(TARGET_NEED_SAMSUNG_CAMERA_MODE),true)
LOCAL_CFLAGS
+=
-DSAMSUNG_CAMERA_MODE
endif
ifeq
($(TARGET_ADD_ISO_MODE_1600),true)
LOCAL_CFLAGS
+=
-DISO_MODE_1600
endif
ifeq
($(TARGET_NEED_EXPOSURE_HACK),true)
LOCAL_CFLAGS
+=
-DEXPOSURE_HACK
endif
...
...
This diff is collapsed.
Click to expand it.
camera/CameraWrapper.cpp
View file @
4f5d0fc7
...
...
@@ -118,7 +118,7 @@ static char *camera_fixup_getparams(int id, const char *settings)
#endif
#ifdef PREVIEW_SIZE_FIXUP
params
.
set
(
android
::
CameraParameters
::
KEY_PREFERRED_PREVIEW_SIZE_FOR_VIDEO
,
id
?
"
640x480"
:
"800x48
0"
);
params
.
set
(
android
::
CameraParameters
::
KEY_PREFERRED_PREVIEW_SIZE_FOR_VIDEO
,
id
?
"
320x240"
:
"320x24
0"
);
#endif
#ifndef DISABLE_FACE_DETECTION_BOTH_CAMERAS
...
...
This diff is collapsed.
Click to expand it.
ril
/Android.mk
→
libshims
/Android.mk
View file @
4f5d0fc7
...
...
@@ -3,7 +3,7 @@ LOCAL_PATH := $(call my-dir)
include
$(CLEAR_VARS)
LOCAL_SRC_FILES
:=
ril_shim.c
LOCAL_SHARED_LIBRARIES
:=
liblog libcutils libbinder libutils
LOCAL_MODULE
:=
lib
ril_
shim
LOCAL_MODULE
:=
libshim
_ril
LOCAL_MODULE_TAGS
:=
optional
LOCAL_MODULE_CLASS
:=
SHARED_LIBRARIES
include
$(BUILD_SHARED_LIBRARY)
This diff is collapsed.
Click to expand it.
ril
/ril_shim.c
→
libshims
/ril_shim.c
View file @
4f5d0fc7
File moved
This diff is collapsed.
Click to expand it.
libwcnss_qmi/Android.mk
deleted
100644 → 0
View file @
86053eb4
# Copyright (C) 2015 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.
LOCAL_PATH
:=
$(
call
my-dir
)
include
$(CLEAR_VARS)
LOCAL_SRC_FILES
:=
wcnss_qmi_client.c
LOCAL_C_INCLUDES
+=
hardware/qcom/wlan/wcnss_service
LOCAL_CFLAGS
+=
-Wall
LOCAL_SHARED_LIBRARIES
:=
libc libcutils libutils liblog
LOCAL_MODULE_TAGS
:=
optional
LOCAL_MODULE
:=
libwcnss_qmi
include
$(BUILD_SHARED_LIBRARY)
This diff is collapsed.
Click to expand it.
libwcnss_qmi/wcnss_qmi_client.c
deleted
100644 → 0
View file @
86053eb4
/*
* Copyright (C) 2015, 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.
*/
//#define LOG_NDEBUG 0
#define LOG_TAG "wcnss_qmi"
#define SUCCESS 0
#define FAILED -1
#define MAC_INFO_FILE "/efs/wifi/.mac.info"
#include <cutils/log.h>
#include <stdio.h>
int
wcnss_init_qmi
(
void
)
{
/* empty */
return
SUCCESS
;
}
int
wcnss_qmi_get_wlan_address
(
unsigned
char
*
mac
)
{
int
i
;
int
tmp
[
6
];
FILE
*
f
;
if
((
f
=
fopen
(
MAC_INFO_FILE
,
"r"
))
==
NULL
)
{
ALOGE
(
"%s: failed to open %s"
,
__func__
,
MAC_INFO_FILE
);
return
FAILED
;
}
if
(
fscanf
(
f
,
"%02X:%02X:%02X:%02X:%02X:%02X"
,
&
tmp
[
0
],
&
tmp
[
1
],
&
tmp
[
2
],
&
tmp
[
3
],
&
tmp
[
4
],
&
tmp
[
5
])
!=
6
)
{
ALOGE
(
"%s: %s: file contents are not valid"
,
__func__
,
MAC_INFO_FILE
);
fclose
(
f
);
return
FAILED
;
}
else
{
for
(
i
=
0
;
i
<
6
;
i
++
)
mac
[
i
]
=
tmp
[
i
];
}
fclose
(
f
);
return
SUCCESS
;
}
void
wcnss_qmi_deinit
(
void
)
{
/* empty */
}
This diff is collapsed.
Click to expand it.
msm8226.mk
View file @
4f5d0fc7
...
...
@@ -153,6 +153,7 @@ PRODUCT_PACKAGES += \
PRODUCT_PACKAGES
+=
\
fstab.qcom
\
init.qcom.power.rc
\
init.qcom.recovery.rc
\
init.qcom.rc
\
init.qcom.usb.rc
\
init.target.rc
\
...
...
@@ -162,30 +163,6 @@ PRODUCT_PACKAGES += \
init.crda.sh
\
init.qcom.bt.sh
# Wifi
PRODUCT_PACKAGES
+=
\
dhcpcd.conf
\
hostapd
\
wpa_supplicant
\
wpa_supplicant.conf
PRODUCT_PACKAGES
+=
\
libcurl
\
libqsap_sdk
\
libQWiFiSoftApCfg
\
libwcnss_qmi
\
wcnss_service
# OpenSSH
PRODUCT_PACKAGES
+=
\
ssh
\
sftp
\
scp
\
sshd
\
ssh-keygen
\
sshd_config
\
start-ssh
PRODUCT_PACKAGES
+=
\
SamsungServiceMode
...
...
This diff is collapsed.
Click to expand it.
patch/bionic/0001-PROP_VALUE_MAX-128.patch
deleted
100644 → 0
View file @
86053eb4
From 772d8f888f0d81b541046110d90540971ff2b5d4 Mon Sep 17 00:00:00 2001
From: sub77 <sub77@ymail.com>
Date: Mon, 29 Feb 2016 15:21:35 +0100
Subject: [PATCH] PROP_VALUE_MAX = 128
Change-Id: I882e9457fcba79786c6497dc6beded6b1a8c0696
---
libc/include/sys/system_properties.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libc/include/sys/system_properties.h b/libc/include/sys/system_properties.h
index 01c3db3..6d4abe3 100644
--- a/libc/include/sys/system_properties.h
+++ b/libc/include/sys/system_properties.h
@@ -36,7 +36,7 @@
__BEGIN_DECLS
typedef struct prop_info prop_info;
#define PROP_NAME_MAX 32
-#define PROP_VALUE_MAX 92
+#define PROP_VALUE_MAX 128
/* Look up a system property by name, copying its value and a
** \0 terminator to the provided pointer. The total bytes
--
1.9.1
This diff is collapsed.
Click to expand it.
patch/build/0001-PROP_VALUE_MAX-128.patch
deleted
100644 → 0
View file @
86053eb4
From f194984993942ca1a67854ae6c5867086e76f750 Mon Sep 17 00:00:00 2001
From: sub77 <sub77@ymail.com>
Date: Mon, 29 Feb 2016 15:19:31 +0100
Subject: [PATCH] PROP_VALUE_MAX = 128
Change-Id: I7a31b49d92a64b2afb9b907da17c53e093effbaa
---
tools/post_process_props.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/post_process_props.py b/tools/post_process_props.py
index fa6106f..1bc5c08 100755
--- a/tools/post_process_props.py
+++ b/tools/post_process_props.py
@@ -23,7 +23,7 @@
import sys
# The constants in system_properties.h includes the termination NUL,
# so we decrease the values by 1 here.
PROP_NAME_MAX = 31
-PROP_VALUE_MAX = 91
+PROP_VALUE_MAX = 128
# Put the modifications that you need to make into the /system/build.prop into this
# function. The prop object has get(name) and put(name,value) methods.
--
1.9.1
This diff is collapsed.
Click to expand it.
patch/build/0001-unified-buildinfo.sh.patch
deleted
100644 → 0
View file @
86053eb4
From 1fd2a865b611d1b82cae93f85a0a2e8e5a163a11 Mon Sep 17 00:00:00 2001
From: sub77 <sub77@ymail.com>
Date: Sun, 10 Apr 2016 09:01:37 -0500
Subject: [PATCH] unified: buildinfo.sh
Change-Id: Ie4c077c1cb9dd3394afdf561767936c8a69fd121
---
core/Makefile | 7 ++-
tools/buildinfo.sh | 16 ++++---
tools/releasetools/ota_from_target_files.py | 73 ++++++++++++++++++-----------
3 files changed, 61 insertions(+), 35 deletions(-)
diff --git a/core/Makefile b/core/Makefile
index aa226a4..59f769b 100644
--- a/core/Makefile
+++ b/core/Makefile
@@ -247,6 +247,7 @@
endif
TARGET_CPU_ABI="$(TARGET_CPU_ABI)" \
TARGET_CPU_ABI2="$(TARGET_CPU_ABI2)" \
TARGET_AAPT_CHARACTERISTICS="$(TARGET_AAPT_CHARACTERISTICS)" \
+ TARGET_UNIFIED_DEVICE="$(TARGET_UNIFIED_DEVICE)" \
$(PRODUCT_BUILD_PROP_OVERRIDES) \
bash $(BUILDINFO_SH) >> $@
$(hide) $(foreach file,$(system_prop_file), \
@@ -1800,6 +1801,10 @@
else
$(INTERNAL_OTA_PACKAGE_TARGET): backuptool := false
endif
+ifneq ($(TARGET_UNIFIED_DEVICE),)
+ $(INTERNAL_OTA_PACKAGE_TARGET): override_prop := --override_prop=true
+endif
+
$(INTERNAL_OTA_PACKAGE_TARGET): $(BUILT_TARGET_FILES_PACKAGE) $(DISTTOOLS)
@echo -e ${CL_YLW}"Package OTA:"${CL_RST}" $@"
$(hide) PATH=$(foreach p,$(INTERNAL_USERIMAGES_BINARY_PATHS),$(p):)$$PATH MKBOOTIMG=$(MKBOOTIMG) \
@@ -1808,8 +1813,8 @@
$(INTERNAL_OTA_PACKAGE_TARGET): $(BUILT_TARGET_FILES_PACKAGE) $(DISTTOOLS)
-p $(HOST_OUT) \
-k $(KEY_CERT_PAIR) \
--backup=$(backuptool) \
+ --override_device=$(override_device) $(override_prop) \
$(if $(OEM_OTA_CONFIG), -o $(OEM_OTA_CONFIG)) \
- --override_device=$(override_device) \
$(BUILT_TARGET_FILES_PACKAGE) $@
DU_TARGET_PACKAGE := $(PRODUCT_OUT)/$(DU_VERSION).zip
diff --git a/tools/buildinfo.sh b/tools/buildinfo.sh
index f133f64..f0e6349 100755
--- a/tools/buildinfo.sh
+++ b/tools/buildinfo.sh
@@ -20,10 +20,8 @@
echo "ro.build.user=$USER"
echo "ro.build.host=`hostname`"
echo "ro.build.tags=$BUILD_VERSION_TAGS"
echo "ro.build.flavor=$TARGET_BUILD_FLAVOR"
-echo "ro.product.model=$PRODUCT_MODEL"
echo "ro.product.brand=$PRODUCT_BRAND"
echo "ro.product.name=$PRODUCT_NAME"
-echo "ro.product.device=$TARGET_DEVICE"
echo "ro.product.board=$TARGET_BOOTLOADER_BOARD_NAME"
# These values are deprecated, use "ro.product.cpu.abilist"
@@ -48,11 +46,15 @@
echo "ro.board.platform=$TARGET_BOARD_PLATFORM"
echo "# ro.build.product is obsolete; use ro.product.device"
echo "ro.build.product=$TARGET_DEVICE"
-echo "# Do not try to parse description, fingerprint, or thumbprint"
-echo "ro.build.description=$PRIVATE_BUILD_DESC"
-echo "ro.build.fingerprint=$BUILD_FINGERPRINT"
-if [ -n "$BUILD_THUMBPRINT" ] ; then
- echo "ro.build.thumbprint=$BUILD_THUMBPRINT"
+if [ "$TARGET_UNIFIED_DEVICE" == "" ] ; then
+ echo "ro.product.model=$PRODUCT_MODEL"
+ echo "ro.product.device=$TARGET_DEVICE"
+ echo "# Do not try to parse description, fingerprint, or thumbprint"
+ echo "ro.build.description=$PRIVATE_BUILD_DESC"
+ echo "ro.build.fingerprint=$BUILD_FINGERPRINT"
+ if [ -n "$BUILD_THUMBPRINT" ] ; then
+ echo "ro.build.thumbprint=$BUILD_THUMBPRINT"
+ fi
fi
echo "ro.build.characteristics=$TARGET_AAPT_CHARACTERISTICS"
diff --git a/tools/releasetools/ota_from_target_files.py b/tools/releasetools/ota_from_target_files.py
index 8ec14f1..991e709 100755
--- a/tools/releasetools/ota_from_target_files.py
+++ b/tools/releasetools/ota_from_target_files.py
@@ -99,6 +99,11 @@
Usage: ota_from_target_files [flags] input_target_files output_ota_package
--override_device <device>
Override device-specific asserts. Can be a comma-separated list.
+
+ --override_prop <boolean>
+ Override build.prop items with custom vendor init.
+ Enabled when TARGET_UNIFIED_DEVICE is defined in BoardConfig
+
"""
import sys
@@ -139,6 +144,7 @@
OPTIONS.full_bootloader = False
OPTIONS.backuptool = False
OPTIONS.fallback_to_full = True
OPTIONS.override_device = 'auto'
+OPTIONS.override_prop = False
OPTIONS.full_radio = False
OPTIONS.full_bootloader = False
# Stash size cannot exceed cache_size * threshold.
@@ -425,7 +431,10 @@
def AppendAssertions(script, info_dict, oem_dict=None):
oem_props = info_dict.get("oem_fingerprint_properties")
if oem_props is None or len(oem_props) == 0:
if OPTIONS.override_device == "auto":
- device = GetBuildProp("ro.product.device", info_dict)
+ if OPTIONS.override_prop:
+ device = GetBuildProp("ro.build.product", info_dict)
+ else:
+ device = GetBuildProp("ro.product.device", info_dict)
else:
device = OPTIONS.override_device
script.AssertDevice(device)
@@ -537,13 +546,18 @@
def WriteFullOTAPackage(input_zip, output_zip):
oem_dict = common.LoadDictionaryFromLines(
open(OPTIONS.oem_source).readlines())
- metadata = {
- "post-build": CalculateFingerprint(oem_props, oem_dict,
- OPTIONS.info_dict),
- "pre-device": GetOemProperty("ro.product.device", oem_props, oem_dict,
- OPTIONS.info_dict),
- "post-timestamp": GetBuildProp("ro.build.date.utc", OPTIONS.info_dict),
- }
+ if OPTIONS.override_prop:
+ metadata = {"post-timestamp": GetBuildProp("ro.build.date.utc",
+ OPTIONS.info_dict),
+ }
+ else:
+ metadata = {"post-build": CalculateFingerprint(
+ oem_props, oem_dict, OPTIONS.info_dict),
+ "pre-device": GetOemProperty("ro.product.device", oem_props, oem_dict,
+ OPTIONS.info_dict),
+ "post-timestamp": GetBuildProp("ro.build.date.utc",
+ OPTIONS.info_dict),
+ }
device_specific = common.DeviceSpecificParams(
input_zip=input_zip,
@@ -817,12 +831,16 @@
def WriteBlockIncrementalOTAPackage(target_zip, source_zip, output_zip):
source_version, OPTIONS.target_info_dict,
fstab=OPTIONS.source_info_dict["fstab"])
- metadata = {
- "pre-device": GetBuildProp("ro.product.device",
- OPTIONS.source_info_dict),
- "post-timestamp": GetBuildProp("ro.build.date.utc",
- OPTIONS.target_info_dict),
- }
+ if OPTIONS.override_prop:
+ metadata = {"post-timestamp": GetBuildProp("ro.build.date.utc",
+ OPTIONS.target_info_dict),
+ }
+ else:
+ metadata = {"pre-device": GetBuildProp("ro.product.device",
+ OPTIONS.source_info_dict),
+ "post-timestamp": GetBuildProp("ro.build.date.utc",
+ OPTIONS.target_info_dict),
+ }
device_specific = common.DeviceSpecificParams(
source_zip=source_zip,
@@ -1242,20 +1260,18 @@
def WriteIncrementalOTAPackage(target_zip, source_zip, output_zip):
else:
vendor_diff = None
- target_fp = CalculateFingerprint(oem_props, oem_dict,
- OPTIONS.target_info_dict)
- source_fp = CalculateFingerprint(oem_props, oem_dict,
- OPTIONS.source_info_dict)
-
- if oem_props is None:
- script.AssertSomeFingerprint(source_fp, target_fp)
- else:
- script.AssertSomeThumbprint(
- GetBuildProp("ro.build.thumbprint", OPTIONS.target_info_dict),
- GetBuildProp("ro.build.thumbprint", OPTIONS.source_info_dict))
+ if not OPTIONS.override_prop:
+ target_fp = CalculateFingerprint(oem_props, oem_dict, OPTIONS.target_info_dict)
+ source_fp = CalculateFingerprint(oem_props, oem_dict, OPTIONS.source_info_dict)
+ if oem_props is None:
+ script.AssertSomeFingerprint(source_fp, target_fp)
+ else:
+ script.AssertSomeThumbprint(
+ GetBuildProp("ro.build.thumbprint", OPTIONS.target_info_dict),
+ GetBuildProp("ro.build.thumbprint", OPTIONS.source_info_dict))
- metadata["pre-build"] = source_fp
- metadata["post-build"] = target_fp
+ metadata["pre-build"] = source_fp
+ metadata["post-build"] = target_fp
source_boot = common.GetBootableImage(
"/tmp/boot.img", "boot.img", OPTIONS.source_tmp, "BOOT",
@@ -1625,6 +1641,8 @@
def main(argv):
"a float" % (a, o))
elif o in ("--override_device"):
OPTIONS.override_device = a
+ elif o in ("--override_prop"):
+ OPTIONS.override_prop = bool(a.lower() == 'true')
elif o in ("--backup"):
OPTIONS.backuptool = bool(a.lower() == 'true')
else:
@@ -1654,6 +1672,7 @@
def main(argv):
"stash_threshold=",
"backup=",
"override_device=",
+ "override_prop=",
], extra_option_handler=option_handler)
if len(args) != 2:
--
1.9.1
This diff is collapsed.
Click to expand it.
patch/external_openssh/0001-create-EMPTY-folder.patch
deleted
100644 → 0
View file @
86053eb4
From b318c5f4300b921f68312c87322aa79d439f65c2 Mon Sep 17 00:00:00 2001
From: sub77 <sub77@ymail.com>
Date: Mon, 25 Apr 2016 17:43:45 -0500
Subject: [PATCH] Checking for /data/ssh/empty
Change-Id: I571001821d0ab496446462f6d58af13e4551076c
---
start-ssh | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/start-ssh b/start-ssh
index 62d87da..fc73486 100644
--- a/start-ssh
+++ b/start-ssh
@@ -11,6 +11,14 @@
RSA_PUB_KEY=/data/ssh/ssh_host_rsa_key.pub
AUTHORIZED_KEYS=/data/ssh/authorized_keys
DEFAULT_AUTHORIZED_KEYS=/system/etc/security/authorized_keys.default
+EMPTY=/data/ssh/empty
+
+if [ ! -d $EMPTY ]; then
+ mkdir -p $EMPTY
+ chmod 700 $EMPTY
+fi
+
+
if [ ! -f $DSA_KEY ]; then
/system/bin/ssh-keygen -t dsa -f $DSA_KEY -N ""
chmod 600 /$DSA_KEY
--
1.9.1
This diff is collapsed.
Click to expand it.
patch/packages_apps_Settings/0001-Add-OpenDelta-Updater.patch
deleted
100644 → 0
View file @
86053eb4
From 9146c32a4e06549a5f4ae0f3c82b0350fa11bf54 Mon Sep 17 00:00:00 2001
From: sub77 <sub77@ymail.com>
Date: Sun, 1 May 2016 22:56:28 -0500
Subject: [PATCH] Add OpenDelta Updater
Change-Id: I8d38f6706a79be94991e8f4944b6570ed30098f9
---
res/xml/device_info_settings.xml | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/res/xml/device_info_settings.xml b/res/xml/device_info_settings.xml
index 3840b81..69487fa 100644
--- a/res/xml/device_info_settings.xml
+++ b/res/xml/device_info_settings.xml
@@ -46,6 +46,15 @@
android:targetClass="com.dirtyunicorns.duupdater.MainActivity" />
</PreferenceScreen>
+ <PreferenceScreen
+ android:key="duupdater"
+ android:title="@string/duupdater"
+ android:summary="@string/duupdater_summary">
+ <intent android:action="android.settings.SYSTEM_UPDATE_SETTINGS"
+ android:targetPackage="eu.chainfire.opendelta"
+ android:targetClass="eu.chainfire.opendelta.MainActivity" />
+ </PreferenceScreen>
+
<!-- DU Share -->
<Preference
android:key="share"
--
1.9.1
This diff is collapsed.
Click to expand it.
patch/patch.tar.gz
deleted
100644 → 0
View file @
86053eb4
File deleted
This diff is collapsed.
Click to expand it.
rootdir/Android.mk
View file @
4f5d0fc7
...
...
@@ -26,6 +26,14 @@ LOCAL_SRC_FILES := etc/init.qcom.power.rc
LOCAL_MODULE_PATH
:=
$(TARGET_ROOT_OUT)
include
$(BUILD_PREBUILT)
include
$(CLEAR_VARS)
LOCAL_MODULE
:=
init.qcom.recovery.rc
LOCAL_MODULE_TAGS
:=
optional eng
LOCAL_MODULE_CLASS
:=
ETC
LOCAL_SRC_FILES
:=
etc/init.qcom.power.rc
LOCAL_MODULE_PATH
:=
$(TARGET_ROOT_OUT)
include
$(BUILD_PREBUILT)
include
$(CLEAR_VARS)
LOCAL_MODULE
:=
init.qcom.usb.rc
LOCAL_MODULE_TAGS
:=
optional eng
...
...
This diff is collapsed.
Click to expand it.
rootdir/etc/init.qcom.rc
View file @
4f5d0fc7
...
...
@@ -30,7 +30,7 @@ import init.qcom.usb.rc
import init.target.rc
on early-init
export LD_SHIM_LIBS /system/lib/hw/camera.vendor.msm8226.so|libboringssl-compat.so:/system/vendor/lib/libqomx_jpegenc.so|libboringssl-compat.so:/system/lib/libcrypto.so|libboringssl-compat.so:/system/lib/libril.so|libril_shim.so
#
export LD_SHIM_LIBS
"
/system/lib/hw/camera.vendor.msm8226.so|libboringssl-compat.so:/system/vendor/lib/libqomx_jpegenc.so|libboringssl-compat.so:/system/lib/libcrypto.so|libboringssl-compat.so:/system/lib/libril.so|libril_shim.so
"
mount debugfs debugfs /sys/kernel/debug
...
...
@@ -47,9 +47,6 @@ on init
# Support legacy paths
symlink /sdcard /storage/sdcard0
# Support legacy egl
symlink /vendor/lib/egl /egl
# Enable mass storage mounting
write /sys/devices/platform/msm_hsusb/gadget/lun0/file 0
write /proc/sys/kernel/printk 8
...
...
This diff is collapsed.
Click to expand it.
system.prop
View file @
4f5d0fc7
...
...
@@ -35,6 +35,10 @@ ro.qc.sdk.izat.service_mask=0x0
# IO Scheduler
sys.io.scheduler=bfq
# Media
media.stagefright.legacyencoder=true
media.stagefright.less-secure=true
# Perf
ro.vendor.extension_library=/vendor/lib/libqti-perfd-client.so
...
...
@@ -42,7 +46,7 @@ ro.vendor.extension_library=/vendor/lib/libqti-perfd-client.so
persist.sys.ssr.enable_debug=0
# Strict Mode
persist.sys.strictmode.disable=true
#
persist.sys.strictmode.disable=true
# Sensors
ro.qc.sdk.gestures.camera=false
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment