diff options
author | Doug Zongker <dougz@android.com> | 2013-07-23 11:51:04 -0700 |
---|---|---|
committer | Doug Zongker <dougz@android.com> | 2013-07-23 11:51:04 -0700 |
commit | a8608a7f7cee388192780f8988b5dc5966423eef (patch) | |
tree | 900975a7883ea57d4e1f8e8c2a9024c51d1f1849 /tools/releasetools/sign_target_files_apks | |
parent | 330766432646e071ec3c03a6019145be9efe9005 (diff) | |
download | build-a8608a7f7cee388192780f8988b5dc5966423eef.zip build-a8608a7f7cee388192780f8988b5dc5966423eef.tar.gz build-a8608a7f7cee388192780f8988b5dc5966423eef.tar.bz2 |
distinguish signed and unsigned user builds in UI
Add "dev-keys" or "test-keys" to the value of ro.build.display.id for
user builds. (This is the property that is displayed under "Build
number" in the Settings UI.) Modify the signing script to remove the
keys tag from this value when signing.
Change-Id: I3d9d92056f8567d7f84b1be047619be7c6e4c419
Diffstat (limited to 'tools/releasetools/sign_target_files_apks')
-rwxr-xr-x | tools/releasetools/sign_target_files_apks | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/releasetools/sign_target_files_apks b/tools/releasetools/sign_target_files_apks index 9fb1008..5556573 100755 --- a/tools/releasetools/sign_target_files_apks +++ b/tools/releasetools/sign_target_files_apks @@ -196,6 +196,11 @@ def RewriteProps(data): value = " ".join(pieces) elif key == "ro.build.tags": value = EditTags(value) + elif key == "ro.build.display.id": + # change, eg, "JWR66N dev-keys" to "JWR66N" + value = value.split() + if len(value) == 2 and value[1].endswith("-keys"): + value = value[0] line = key + "=" + value if line != original_line: print " replace: ", original_line |