Commit Graph

37324 Commits

Author SHA1 Message Date
Dan Willemsen abb3521abe Merge "Use target.linux for all linux kernel based targets" am: ab62265fa1
am: f973417005

Change-Id: I6bba9b0849075fe0703032d2c8f258b5ea86547f
2017-10-18 22:56:19 +00:00
Dan Willemsen f973417005 Merge "Use target.linux for all linux kernel based targets"
am: ab62265fa1

Change-Id: I11e4bd0dae56c350a9839f95b1e85bf30490701d
2017-10-18 22:50:48 +00:00
Treehugger Robot ab62265fa1 Merge "Use target.linux for all linux kernel based targets" 2017-10-18 22:46:05 +00:00
Adam Vartanian 1ba5d4ceed Fix integer overflow in utf{16,32}_to_utf8_length am: c17624db31 am: 3065de2c86 -s ours am: c282fe5c2c -s ours am: 47dfd5afee -s ours am: fc4b272afe -s ours am: 069ec60f20 -s ours am: 3c374a2ba7 -s ours am: cee1faef67 -s ours am: 8ecef89ed0 -s ours am: 78a6b7e28c -s ours am: 3560e92125 -s ours am: 173087ab08 -s ours am: e994c06f58 -s ours
am: b0f25534b1  -s ours

Change-Id: I597f2f6a4612dea2a7730510dcc0e5893139eb6c
2017-10-18 22:29:15 +00:00
Adam Vartanian 38ec7354ad Fix integer overflow in utf{16,32}_to_utf8_length am: c17624db31 am: 3065de2c86 -s ours am: c282fe5c2c -s ours am: 47dfd5afee -s ours am: fc4b272afe -s ours am: 069ec60f20 -s ours am: 3c374a2ba7 -s ours am: cee1faef67 -s ours am: 8ecef89ed0 -s ours am: 78a6b7e28c -s ours am: 3560e92125 -s ours am: 173087ab08 -s ours
am: e994c06f58  -s ours

Change-Id: I0c2f32aa16674d507f7d0a3e1c5be6e6f3e70e4c
2017-10-18 21:54:34 +00:00
Adam Vartanian b0f25534b1 Fix integer overflow in utf{16,32}_to_utf8_length am: c17624db31 am: 3065de2c86 -s ours am: c282fe5c2c -s ours am: 47dfd5afee -s ours am: fc4b272afe -s ours am: 069ec60f20 -s ours am: 3c374a2ba7 -s ours am: cee1faef67 -s ours am: 8ecef89ed0 -s ours am: 78a6b7e28c -s ours am: 3560e92125 -s ours am: 173087ab08 -s ours
am: e994c06f58  -s ours

Change-Id: I0e588479e79aa0891b242491f59c0e242ca8b77b
2017-10-18 21:54:03 +00:00
Tom Cherry 5d7b55bc69 init: add extra std::move
This is meant to be copy-and-move, but I forgot the move.

Test: build
Change-Id: I755ad0d99624dc0ae419ad9ed3ae6d0e017b27c5
2017-10-18 14:52:33 -07:00
Tom Cherry fa3e52c64a init: wait_for_prop shouldn't run in a subcontext
wait_for_prop sets a flag that prevents the action queue from
continuing while otherwise allowing init's main loop to continue
executing.  This cannot be done from a subcontext, so it's moved to
normal init.

All property functions need work in any case, particularly once
property_service is moved out of init.

Bug: 62875318
Test: boot sailfish and see that the previous failure related to this
      is fixed

Change-Id: Ib9e0d0bdbd0ff22ab0e5c3fe6db620700af266c6
2017-10-18 14:42:27 -07:00
Adam Vartanian e994c06f58 Fix integer overflow in utf{16,32}_to_utf8_length am: c17624db31 am: 3065de2c86 -s ours am: c282fe5c2c -s ours am: 47dfd5afee -s ours am: fc4b272afe -s ours am: 069ec60f20 -s ours am: 3c374a2ba7 -s ours am: cee1faef67 -s ours am: 8ecef89ed0 -s ours am: 78a6b7e28c -s ours am: 3560e92125 -s ours
am: 173087ab08  -s ours

Change-Id: Ic3204d08df1ec43c937734adb24bf0a28f5f03e9
2017-10-18 21:34:11 +00:00
Adam Vartanian 173087ab08 Fix integer overflow in utf{16,32}_to_utf8_length am: c17624db31 am: 3065de2c86 -s ours am: c282fe5c2c -s ours am: 47dfd5afee -s ours am: fc4b272afe -s ours am: 069ec60f20 -s ours am: 3c374a2ba7 -s ours am: cee1faef67 -s ours am: 8ecef89ed0 -s ours am: 78a6b7e28c -s ours
am: 3560e92125  -s ours

