Commit Graph

39227 Commits

Author SHA1 Message Date
Andrew Chant 255c43cd05 Merge "usblib: fix race & delay waiting for perms on open" 2017-12-07 18:49:40 +00:00
Elliott Hughes 7a54ed9e28 Merge "Add a /bin symlink for convenience."
am: dcc0f8f76b

Change-Id: Icc0741e0fe66bf01b91f4b6c14b3930b5104bee6
2017-12-07 18:38:02 +00:00
Jiyong Park 4d530892c9 Merge "Remove *.dep files for ld.config.txt, [llndk|vndksp].libraries.txt"
am: c431c43f8d

Change-Id: I45e095adc4ce78fae6d8262d9fdc146a7deb5f1f
2017-12-07 18:37:11 +00:00
Christopher Ferris 5b9c5dc0ab Merge "Split arch data into separate files."
am: a7e2a12d38

Change-Id: I1775384dc807d8809d92c40dd8597abe43b3edd5
2017-12-07 18:36:10 +00:00
Elliott Hughes 4cc92cc03f Merge "Remove dead code."
am: a78c686799

Change-Id: I022c12aa207996129aadb918a0fdd797f2636904
2017-12-07 18:34:59 +00:00
Yabin Cui b0c29e764c Merge "libBacktraceOffline: fix using debug frame with load bias."
am: d7edcc9bc4

Change-Id: I8741653262c48aa4f0e6b43a9eb1dcd46dc71772
2017-12-07 18:34:15 +00:00
Yabin Cui d773ceb28a Merge "base: allow creating tempfile in a custom temporary dir."
am: 665f144566

Change-Id: Ibf63af87835763700682163cbe8feb60dc081b01
2017-12-07 18:31:36 +00:00
Xin Li 5e20696633 Merge "DO NOT MERGE: Merge Oreo MR1 into master"
am: f223ff4c29  -s ours

Change-Id: I61cda59e2309c4216d057a3b36898bc307c5ec79
2017-12-07 18:29:55 +00:00
Elliott Hughes dcc0f8f76b Merge "Add a /bin symlink for convenience." 2017-12-07 16:55:25 +00:00
Treehugger Robot c431c43f8d Merge "Remove *.dep files for ld.config.txt, [llndk|vndksp].libraries.txt" 2017-12-07 09:51:22 +00:00
Jiyong Park d083db9bc9 /vendor/priv-app is added to the permitted paths for the default ns
We will have apps under /vendor/priv-app. Add the path to the permitted
paths so that the apks and so libs under the directory can be loaded.

Bug: 35301609
Test: None since we don't have priv vendor app yet.
Change-Id: Ida998adb2e180852b1922e9933f25b988517399e
2017-12-07 18:31:18 +09:00
Marco Nelissen 4ad1a34289 Fix media on W/T
W/T enforce restrictions on linker paths, which M/S do not.
Because of this, media.extractor was unable to load its extractors on W/T.

Bug: 67405932
Test: play sounds successfully
Merged-In: I8914da74780c909da815beaffcd4d76fbe2cc6b5
Change-Id: I8914da74780c909da815beaffcd4d76fbe2cc6b5
(cherry picked from commit 593b43910b)
2017-12-07 18:30:47 +09:00
Jaegeuk Kim aa64620eaa fastboot: support make_f2fs and sload_f2fs for win32
This patch enalbes to use windows tools for f2fs.

Change-Id: Id9109d3d1d8db85f433a20c6a9b18a88daa540d0
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
2017-12-06 22:40:08 -08:00
Jaegeuk Kim 899ad558cd fastboot/fs_mgr/init: add sload_f2fs
Change-Id: Iab1e4037cbb835aba97f941c8840b8971caf38e7
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
2017-12-06 22:40:08 -08:00
Jaegeuk Kim 6a3967a64b fs_mgr: format f2fs with length=xx fstab
Merged-In: Icce29ad918f20b16c9908e7fa3ae19eb8c96760b
Change-Id: Icce29ad918f20b16c9908e7fa3ae19eb8c96760b
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
(cherry picked from commit a367430734)
2017-12-06 22:37:57 -08:00
Xin Li 28188d7e68 DO NOT MERGE: Merge Oreo MR1 into master
am: ff84934e0a  -s ours

Change-Id: Ibc85f6ab9193a0a85d7271099b6af751a1b63df1
2017-12-07 04:49:13 +00:00
Jiyong Park ad7ddd5a02 Reland "Prevent vendors from accessing private VNDK libs"
This reverts commit 875fe42a81.

... and fixes a bug that private VNDK libs are not accessible even to
RenderScript framework libraries (such as libRS_internal.so). This is
fixed by exceptionally allowing the private libs only to 'rs'
namespace.

