summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Add support for /product-services partition.Dario Freni2018-07-261-2/+3
| | | | | | | | | | | | | This CL is largely and adaptation of Ie996def20e25dc1afe0c74af2096af844934b2dc Bug: 80741439 Test: Successfully built product-services.img with one module in it, and flashed on device. Also successfully built image with /system/product-services and no dedicated /product-services partition. Change-Id: I1046dfe19bf874da929c9131b76a1f85422fbb80 Merged-In: I1046dfe19bf874da929c9131b76a1f85422fbb80
* bootstat: Remove the CAP_SYSLOG capabilityLuis Hector Chavez2018-06-111-2/+0
| | | | | | | | | | | This change removes the CAP_SYSLOG file based capability from bootstat, since the intention is that it should not be accessing the logs in the long term. In order to avoid bitrot, the fallback code that depends on CAP_SYSLOG has also been removed. Bug: 62845925 Test: system/core/bootstat/boot_reason_test.sh Change-Id: I899be44ef3ac1c4d81072f801d55c928ae09bb15
* logd: Move the capabilities from file based to ambientLuis Hector Chavez2018-06-111-4/+1
| | | | | | | | | | | | | | | | | This change moves logd's capabilities from being file based to being set by init through ambient capabilities. Bug: 62845925 Test: sailfish:/ # grep Cap /proc/`pidof logd`/status CapInh: 0000000000000000 CapPrm: 0000000440000000 CapEff: 0000000440000000 CapBnd: 0000000440000040 CapAmb: 0000000000000000 $ capsh --decode=0x440000040 0x440000040=cap_setgid,cap_audit_control,cap_syslog Test: liblog-unit-tests, logd-unit-tests, logcat-unit-tests Change-Id: I28c7c4ad37ad5eafd399aef78c303ce31298a9ef
* Support /product/binInseob Kim2018-05-311-2/+5
| | | | | | | | Bug: 80422611 Test: m -j succeeded and permissions of files under /product/bin are set correctly Change-Id: I83377d809c47c92da6b226d2853ea6a7462fb127
* Remove vendor Wifi and BT entries from fs_config.cppTom Cherry2018-03-291-18/+6
| | | | | | | | | | | | | Their capability bits are now specified in their associated init .rc file, which is the proper place for this to be done. A notice is added to guide developers away from using android_files to give services Linux capabilities and to guide them away from adding vendor/ entries. Bug: 74554159 Test: BT, Wifi, Tethering work on walleye Change-Id: I13c425d022b4f5c217587cdf601884ef44650ac7
* Merge "Enabled SYS_MODULE capability for wifi@1.0-service"Treehugger Robot2018-03-291-2/+3
|\
| * Enabled SYS_MODULE capability for wifi@1.0-serviceAjit Kumar2018-03-291-2/+3
| | | | | | | | | | | | | | | | Add sys_module capability to enabled insmod operation. Merged-In: I6436c3297e5318bd00ae3582549a11cb82ccbafd Change-Id: I6436c3297e5318bd00ae3582549a11cb82ccbafd (cherry picked from commit c2a059fbf005b29f9ca8a69ea48f58ffa1359abd)
* | Remove fs_config entries for webview_zygote.Robert Sesek2018-02-141-10/+0
|/ | | | | | | | | This process is now spawned from the main app_process zygote, rather than being its own binary launched by init. Bug: 63749735 Test: m Change-Id: I87e00197e1ce64d77b4c306fcd702c6ad778b236
* Support /product partitionJaekyun Seok2018-01-241-0/+1
| | | | | | | | | | | This CL will enable reading /product/build.prop and add product paths into ld.config.txt.in. Bug: 64195575 Test: tested with 'PRODUCT_PRODUCT_PROPERTIES := ro.product.abc=abc' on sailfish Change-Id: Ie996def20e25dc1afe0c74af2096af844934b2dc
* Move libcutils source to C++.Elliott Hughes2017-11-101-1/+2
| | | | | | | | | | | | | | | | | Just the minimial changes to get this to actually build, because otherwise we always bog down trying to rewrite everything (when the real answer is usually "stop using libcutils, it's awful"). This doesn't move a handful of files: two are basically just BSD libc source, a couple have outstanding code reviews, and one can be deleted (but I'll do that in a separate change). I'm also skipping the presubmit hooks because otherwise clang-format wants to reformat everything. I'll follow up with that... Bug: N/A Test: builds Change-Id: I06403f465b67c8e493bad466dd76b1151eed5993
* resolve merge conflicts of 796987482 to stage-aosp-masterElliott Hughes2017-10-171-1/+0
|\ | | | | | | | | Test: I solemnly swear I tested this conflict resolution. Change-Id: Ica884c137c5f21e261600b2b011ab963036c0cdb
| * Merge "<stdbool.h> not necessary in C++."Treehugger Robot2017-10-171-1/+0
| |\
| | * <stdbool.h> not necessary in C++.Elliott Hughes2017-10-171-1/+0
| | | | | | | | | | | | | | | | | | | | | Bug: N/A Test: builds Change-Id: I1f32b202e353414e74ace87a7d5b495b5deb5f99 Merged-In: I1f32b202e353414e74ace87a7d5b495b5deb5f99
* | | Merge "Removing $(PRODUCT_OUT)/root/root"Bowgo Tsai2017-09-281-1/+0
|\| | | | | | | | | | | | | | | | | am: 8cbbacdc15 Change-Id: Ia671976f8d7d4b83478c58d566e309f36af125ab
| * | Removing $(PRODUCT_OUT)/root/rootBowgo Tsai2017-09-281-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | Bug: 65570851 Test: boot sailfish Change-Id: I80c3c3de23c57343187fde207980731b5341bc1f Merged-In: I80c3c3de23c57343187fde207980731b5341bc1f (cherry picked from commit ededee3e400d4caa50c04c2e0ec5d92a56e39425)
* | | Merge changes from topic "b/63736262"Mark Salyzyn2017-09-131-0/+2
|\| | | | | | | | | | | | | | | | | am: 1f666a6be9 Change-Id: I2586aac3d6fe8252ee6728de64fb37102accf0da
| * | bootstat: introduce sys.boot.reasonMark Salyzyn2017-09-121-0/+2
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adding functionality to bootstat --record_boot_complete and --record_boot_reason to initialize sys.boot.reason, the canonical system boot reason. Filter out ro.boot.bootreason oem noise into sys.boot.reason. Add heuristics to determine what the boot reason is, when otherwise would be defaulting to the blunt and relatively devoid of detail catch-all reboot reasons ("reboot", "shutdown", "cold", "warm", "hard"). boot_reason_test.sh is also a compliance test. Test: boot_reason_test.sh all Bug: 63736262 Change-Id: Ic9a42cccbcfc89a5c0e081ba66d577a97c8c8c76
* | Merge "Load default prop from /system/etc/prop.default" into oc-dr1-devHung-ying Tyan2017-06-281-1/+2
|\ \ | |/ |/| | | | | | | am: d334d69b70 Change-Id: I358c9b60bf20d7852d81006bb37a9efab0dd19ad
| * Load default prop from /system/etc/prop.defaultHung-ying Tyan2017-06-161-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | /default.prop is moved to /system/etc/prop.default for full Treblized devices. Modifies property_service to load it from there first. In recovery mode, the file is renamed as /prop.default. This path is tried if /system/etc/prop.default is not available. Bug: 37815285 Test: Tested with ag/2419001. Booted pixel phones, checked the location of prop.default, verified the symlink at /default.prop, checked a few properties via adb shell and manually tested a few apps. Booted to recovery and ran 'adb sideload' successfully. Change-Id: I485231f21fc86b0aec58edf867e229a31e77d85e
* | Merge "libcutils: fs_config: fix "system/<partition>/" aliasing"Ben Fennema2017-06-261-20/+19
|\ \ | |/ |/| | | | | | | am: 449bfd7a93 Change-Id: I9f3d0f0e4dc147d9d2a5a1e41486805ada29d62a
| * libcutils: fs_config: fix "system/<partition>/" aliasingBen Fennema2017-06-261-20/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Pull prefix checking into fs_config_cmp and make prefix_cmp be a glorified partial ? strncmp() : strcmp() Results before: [ RUN ] fs_config.system_alias [ ERROR ] system/core/libcutils/tests/fs_config.cpp:143:: vendor/lib/hw didn't match system/vendor/lib [ ERROR ] system/core/libcutils/tests/fs_config.cpp:143:: system/vendor/bin/wifi didn't match vendor/bin/wifi [ ERROR ] system/core/libcutils/tests/fs_config.cpp:143:: system/odm/bin/wifi didn't match odm/bin/wifi [ ERROR ] system/core/libcutils/tests/fs_config.cpp:143:: system/oem/bin/wifi didn't match oem/bin/wifi system/core/libcutils/tests/fs_config.cpp:247: Failure Value of: check_fs_config_cmp(fs_config_cmp_tests) Actual: true Expected: false [ FAILED ] fs_config.system_alias (6 ms) Results after: [ RUN ] fs_config.system_alias [ OK ] fs_config.system_alias (0 ms) Bug: 62204623 Test: gTest libcutils-unit-test --gtest_filter=fs_config.* Change-Id: I8282827002816e86ea3014fed29eabf43b837815 Signed-off-by: Ben Fennema <fennema@google.com>
* | Merge "Revert "Load {default,build}.prop from /{system,vendor,odm}/etc/"" ↵Elliott Hughes2017-05-251-9/+6
|\| | | | | | | | | | | | | | | am: f9259b59e8 am: b2f12e42ca am: 22cdddecba Change-Id: I6e41d84c76a0d1f31e54d5422638817905f202f4
| * Revert "Load {default,build}.prop from /{system,vendor,odm}/etc/"Hung-ying Tyan2017-05-251-9/+6
| | | | | | | | | | | | This reverts commit 723f1a2b318a455983d21ccf3598885f766bb8c9. Bug: 62075509
* | Merge "Load {default,build}.prop from /{system,vendor,odm}/etc/" am: ↵Hung-ying Tyan2017-05-241-6/+9
|\| | | | | | | | | | | | | | | a9aa77d259 am: 26c4bcfadd am: 0cd0d52147 Change-Id: Ide638286886cef323e8bb049f5baf4bbe659c47a
| * Load {default,build}.prop from /{system,vendor,odm}/etc/Hung-ying Tyan2017-05-241-6/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | /default.prop may be moved to /system/etc/ and renamed as prop.default. /{system,vendor,odm}/build.prop may be moved to /{system,vendor,odm}/etc/ and renamed as prop.build. This patch makes property_service load prop.* from the new locations first. Also replaces NULL with nullptr for C++ cleanup. Bug: 37815285 Test: Booted pixel phones, checked the locations of prop.*, verified symlinks, checked a few properties (via adb shell getprop) and manually tested a few apps (Camera, Maps etc). ODM is not tested as it does not exist on the tested device. Change-Id: Id8eeb3c1a5728dd04005dfad4733b8e6336f9093
* | libcutils: fs_config: remove aliasesMark Salyzyn2017-05-191-3/+0
| | | | | | | | | | | | | | | | Covered by the code automatically now. Dropping duplicate wifi. Test: gTest libcutils_test --gtest_filter=fs_config.* Bug: 37703469 Change-Id: I86e29192e321e1e449d2c30161af69c34b8baa16
* | libcutils: fs_config: remove aliasesMark Salyzyn2017-05-191-3/+0
| | | | | | | | | | | | | | | | Covered by the code automatically now. Test: gTest libcutils_test --gtest_filter=fs_config.* Bug: 37703469 Change-Id: Iad6ba65e023845aaea7a181b277a7383c44bd937
* | Merge "Revert "Partial revert of "libcutils: fs_config.c mark vendor, odm ↵Mark Salyzyn2017-05-191-0/+3
| | | | | | | | | | | | | | | | and oem partitions in duplicate" Revert just the wifi hardware part."" into oc-dev am: 6a93fd7e7c Change-Id: Ifc81c5a2b17176711138c34b1a82ac945e7186a6
* | Merge changes Iad6ba65e,Ia6a7e8c9,Ida9405cb am: 037d2b71dc am: 219e7200beMark Salyzyn2017-05-191-17/+32
|\| | | | | | | | | | | am: 7c466b936a Change-Id: I9da0e906b391b9e4846c534eda77fb33d96e191a
| * libcutils: fs_config: remove aliasesMark Salyzyn2017-05-181-18/+0
| | | | | | | | | | | | | | | | Covered by the code automatically now. Test: gTest libcutils_test --gtest_filter=fs_config.* Bug: 37703469 Change-Id: Iad6ba65e023845aaea7a181b277a7383c44bd937
| * libcutils: fs_config: alias "system/<partition>/" to "<partition>/"Mark Salyzyn2017-05-181-2/+32
| | | | | | | | | | | | | | | | | | | | | | For the known partitions entrenched in the build system: vendor, oem and odm only. We will alias entries that reference system/<partition> and <partition>/ so that if either are specified, the rule will apply to both possible paths. Test: gTest libcutils-tests Bug: 37703469 Change-Id: Ida9405cbed323489a3d0599c1645e9be2c7b9d08
* | Merge "libcutils: fs_config internal table alias test" am: 8fad110bfa am: ↵Mark Salyzyn2017-05-041-0/+6
|\| | | | | | | | | | | | | | | bfead93a3a am: 4bc080ab1a Change-Id: Iddf608a4082d9442f48355291abd15e2aef6a18d
| * libcutils: fs_config internal table alias testMark Salyzyn2017-05-041-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | Private interface to permit testing only added to fs_config to expose android_files and android_dirs. Make sure that both paths to a partition are specified in fs_config internal tables. Test: gTest libcutils-unit-test --gtest_filter=fs_config.* Bug: 37703469 Change-Id: Ida5fccdb786dc6d67325005d4fdd1fa1ffaef396
* | Partial revert of "libcutils: fs_config.c mark vendor, odm and oem ↵Daniel Cardenas2017-05-031-3/+0
| | | | | | | | | | | | | | | | partitions in duplicate" Revert just the wifi hardware part. am: 6db432daf7 Change-Id: I7796ffcf07d6478ead19c5bab171a9ff4ce4f758
* | Merge "libcutils: convert fs_config.cpp" am: c50245e43e am: a255ab0cb0Mark Salyzyn2017-05-031-1/+4
|/ | | | | | am: 5f82055a2e Change-Id: I93bdac8212b6d913c0851d4ef1145a1943a76e3b
* libcutils: convert fs_config.cppMark Salyzyn2017-05-031-0/+369
C++ify fs_config.c Test: gTest libcutils-test Bug: 37703469 Change-Id: Id48ae22f203ed923942257575296c69b32345ae6