Change-Id: I88512d980696ecd2997f515959d1fd772d98b7fd
2017-10-18 21:03:51 +00:00
Adam Vartanian 3560e92125 Fix integer overflow in utf{16,32}_to_utf8_length am: c17624db31 am: 3065de2c86 -s ours am: c282fe5c2c -s ours am: 47dfd5afee -s ours am: fc4b272afe -s ours am: 069ec60f20 -s ours am: 3c374a2ba7 -s ours am: cee1faef67 -s ours am: 8ecef89ed0 -s ours
am: 78a6b7e28c  -s ours

Change-Id: Ibf9e0a5b62304069c3d88742e1215b9783435391
2017-10-18 20:41:31 +00:00
Adam Vartanian 78a6b7e28c Fix integer overflow in utf{16,32}_to_utf8_length am: c17624db31 am: 3065de2c86 -s ours am: c282fe5c2c -s ours am: 47dfd5afee -s ours am: fc4b272afe -s ours am: 069ec60f20 -s ours am: 3c374a2ba7 -s ours am: cee1faef67 -s ours
am: 8ecef89ed0  -s ours

Change-Id: I6c41a1c752c8ab8437e39fb4b8b269731551a397
2017-10-18 20:27:38 +00:00
Adam Vartanian 8ecef89ed0 Fix integer overflow in utf{16,32}_to_utf8_length am: c17624db31 am: 3065de2c86 -s ours am: c282fe5c2c -s ours am: 47dfd5afee -s ours am: fc4b272afe -s ours am: 069ec60f20 -s ours am: 3c374a2ba7 -s ours
am: cee1faef67  -s ours

Change-Id: I98ed8072c558f9ebbd402972ee4c22d246f094b9
2017-10-18 20:08:00 +00:00
Adam Vartanian cee1faef67 Fix integer overflow in utf{16,32}_to_utf8_length am: c17624db31 am: 3065de2c86 -s ours am: c282fe5c2c -s ours am: 47dfd5afee -s ours am: fc4b272afe -s ours am: 069ec60f20 -s ours
am: 3c374a2ba7  -s ours

Change-Id: Idb3aea9f746535f39b6abe64339c30697473d488
2017-10-18 19:41:22 +00:00
Adam Vartanian 3c374a2ba7 Fix integer overflow in utf{16,32}_to_utf8_length am: c17624db31 am: 3065de2c86 -s ours am: c282fe5c2c -s ours am: 47dfd5afee -s ours am: fc4b272afe -s ours
am: 069ec60f20  -s ours

Change-Id: Ie233d2faf274e1437317fb219d3b710a0e42b8e7
2017-10-18 19:28:58 +00:00
Adam Vartanian 069ec60f20 Fix integer overflow in utf{16,32}_to_utf8_length am: c17624db31 am: 3065de2c86 -s ours am: c282fe5c2c -s ours am: 47dfd5afee -s ours
am: fc4b272afe  -s ours

Change-Id: I2bece4ef56298aadb757fbdfdb97f7e52554cdba
2017-10-18 19:23:25 +00:00
Christopher Ferris df470cd7c5 Merge "Fix setting of map_offset in frame data." am: 8158d708c3 am: 57638bf967
am: edf2d46e1c

Change-Id: I93c2fa1384255cbb311f0c246d37cd16cae84d7a
2017-10-18 19:15:30 +00:00
Adam Vartanian fc4b272afe Fix integer overflow in utf{16,32}_to_utf8_length am: c17624db31 am: 3065de2c86 -s ours am: c282fe5c2c -s ours
am: 47dfd5afee  -s ours

Change-Id: I07a4521a0c2b99e71b41b26294be5b9cf1c8b817
2017-10-18 19:00:44 +00:00
Adam Vartanian 47dfd5afee Fix integer overflow in utf{16,32}_to_utf8_length am: c17624db31 am: 3065de2c86 -s ours
am: c282fe5c2c  -s ours

Change-Id: I2b2da216b1525f40785a132ec51b59e44e1ebbd8
2017-10-18 18:41:28 +00:00
Adam Vartanian c282fe5c2c Fix integer overflow in utf{16,32}_to_utf8_length am: c17624db31
am: 3065de2c86  -s ours

Change-Id: I36daba675eb298da120301c6c5ebf7f853bc704e
2017-10-18 18:31:04 +00:00
Christopher Ferris edf2d46e1c Merge "Fix setting of map_offset in frame data." am: 8158d708c3
am: 57638bf967

