summaryrefslogtreecommitdiffstats
path: root/rootdir
Commit message (Collapse)AuthorAgeFilesLines
* Use more relaxex VNDK configHEADmasterJoonas Kylmälä2019-03-061-216/+10
| | | | | Change-Id: I4c66e86b6353a174584ff77b38989713f2f77a9e Signed-off-by: Joonas Kylmälä <joonas.kylmala@iki.fi>
* Determine product partition path on build timeDoheon Lee2018-06-202-20/+13
| | | | | | | | | | | | | Path of product partitoin can be set as /product or /system/product whether generate extra product partition or not. Substitute %PRODUCT% to relevant path to know linker which path should search and permit. Bug: 110286945 Test: m -j # Check /system/etc/ld.config.$(PLATFORM_VNDK_VERSION).txt Change-Id: I6ca177d0c9c5af00ad821879fece40848331fc8d Merged-In: I6ca177d0c9c5af00ad821879fece40848331fc8d (cherry picked from commit cccad0bf8461ab575a5861f9bc68c9f8f69db582)
* Add /system/product/* paths to permitted pathsInseob Kim2018-06-201-0/+8
| | | | | | | | | | | | | | As linker doesn't resolve paths in permitted paths, /system/product variants should be added to support devices having product partition under /system. Bug: 110286945 Test: m -j succeeds on taimen and libraries under /system can dlopen libraries under /system/product/apps Change-Id: Icd102d44511702e4ec66c07a367b59c3d9700a44 Merged-In: Icd102d44511702e4ec66c07a367b59c3d9700a44 (cherry picked from commit 3918936b9e7fee51828d285a1217c7202d5cb2d1)
* Support /product/binInseob Kim2018-06-012-0/+2
| | | | | | | | | | Bug: 80422611 Test: m -j succeeded and permissions of files under /product/bin are set correctly Change-Id: I83377d809c47c92da6b226d2853ea6a7462fb127 Merged-In: I83377d809c47c92da6b226d2853ea6a7462fb127 (cherry picked from commit 25195daaca079e048e47b38b83fc41527a89ccb0)
* Support product-specific librariesInseob Kim2018-05-312-4/+20
| | | | | | | | | | | | | | | | | Product-specific libraries in /product/lib can be exposed to Android apps by adding the list of the libs into /product/etc/public.libraries-<companyname>.txt. The libs MUST be named as lib<name>.<companyname>.so. Bug: 73095206 Test: with taimen mma -j and runtest.sh. The libs are all loaded in system, but not in vendor. After reinstalling app using adb -r and reopening app, only libraries listed in .txt are loaded Change-Id: I7c386813c72a7b225a7f244b6c5fec4ac0660fd3 Merged-In: I7c386813c72a7b225a7f244b6c5fec4ac0660fd3 (cherry picked from commit 67cb05654cfa677fd5db33ea0629a9496a9ae907)
* Merge "Add a new directory to store downloaded apns" into pi-devJordan Liu2018-05-221-0/+1
|\
| * Add a new directory to store downloaded apnsNiklas Lindgren2018-05-211-0/+1
| | | | | | | | | | | | | | | | | | | | | | downloaded apns-conf.xml will be stored in the folder /data/misc/apns/ to make sure TelephonyProvider gets access. Bug: 79948106 Test: Manual Change-Id: I4ba0596fa6523c0eb96328dbe46ead02587bd9b8 Merged-In: I4ba0596fa6523c0eb96328dbe46ead02587bd9b8
* | Add option to create metadata mount pointPaul Crowley2018-05-182-0/+7
|/ | | | | | Test: booted metadata-encrypted device Bug: 79781913 Change-Id: Ie922db20314c04409c98700bfb1aff3d111275f0
* Always use versioned VNDK directoryLogan Chien2018-05-161-27/+43
| | | | | | | Bug: 78605339 Test: sailfish-userdebug builds and boots Test: sailfish boots with GSI Change-Id: I7da5845b5c1caed3b73d7665f1db672f2764c2a8
* cutils: add restricted cpusetTim Murray2018-04-181-0/+9
| | | | | | | | Bug 78197570 Test: CTS Exempt-From-Owner-Approval: owner OOO, build cop says it's fine Change-Id: I6df972950b75a839caa463ae282ad000b959e8ae
* Merge "Add /mnt/vendor rw mount point for vendor partitions." into pi-devTreeHugger Robot2018-04-171-6/+0
|\
| * Add /mnt/vendor rw mount point for vendor partitions.Tri Vo2018-04-171-6/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Changes to init's behavior during early mount: 1. Mounting of tmpfs on /mnt is moved from init stage to early mount. 2. init creates /mnt/vendor used to mount vendor partitions. 3. If a device tree fstab entry for early mount specifies a mount point under /mnt/vendor e.g. /mnt/vendor/foo, init will create /mnt/vendor/foo mount point. Bug: 64905218 Test: change dt fstab entry to mount persist to /mnt/vendor/persist; mount point is created correctly, and partition is mounted in early mount. See go/pag/1069774 Test: device boots with /mnt/vendor and previous contents of /mnt present, and selinux label "mnt_vendor_file" is applied correctly. Test: cts-tradefed run commandAndExit cts --skip-all-system-status-check --primary-abi-only --skip-preconditions -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.PermissionsHostTest Change-Id: I3739130739eadf508355c7f2531366fcaed74175
* | Fix FDEPaul Lawrence2018-04-161-0/+3
|/ | | | | | | | | | | Need a larger tmpfs to stop crashes Need to run start-zygote after mounting the real data Test: Cherry-pick ag/3898232. System boots, can set pattern, system reboots. Wifi works at all points. Bug: 76452634 Change-Id: Id24241db940d352fd3bcdef594b5358854c6f71d
* healthd: add healthd.rcYifan Hong2018-04-041-5/+0
| | | | | | | | | | Split healthd section from init.rc into its own. This allows healthd.rc to be excluded from the build when healthd is excluded. Test: builds Test: exclude healthd from build, healthd.rc is not installed Bug: 77541952 Change-Id: I1c055f14c5862631f359fd0029289da8f43af063
* Allow VNDK-SP extensions to use vendor libLogan Chien2018-03-301-1/+8
| | | | | | | | | | | | | | This commit adds a wildcard linker namespace link between the "vndk" namespace and the "sphal" namespace of the system processes. This is created for VNDK-SP-Ext to load vendor libs in "sphal" namespace. Bug: 77249955 Test: lunch aosp_walleye-userdebug && make -j8 # runs unit tests Test: lunch aosp_sailfish-userdebug && make -j8 # runs unit tests Test: Create a VNDK-SP-Ext, link to vendor libs, and run it. Change-Id: I71b0fb604a84272156aa119130c272f891847008 Merged-In: I71b0fb604a84272156aa119130c272f891847008 (cherry picked from commit fbaf9767b51891491903521c24b0d4a1ec1c87e8)
* Remove sys.usb.ffs.mtp.ready propertyJerry Zhang2018-03-221-7/+4
| | | | | | | | | | | With the usb control fd changes, there is no longer a need to wait for this property to trigger before starting the connection. Bug: 72877174 Test: switch config to mtp/ptp Change-Id: Ib29419e7948025be3f3295106cad18943d314f0b
* Merge "Set SPI Allocation Timeout to One Hour" into pi-devBenedict Wong2018-03-211-0/+3
|\
| * Set SPI Allocation Timeout to One HourBenedict Wong2018-03-201-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | This change increases the default expiration length of an SA to 1h. The IPsec API expects that SPIs are allocated indefinitely, but potential for instability requires that these get cleaned up automatically. As such, the duration was chosen as a sane, but long timeout value. Bug: 72316671 Test: Added CTS tests to enforce this behavior Merged-In: I47aef9cea4a09da253b2ec048a8797af5fa25529 Change-Id: I47aef9cea4a09da253b2ec048a8797af5fa25529 (cherry picked from commit 00308f85540ec1e3557e991811e220455290e4d3)
* | /postinstall/* does not search for a lib in /vendor or /odmJiyong Park2018-03-213-0/+43
|/ | | | | | | | | | | | | | | | | | | | | There has been no section in the linker config file for the binaries under /postinstall. As a result, the binaries were run with the legacy default config where /vendor/lib and /odm/lib are added to the search paths. This is causing selinux denials as the binaries for OTA are not allowed to access /vendor/lib or /odm/lib, but the dynamic linker calls realpath(3) on the paths to canonicalize them. Fixing the issue by letting /postinstall/* binaries to run with a dedicated linker namespace config, where /vendor/lib and /odm/lib are not added to the search paths. Not having the paths is okay because he OTA binaries should not have dependency to the libs there. Bug: 75287236 Test: do the OTA, selinux denials on postinstall_file is not shown Test: above test should pass on wahoo, marlin and pre-treble devices Merged-In: I49c11a0929002adfef667890c0a375c2b41054f4 Change-Id: I49c11a0929002adfef667890c0a375c2b41054f4 (cherry picked from commit d7e6cb27b6758fe96b200dde33b75dbe5ba5bf6b)
* Support /odm partitionBowgo Tsai2018-03-161-0/+6
| | | | | | | | | Bug: 64195575 Test: boot a device Change-Id: I52c0da32aef80c060f6efa47ddf62577fb543ad8 Merged-In: I52c0da32aef80c060f6efa47ddf62577fb543ad8 (cherry picked from commit 39476ffd8a7c299df2f1980e16435a17a5b18256)
* Adding /odm supportBowgo Tsai2018-03-131-0/+17
| | | | | | | | | | | | | | | | | | | | | | | | | Treble system-as-root GSI needs to work on devices with and without /odm partition. This change creates the following symlinks for devices without /odm partition: /odm/app ->/vendor/odm/app /odm/bin ->/vendor/odm/bin /odm/etc ->/vendor/odm/etc /odm/firmware ->/vendor/odm/firmware /odm/framework ->/vendor/odm/framework /odm/lib -> /vendor/odm/lib /odm/lib64 -> /vendor/odm/lib64 /odm/overlay -> /vendor/odm/overlay /odm/priv-app -> /vendor/odm/priv-app For devices with odm partition, /odm will be used as the mount point and those symlinks will be hidden after mount. Bug: 70678783 Test: boot a A/B device without /odm partition, checks those symlinks exist Test: boot a A/B device with /odm partition, checks those symlinks don't exist Change-Id: I4d960b52e2754f461188f3ab562c751f502046ea (cherry picked from commit 00749affc4a9185953d7444c88f614c5b7694504)
* Merge "init.rc: Mount /mnt with nodev,nosuid,noexec" am: 6698482ca4 am: ↵Luis Hector Chavez2018-02-151-1/+1
|\ | | | | | | | | | | | | | | 0802d45683 am: cfd9a3af86 Change-Id: I9be6cffa4deb4df7c4b781e2900d7fa79fd558ca
| * init.rc: Mount /mnt with nodev,nosuid,noexecLuis Hector Chavez2018-02-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | This change adds some additional flags to /mnt. This is to reduce the number of mounts with unnecessary flags. Bug: 73255020 Test: aosp_sailfish still boots Test: CtsAppSecurityHostTestCases {StorageHostTest,ExternalStorageHostTest} Test: CtsOsTestCases StorageManagerTest Test: find /mnt | egrep -v '^/mnt/runtime/(default|read|write)/emulated' | \ xargs ls -lZd # Shows no character devices or executable files Change-Id: I54739133119d9626ebeb2ef9a1c127f7a90fa098
* | Merge "init.rc: Remount / with MS_REMOUNT|MS_BIND" am: 008576080e am: c37d85953eLuis Hector Chavez2018-02-151-2/+3
|\| | | | | | | | | | | am: 655d6d5451 Change-Id: Idb18188ad9b3b667411d428ae616498748b8281a
| * init.rc: Remount / with MS_REMOUNT|MS_BINDLuis Hector Chavez2018-02-141-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since we only want to change the ro flag on / (and leave all other mount flags alone), this can also be achieved by passing MS_REMOUNT|MS_BIND, even if the mount is not a bind-mount. This aims to make running Android within a user namespace easier, since remounts without the MS_BIND flag are forbidden. Bug: 73255020 Test: aosp_sailfish still boots Test: rootfs on / type rootfs (rw,seclabel) /dev/root on / type ext4 (ro,seclabel,relatime,data=ordered) Change-Id: I2f89a8badfc467db47304c9355648e8fd8ad1272
* | init.rc: Add nodev,noexec,nosuid to /configLuis Hector Chavez2018-02-141-1/+1
| | | | | | | | | | | | | | | | | | | | This change adds some additional flags to the /config mount. This is to reduce the number of mounts with unnecessary privileges. Bug: 73255020 Test: aosp_sailfish still boots Test: CtsAppSecurityHostTestCases {ExternalStorageHostTest,StorageHostTest} Change-Id: If3409d917cdf76a67ebfb7c4035a3ae8fee6189f
* | Merge "Move libz to llndk from vndk-sp for non-VNDK-enforced devices." am: ↵Justin Yun2018-02-141-5/+17
|\| | | | | | | | | | | | | | | 524254f3df am: 7987a191f6 am: e86a98bfac Change-Id: I894549e82aebc48e39133ccc9138410b7ce70c82
| * Move libz to llndk from vndk-sp for non-VNDK-enforced devices.Justin Yun2018-02-141-5/+17
| | | | | | | | | | | | | | | | | | | | | | For non-VNDK-enforced devices, libz cannot be installed in vndk-sp to avoid CTS test failure. Move libz to llndk from vndk-sp for generating the namespace configuration from ld.config.vndk_lite.txt. Bug: 73296261 Test: run android.jni.cts test on marlin/sailfish Change-Id: I1b8b43cd87dc8dfdd2667001ae1e50d9eaedf93d
* | Merge "init.rc: Perform some mounts with nodev,nosuid,noexec" am: cd66e4c6ea ↵Luis Hector Chavez2018-02-131-8/+8
|\| | | | | | | | | | | | | | | am: 8cb681fa1f am: c876c660e0 Change-Id: I588550f4cad7e18067d916a6e1b4eed3b1fb2265
| * init.rc: Perform some mounts with nodev,nosuid,noexecLuis Hector Chavez2018-02-121-8/+8
| | | | | | | | | | | | | | | | | | This change adds some additional flags to some mounts. This is to reduce the number of mounts with these flags. Bug: 73255020 Test: aosp_sailfish still boots Change-Id: I285e6d7b3dcc19f691a3d6780e7d3a3a5d7cb3de
* | Merge changes from topic "vndk-sp-list-update" am: 4c0ee1e8a0 am: 6edfca6e3bJustin Yun2018-02-083-8/+8
|\| | | | | | | | | | | am: 0d77d80aad Change-Id: I366d50eee8edb40f243c551a2051d5efebdb3e72
| * Rename namespace configuration source files.Justin Yun2018-02-083-8/+8
| | | | | | | | | | | | | | | | | | For strict VNDK runtime restriction, use ld.config.txt as a source file. For treblized devices without BOARD_VNDK_VERSION, use ld.config.vndk_lite.txt file. Test: Build and boot on Pixel 2017 and 2018 devices. Change-Id: Ie5b77facd4c11bc73219ecf13ad1298ac5d60d8e
| * Use actual VNDK list for non-VNDK-enforcing devicesJustin Yun2018-02-083-81/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | Rename ld.config.txt.in to ld.config.vndk.txt and ld.config.txt to ld.config.vndk_light.txt. For FULL_TREBLE devices without BOARD_VNDK_VERSION, update the VNDK library list in ld.config.vndk_light.txt with the actual VNDK list. Bug: 69526027 Test: Build marlin/sailfish and check boot Change-Id: Idbb0cc97d11037c1493d4739e84961297ce51dbd Merged-In: Idbb0cc97d11037c1493d4739e84961297ce51dbd
* | Use actual VNDK list for non-VNDK-enforcing devicesJustin Yun2018-02-073-81/+28
| | | | | | | | | | | | | | | | | | | | | | | | Rename ld.config.txt.in to ld.config.vndk.txt and ld.config.txt to ld.config.vndk_light.txt. For FULL_TREBLE devices without BOARD_VNDK_VERSION, update the VNDK library list in ld.config.vndk_light.txt with the actual VNDK list. Bug: 69526027 Test: Build marlin/sailfish and check boot Change-Id: Idbb0cc97d11037c1493d4739e84961297ce51dbd
* | Merge "emulator: not start adbd upon ro.kernel.qemu=1" am: 7c271bdc3b am: ↵bohu2018-02-051-4/+0
|\| | | | | | | | | | | | | | | 466b098b87 am: 83255e337a Change-Id: I26732caa7cc8346e27ec4c8e4816b5cace2577cd
| * emulator: not start adbd upon ro.kernel.qemu=1bohu2018-02-031-4/+0
| | | | | | | | | | | | | | | | clean up emulator specific rules. BUG: 72900827 Change-Id: Ica60838562fd773bcde5752c11586183ce55b71a
* | Merge "ld.config.txt: Link vendor vndk ns to default ns" am: 1e11f5f709 am: ↵Logan Chien2018-01-261-1/+3
|\| | | | | | | | | | | | | | | 161efac4f0 am: f20d8a1f1e Change-Id: I915c4409df864bbb69ccb9b8f684c98ce3a3892d
| * Merge "ld.config.txt: Link vendor vndk ns to default ns"Logan Chien2018-01-261-1/+3
| |\
| | * ld.config.txt: Link vendor vndk ns to default nsLogan Chien2018-01-231-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit links the vndk namespace of vendor processes to the default namespace of vendor processes. allow_all_shared_libs is specified so that VNDK extensions can link with other vendor libraries in /vendor/lib[64]. Bug: 69824336 Test: Create a vndk-ext lib that links to vendor lib and use that vndk-ext lib in a vendor executable. Change-Id: Ibd3dc2e5f0f2e6ff9fc9677c6bcfcf87a1a70e50
* | | Merge "Support /product partition" am: 8f324542a2 am: 10e1ec7de3Jaekyun Seok2018-01-252-0/+11
|\| | | | | | | | | | | | | | | | | am: 83ffef2cb1 Change-Id: Ia1933bbede3db2489151e5ab8ead574582b87f7a
| * | Support /product partitionJaekyun Seok2018-01-252-0/+11
| |/ | | | | | | | | | | | | | | | | | | | | 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
* | Fingerprint data is now stored in one of two ways depending on theAndreas Huber2018-01-231-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | shipping API version: For devices shipped before Android P nothing changes, data is stored under /data/system/users/<user-id>/fpdata/... Devices shipped from now on will instead store fingerprint data under /data/vendor_de/<user-id>/fpdata. Support for /data/vendor_de and /data/vendor_ce has been added to vold. Bug: 36997597 Change-Id: I83f87e88d1731e515b459a3d6d5bf3104afe6cfe Test: manually
* | Merge "ld.config.txt: Move vendor vndk to vndk namespace" am: c6805c3e9c am: ↵Logan Chien2018-01-231-14/+14
|\| | | | | | | | | | | | | | | 0779a259b7 am: 5aa3d78ea7 Change-Id: I68cbb5429e57f6f2a72775c5fc50b4b5e20b8cd4
| * ld.config.txt: Move vendor vndk to vndk namespaceLogan Chien2018-01-221-14/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | This commit moves /{odm,vendor}/lib[64]/vndk[-sp] to vndk namespace so that vndk extension can override vndk libs from /system/lib[64]/vndk[-sp]. Bug: 69824336 Test: Create libutils_ext locally and it can be called from android.hardware.nfc@1.0-service. Change-Id: Id63e58d665fa41eda85950ee1d16fe06c35cd7d3
* | Merge "Adding /data/local/traces for traceur app" am: 658e4ddd03 am: 69c428e5a6Max Bires2018-01-201-0/+1
|\| | | | | | | | | | | am: cd4fa12263 Change-Id: I0ba68a132cc840b0d5b63a9d22b54276b8c168de
| * Merge "Adding /data/local/traces for traceur app"Treehugger Robot2018-01-201-0/+1
| |\
| | * Adding /data/local/traces for traceur appMax Bires2018-01-191-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Traceur app is being split out of shell user. Previously it logged to shell's bugreports directory. It no longer has access, so it needs a new, user-friendly file location to store trace data. Bug:68126425 Test: Traceur can write and shell can read from this directory Change-Id: I9e344973fd43eb5699f7a848524e20b06458fb77
* | | Merge "Change /configfs/sdcardfs to 0770"TreeHugger Robot2018-01-191-1/+1
|\ \ \
| * | | Change /configfs/sdcardfs to 0770Daniel Rosenberg2018-01-101-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I0a66f6b3ebc3dee398e4f23f5a58ebf7d62cc4c3 Bug: 69929297 Test: setenforce 0 su mkdir /config/sdcardfs/test su u0_a0,u0_a0,u0_a0 echo 10000 > /config/sdcardfs/test/appid Write should fail Signed-off-by: Daniel Rosenberg <drosen@google.com>
* | | | Merge "Add VNDK version suffix in ld.config.txt on build time." am: ↵Justin Yun2018-01-173-78/+124
|\ \ \ \ | | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | 447280cea0 am: 3060be356f am: 5a31c03fa6 Change-Id: Ie58dca02b6f267b882b8f1f59cda57c141c8892c