Jeff Sharkey
adc66be540
Merge \\"Only restorecon CE storage after unlocked.\\" into nyc-mr1-dev am: 96f387e8c0
...
am: 91404d9481
Change-Id: I909f1697562f390b58cf08cc9b17e566cde7d73c
2016-07-18 16:09:34 +00:00
Jeff Sharkey
91404d9481
Merge \"Only restorecon CE storage after unlocked.\" into nyc-mr1-dev
...
am: 96f387e8c0
Change-Id: I3a1c31334d32e7bdff8e05558356d2833fcfb831
2016-07-18 16:06:34 +00:00
Amit Pundir
707eeb0a23
Merge \\\\"init: select usb gadget controller at run time\\\\" am: 916f5e873e am: 91272bd435 am: aff2347646
...
am: 114a00ea03
Change-Id: I5f0ffb78092d7d3e0425cfce3c4f614b81b0ff5e
2016-07-15 23:38:48 +00:00
Amit Pundir
114a00ea03
Merge \\\"init: select usb gadget controller at run time\\\" am: 916f5e873e am: 91272bd435
...
am: aff2347646
Change-Id: Idbb3ed146b147300d8f472958a5b888c07f5a684
2016-07-15 23:01:34 +00:00
Amit Pundir
91272bd435
Merge \"init: select usb gadget controller at run time\"
...
am: 916f5e873e
Change-Id: Ifc4ec86c56df0de1ca498f3de392405490690809
2016-07-15 22:53:21 +00:00
Jeff Sharkey
1635afe83d
Only restorecon CE storage after unlocked.
...
On FBE devices, the filenames inside credential-encrypted directories
are mangled until the key is installed. This means the initial
restorecon at boot needs to skip these directories until the keys
are installed.
This CL changes the implementation of the "restorecon_recursive"
built-in command to use the new SKIPCE flag to avoid labeling files
in CE directories. vold will request a restorecon when the keys
are actually installed.
Bug: 30126557
Change-Id: I320584574a4d712c493b5bbd8a79b56c0c04aa58
2016-07-15 16:21:42 -06:00
Amit Pundir
d2e74db475
init: select usb gadget controller at run time
...
Right now we set sys.usb.controller property in init.$platform.usb.rc
to enable ConfigFS gadgets.
Let system detect and set UDC driver name from /sys/class/udc instead.
Change-Id: I99ad49d24dc53b543c5573e209bf00d6c2d91dd4
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
2016-07-15 15:01:43 -07:00
Mark Salyzyn
109d7d23c5
init: Add support for ${x.y:-default} expansion
...
commit 00ede7d262 (init: do
expand_props before calling the builtins) broke logpersist
Bug: 28120456
Bug: 22654233
Bug: 28788401
Change-Id: Ib4d8231665b26ac083b02243177493fab41c8978
2016-07-13 23:55:34 +00:00
Tom Cherry
b79e076e5e
init: expand arguments of services when they start
...
Arguments of commands are expanded based on properties if they contain
${property.name}, however this is not currently done for arguments of
services.
This patch makes it that arguments of services are expanded each time
that the service starts at the point immediately before execve().
Bug: 28788401
Change-Id: Iba581a8377e25a6478d4d2ec2e8b29e181d8640c
2016-07-13 23:54:42 +00:00
Jorge Lucangeli Obes
45473db58f
Merge \\\\"Refactor Service::Start method.\\\\" am: 82d2bcc21e am: f2ffdac47a am: 77dbaad7b9
...
am: 67410f8578
Change-Id: If187749b1fb4f81babbed753cb57788e90cde12c
2016-07-12 02:05:01 +00:00
Jorge Lucangeli Obes
67410f8578
Merge \\\"Refactor Service::Start method.\\\" am: 82d2bcc21e am: f2ffdac47a
...
am: 77dbaad7b9
Change-Id: Ief7f4cc5b95b018d8476dd9a35cc76dd384fcbc5
2016-07-11 17:21:18 +00:00
Jorge Lucangeli Obes
f2ffdac47a
Merge \"Refactor Service::Start method.\"
...
am: 82d2bcc21e
Change-Id: Icccd918f1dc02010c9aceb4560dc5ff18849d8a5
2016-07-11 17:13:26 +00:00
Treehugger Robot
82d2bcc21e
Merge "Refactor Service::Start method."
2016-07-11 17:08:45 +00:00
Jorge Lucangeli Obes
344d01f99f
Refactor Service::Start method.
...
This CL extracts code from Service::Start into four helper functions,
bringing Service::Start down to 134 lines vs 212 lines originally. This
makes the method a lot easier to follow. There is no change in behaviour.
Also, make error messages consistent (start with lowercase) and
format Service::Start to fit in 100 cols.
Bug: 30035168
Change-Id: If979976fba4d339a336d030f802ca9f169fd012c
2016-07-11 09:57:17 -04:00
Elliott Hughes
a0a31735d1
Merge \\\\"Make klog_fd thread-safe and make klog_init a no-op.\\\\" am: 588b770063 am: 73d363bbc1 am: 7288ac3982
...
am: 6605b0b23a
Change-Id: I7d50818201e114fb65db8179c14b754afb069bdb
2016-07-08 17:17:32 +00:00
Elliott Hughes
6605b0b23a
Merge \\\"Make klog_fd thread-safe and make klog_init a no-op.\\\" am: 588b770063 am: 73d363bbc1
...
am: 7288ac3982
Change-Id: I46bbcb64eecc01ec7bd8bb502237c1b9057befc4
2016-07-08 17:12:48 +00:00
Elliott Hughes
73d363bbc1
Merge \"Make klog_fd thread-safe and make klog_init a no-op.\"
...
am: 588b770063
Change-Id: I884276a8f8b8209f6e956c5fb410e8265184e1b5
2016-07-08 17:05:25 +00:00
Yabin Cui
58fcd429c3
Merge \\"init: use libbootloader_message.\\" into nyc-mr1-dev am: ca4cf4e4af
...
am: 1b8159e7ab
Change-Id: Ib66c41548140a19cbf8bada84ee0da985c8ac0a9
2016-06-30 23:11:19 +00:00
Yabin Cui
1b8159e7ab
Merge \"init: use libbootloader_message.\" into nyc-mr1-dev
...
am: ca4cf4e4af
Change-Id: I8234e796a8b35115ef1ecf33c987882f8fe286cd
2016-06-30 22:55:42 +00:00
Yabin Cui
ca4cf4e4af
Merge "init: use libbootloader_message." into nyc-mr1-dev
2016-06-30 21:08:30 +00:00
Yabin Cui
0b1252cca0
init: use libbootloader_message.
...
Bug: 29582118
Change-Id: I6285b29774a11d6dda8496c7c73e4c1d17a672bd
2016-06-29 16:44:02 -07:00
Elliott Hughes
171a829c39
Make klog_fd thread-safe and make klog_init a no-op.
...
I'll come back and remove klog_init when I've removed other calls to it.
Change-Id: Iad7fd26d853b4ddc54e9abd44516b6f138cbbfcb
Test: booted N9, looked at "adb shell dmesg" output.
2016-06-29 16:16:41 -07:00
Alex Light
75aa7c04e0
Add umount call to init to unmount a filesystem am: 68ab20febd
...
am: 40095a6eae
Change-Id: I216e617dfebeb3caf5c5db155512f6b7cf2c2b9f
2016-06-29 22:58:44 +00:00
Alex Light
40095a6eae
Add umount call to init to unmount a filesystem
...
am: 68ab20febd
Change-Id: I1166f88814193092f10dad8a2fa841028613e03e
2016-06-29 22:56:40 +00:00
Jorge Lucangeli Obes
6082c9b446
Merge \\\\"Rename \\\\"Handle(r)\\\\" to \\\\"Parse(r)\\\\" in Android init.\\\\" am: b0d062a497 am: 69e6dde7c6 am: 763581ec76
...
am: 4e6cf008c6
Change-Id: I280287446f8d85cbfef22a9c2a3491772c7c77b0
2016-06-29 21:58:34 +00:00
Jorge Lucangeli Obes
69e6dde7c6
Merge \"Rename \"Handle(r)\" to \"Parse(r)\" in Android init.\"
...
am: b0d062a497
Change-Id: If3b070c3ec8599e065980bec123bf8c2cf160222
2016-06-29 21:51:08 +00:00
Jorge Lucangeli Obes
c2cb8eeda0
Merge \\\\"init: Add option to run a service in a new PID/mount namespace.\\\\" am: e71cedf450 am: 5b951eebec am: fa9965feed
...
am: e90524bddb
Change-Id: I3483bea442b4bb6dd71b232971e559b1f8b90c56
2016-06-29 20:54:35 +00:00
Jorge Lucangeli Obes
177b27d4f5
Rename "Handle(r)" to "Parse(r)" in Android init.
...
The code in question parses config files, so use the right terminology.
Bug: 29872991
Change-Id: Id9644d9a98c1d702d2990f62b3020a27d073141e
2016-06-29 16:29:53 -04:00
Jorge Lucangeli Obes
5b951eebec
Merge \"init: Add option to run a service in a new PID/mount namespace.\"
...
am: e71cedf450
Change-Id: I963b61c06922ae017fdb27b4a3a99d6519505329
2016-06-29 20:29:07 +00:00
Jorge Lucangeli Obes
1b3fa3d650
init: Add option to run a service in a new PID/mount namespace.
...
Namespaces are a more consistent isolation primitive than e.g. hiding
/proc.
Bug: 29635190
Change-Id: I7c39975813fb13b3d06be35a24c0854f16549c0a
2016-06-29 14:49:11 -04:00
Alex Light
68ab20febd
Add umount call to init to unmount a filesystem
...
Bug: 29278988
Change-Id: Ia14ab1bcad9513688df97f7b4d9162a9ab282480
2016-06-29 17:36:13 +00:00
Elliott Hughes
4dc40842ba
resolve merge conflicts of ab47d14 to master
...
Change-Id: Idf7b913e1f3ac6eff9ee2b314156c83996505641
2016-06-27 11:31:16 -07:00
Elliott Hughes
7f5b29ff1e
resolve merge conflicts of 54c1219 to stage-aosp-master
...
Change-Id: I4b3b2a8690cfe147929fd096de380a9d4b79f1ec
2016-06-27 09:54:25 -07:00
Elliott Hughes
f86b5a6b90
Move init to libbase logging.
...
Change-Id: Ibfbefeff587a69e948978a037c555fd12a5ade6a
2016-06-27 08:11:31 -07:00
Elliott Hughes
cbeeeaefb5
Merge \\\\"Remove MTD cruft from init.\\\\" am: 90db709a2f am: 80744d867f am: 77b189acd9
...
am: db62f10c1d
Change-Id: Ife58caa4905776992fe28374a51bf9048fdb9533
2016-06-25 02:33:27 +00:00
Elliott Hughes
80744d867f
Merge \"Remove MTD cruft from init.\"
...
am: 90db709a2f
Change-Id: I027708dd324000cbfad1a2a6e970f742db97bae5
2016-06-25 02:25:38 +00:00
Elliott Hughes
3195116e97
Remove MTD cruft from init.
...
Bug: http://b/29250988
Change-Id: I38ab263192944e4ff291fd91b25db163a8848d75
2016-06-24 18:26:30 -07:00
Elliott Hughes
2edd112f50
Merge \\\\"Remove more obsolete MTD stuff.\\\\" am: aa9f37185f am: e9a7f52ce5 am: c3f9902cee
...
am: 1ad84666e5
Change-Id: I7baf356e5753a003101bca7da730ee5f71d10187
2016-06-24 17:49:47 +00:00
Elliott Hughes
e9a7f52ce5
Merge \"Remove more obsolete MTD stuff.\"
...
am: aa9f37185f
Change-Id: I7952147c2115d1e205737277376726507aed8447
2016-06-24 17:31:59 +00:00
Treehugger Robot
aa9f37185f
Merge "Remove more obsolete MTD stuff."
2016-06-24 17:19:48 +00:00
Elliott Hughes
01e5a6c971
Remove more obsolete MTD stuff.
...
Bug: http://b/29250988
Change-Id: Ic2d0514fcdbe26526e87bc681b71efcc90eda678
Test: still builds.
2016-06-24 09:13:51 -07:00
Hung-ying Tyan
4e8a1a6895
resolve merge conflicts of 66277db to stage-aosp-master am: 23a574a195 am: 2acf4a81dc
...
am: 1e94e12312
Change-Id: I730e6337d5d224b60183dd020dd9098f769974e2
2016-06-24 06:19:04 +00:00
Hung-ying Tyan
23a574a195
resolve merge conflicts of 66277db to stage-aosp-master
...
Change-Id: I58b1f7fec779c707ac4048ae5401087ec4b7c8b0
2016-06-24 13:21:09 +08:00
Hung-ying Tyan
66277db8d0
Merge "Add -f to insmod"
2016-06-24 04:34:56 +00:00
Hung-ying Tyan
bfa6d75c60
Add -f to insmod
...
When the flag is on, insmod will bypass vermagic and symbol version
checking in the kernel. This is to make it possible to update kernel
without recompiling kernel modules.
BUG=28803994
Change-Id: Ib4be6999ef52baefd4210ee0d242360e43318907
2016-06-24 11:10:46 +08:00
Chih-Hung Hsieh
c1dda5dccd
Merge \\\\"Fix misc-macro-parentheses warnings in system/core.\\\\" am: 495541c5bb am: 65828a0ec9 am: 4a8ab16746
...
am: 3f646c24a9
Change-Id: I0131e74b001a9f1e56c456a52a327687e07b8955
2016-06-22 23:18:07 +00:00
Chih-Hung Hsieh
65828a0ec9
Merge \"Fix misc-macro-parentheses warnings in system/core.\"
...
am: 495541c5bb
Change-Id: I021b653779c5119398c31ee354372366ba029328
2016-06-22 22:39:07 +00:00
Chih-Hung Hsieh
cdb2ca5d9f
Fix misc-macro-parentheses warnings in system/core.
...
Add parentheses around macro arguments used beside operators.
Bug: 28705665
Change-Id: I9226f319e283be640eddc31687f75b51a8ef0ac6
2016-06-22 14:33:13 -07:00
Elliott Hughes
9120e502db
Merge \\\\"init: report createProcessGroup failure.\\\\" am: 2d690a920f am: 32cc6c9908 am: 5534d11498
...
am: 55ee52d2c3
Change-Id: Ifc4237595c2d038eb465bd4c65ed4d834e088f14
2016-06-17 19:05:46 +00:00
Elliott Hughes
32cc6c9908
Merge \"init: report createProcessGroup failure.\"
...
am: 2d690a920f
Change-Id: I4ec8df459aefa4aebb3cdf9ec5aa40bc4e727f39
2016-06-17 04:16:21 +00:00