Commit Graph

38309 Commits

Author SHA1 Message Date
Jiyong Park 6b369bee69 Prevent vendors from accessing private VNDK libs
Private VNDK libs are VNDK libs that are only accessible from other VNDK
libs but are inaccessible from vendor libraries. The private VNDK libs
are marked as vendor_available: false.

To enforce this at runtime, the private VNDK libs are excluded from the
list of lib names that links the namespaces.

Also, linker namespaces for vendor processes are modified so that the
VNDK-core and VNDK-SP libs are now loaded in the 'system' namespace and
not in the 'default' namespace.

Bug: 63878960
Test: wahoo devices boot, log does not show any new dlopen error.

Change-Id: Ibfc4f31a97aa6edd7f05cd6177daeb52c165bfeb
2017-11-28 13:13:44 +09:00
Tom Cherry f8b9d77b81 Merge "Move mkdir /data/nfc/... to rootdir init.rc" am: fa65396ca2 am: 4b3bcf2a10
am: 77ad3f58ae

Change-Id: Ic2ba51690b3dd5b64ea76ec83cb6007b7894810f
2017-11-22 20:13:04 +00:00
Tom Cherry 77ad3f58ae Merge "Move mkdir /data/nfc/... to rootdir init.rc" am: fa65396ca2
am: 4b3bcf2a10

Change-Id: Ifad2fea72b32d4128a7bd9049a1d4e41e462dff3
2017-11-22 20:08:45 +00:00
Tom Cherry 4b3bcf2a10 Merge "Move mkdir /data/nfc/... to rootdir init.rc"
am: fa65396ca2

Change-Id: I623f24df9b42500f347ae427f4ffd94395abaa56
2017-11-22 20:03:47 +00:00
Tom Cherry fa65396ca2 Merge "Move mkdir /data/nfc/... to rootdir init.rc" 2017-11-22 19:56:10 +00:00
Chen Xu a2ef53855e Merge "a new folder to store OTA carrier id update" am: 76adcdf688 am: df482d03ad
am: cbf2e2e4fb

Change-Id: I587918b2cd00256bfd0832a13d427f4ba616735e
2017-11-22 04:41:30 +00:00
Chen Xu cbf2e2e4fb Merge "a new folder to store OTA carrier id update" am: 76adcdf688
am: df482d03ad

Change-Id: I6e8b05ff44279f73032dfead0e7a5b1e89bfe2af
2017-11-22 04:38:14 +00:00
Chen Xu df482d03ad Merge "a new folder to store OTA carrier id update"
am: 76adcdf688

Change-Id: I052a0810830b2a81a8a992d66e8e59cda343b347
2017-11-22 04:35:44 +00:00
Chen Xu 76adcdf688 Merge "a new folder to store OTA carrier id update" 2017-11-22 04:31:29 +00:00
Yifan Hong 8469d65bcf Merge "charger: add charger_test" 2017-11-22 01:52:09 +00:00
fionaxu 06b8e2e130 a new folder to store OTA carrier id update
Bug:64131637
Test: Build
Change-Id: I0ce4322f297bab427d70aed3c329345c899786bb
(cherry picked from commit 45713ff621)
2017-11-21 17:31:00 -08:00
Chen Xu 6ccb1d4460 Merge "a new folder to store OTA carrier id update" 2017-11-22 01:29:11 +00:00
Yifan Hong b7cd45f877 charger: add charger_test
Test: charger_test
Bug: 63702641
Change-Id: Id50d024c015916cb8007742e3c17eaf1161b909f
2017-11-21 15:05:17 -08:00
fionaxu 45713ff621 a new folder to store OTA carrier id update
Bug:64131637
Test: Build
Change-Id: I0ce4322f297bab427d70aed3c329345c899786bb
2017-11-21 12:34:39 -08:00
Tom Cherry c319310f9b Move mkdir /data/nfc/... to rootdir init.rc
These are directories used by the system so they should be created by
the system.

Test: treehugger
Change-Id: I2a721ef7871c8842fa912497f5ec6988fcec9e58
2017-11-21 10:40:25 -08:00
Mark Salyzyn aa9f6ee9ee Merge "bootstat: kernel_panic test w/o bootloader or pstore support" am: 70fda27eb2 am: 6c9f88863c
am: ae3bbc2fa2

Change-Id: Ied94a5c7a49d8cf252cca1c98624f504e8e82f2a
2017-11-21 17:24:36 +00:00
Mark Salyzyn ae3bbc2fa2 Merge "bootstat: kernel_panic test w/o bootloader or pstore support" am: 70fda27eb2
am: 6c9f88863c

Change-Id: Ic0dbc48b73b20301028b0d4b4fa25fadb4ed0505
2017-11-21 17:22:03 +00:00
Mark Salyzyn 6c9f88863c Merge "bootstat: kernel_panic test w/o bootloader or pstore support"
am: 70fda27eb2

