aboutsummaryrefslogtreecommitdiffstats
path: root/tools/post_process_props.py
Commit message (Collapse)AuthorAgeFilesLines
* Merge "Allow ro. properties to have arbitrary lengths"Tom Cherry2017-10-171-1/+1
|\ | | | | | | | | | | am: 1d6e8e31d0 Change-Id: I4a3872a59ba39289bf58741e19ca05b9b9c7bbee
| * Allow ro. properties to have arbitrary lengthsTom Cherry2017-10-121-1/+1
| | | | | | | | | | | | | | | | | | Bug: 23102347 Bug: 34954705 Test: provide a fingerprint >92 characters long and see that it successfully works Change-Id: Ida9ffd5266acb3b432b208780804a08e8f7391b4
* | Move /default.prop to /system/etc/prop.defaultHung-ying Tyan2017-06-271-2/+3
|/ | | | | | | | | | | | | | | | | | | This patch tries to fix the problem where the default properties need to go with the system image especially on non-AB devices where /default.prop is on the ramdisk image. A symlink is created at /default.prop for backward compatibility. Bug: 37815285 Test: Tested with ag/2416542. Booted pixel phones, checked the location of prop.default, verified the symlink, checked a few properties (via adb shell getprop) and manually tested a few apps (Camera, Maps etc). sign_target_files_apks.py was tested with: sign_target_files_apks -o -e DynamiteLoader.apk= -e DynamiteModulesA.apk= \ -e DynamiteModulesB.apk= -e DynamiteModulesC.apk= -e DynamiteModulesD.apk= \ -e GoogleCertificates.apk= out/dist/*-target_files-*.zip signed-target_files.zip Booted to recovery and ran 'adb sideload' successfully. Change-Id: I1a9a2ba49c8252afc13ced3dea71253afbd3091e
* Merge "There's no longer a limit on property names." am: dda91dbef8 am: ↵Elliott Hughes2017-02-281-9/+3
|\ | | | | | | | | | | | | | | daac92eb51 am: 319fcc7668 Change-Id: Idb24042310fa9de8f534e9988285a16b714daf10
| * There's no longer a limit on property names.Elliott Hughes2017-02-281-9/+3
| | | | | | | | | | | | Bug: http://b/33926793 Test: boots Change-Id: I12cdae782090fb0856171e5c90a268e91ba2ae1a
* | Split vendor's system prop overrides into vendor partitionJaekyun Seok2017-02-031-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If ENABLE_TREBLE and early mount of vendor partition are enabled, overrides in PRODUCT_DEFAULT_PROPERTY_OVERRIDES will be stored in vendor/default.prop. If ENABLE_TREBLE and vendor partition are enabled, overrides in PRODUCT_PROPERTY_OVERRIDES will be stored in vendor/build.prop. default.prop of recovery image will include all the contents of vendor/default.prop and vendor/build.prop additionally. ENABLE_EARLY_MOUNT is added to specify whether early mount is enabled or not, but it should be removed later when early mount becomes default for all ENABLE_TREBLE products. Test: building succeeded, and verified on bullhead. Bug: 34116668 Change-Id: Ic2eb8882ae71921a76c02b3d62d3289c45949295
* | Revert "Remove automatic adding of adb into default.prop"Jerry Zhang2016-10-181-0/+10
| | | | | | | | | | | | | | This reverts commit 3c51c2bc487e6dd68fe586aba01ceb5f55e44671. Bug: 32223614 Change-Id: I1addc93b175e9442d9fc2f5e7a557fe818201a27
* | Remove automatic adding of adb into default.propJerry Zhang2016-10-131-10/+0
|/ | | | | | | | | Default.prop can interfere with UsbDeviceManager's management of usb state. Adb is now enabled for userdebug and eng builds directly from UsbDeviceManager. Bug: 31814300 Test: Manually verified that logcat is not kicked Change-Id: I69c998c0dd184f9440cc236d82cc2f25f36e8734
* Do not add 'adb' to persist.sys.usb.config if already thereOreste Salerno2015-05-291-5/+6
| | | | | | | The 'adb' configuration might have already been added by a device-specific Makefile, so add it only if it's not already there. Change-Id: I6f96645f44c96f6f827cc8c842a8b769f92be13a
* Fail even dev build when property value exceeds length limit.Ying Wang2015-02-041-15/+4
| | | | | | | Let developers know the issue earlier when they set up new products. Change-Id: I3f2ecbc3a833c1a8a84bd75407a5c035e5fea70a
* resolved conflicts for merge of a8138028 to lmp-dev-plus-aospBrian Carlstrom2014-07-301-3/+9
|\ | | | | | | Change-Id: I5573d097d741f4922b791b33de5c941af08127c6
| * Add PROP_NAME_MAX validationBrian Carlstrom2014-07-291-3/+9
| | | | | | | | Change-Id: I49179c83ae163de6f6fb398c5de60c5d296ca009
* | Accomodate to the import syntax in build.prop.Ying Wang2014-04-151-2/+3
| | | | | | | | | | Bug: 14024566 Change-Id: I70b8d3c8cfc968a7f039728375f3f7f341cdc11a
* | Import OEM build properties, if defined.Jeff Sharkey2014-03-211-0/+11
|/ | | | | | | | | | | | Certain products can define a list of system properties that should be delegated to the OEM. Since these properties may be ro.*, we give them first shot at defining. Also support blacklist of properties that should never be defined by build.prop, used to delegate to runtime fingerprint generation. Bug: 13367676 Change-Id: I3f00db732f485818205a7b76b31edbdc3a89aac0
* Refactor a little bit and do the validation on also default.prop.Ying Wang2014-02-121-31/+47
| | | | Change-Id: I76c2344d9033eadede7048689a879c9a69a05b7f
* A build property's value is returned empty in runtime when its lengthYu Liu2014-02-111-1/+32
| | | | | | | | | | | exceeds 92 symbols (91 valid symbols + \0). It is better to catch that issue on earlier stage, i.e. fail the build with an appropriate message. For developer's build, show warning message instead of failing the build (in the latter case, as developers do not usually care about build properties too much). Change-Id: I03ced7b486d43a71b1921e0a9c48b43aa30727c7
* Turn off adb on user builds.Joe Onorato2012-05-021-2/+5
| | | | | | | | | Tungsten is the first device we have done since post_process_props.py and UsbDeviceManager were added that by default has no services running on usb. Everything else has mtp. This makes it so we always populate the property with something. Change-Id: Ic24f52462ed8866e87499c715dd21937e5b1128d
* post_process_props: Write mangled properties back to file instead of stdoutMike Lockwood2011-06-081-3/+2
| | | | | Change-Id: I78b642400c46019165f12d409a238344ca6e09dd Signed-off-by: Mike Lockwood <lockwood@android.com>
* post process the system propertiesJoe Onorato2011-06-081-0/+83
Change-Id: Ib78fe238d90dd4523326e4fa088d9333edc9e299