Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # The install script location moved from /system/etc to /system/bin
- # in the L release. Parse the init.rc file to find out where the
- # target-files expects it to be, and put it there.
- sh_location = "etc/install-recovery.sh"
- # try:
- # with open(os.path.join(input_dir, "BOOT", "RAMDISK", "init.rc")) as f:
- # for line in f:
- # m = re.match("^service flash_recovery /system/(\S+)\s*$", line)
- # if m:
- # sh_location = m.group(1)
- # print "putting script in", sh_location
- # break
- # except (OSError, IOError), e:
- # print "failed to read init.rc: %s" % (e,)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement