Skip to content

Commit

Permalink
Merge tag 'android-6.0.1_r22' into HEAD
Browse files Browse the repository at this point in the history
Android 6.0.1 release 22

Change-Id: Icbe2be1ec3071f1bbe68bcbfd0896d5ebbd20372
  • Loading branch information
gmillz committed Mar 28, 2016
2 parents d92eaf3 + 57d06af commit 7c09bda
Show file tree
Hide file tree
Showing 14 changed files with 51 additions and 19 deletions.
2 changes: 1 addition & 1 deletion core/build_id.mk
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@
# (like "CRB01"). It must be a single word, and is
# capitalized by convention.

export BUILD_ID=MMB29U
export BUILD_ID=MHC19J
2 changes: 1 addition & 1 deletion core/product_config.mk
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ ifdef product_goals
# which really means TARGET_PRODUCT=dream make installclean.
ifneq ($(filter-out $(INTERNAL_VALID_VARIANTS),$(TARGET_BUILD_VARIANT)),)
MAKECMDGOALS := $(MAKECMDGOALS) $(TARGET_BUILD_VARIANT)
TARGET_BUILD_VARIANT := eng
TARGET_BUILD_VARIANT := userdebug
default_goal_substitution :=
else
default_goal_substitution := $(DEFAULT_GOAL)
Expand Down
2 changes: 1 addition & 1 deletion core/version_defaults.mk
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ ifeq "" "$(PLATFORM_SECURITY_PATCH)"
# Can be an arbitrary string, but must be a single word.
#
# If there is no $PLATFORM_SECURITY_PATCH set, keep it empty.
PLATFORM_SECURITY_PATCH := 2016-02-01
PLATFORM_SECURITY_PATCH := 2016-03-01
endif

ifeq "" "$(PLATFORM_BASE_OS)"
Expand Down
2 changes: 2 additions & 0 deletions target/board/generic/sepolicy/property_contexts
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
qemu. u:object_r:qemu_prop:s0
emu. u:object_r:qemu_prop:s0
emulator. u:object_r:qemu_prop:s0
radio.noril u:object_r:radio_noril_prop:s0
1 change: 0 additions & 1 deletion target/product/core.mk
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ PRODUCT_PACKAGES += \
DownloadProviderUi \
Email \
ExactCalculator \
Exchange2 \
ExternalStorageProvider \
FusedLocation \
InputDevices \
Expand Down
1 change: 1 addition & 0 deletions target/product/core_tiny.mk
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ PRODUCT_PACKAGES += \
javax.btobex \
keystore \
keystore.default \
ld.mc \
libOpenMAXAL \
libOpenSLES \
libdownmix \
Expand Down
2 changes: 1 addition & 1 deletion target/product/sdk_phone_arm64.mk
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ $(call inherit-product, $(SRC_TARGET_DIR)/product/sdk_base.mk)
$(call inherit-product, $(SRC_TARGET_DIR)/board/generic_arm64/device.mk)

# Overrides
PRODUCT_BRAND := generic_arm64
PRODUCT_BRAND := Android
PRODUCT_NAME := sdk_phone_arm64
PRODUCT_DEVICE := generic_arm64
PRODUCT_MODEL := Android SDK built for arm64
2 changes: 1 addition & 1 deletion target/product/sdk_phone_armv7.mk
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@
$(call inherit-product, $(SRC_TARGET_DIR)/product/sdk_base.mk)

# Overrides
PRODUCT_BRAND := generic
PRODUCT_BRAND := Android
PRODUCT_NAME := sdk_phone_armv7
PRODUCT_DEVICE := generic
2 changes: 1 addition & 1 deletion target/product/sdk_phone_mips.mk
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
$(call inherit-product, $(SRC_TARGET_DIR)/product/sdk_base.mk)

# Overrides
PRODUCT_BRAND := generic_mips
PRODUCT_BRAND := Android
PRODUCT_NAME := sdk_phone_mips
PRODUCT_DEVICE := generic_mips
PRODUCT_MODEL := Android SDK for Mips
2 changes: 1 addition & 1 deletion target/product/sdk_phone_mips64.mk
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ $(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk)
$(call inherit-product, $(SRC_TARGET_DIR)/product/sdk_base.mk)

