Skip to content

Commit

Permalink
Revert "Make ressurected"
Browse files Browse the repository at this point in the history
This reverts commit 4286283.
  • Loading branch information
Tet35 committed Feb 16, 2019
1 parent c35764d commit a9163d7
Show file tree
Hide file tree
Showing 8 changed files with 126 additions and 56 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Resurrection Remix 6.0 (Android 8.1 Oreo)
Lineage OS 15.1 (Android 8.1 Oreo)
device configuration for
ZTE Nubia Z9 Max NX512J
=====================================
Expand All @@ -19,4 +19,4 @@ Release Date | March 2015

![ZTE Nubia Z9 Max](http://static.nubia.cn/product/max/images/params/params_z9max02.jpg "ZTE Nubia Z9 Max")

P.S. After "lunch", check the availability of repositories in your work directory, specified in rr.dependencies, and add them manually, if they are missing.
P.S. After "lunch", check the availability of repositories in your work directory, specified in lineage.dependencies, and add them manually, if they are missing.
3 changes: 3 additions & 0 deletions config.fs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[AID_QCOM_DIAG]
value:2950

[AID_RFS]
value:2951

Expand Down
63 changes: 63 additions & 0 deletions extract-files.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
#!/bin/bash
#
# Copyright (C) 2016 The CyanogenMod Project
# Copyright (C) 2017 The LineageOS 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.
#

set -e

DEVICE=nx511j
VENDOR=nubia

# Load extract_utils and do some sanity checks
MY_DIR="${BASH_SOURCE%/*}"
if [[ ! -d "$MY_DIR" ]]; then MY_DIR="$PWD"; fi

LINEAGE_ROOT="$MY_DIR"/../../..

HELPER="$LINEAGE_ROOT"/vendor/lineage/build/tools/extract_utils.sh
if [ ! -f "$HELPER" ]; then
echo "Unable to find helper script at $HELPER"
exit 1
fi
. "$HELPER"

# Default to sanitizing the vendor folder before extraction
CLEAN_VENDOR=true

while [ "$1" != "" ]; do
case $1 in
-n | --no-cleanup ) CLEAN_VENDOR=false
;;
-s | --section ) shift
SECTION=$1
CLEAN_VENDOR=false
;;
* ) SRC=$1
;;
esac
shift
done

if [ -z "$SRC" ]; then
SRC=adb
fi

# Initialize the helper
setup_vendor "$DEVICE" "$VENDOR" "$LINEAGE_ROOT" false "$CLEAN_VENDOR"

extract "$MY_DIR"/proprietary-files.txt "$SRC" "$SECTION"

"$MY_DIR"/setup-makefiles.sh
6 changes: 6 additions & 0 deletions lineage.dependencies
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[
{
"repository": "android_external_sony_boringssl-compat",
"target_path": "external/sony/boringssl-compat"
}
]
8 changes: 4 additions & 4 deletions rr.mk → lineage.mk
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@

$(call inherit-product, device/nubia/nx512j/full_nx512j.mk)

# Inherit some common stuff.
$(call inherit-product, vendor/rr/config/common_full_phone.mk)
# Inherit some common Lineage stuff.
$(call inherit-product, vendor/lineage/config/common_full_phone.mk)

# Device identifiers
PRODUCT_NAME := rr_nx512j
PRODUCT_DEVICE := nx512j
PRODUCT_NAME := lineage_nx511j
PRODUCT_DEVICE := nx511j
PRODUCT_MANUFACTURER := Nubia
PRODUCT_BRAND := Nubia
PRODUCT_MODEL := Nubia Z9 Max
Expand Down
44 changes: 0 additions & 44 deletions overlay/frameworks/base/core/res/res/values/rr_config.xml

This file was deleted.

6 changes: 0 additions & 6 deletions rr.dependencies

This file was deleted.

48 changes: 48 additions & 0 deletions setup-makefiles.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
#!/bin/bash
#
# Copyright (C) 2016 The CyanogenMod Project
# Copyright (C) 2017 The LineageOS 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.
#

set -e

DEVICE=nx511j
VENDOR=nubia

INITIAL_COPYRIGHT_YEAR=2015

# Load extract_utils and do some sanity checks
MY_DIR="${BASH_SOURCE%/*}"
if [[ ! -d "$MY_DIR" ]]; then MY_DIR="$PWD"; fi

LINEAGE_ROOT="$MY_DIR"/../../..

HELPER="$LINEAGE_ROOT"/vendor/lineage/build/tools/extract_utils.sh
if [ ! -f "$HELPER" ]; then
echo "Unable to find helper script at $HELPER"
exit 1
fi
. "$HELPER"

# Initialize the helper
setup_vendor "$DEVICE" "$VENDOR" "$LINEAGE_ROOT"

# Copyright headers and guards
write_headers

write_makefiles "$MY_DIR"/proprietary-files.txt

# Finish
write_footers

0 comments on commit a9163d7

Please sign in to comment.