From 199a1cebdda28081bab9820e59f937cb49efe818 Mon Sep 17 00:00:00 2001 From: Lloir Date: Mon, 24 Apr 2017 18:57:29 +0100 Subject: [PATCH] OTA: Add hboot version check to install --- releasetools.py | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 releasetools.py diff --git a/releasetools.py b/releasetools.py new file mode 100644 index 0000000..f506edf --- /dev/null +++ b/releasetools.py @@ -0,0 +1,31 @@ +# Copyright (C) 2013 The Android Open Source Project +# Copyright (C) 2013 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. + +"""Custom OTA commands for z4u""" + +import common +import os +import shutil + +#TARGET_DIR = os.getenv('OUT') +#UTILITIES_DIR = os.path.join(TARGET_DIR, 'utilities') + +def FullOTA_Assertions(info): + info.script.AppendExtra( + ('assert(' + 'getprop("ro.bootloader") == "1.03.0001"' + ');')) + +