Change-Id: Ie15e47de331846858e51ad62076a54a8f6d4c34d
2017-11-21 17:20:05 +00:00
Treehugger Robot 70fda27eb2 Merge "bootstat: kernel_panic test w/o bootloader or pstore support" 2017-11-21 17:14:31 +00:00
Yifan Hong 43142c4286 Merge changes from topic "health2_passthru"
* changes:
  healthd: charger use health 2.0 HAL
  healthd: move healthd_board_init call to Health::Health() c-tor
2017-11-20 22:52:06 +00:00
Mark Salyzyn 547063eab6 bootstat: kernel_panic test w/o bootloader or pstore support
If the platform has no bootloader or pstore support, kernel_panic
test should fail if the results are not correct. Drop skipping of
failed test if pstore support is lacking.

If device demonstrably has pstore content support, the result must
be exacting kernel_panic,sysrq. Otherwise accept the less precise
result.

Test: On hikey960 (which currently lacks reliable pstore, or a
      compliant bootloader reporting bootreason), expect failure of:
      system/core/bootstat/boot_reason_test.sh kernel_panic
Bug: 63736262
Change-Id: I071a2a9c00dc522ec037c8a8997fea524d17e6e4
2017-11-20 12:18:09 -08:00
Yifan Hong 10c2b4013a healthd: charger use health 2.0 HAL
Test: charger_test
Test: off-mode charging, charger runs correctly
Bug: 63702641
Bug: 69268160
Change-Id: I7dfc83ae4020ada7e9d11ab955f648abb74f435b
2017-11-20 10:28:11 -08:00
Dmitry Dementyev d8791e9d12 Merge "Get rid of manually created IKeystoreService in gatekeeper.cpp" 2017-11-17 22:32:19 +00:00
TreeHugger Robot 5ef59f6e7a Merge "Revert "Add functions for testability to the EventLog APIs"" 2017-11-17 22:17:04 +00:00
Christopher Ferris 767c1ce3c7 Merge "Force call the fallback handler." am: b7969272a3 am: ce31cff9af
am: e1de2086c7

Change-Id: I5e3336c3f2c9de5a746c668893ddaefa5e5e57fc
2017-11-17 18:44:06 +00:00
Christopher Ferris e1de2086c7 Merge "Force call the fallback handler." am: b7969272a3
am: ce31cff9af

Change-Id: Ieacde0260faed5d072608df907600205d46a51a3
2017-11-17 18:40:34 +00:00
Christopher Ferris ce31cff9af Merge "Force call the fallback handler."
am: b7969272a3

Change-Id: I0c2893acb1f1aba246a1346775ed6d83f9b45e44
2017-11-17 18:38:29 +00:00
Christopher Ferris b7969272a3 Merge "Force call the fallback handler." 2017-11-17 18:33:20 +00:00
Jaegeuk Kim 2decf61b2d fs_mgr: support quota format for f2fs
This patch adds -O quota for make_f2fs to activate disk quotas, and add -d1 to
show debug messages which was set in all the other make_f2fs calls.

Change-Id: I33ab0f585b1081ff88f298286378f9ff70579b3f
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
2017-11-16 22:10:02 -08:00
Christopher Ferris 664d2a9093 Force call the fallback handler.
Always check to see if the fallback handler has been called and is
not trying to dump a specific thread.

Bug: 69110957

Test: Verified on a system where the prctl value changes, that before the
Test: change it dumps multiple tombstones, and after the change it
Test: works as expected.
Test: Ran debuggerd unit tests.
Test: Dumped process using debuggerd -b <PID> and debuggerd <PID>.
Change-Id: Id98bbe96cced9335f7c3e17088bb4ab2ad2e7a64
2017-11-16 20:07:13 -08:00
Steven Moreland c79baea4d5 Merge changes from topic "b69050941" am: 37eb97d911 am: 864a1baa0f
am: a8fcd9060d

Change-Id: I61bd9960c9e240f427a84190d195c1cb59befaae
2017-11-15 21:57:03 +00:00
Steven Moreland a8fcd9060d Merge changes from topic "b69050941" am: 37eb97d911
am: 864a1baa0f

Change-Id: I676cce806836ef6a9204e7b482e94b8cb1d7163f
2017-11-15 21:52:21 +00:00
Steven Moreland 864a1baa0f Merge changes from topic "b69050941"
am: 37eb97d911

Change-Id: Icdfc3e160b2ae1d2dc63c1d86c1a75a199fdf1c0
2017-11-15 21:49:19 +00:00
Treehugger Robot 37eb97d911 Merge changes from topic "b69050941"
* changes:
  Allow a service to override another.
  Move service name duplication lookup to EndSection
  EndSection returns Result<Success>
  Fix out of date SectionParser comment.