# Overrides
PRODUCT_BRAND := generic_mips64
PRODUCT_BRAND := Android
PRODUCT_NAME := sdk_phone_mips64
PRODUCT_DEVICE := generic_mips64
PRODUCT_MODEL := Android SDK built for mips64
2 changes: 1 addition & 1 deletion target/product/sdk_phone_x86.mk
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
$(call inherit-product, $(SRC_TARGET_DIR)/product/sdk_base.mk)

# Overrides
PRODUCT_BRAND := generic_x86
PRODUCT_BRAND := Android
PRODUCT_NAME := sdk_phone_x86
PRODUCT_DEVICE := generic_x86
PRODUCT_MODEL := Android SDK built for x86
2 changes: 1 addition & 1 deletion target/product/sdk_phone_x86_64.mk
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ $(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk)
$(call inherit-product, $(SRC_TARGET_DIR)/product/sdk_base.mk)

# Overrides
PRODUCT_BRAND := generic_x86_64
PRODUCT_BRAND := Android
PRODUCT_NAME := sdk_phone_x86_64
PRODUCT_DEVICE := generic_x86_64
PRODUCT_MODEL := Android SDK built for x86_64
22 changes: 16 additions & 6 deletions tools/releasetools/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -1472,18 +1472,28 @@ def MakeRecoveryPatch(input_dir, output_sink, recovery_img, boot_img,
'bonus_args': bonus_args}

# 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
# in the L release. Parse init.*.rc files 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:
found = False
init_rc_dir = os.path.join(input_dir, "BOOT", "RAMDISK")
init_rc_files = os.listdir(init_rc_dir)
for init_rc_file in init_rc_files:
if (not init_rc_file.startswith('init.') or
not init_rc_file.endswith('.rc')):
continue

with open(os.path.join(init_rc_dir, init_rc_file)) as f:
for line in f:
m = re.match(r"^service flash_recovery /system/(\S+)\s*$", line)
if m:
sh_location = m.group(1)
print "putting script in", sh_location
found = True
break
except (OSError, IOError) as e:
print "failed to read init.rc: %s" % (e,)

if found:
break

print "putting script in", sh_location

output_sink(sh_location, sh)
26 changes: 23 additions & 3 deletions tools/releasetools/sparse_img.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,16 @@ def LoadFileBlockMap(self, fn, clobbered_blocks):
nonzero_blocks = []
reference = '\0' * self.blocksize

# Workaround for bug 23227672. For squashfs, we don't have a system.map. So
# the whole system image will be treated as a single file. But for some
# unknown bug, the updater will be killed due to OOM when writing back the
# patched image to flash (observed on lenok-userdebug MEA49). Prior to
# getting a real fix, we evenly divide the non-zero blocks into smaller
# groups (currently 1024 blocks or 4MB per group).
# Bug: 23227672
MAX_BLOCKS_PER_GROUP = 1024
nonzero_groups = []

f = self.simg_f
for s, e in remaining:
for b in range(s, e):
Expand All @@ -232,12 +242,22 @@ def LoadFileBlockMap(self, fn, clobbered_blocks):
nonzero_blocks.append(b)
nonzero_blocks.append(b+1)

assert zero_blocks or nonzero_blocks or clobbered_blocks
if len(nonzero_blocks) >= MAX_BLOCKS_PER_GROUP:
nonzero_groups.append(nonzero_blocks)
# Clear the list.
nonzero_blocks = []

if nonzero_blocks:
nonzero_groups.append(nonzero_blocks)
nonzero_blocks = []

assert zero_blocks or nonzero_groups or clobbered_blocks

if zero_blocks:
out["__ZERO"] = rangelib.RangeSet(data=zero_blocks)
if nonzero_blocks:
out["__NONZERO"] = rangelib.RangeSet(data=nonzero_blocks)
if nonzero_groups:
for i, blocks in enumerate(nonzero_groups):
out["__NONZERO-%d" % i] = rangelib.RangeSet(data=blocks)
if clobbered_blocks:
out["__COPY"] = clobbered_blocks

Expand Down

0 comments on commit 7c09bda

Please sign in to comment.