Change-Id: I85bf0ab467906445e886171f822c8a40185edea5
2017-10-18 18:26:17 +00:00
Christopher Ferris 57638bf967 Merge "Fix setting of map_offset in frame data."
am: 8158d708c3

Change-Id: I14c4f2cd4273c5434226ea9765ca74a30bf69630
2017-10-18 18:07:29 +00:00
Christopher Ferris 8158d708c3 Merge "Fix setting of map_offset in frame data." 2017-10-18 16:01:25 +00:00
Christopher Ferris c5a3baa5e3 Fix setting of map_offset in frame data.
The old code set the map_offset from elf_offset, but it should have used
offset. Without this change, frame data is not properly shown for shared
libraries in an apk.

Add new unit test to verify that map_offset is set properly.

Test: Ran new unit tests.
Change-Id: I2fe5abda23a5de51c8fcf9361ba9350b80446f15
2017-10-17 18:42:03 -07:00
Elliott Hughes a3524a255f resolve merge conflicts of 796987482 to stage-aosp-master am: bb5ec4a926
am: 314ddcd9a3

Change-Id: I4fee960013f5539d85613eb09e365ee580ed1745
2017-10-17 21:57:49 +00:00
Elliott Hughes 314ddcd9a3 resolve merge conflicts of 796987482 to stage-aosp-master
am: bb5ec4a926

Change-Id: I8a282d88232a5cdcf6ffc3406c4f3c7607e20daf
2017-10-17 21:40:12 +00:00
Elliott Hughes bb5ec4a926 resolve merge conflicts of 796987482 to stage-aosp-master
Test: I solemnly swear I tested this conflict resolution.
Change-Id: Ica884c137c5f21e261600b2b011ab963036c0cdb
2017-10-17 12:36:14 -07:00
Treehugger Robot 796987482f Merge "<stdbool.h> not necessary in C++." 2017-10-17 19:26:53 +00:00
Elliott Hughes a0f73f9bff <stdbool.h> not necessary in C++.
Bug: N/A
Test: builds
Change-Id: I1f32b202e353414e74ace87a7d5b495b5deb5f99
Merged-In: I1f32b202e353414e74ace87a7d5b495b5deb5f99
2017-10-17 16:21:33 +00:00
Tom Cherry 486dc4a497 Merge "Only allow UTF8 encoded property values" am: 4ff2607ef7 am: 9c767212eb
am: fccffc8645

Change-Id: I0957c2c71a4deb72a0e41db971a416369c9d03b4
2017-10-17 16:20:58 +00:00
Tom Cherry fccffc8645 Merge "Only allow UTF8 encoded property values" am: 4ff2607ef7
am: 9c767212eb

Change-Id: Id6570217d27846113e71a717369513f5e386b836
2017-10-17 16:18:55 +00:00
Tom Cherry 9c767212eb Merge "Only allow UTF8 encoded property values"
am: 4ff2607ef7

Change-Id: Ib83ef796bfaaa30dfda36937dfe6be4dac878346
2017-10-17 16:17:21 +00:00
Tom Cherry 4ff2607ef7 Merge "Only allow UTF8 encoded property values" 2017-10-17 16:12:34 +00:00
Steven Moreland e930ffcf5f Add vendor_available to liblog_headers.
am: 0567c0e386  -s ours

Change-Id: Ie5fde928b3afa12bef8e2c899445634d85d11d6a
2017-10-17 08:12:17 +00:00
Steven Moreland 0664c9d33b libutils: liblog export headers
am: c956b182e5  -s ours