2017-11-15 21:30:56 +00:00
yaochen 00129eb694 Merge changes from topic "stats_log" am: 68f2c85354 am: 11bb6bbf41
am: 9ecaaf44f9

Change-Id: I17e28078354548b375d60a44a32cc7bd39d895be
2017-11-15 19:30:13 +00:00
yaochen 9ecaaf44f9 Merge changes from topic "stats_log" am: 68f2c85354
am: 11bb6bbf41

Change-Id: I59dc67b32d19570357b69d82c7ce771000ffa64f
2017-11-15 19:28:35 +00:00
yaochen 11bb6bbf41 Merge changes from topic "stats_log"
am: 68f2c85354

Change-Id: I2dce867c04ea61a05b32063f321414f459cbe26c
2017-11-15 19:26:12 +00:00
yaochen 68f2c85354 Merge changes from topic "stats_log"
* changes:
  Register an event logtag for stats logs.
  Create stats buffer in logd.
2017-11-15 19:16:12 +00:00
Steven Moreland 6f5333a4a9 Allow a service to override another.
For instance, on vendor.img:
service foo /vendor/bin/nfc
    ...

And then on odm.img:
service foo /odm/bin/super-nfc
    override

Allows a service on ODM to override a HAL on vendor.

Bug: 69050941
Test: boot, init_tests
Change-Id: I4e908fb66e89fc6e021799fe1fa6603d3072d62a
2017-11-15 10:39:29 -08:00
Steven Moreland 5e1bea30b9 Move service name duplication lookup to EndSection
This is paving the way to allow an "override" tag
in init services. This also means that errors for
part of a service definition in its section will
be shown in addition to the fact that the service
is duplicated.

Bug: 69050941
Test: boot, init_tests
Change-Id: Ic1ea8597789f45ead1083451b3e933db1524bdc9
2017-11-15 10:39:29 -08:00
Steven Moreland 7d0a5c3656 EndSection returns Result<Success>
Allow it to fail. When there is an error for a section ending,
print the error pointing to the line where the section starts.

Bug: 69050941
Test: boot, init_tests
Change-Id: I1d8ed25f4b74cc9ac24d38b8075751c7d606aea8
2017-11-15 10:39:29 -08:00
Xin Li 954cb53eec Merge remote-tracking branch 'goog/stage-aosp-master' into HEAD
am: f3397a3ca4

Change-Id: I84410ec89dd106e9b9c6be94dbe3ad3dda28f039
2017-11-15 00:53:11 +00:00
Xin Li f3397a3ca4 Merge remote-tracking branch 'goog/stage-aosp-master' into HEAD
Change-Id: I2da7085b5c1f235c7d50949b1abd26ae2aea6888
2017-11-14 16:47:59 -08:00
Yao Chen 91794ca275 Revert "Add functions for testability to the EventLog APIs"
This reverts commit a346544124.

Change-Id: I779a1fa9595f5fc7274e358de1f61c35922fe70c
2017-11-15 00:46:47 +00:00
Yao Chen c6eafeb5bf Register an event logtag for stats logs.
Bug: 69323063
Test: manual
Change-Id: I244aa15c74ad70ba228c2128a3cdc829537ce5e2
2017-11-14 16:24:13 -08:00
Stefan Lafon 701a0658e6 Create stats buffer in logd.
Bug: 69323063
Test: ran unit tests.
Change-Id: Icfb827ab4674172c26b4bbfe1a9b3bffc03dc24b
(cherry picked from commit 1b1b6f50c7)
2017-11-14 16:20:00 -08:00
Dmitry Dementyev 0dd259cf78 Get rid of manually created IKeystoreService in gatekeeper.cpp
Bug:68389643
Test: manual
Change-Id: I2c1404f4c6597e63bc0a360a7bf598e35585b30e
2017-11-14 16:15:44 -08:00
Steven Moreland b480d441ac Fix out of date SectionParser comment.
It has since been refactored with different
return types.

Bug: 69050941
Test: boot, init_tests
Change-Id: I54c0e6745640136f060ba1876b2f26d95bddc9d6
2017-11-14 13:47:59 -08:00
Xin Li 23e27db576 Merge commit 'a63ccea6abc7ea02e2d98e41c80793ca97237bd3' from
oc-mr1-dev-plus-aosp into stage-aosp-master

Change-Id: Ia33311cd1fd26dfaea59a69317b306fb91203c40
Merged-In: I03d06b10807e8a313c9654c2e1db36bfb59e3f99
2017-11-14 13:19:45 -08:00
Yifan Hong 3bc12ce7df healthd: move healthd_board_init call to Health::Health() c-tor
The invocation is wrapped so that clients of -impl doesn't
have to call healthd_board_init directly.

Test: health VTS test
Test: charger_test
Bug: 69268160

Change-Id: I61f820b80ce6b03fe51ca05d07ed7e09ca369d2d
2017-11-14 12:59:54 -08:00