Bug: 70260989
Bug: 70279973
Bug: 63878960
Test: Build for walleye and tested Photos edit.
Test: other renderscript app (camerascript) works as well
Merged-In: I3978cbe2e869f6a1c214c755ded038349bde7b6b
Change-Id: I3978cbe2e869f6a1c214c755ded038349bde7b6b
(cherry picked from commit 781c47f4da)
2017-12-07 13:44:46 +09:00
Sundong Ahn e93d7f9941 Permitted and search path change
The permitted and search paths should be changed according to VNDK version.
However these paths are fixed with vndk and vndk-sp. So I define the
directory name as below
- /system/${LIB}/vndk${VNDK_VERSION}
- /system/${LIB}/vndk-sp${VNDK_VERSION}
${VNDK_VERSION} will be set by the property "ro.vndk.version".

Bug: 66074376
Test: build & run
Merged-In: I7b8e12327af89d131c4c49cb9b459a393c7dacb8
Change-Id: I7b8e12327af89d131c4c49cb9b459a393c7dacb8
(cherry picked from commit 85c773f0a2)
2017-12-07 13:44:29 +09:00
Jiyong Park 74857cccd2 Remove *.dep files for ld.config.txt, [llndk|vndksp].libraries.txt
The dep files are not required because change in the command line
triggers the rule.

Test: m -j ld.config.txt llndk.libraries.txt vndksp.libraries.txt
Re-run the build after adding or removing libs to/from the vndk set.
The txt files are updated accordingly.

Merged-In: I9c9e22088cc2afeb66e8b159f611b25d698cf800
Change-Id: I9c9e22088cc2afeb66e8b159f611b25d698cf800
(cherry picked from commit 81088bf131)
2017-12-07 03:06:52 +00:00
Christopher Ferris a7e2a12d38 Merge "Split arch data into separate files." 2017-12-07 02:35:35 +00:00
Elliott Hughes a78c686799 Merge "Remove dead code." 2017-12-07 00:44:56 +00:00
Yabin Cui d7edcc9bc4 Merge "libBacktraceOffline: fix using debug frame with load bias." 2017-12-07 00:25:20 +00:00
Yabin Cui 665f144566 Merge "base: allow creating tempfile in a custom temporary dir." 2017-12-07 00:07:25 +00:00
Christopher Ferris d06001d6e0 Split arch data into separate files.
Add an ArchEnum to express the arch of the Elf objects and Reg objects.

Split out the regs code into per arch pieces and generic parts.
Also, split out the header files for each arch.

Do not break out the test code yet, there isn't enough and it doesn't
help to maintain the tests.

Test: libunwindstack/libbacktrace/debuggerd unit tests pass.
Test: Running debuggerd -b <PIDS> yields valid data on bullhead.
Change-Id: If61f6c730c9ff2249f986b41de8c4d62f7158325
2017-12-06 16:01:40 -08:00
Josh Gao 801048c6ea adb: disable USB packet overflow checking on OS X.
OS X appears to be misreporting the maximum packet size on some
hardware. Disable this on OS X until we figure out what's going on.