Change-Id: I7a994f34c2cca9217cdb351cbdfaf42460b19256
2017-10-17 08:11:55 +00:00
Steven Moreland 0567c0e386 Add vendor_available to liblog_headers.
Renamed NDK headers to "liblog_ndk_headers"
(these names aren't used anywhere).

libutils_headers now properly export liblog_headers.

Test: with BOARD_VNDK_VERSION=current
Merged-In: I3a85385f588b84393c57fd6d1bcac620f708f0f1
Change-Id: I3a85385f588b84393c57fd6d1bcac620f708f0f1
(cherry picked from commit 42b485cc53)
2017-10-17 08:02:20 +00:00
Steven Moreland c956b182e5 libutils: liblog export headers
- make liblog dependency for all library builds (this is required
    for files like String8.cpp)
- export liblog headers (because they are used in many header files).

Test: less libraries fail with BOARD_VNDK_VERSION := current
Merged-In: Iecb9cd00deb3a9056ea63c4a087afdb80a51a2b8
Change-Id: Iecb9cd00deb3a9056ea63c4a087afdb80a51a2b8
(cherry picked from commit 43e20cac7b)
2017-10-17 08:01:48 +00:00
Steven Moreland 36763aebd4 Add vendor_available to liblog_headers. am: 95d7cbb77a -s ours
am: a9f9294831  -s ours

Change-Id: I9e27513c8fbdd9413381dc51fe49f57fe74ad4b3
2017-10-17 05:48:53 +00:00
Steven Moreland c0fae5affb libutils: liblog export headers am: 1f64241e2d -s ours
am: dd18cd644b  -s ours

Change-Id: I8a0263ecd434f8e4298cf9d8aa58c0ed036dfdab
2017-10-17 05:48:31 +00:00
Steven Moreland a9f9294831 Add vendor_available to liblog_headers.
am: 95d7cbb77a  -s ours

Change-Id: I57a52ccee03c437408132d7b9bc5e6741b7c48f0
2017-10-17 04:03:13 +00:00
Steven Moreland dd18cd644b libutils: liblog export headers
am: 1f64241e2d  -s ours

Change-Id: I290c4d233c3d78c2f9e8c1387b18130f23915d9c
2017-10-17 04:03:02 +00:00
Dan Willemsen bdddcab3bd Use target.linux for all linux kernel based targets
Now in Android.bp files, target.linux applies to all targets running a
linux kernel (android, linux_glibc, linux_bionic). So common
flags/sources/etc can be combined instead of copying them to each
target.

Test: m
Change-Id: If7ad138ea1c540c160731f86b6ccc0daa5c69b83
2017-10-16 20:55:39 -07:00
Steven Moreland 95d7cbb77a Add vendor_available to liblog_headers.
Renamed NDK headers to "liblog_ndk_headers"
(these names aren't used anywhere).

libutils_headers now properly export liblog_headers.

Test: with BOARD_VNDK_VERSION=current
Merged-In: I3a85385f588b84393c57fd6d1bcac620f708f0f1
Change-Id: I3a85385f588b84393c57fd6d1bcac620f708f0f1
(cherry picked from commit 42b485cc53)
2017-10-17 12:09:50 +09:00
Steven Moreland 1f64241e2d libutils: liblog export headers
- make liblog dependency for all library builds (this is required
    for files like String8.cpp)
- export liblog headers (because they are used in many header files).

Test: less libraries fail with BOARD_VNDK_VERSION := current
Merged-In: Iecb9cd00deb3a9056ea63c4a087afdb80a51a2b8
Change-Id: Iecb9cd00deb3a9056ea63c4a087afdb80a51a2b8
(cherry picked from commit 43e20cac7b)
2017-10-17 12:08:33 +09:00
Tom Cherry 8702dcb992 Only allow UTF8 encoded property values
Java already restricts properties to only UTF8 valid strings, and
this change makes this restriction also apply to all native code.

Bug: 63177684
Test: new unit tests
Change-Id: I9fa0ecc0da066b0a026db3497c0f0cbf3f5c2d5a
2017-10-16 22:35:33 +00:00
Jiyong Park b7d92c4b96 libbacktrace is not directly available to vendors
This lib becomes VNDK-SP just because libutils, which is VNDK-SP, is
depending on it. Since libutils provide android::CallStack class for
collecting and printing the callstack, there is no need for vendors to
use the internal libbacktrace library. Thus the lib is marked as
vendor_available: false.

Bug: 64730695
Test: build 2017 pixel device
Change-Id: I4ad91e3a6747bb0ae88d32cd26dfba32239c5b93
2017-10-16 11:35:02 +09:00
Jae Shin de74bbe264 Merge "libkeymaster1 split" am: 06254de12a -s ours am: 876c7be912 -s ours
am: 6c3bdb8848  -s ours

Change-Id: I2c020d97a120652b0815646f059725f6f402476b
2017-10-16 01:41:54 +00:00
Jae Shin 6c3bdb8848 Merge "libkeymaster1 split" am: 06254de12a -s ours
am: 876c7be912  -s ours

Change-Id: I81a0531525ebb1e0ce6870a4f46b8128a940ebb2
2017-10-16 01:37:48 +00:00
Jae Shin 876c7be912 Merge "libkeymaster1 split"
am: 06254de12a  -s ours

Change-Id: I4dd806771c3052bd1fe48206aebf2066930f994b
2017-10-16 01:33:07 +00:00
Jae Shin 06254de12a Merge "libkeymaster1 split" 2017-10-16 01:29:29 +00:00