-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Switch to prebuilt kernel. * Added decryption blobs. * Compress recovery image with LZMA. * Drop old sepolicies.
- Loading branch information
Showing
51 changed files
with
591 additions
and
561 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
PRODUCT_MAKEFILES := \ | ||
$(LOCAL_DIR)/device.mk | ||
$(LOCAL_DIR)/omni_m7univ.mk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
TeamWin Recovery Project | ||
|
||
Device files for HTC One (M7) | ||
|
||
Builds with OmniROM android-8.1 tree |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,31 @@ | ||
# | ||
# Copyright (C) 2014 The CyanogenMod Project | ||
# Copyright (C) 2016 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 | ||
# 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 := chargeled.c | ||
LOCAL_MODULE_TAGS := optional | ||
LOCAL_C_INCLUDES := system/core/init | ||
LOCAL_CFLAGS := -Wall -DANDROID_TARGET=\"$(TARGET_BOARD_PLATFORM)\" | ||
|
||
LOCAL_SRC_FILES := init_$(TARGET_DEVICE).cpp | ||
|
||
LOCAL_CFLAGS += -Wall | ||
LOCAL_MODULE := libinit_$(TARGET_DEVICE) | ||
|
||
LOCAL_STATIC_LIBRARIES := libc liblog libcutils | ||
LOCAL_FORCE_STATIC_EXECUTABLE := true | ||
LOCAL_STATIC_LIBRARIES := \ | ||
libbase | ||
|
||
LOCAL_MODULE := chargeled | ||
LOCAL_MODULE_TAGS := optional eng | ||
LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES | ||
LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/sbin | ||
include $(BUILD_EXECUTABLE) | ||
include $(BUILD_STATIC_LIBRARY) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
/* | ||
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 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. | ||
*/ | ||
|
||
#include <stdlib.h> | ||
#define _REALLY_INCLUDE_SYS__SYSTEM_PROPERTIES_H_ | ||
#include <sys/_system_properties.h> | ||
|
||
#include <android-base/properties.h> | ||
#include <android-base/logging.h> | ||
|
||
#include "property_service.h" | ||
|
||
namespace android { | ||
namespace init { | ||
|
||
void property_override(char const prop[], char const value[]) { | ||
prop_info *pi; | ||
|
||
pi = (prop_info*) __system_property_find(prop); | ||
if (pi) | ||
__system_property_update(pi, value, strlen(value)); | ||
else | ||
__system_property_add(prop, strlen(prop), value, strlen(value)); | ||
} | ||
|
||
void property_override_dual(char const system_prop[], char const vendor_prop[], | ||
char const value[]) | ||
{ | ||
property_override(system_prop, value); | ||
property_override(vendor_prop, value); | ||
} | ||
|
||
void vendor_load_properties() { | ||
std::string platform = android::base::GetProperty("ro.board.platform", ""); | ||
std::string bootmid; | ||
std::string device; | ||
|
||
bootmid = android::base::GetProperty("ro.boot.mid", ""); | ||
if (bootmid == "PN0720000") { | ||
/* m7wls */ | ||
property_override_dual("ro.product.device", "ro.vendor.product.device", "m7wls"); | ||
property_override("ro.build.product", "m7wls"); | ||
} else if (bootmid == "PN0731000") { | ||
/* m7wlv */ | ||
property_override_dual("ro.product.device", "ro.vendor.product.device", "m7wlv"); | ||
property_override("ro.build.product", "m7wlv"); | ||
} else { | ||
/* m7 */ | ||
property_override_dual("ro.product.device", "ro.vendor.product.device", "m7"); | ||
property_override("ro.build.product", "m7"); | ||
} | ||
device = android::base::GetProperty("ro.product.device", ""); | ||
LOG(INFO) << "Found bootmid '" << bootmid.c_str() << | ||
"' setting build properties for '" << device.c_str() << "' device\n"; | ||
} | ||
} // namespace init | ||
} // namespace android |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
[ | ||
{ | ||
"remote": "github", | ||
"repository": "TeamWin/android_device_qcom_htc-common", | ||
"target_path": "device/qcom/htc-common", | ||
"revision": "android-8.1" | ||
}, | ||
{ | ||
"remote": "github", | ||
"repository": "TeamWin/android_device_qcom_common", | ||
"target_path": "device/qcom/common", | ||
"revision": "android-8.1" | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# Copyright (C) 2011 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. | ||
|
||
# | ||
# This file is the build configuration for a full Android | ||
# build for maguro hardware. This cleanly combines a set of | ||
# device-specific aspects (drivers) with a device-agnostic | ||
# product configuration (apps). Except for a few implementation | ||
# details, it only fundamentally contains two inherit-product | ||
# lines, full and maguro, hence its name. | ||
# | ||
|
||
# Release name | ||
PRODUCT_RELEASE_NAME := m7univ | ||
|
||
# Inherit from the common Open Source product configuration | ||
$(call inherit-product, $(SRC_TARGET_DIR)/product/aosp_base_telephony.mk) | ||
|
||
# Inherit some common Omni stuff. | ||
$(call inherit-product, vendor/omni/config/common.mk) | ||
|
||
## Device identifier. This must come after all inclusions | ||
PRODUCT_DEVICE := m7univ | ||
PRODUCT_NAME := omni_m7univ | ||
PRODUCT_BRAND := htc | ||
PRODUCT_MODEL := One | ||
PRODUCT_MANUFACTURER := HTC |
Binary file not shown.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.