Bug: http://b/65063965
Bug: https://issuetracker.google.com/70244520
Test: python test_device.py on linux with CHECK_PACKET_OVERFLOW disabled
Test: python test_device.py on darwin (but on hardware that wasn't reproducing this)
Change-Id: I57e1adfa162e40ed79f71f97af552b3f0519324e
2017-12-06 15:34:41 -08:00
Xin Li f223ff4c29 Merge "DO NOT MERGE: Merge Oreo MR1 into master" 2017-12-06 23:18:26 +00:00
Xin Li ff84934e0a DO NOT MERGE: Merge Oreo MR1 into master
Exempt-From-Owner-Approval: Changes already landed internally
Change-Id: I9f1ced06ca1f28e5c75ba07c54cdc7bc78d5f5f9
2017-12-06 14:24:58 -08:00
Yabin Cui 464ea61143 base: allow creating tempfile in a custom temporary dir.
Bug: http://b/70232908
Test: none.
Change-Id: I24b894793f6725186b3582a91db083427e51aa5a
2017-12-06 14:20:07 -08:00
Elliott Hughes 231f1e664d Remove dead code.
Bug: N/A
Test: boots
Change-Id: Id901d95aa05d26767aa5d956ac6e167db1cc3036
2017-12-06 12:38:41 -08:00
Yabin Cui 4a26eaf1f1 libBacktraceOffline: fix using debug frame with load bias.
Bug: http://b/69383534
Test: run backtrace_test.
Change-Id: I295d9dc8f3e5b628f179b2eaeac21fa93de130b0
2017-12-06 11:27:06 -08:00
Ivan Lozano a93741ec87 Merge "Disable integer overflow sanitizer in grep."
am: 3946d93023

Change-Id: Ie4ab0b0c542de435a507c1efdab79eef91beaf2f
2017-12-06 19:21:39 +00:00
Ivan Lozano 3946d93023 Merge "Disable integer overflow sanitizer in grep." 2017-12-06 19:14:11 +00:00
Elliott Hughes ff1ef9f2b1 Add a /bin symlink for convenience.
We already have /etc and /sbin. As the Android world moves towards / being
on the system partition, the circumstances under which a /bin symlink
won't work are reduced. This should already be usable most of the time.

Bug: http://b/63142920
Test: `adb shell /bin/date`
Change-Id: I81c2209ae808ced186d05fbe1d5417ce8dd93ea7
2017-12-06 08:59:02 -08:00
Jin Qian 2cbce3739b Merge "fastboot: fix build break"
am: cce381e307

Change-Id: I1492e940fff923a979d957d9ca1d51ecffdb6492
2017-12-06 07:33:52 +00:00
Treehugger Robot cce381e307 Merge "fastboot: fix build break" 2017-12-06 07:27:29 +00:00
Jin Qian 0c04f78286 fastboot: fix build break
execvpe is a GNU extension. Use execve instead.

Change-Id: I8bf4b6a4e9fd0cae0239f4c5aa9707f141460a7d
2017-12-05 21:39:40 -08:00
Alin Jerpelea 6ba4207461 Merge "add odm partition to ld.config.legacy"
am: cc06663c04

Change-Id: I4251acfd4d37b09041aedfdbf926da0d2e64ff67
2017-12-06 04:10:24 +00:00
Alin Jerpelea 4a33cee3f8 Merge "Allow firmware loading from ODM partition"
am: 5b78366665

Change-Id: Ic7c19c97598fc4087af9a1b7fcc28d5ed0600558
2017-12-06 04:10:02 +00:00
Treehugger Robot cc06663c04 Merge "add odm partition to ld.config.legacy" 2017-12-06 04:03:07 +00:00
Treehugger Robot 5b78366665 Merge "Allow firmware loading from ODM partition" 2017-12-06 04:03:07 +00:00
Jin Qian 1ab4d182bd Merge "fastboot: pass environment variables to exec_e2fs_cmd"
am: 7ed1a15efe

Change-Id: I25b475a4fdc0894d5321ff8c0d64c588b56d25c7
2017-12-06 02:57:29 +00:00
Treehugger Robot 7ed1a15efe Merge "fastboot: pass environment variables to exec_e2fs_cmd" 2017-12-06 00:28:32 +00:00
Christopher Ferris de54053fc3 Merge "Demand read load bias for a map."
am: 1ae6d14f93

Change-Id: I781a7499b370e70c7fcf18acbdaafcb1c0889781
2017-12-05 23:43:27 +00:00
Christopher Ferris 1ae6d14f93 Merge "Demand read load bias for a map." 2017-12-05 23:36:44 +00:00
Jin Qian 03c73e106f fastboot: pass environment variables to exec_e2fs_cmd
Set MKE2FS_CONFIG to point to a config file that comes with mke2fs
binary.

Change-Id: I1d68726ff8baa0c00b930b32f66c54c298c46b81
2017-12-05 14:06:26 -08:00
Christopher Ferris b7de5f5429 Demand read load bias for a map.
Add a static GetLoadBias method to the Elf object that only reads just
enough to get the load bias.

Add a method to MapInfo that gets the load bias. First attempt to get
it if the elf object already exists. If no elf object was created, use
the new static method to get the load bias.

In BacktraceMap, add a custom iterator so that when code dereferences
a map element, that's when the load bias will be retrieved if it hasn't
already been set.

Bug: 69871050

Test: New unit tests, verify tombstones have non-zero load bias values for
Test: libraries with a non-zero load bias.
Change-Id: I125f4abc827589957fce2f0df24b0f25d037d732
2017-12-05 13:12:47 -08:00
Hao Wang da620dff5f Merge "logd: enhance multiple blocking readers performance"
am: 6740b9697e

Change-Id: Iedd4096dd37d30a605fc8e92b89e5715fc0c4300
2017-12-05 19:54:23 +00:00
Treehugger Robot 6740b9697e Merge "logd: enhance multiple blocking readers performance" 2017-12-05 19:31:21 +00:00
Hao Wang f6e2296953 logd: enhance multiple blocking readers performance
logd suffers performance degradation when multiple blocking
readers connect to it. Each time when the writer thread log
new entries, all of the readers are notified regardless of
which log id they are watching.

In this case, only give notification to the readers who are
actually watching new entries' log id. This decreases logd
CPU consumption by skipping unnecessary LogBuffer::flushTo
loops.

Test: liblog-unit-tests, logd-unit-tests & CtsLiblogTestCases
      logcat-unit-tests
Test: manual:
1.'logcat –b all' at constant heavy logging load level
2.simultaneously 'logcat –b crash' in another session,
   a healthy crash buffer usually keep empty
3.logd CPU consumption doesn't increase after step 2

Change-Id: I4ffc045c9feb7a0998f7e47ae2173f8f6aa28e8a
2017-12-05 18:46:24 +08:00
Christopher Ferris 269bbeef84 Merge "Switch MemoryRemote to use ptrace."
am: ebca57adec

Change-Id: I1729cd0095b2882091328768ce951f785f23fbbf
2017-12-05 01:57:43 +00:00