Commit graph

24102 commits

Author SHA1 Message Date
Treehugger Robot
eb7e238f18 Merge "Refine build.prop related properties" am: ff42a49df2
Change-Id: I00036393681b3ec71b1da06c3510374bad2c5604
2020-05-20 14:37:25 +00:00
Treehugger Robot
ff42a49df2 Merge "Refine build.prop related properties" 2020-05-20 14:17:56 +00:00
Marin Shalamanov
53c9ab6e9e Allow the boot animation to receive display events
Test: manually make sure that boot animation is resizing
      when display is changed
Bug: 156448328

Change-Id: I9f754900a0b32551f656ce2097a3a41245b02218
2020-05-20 15:04:34 +02:00
Inseob Kim
fc688b3a7f Refine build.prop related properties
1) build_odm_prop and build_vendor_prop are added

These contexts will contain world-readable properties from
/odm/build.prop and /vendor/build.prop, respectively.

2) move more properties to build_prop

Following properties are set by /system/build.prop and now assigned as
build_prop:

- ro.adb.secure
- ro.build.type
- ro.product.cpu.abi
- ro.product.cpu.abilist
- ro.product.cpu.abilist32
- ro.product.cpu.abilist64
- ro.secure

Following properties are set by init/property_service.cpp and now
assigned as build_prop:

- ro.product.brand
- ro.product.device
- ro.product.manufacturer
- ro.product.model
- ro.product.name

Bug: 71814576
Bug: 155844385
Test: boot device and see no denials
Change-Id: Idd4f81de4d2d0fc4bdec2d7ecb08bb8e078dab58
2020-05-20 07:55:13 +00:00
Inseob Kim
126ff1c463 Add contexts for init.svc.* props am: 15e5e0a470
Change-Id: I784722ef654745a241f8c8ef2f3c7685f8943717
2020-05-20 06:24:15 +00:00
Inseob Kim
15e5e0a470 Add contexts for init.svc.* props
To remove bad context names "exported*_prop". Other init.svc.*
properties explicitly become system internal prop.

Bug: 155844385
Test: boot and see no denials
Change-Id: I7a3b4103a4cea77035a6e831e3b6a49a45f15a35
2020-05-20 12:08:02 +09:00
Daniel Rosenberg
3db9e72c7d Merge "Add sdcardfs variable to storage_config_props" am: 5f1fe1eaac
Change-Id: If83de6c0cd6d281292a6b9c4673d2bc146892256
2020-05-19 10:15:46 +00:00
Daniel Rosenberg
5f1fe1eaac Merge "Add sdcardfs variable to storage_config_props" 2020-05-19 09:55:01 +00:00
Daniel Rosenberg
afede84ad5 Add sdcardfs variable to storage_config_props
This property allows us to disable sdcardfs if it is present. The old
property ended up getting repurposed, so a new one was needed.
Mediaprovider will also need to access this to determine what actions it
needs to take.

Test: builds
Bug: 155222498
Change-Id: I66ac106613cbb374f54659601e4ba3f61eaecd2f
2020-05-19 00:30:52 -07:00
Treehugger Robot
29f43e920f Merge "Move props out of exported3_system_prop" am: b8b4a62ded
Change-Id: I5a0304e7d77d858f3344b1e8e5553f10b8ad4fdd
2020-05-19 03:47:36 +00:00
Treehugger Robot
b8b4a62ded Merge "Move props out of exported3_system_prop" 2020-05-19 03:32:45 +00:00
Inseob Kim
3b82aec204 Move props out of exported3_system_prop
This is to remove bad context name "exported3_system_prop".

- persist.sys.device_provisioned -> provisioned_prop
- sys.retaildemo.enabled -> retaildemo_prop

Bug: 154885206
Test: boot device and see no denials
Change-Id: Ia19a19d93d0689deb56d66fe0b039ace44e4836f
2020-05-19 10:39:20 +09:00
Treehugger Robot
75e5ce880c Merge "Support TCP based fastbootd in recovery mode." am: 0685cd4c84
Change-Id: Idb491692ecd46dc2444ccd3cebe20043806495af
2020-05-18 17:26:15 +00:00
Treehugger Robot
0685cd4c84 Merge "Support TCP based fastbootd in recovery mode." 2020-05-18 17:05:43 +00:00
TeYuan Wang
d477601afc Allow dumpstate to get thermal and power hal debug info am: 900c723e1d
Change-Id: Iab0f504a3828f121900f326a54bfe3273ec0b6ef
2020-05-18 09:03:09 +00:00
TeYuan Wang
900c723e1d Allow dumpstate to get thermal and power hal debug info
Bug: 156710131
Test: tested in userdebug with dumpstate.unroot set to true
Change-Id: Iabd636f109e719753fdd650f05e1a7af835c49d7
Signed-off-by: TeYuan Wang <kamewang@google.com>
2020-05-18 10:30:28 +08:00
Alistair Delva
c44ce0c93b Merge "Allow sgdisk to use BLKPBSZGET ioctl" am: 19eab1a117
Change-Id: I4ec0f2175604c3e7c59134b3affd9006c20be0e8
2020-05-17 00:48:45 +00:00
Alistair Delva
19eab1a117 Merge "Allow sgdisk to use BLKPBSZGET ioctl" 2020-05-17 00:37:55 +00:00
Hongguang Chen
91a5f4e783 Support TCP based fastbootd in recovery mode.
The IPv6 link-local address is used to avoid expose device to out of
network segment.

