Remove releasetools scripts
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
#!/system/bin/sh
|
||||
|
||||
/system/bin/sysinit
|
||||
@@ -1,5 +0,0 @@
|
||||
symlink("/system/framework/org.cyanogenmod.platform.jar", "/system/framework/fosinit.jar");
|
||||
symlink("/system/framework/org.cyanogenmod.platform.jar", "/system/framework/fosservices.jar");
|
||||
delete("/system/bin/install-recovery.sh");
|
||||
rename("/system/bin/new-install-recovery.sh", "/system/bin/install-recovery.sh");
|
||||
set_metadata("/system/etc/install-recovery-2.sh", "uid", 0, "gid", 0, "mode", 0755, "capabilities", 0x0, "selabel", "u:object_r:install_recovery_exec:s0");
|
||||
@@ -1,48 +0,0 @@
|
||||
#!/usr/bin/env python
|
||||
#
|
||||
# Copyright (C) 2008 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.
|
||||
|
||||
"""
|
||||
A shim to generate an OTA for ford
|
||||
"""
|
||||
|
||||
import sys
|
||||
|
||||
if sys.hexversion < 0x02040000:
|
||||
print >> sys.stderr, "Python 2.4 or newer is required."
|
||||
sys.exit(1)
|
||||
|
||||
import imp
|
||||
import os
|
||||
|
||||
# grab the releasetools directory and add it to our import path
|
||||
RELEASETOOLS = os.path.realpath(os.path.join(os.path.dirname(__file__), "..", "..", "..", "..", "build", "tools", "releasetools"))
|
||||
sys.path.append(RELEASETOOLS)
|
||||
|
||||
# import the stuff we're going to overwrite
|
||||
import common
|
||||
imp.load_source("ota", os.path.join(RELEASETOOLS, "ota_from_target_files"))
|
||||
import ota
|
||||
|
||||
ota.OPTIONS.extra_script = os.path.realpath(os.path.join(os.path.dirname(__file__), 'extra_script'))
|
||||
|
||||
if __name__ == '__main__':
|
||||
try:
|
||||
ota.main(sys.argv[1:])
|
||||
except common.ExternalError, e:
|
||||
print
|
||||
print " ERROR: %s" % (e,)
|
||||
print
|
||||
sys.exit(1)
|
||||
Reference in New Issue
Block a user