klte-common: Drop all of our releasetools stuff

* The OSS RIL gets us down to a single blob that we can instruct
  rild to make use of using a property. We've done that, so this
  has ceased to serve its purpose.

Revert "klte-common: releasetools: Use toybox's cp"

This reverts commit fbb95e0b01.

Revert "klte-common: releasetools: Move variant ident logic to hook"

This reverts commit 167e45f1c0.

Revert "klte-common: Add releasetools extension to install variant blobs"

This reverts commit a27086acba.

Change-Id: I070d03063afc3d8bf12cbd70599600930b3edd47
This commit is contained in:
Kevin F. Haggerty 2017-10-26 20:23:01 -06:00
parent 1bf14f5889
commit dac4f861a3
2 changed files with 0 additions and 82 deletions

View File

@ -1,25 +0,0 @@
# 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.
#
""" Custom OTA commands for klte devices """
import common
import re
import os
def FullOTA_InstallEnd(info):
info.script.Mount("/system")
info.script.AppendExtra('assert(run_program("/tmp/install/bin/variant_blobs.sh") == 0);')
info.script.Unmount("/system")

View File

@ -1,57 +0,0 @@
#!/sbin/sh
#
# 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
copy()
{
LD_LIBRARY_PATH=/system/lib /system/bin/toybox cp --preserve=a "$1" "$2"
}
VAR_SELECT_HOOK=/tmp/install/bin/variant_blobs_hook.sh
# Detect variant and copy its specific-blobs
BOOTLOADER=`getprop ro.bootloader`
if [ -f $VAR_SELECT_HOOK ] ; then
. $VAR_SELECT_HOOK
else
echo "Could not find variant selector hook: $VAR_SELECT_HOOK"
exit 1
fi
echo "Device with bootloader $BOOTLOADER requires $VARIANT blobs"
BLOBBASE=/system/blobs/$VARIANT
if [ -d $BLOBBASE ]; then
cd $BLOBBASE
for FILE in `find . -type f` ; do
mkdir -p `dirname /system/$FILE`
copy $FILE /system/$FILE
done
for FILE in bin/* ; do
chmod 755 /system/$FILE
done
else
echo "Expected source directory does not exist!"
exit 1
fi
exit 0