BUG: 155198345
Test: manual test.
Change-Id: I0ce8c12de9976c01e57a6433c7fb50235e907dc5
2020-05-15 22:23:42 +00:00
Alistair Delva
feda4b1da5 Allow sgdisk to use BLKPBSZGET ioctl
The gpt_fdisk project was updated recently, but sepolicy was not updated
with it :) Now sgdisk can use BLKPBSZGET to detect the physical block
size. Seen on cuttlefish when adding external SD Card support to it.

avc: denied { ioctl } for comm="sgdisk" path="/dev/block/vold/disk:252,16"
dev="tmpfs" ino=8625 ioctlcmd=0x127b scontext=u:r:sgdisk:s0
tcontext=u:object_r:vold_device:s0 tclass=blk_file permissive=0

Bug: 156286088
Change-Id: I9f2df88ee253261b52f3022838380fbb1cab6da0
2020-05-15 10:51:40 -07:00
Inseob Kim
558b367c94 Merge "Rename system_radio_prop" am: b0de2a8fe8
Change-Id: Ibf4e19380740da936c28587b558cdd1c77fb1e3b
2020-05-15 10:19:44 +00:00
Inseob Kim
b0de2a8fe8 Merge "Rename system_radio_prop" 2020-05-15 10:01:36 +00:00
Inseob Kim
dc1e5019d6 Rename system_radio_prop
For whatever reason sys.usb.config* has been labeled as
system_radio_prop, which doesn't make sense. Changing context name as
usb_prop. For the same reason exported_system_radio_prop is also
renamed to usb-related names.

Bug: 71814576
Bug: 154885206
Test: m selinux_policy
Change-Id: If30bc620dbeac926a8b9bcde908357fda739a6c1
Merged-In: If30bc620dbeac926a8b9bcde908357fda739a6c1
(cherry picked from commit 44fbcdb677)
2020-05-15 15:06:10 +09:00
Inseob Kim
b745b61910 Remove rcs.publish.state am: 296d367804
Change-Id: I41929bcb9d4d0c9de7910e136bc157faa0630850
2020-05-15 01:46:32 +00:00
Inseob Kim
296d367804 Remove rcs.publish.state
It was used within external/ims to save its internal state. Removing it
from property_contexts as it's deleted now (aosp/1209267).

Bug: 152471138
Test: N/A
Change-Id: I1451390aada3dfff6c147de585cc316c5307c0b4
2020-05-14 20:38:31 +09:00
Nikita Ioffe
8182ca9591 Merge "Allow priv_app to search apex_data_file and read staging_data_file" am: 7b9d03c1b2
Change-Id: I72e7a058162055426e56f2c3f2e7f280893171d5
2020-05-13 20:32:25 +00:00
Nikita Ioffe
7b9d03c1b2 Merge "Allow priv_app to search apex_data_file and read staging_data_file" 2020-05-13 20:15:12 +00:00
Treehugger Robot
df590078cd Merge "servicemanager: add dump fd permissions" am: 69fc359cd4
Change-Id: If9ed718fe4234e50fbc50d559ba06cbe6a363c08
2020-05-13 20:02:31 +00:00
Treehugger Robot
69fc359cd4 Merge "servicemanager: add dump fd permissions" 2020-05-13 19:43:34 +00:00
Treehugger Robot
cacace73c1 Merge "incident_service: only disallow untrusted access" am: c9767ea276
Change-Id: I381909a28afeebc23edf16b544e4a3d8b704221c
2020-05-13 17:57:03 +00:00
Treehugger Robot
c9767ea276 Merge "incident_service: only disallow untrusted access" 2020-05-13 17:40:18 +00:00
Inseob Kim
2258cebdf5 Add new context dalvik_runtime_prop am: 1337e15717
Change-Id: I43bfa184af3f6b97de0f1be9432b98fd0312b1d4
2020-05-13 16:29:13 +00:00
Jeff Vander Stoep
2aa8042f9d incident_service: only disallow untrusted access
Allow device-specific domains to access the incident_service.

Test: build
Bug: 156479626
Change-Id: I3b368c09087e2d3542b70be5aa22f8ef47392221
2020-05-13 15:06:17 +00:00
Inseob Kim
1337e15717 Add new context dalvik_runtime_prop
persist.sys.dalvik.vm.lib.2 is moved to a new context
dalvik_runtime_prop from bad context name.

Bug: 154885206
Test: boot device and see logcat
Change-Id: I9dea95105c266088d5f071bf2d890048f0999b0b
2020-05-13 23:33:03 +09:00
Inseob Kim
7e88a81ff8 Merge "Remove sys.vdso property" am: 4ec6c0a48d
Change-Id: Icb457fb0e590028f2cf3fca4a78108951a9a59b2
2020-05-13 05:02:51 +00:00
Inseob Kim
4ec6c0a48d Merge "Remove sys.vdso property" 2020-05-13 04:52:06 +00:00
Inseob Kim
9c3e542b1e Merge "Move media.* properties to media_config_prop" am: 6da0ab70d3
Change-Id: I39f42dd764ee5227077ba3f92db219bc46302735
2020-05-13 03:38:56 +00:00
Inseob Kim
6da0ab70d3 Merge "Move media.* properties to media_config_prop" 2020-05-13 03:24:35 +00:00
Inseob Kim
49e71895b3 Remove sys.vdso property
This is an experimental property on Q and doesn't need anymore.

Exempt-From-Owner-Approval: cherry-pick

Bug: 154885206
Test: N/A
Change-Id: I80415edc002345849b375e07fdf5783cf60c2446
Merged-In: I80415edc002345849b375e07fdf5783cf60c2446
(cherry picked from commit 7b59ae50e6)
2020-05-13 11:59:14 +09:00
Treehugger Robot
25f1bf10d1 Merge "Relabel ro.build. properties" am: 993baf3954
Change-Id: Ib059c690830bd9c9c5fda08b21bafb72f47914fb
2020-05-13 02:55:40 +00:00
Treehugger Robot
993baf3954 Merge "Relabel ro.build. properties" 2020-05-13 02:36:54 +00:00
Treehugger Robot
ffb0e0c328 Merge "Add hdmi_config_prop for hdmi properties" am: 6dc7d85b3a
Change-Id: Iabbac8c597c3361113fce1283565710aece514b7
2020-05-13 00:41:55 +00:00
Inseob Kim
bfb10a9bc0 Move media.* properties to media_config_prop
Bug: 154885206
Bug: 155844385
Test: m selinux_policy
Change-Id: Idfbafd29c51f7ce4512ea0d88fc7534e28eb1738
2020-05-13 09:38:08 +09:00
Treehugger Robot
6dc7d85b3a Merge "Add hdmi_config_prop for hdmi properties" 2020-05-13 00:29:40 +00:00
Inseob Kim
8c23925351 Relabel ro.build. properties
- exported_fingerprint_prop is deleted
- other ro.build. properties become build_prop

Bug: 155844385
Test: sepolicy_tests
Change-Id: Ic1194e8e7c23394e5a7c6176f9f9598109bb5fb7
Merged-In: Ic1194e8e7c23394e5a7c6176f9f9598109bb5fb7
(cherry picked from commit 1d63d5d075)
2020-05-13 09:01:47 +09:00
Treehugger Robot
d9811d2361 Merge "Transcoding: Add file read/write permission to service." am: 84a78e366d
Change-Id: I9cfa220c1c34df36145c9e4bd50334a1bdb107f0
2020-05-12 22:29:05 +00:00
Treehugger Robot
84a78e366d Merge "Transcoding: Add file read/write permission to service." 2020-05-12 22:10:41 +00:00
hkuang
c7f42b2b80 Transcoding: Add file read/write permission to service.
This is needed for the transcoding service to read from the
source fd and write to destination fd.

Bug: 145628554
Test: atest MediaTranscodeManagerTest
Change-Id: Icffed1e402bc2fb593e925de0742c0d7552b50bc
2020-05-12 09:50:24 -07:00
Inseob Kim
df0008802e Add hdmi_config_prop for hdmi properties
To remove bad context names.

Bug: 154885206
Bug: 155844385
Test: m selinux_policy
Change-Id: I5712bf836e07b3b26a51c3433234b986843076ea
2020-05-12 23:04:51 +09:00
Treehugger Robot
106d1207f7 Merge "Rename context names of zram properties" am: dc33d3f15e
Change-Id: I9597510746079bb249f5a5aba673e9ca61804409
2020-05-12 13:26:15 +00:00