Commit graph

17284 commits

Author SHA1 Message Date
Dimitry Ivanov
5aa67675f8 linker_asan: Translate absolute dlopen paths to use asan-libraries.
This patch enables absolute path translation to instrumented library
when linker_asan is in use.

Test: adb shell cat /proc/<rlid pid>/maps | grep libril-qc-qmi-1.so
      check that it is mapped from /data/vendor/lib64 and not /vendor/lib64
Bug: http://b/30320104
Change-Id: I3bc24754b192afc0a72d6f3801f7b42141ce715b
2016-08-10 18:49:56 -07:00
Dimitry Ivanov
7e2d49ae3e Check alignment along with range of mapped file fragments
Improve sanity-checks of elf-file by adding alignment check
of mapped sections and section headers.

Bug: http://b/30687964
Change-Id: I7f06ddaa56a13989ce7be847b3a73c352e32c008
2016-08-09 11:07:33 -07:00
Elliott Hughes
8bbcc61b54 Add a test for a known kernel bug.
Bug: http://b/27265969

(cherry picked from commit 4a253496b8)

Change-Id: Ibf0b6457b02e89b90bc86c9367e14021c606356b
2016-08-02 12:31:43 -07:00
Yabin Cui
a36b574011 Force pthread_cond_timedwait_relative_np using CLOCK_MONOTONIC.
Previous patch changed pthread_cond_timedwait_relative_np to use
CLOCK_REALTIME, which causes app compatibility problem. So change
it back to CLOCK_MONOTONIC.

Bug: 30106240
Change-Id: I8e04058e92ede098f4f9f8d133f094001921441e
(cherry picked from commit fe4a4d8f67)
2016-07-14 18:33:23 -07:00
Neil Fuller
8fce5a6558 Update timezone data to 2016f am: 88d23859e0 am: 6c4968a6e7 am: a884aa8df7
am: bc1ce3b828

Change-Id: I7cfc0bb7755fb4c0559c79ec458610a59c398482
2016-07-07 16:07:46 +00:00
Neil Fuller
bc1ce3b828 Update timezone data to 2016f am: 88d23859e0 am: 6c4968a6e7
am: a884aa8df7

Change-Id: I84612c410e4fea54733ed340b6a6695771bba4d9
2016-07-07 16:05:31 +00:00
Neil Fuller
a884aa8df7 Update timezone data to 2016f am: 88d23859e0
am: 6c4968a6e7

Change-Id: I2b7bbc586b55719fd80d985c0972084dd25c7ada
2016-07-07 15:58:57 +00:00
Neil Fuller
6c4968a6e7 Update timezone data to 2016f
am: 88d23859e0

Change-Id: I3d0a9287cad7f6ec39174d58bf78f5c4b7e3d3e8
2016-07-07 15:55:47 +00:00
Neil Fuller
6b2bbc6903 Update timezone data to 2016f
am: 510ac40370

Change-Id: Ifcf36728c70db9432ce3d61bf56355b62a5a5bca
2016-07-06 18:00:26 +00:00
Neil Fuller
88d23859e0 Update timezone data to 2016f
The 2016f release of the tz code and data is available. It reflects the
following changes, which were either circulated on the tz mailing list
or are relatively minor technical or administrative changes:

   Changes affecting future time stamps

     The Egyptian government changed its mind on short notice, and
     Africa/Cairo will not introduce DST starting 2016-07-07 after all.
     (Thanks to Mina Samuel.)

     Asia/Novosibirsk switches from +06 to +07 on 2016-07-24 at 02:00.
     (Thanks to Stepan Golosunov.)

   Changes to past and future time stamps

     Asia/Novokuznetsk and Asia/Novosibirsk now use numeric time zone
     abbreviations instead of invented ones.

   Changes affecting past time stamps

     Europe/Minsk's 1992-03-29 spring-forward transition was at 02:00
not 00:00.
     (Thanks to Stepan Golosunov.)

Note: Paul Eggert changed the key used to sign the tzdata bundle and
the new public key cannot be found. The changes to the data since
2016e have been verified visually.

Change-Id: I30fd2a57fce7473b22ec80f713863ce502293ab9
Test: Ran CTS/android.core.tests.libcore.package.harmony_java_util
Test: Ran CTS/android.core.tests.libcore.package.harmony_java_text
Test: Ran CTS/android.core.tests.libcore.package.libcore
Bug: 29991153
2016-07-06 17:20:05 +00:00
Neil Fuller
510ac40370 Update timezone data to 2016f
The 2016f release of the tz code and data is available. It reflects the
following changes, which were either circulated on the tz mailing list
or are relatively minor technical or administrative changes:

   Changes affecting future time stamps

     The Egyptian government changed its mind on short notice, and
     Africa/Cairo will not introduce DST starting 2016-07-07 after all.
     (Thanks to Mina Samuel.)

     Asia/Novosibirsk switches from +06 to +07 on 2016-07-24 at 02:00.
     (Thanks to Stepan Golosunov.)

   Changes to past and future time stamps

     Asia/Novokuznetsk and Asia/Novosibirsk now use numeric time zone
     abbreviations instead of invented ones.

   Changes affecting past time stamps

     Europe/Minsk's 1992-03-29 spring-forward transition was at 02:00
not 00:00.
     (Thanks to Stepan Golosunov.)

Note: Paul Eggert changed the key used to sign the tzdata bundle and
the new public key cannot be found. The changes to the data since
2016e have been verified visually.

Change-Id: I1767b5d0f7a11349ecd85c1c16942f4d73172dd0
Test: Ran CTS/android.core.tests.libcore.package.harmony_java_util
Test: Ran CTS/android.core.tests.libcore.package.harmony_java_text
Test: Ran CTS/android.core.tests.libcore.package.libcore
Bug: 29984514
2016-07-06 15:26:15 +01:00
Daniel Xie
bec2d19a54 Merge \\\\\\"DO NOT MERGE: push out fix for data dir.\\\\\\" into marshmallow-cts-dev am: f09a2ff2e6 -s ours am: d986ba2659 am: 99a49f5417 am: 9ced3475be am: e8be35da77 -s ours
am: 3593c2fa62

Change-Id: I602665fc0786a47555fb2a2b8d36d0d2127a70e7
2016-06-22 21:43:30 +00:00
Daniel Xie
3593c2fa62 Merge \\\\\"DO NOT MERGE: push out fix for data dir.\\\\\" into marshmallow-cts-dev am: f09a2ff2e6 -s ours am: d986ba2659 am: 99a49f5417 am: 9ced3475be
am: e8be35da77  -s ours

Change-Id: I177ca0c55de3b54bd764f6eddf8749325b6cb3f4
2016-06-22 21:41:07 +00:00
Daniel Xie
e8be35da77 Merge \\\\"DO NOT MERGE: push out fix for data dir.\\\\" into marshmallow-cts-dev am: f09a2ff2e6 -s ours am: d986ba2659 am: 99a49f5417
am: 9ced3475be

Change-Id: Ie4afe19fe05d760ce22246fb98ef9f5a8a8a88d2
2016-06-22 21:38:36 +00:00
Daniel Xie
9ced3475be Merge \\\"DO NOT MERGE: push out fix for data dir.\\\" into marshmallow-cts-dev am: f09a2ff2e6 -s ours am: d986ba2659
am: 99a49f5417

Change-Id: I60161d61084359f0ae74c2fdfd9e75b6af5b24d3
2016-06-22 21:36:06 +00:00
Daniel Xie
99a49f5417 Merge \\"DO NOT MERGE: push out fix for data dir.\\" into marshmallow-cts-dev am: f09a2ff2e6 -s ours
am: d986ba2659

Change-Id: I670ae33ee552d13a25f1071ce042015baf470e22
2016-06-22 21:33:39 +00:00
Daniel Xie
d986ba2659 Merge \"DO NOT MERGE: push out fix for data dir.\" into marshmallow-cts-dev
am: f09a2ff2e6  -s ours

Change-Id: Icdb05b897a4877b86581b41d1dd7d1a14031172b
2016-06-22 21:31:10 +00:00
Daniel Xie
f09a2ff2e6 Merge "DO NOT MERGE: push out fix for data dir." into marshmallow-cts-dev 2016-06-22 21:22:03 +00:00
Daniel Xie
175dd8ac61 DO NOT MERGE: push out fix for data dir.
Change-Id: I97ff02676e7f6008c26ddb5c41eb113b4b62280f
2016-06-22 14:19:01 -07:00
Neil Fuller
1f7d90c9e2 Update timezone data to 2016e am: 930bdf8e8c am: 65f57e4cea am: 6a0a02efab
am: 378eb66e6c

Change-Id: I71ce699be9c888029f0881af5f26d0b005c47d86
2016-06-22 10:48:27 +00:00
Neil Fuller
378eb66e6c Update timezone data to 2016e am: 930bdf8e8c am: 65f57e4cea
am: 6a0a02efab

Change-Id: I4bba4d1fd498cfe5f30d623940ab385a16146ab4
2016-06-22 10:46:09 +00:00
Neil Fuller
6a0a02efab Update timezone data to 2016e am: 930bdf8e8c
am: 65f57e4cea

Change-Id: I8f38716470915ebd3d2f266d4e5a102c44c13263
2016-06-22 10:24:38 +00:00
Neil Fuller
65f57e4cea Update timezone data to 2016e
am: 930bdf8e8c

Change-Id: I85d734d7c7d02f1d999b536745ae8fc323c9b66c
2016-06-22 10:21:57 +00:00
Neil Fuller
d7964b83bd Update timezone data to 2016d am: 8a35704bea -s ours
am: 140a65866f

Change-Id: I96e94a2e9b75f4e6fcbcf0a80a2109a8b9b48039
2016-06-22 09:00:13 +00:00
Neil Fuller
140a65866f Update timezone data to 2016d
am: 8a35704bea  -s ours

Change-Id: I5df7a5c49c79f4a784433a2849f7a01a58f6bf68
2016-06-22 08:57:35 +00:00
Neil Fuller
d398be1e67 Revert \\"Update timezone data to 2016b\\" am: 5ed031daa3 -s ours
am: 371b718a0b

Change-Id: I1bcca4982750ac839c3e69866245aea58c824827
2016-06-22 08:44:25 +00:00
Neil Fuller
371b718a0b Revert \"Update timezone data to 2016b\"
am: 5ed031daa3  -s ours

Change-Id: Ic4a684359f4e73f1c0c91cad12c0762b3eac3b8b
2016-06-22 08:42:07 +00:00
Neil Fuller
8a35704bea Update timezone data to 2016d
This change is effectively a cherry-pick of aosp/master commit:
60200a7411

Changes affecting future time stamps

    America/Caracas switches from -0430 to -04 on 2016-05-01 at 02:30.
    (Thanks to Alexander Krivenyshev for the heads-up.)

    Asia/Magadan switches from +10 to +11 on 2016-04-24 at 02:00.
    (Thanks to Alexander Krivenyshev and Matt Johnson.)

    New zone Asia/Tomsk, split off from Asia/Novosibirsk. It covers
    Tomsk Oblast, Russia, which switches from +06 to +07 on 2016-05-29
    at 02:00.  (Thanks to Stepan Golosunov.)

  Changes affecting past time stamps

    New zone Europe/Kirov, split off from Europe/Volgograd.  It covers
    Kirov Oblast, Russia, which switched from +04/+05 to +03/+04 on
    1989-03-26 at 02:00, roughly a year after Europe/Volgograd made
    the same change.  (Thanks to Stepan Golosunov.)

    Russia and nearby locations had daylight-saving transitions on
    1992-03-29 at 02:00 and 1992-09-27 at 03:00, instead of on
    1992-03-28 at 23:00 and 1992-09-26 at 23:00.  (Thanks to Stepan
    Golosunov.)

    Many corrections to historical time in Kazakhstan from 1991
    through 2005.  (Thanks to Stepan Golosunov.)  Replace Kazakhstan's
    invented time zone abbreviations with numeric abbreviations.

Bug: 29240433
Bug: 29528355
(cherry picked from commit 2880a020e3)

Change-Id: I4353a9689e0a21c459259eb5d488ed177acca848
2016-06-21 11:56:26 +01:00
Neil Fuller
5ed031daa3 Revert "Update timezone data to 2016b"
This reverts commit 7bcee86edc.

This is in preparation for applying the 2016a -> 2016d update
to mnc-dr1.5-dev (commit 2880a020e3)
which cannot currently be applied because the 2016b update is
present in mnc-dr1.5-dev.

Bug: 29528355
2016-06-21 11:43:14 +01:00
Neil Fuller
930bdf8e8c Update timezone data to 2016e
Changes affecting future time stamps

    Africa/Cairo observes DST in 2016 from July 7 to the end of October.
    Guess October 27 and 24:00 transitions. (Thanks to Steffen Thorsen.)
    For future years, guess April's last Thursday to October's last
    Thursday except for Ramadan.

  Changes affecting past time stamps

    Locations while uninhabited now use '-00', not 'zzz', as a
    placeholder time zone abbreviation.  This is inspired by Internet
    RFC 3339 and is more consistent with numeric time zone
    abbreviations already used elsewhere.  The change affects several
    arctic and antarctic locations, e.g., America/Cambridge_Bay before
    1920 and Antarctica/Troll before 2005.

    Asia/Baku's 1992-09-27 transition from +04 (DST) to +04 (non-DST) was
    at 03:00, not 23:00 the previous day.  (Thanks to Michael Deckers.)

Bug: 29354265
Bug: 29240433
Change-Id: I2098aec360bd1ac911e9514fe9dcdf87bdc8778a
2016-06-21 11:30:57 +01:00
Christopher Ferris
9a84d90c75 Make missing public soname error message clear.
If a public library is missing, make it clear that there is no
library with that soname that is missing. This can help diagnose
problems if a library exists, but the library doesn't have the right
soname.

Bug: 29400363
Change-Id: I6e782c76ef892fb18385d720b531e5177598a2b0
2016-06-17 13:46:36 -07:00
Neil Fuller
3293308147 Update timezone data to 2016e
am: 1b0ee2041c

Change-Id: I1ed224fe898c147b0c10373bc811ad5c91643efd
2016-06-16 15:09:41 +00:00
Yabin Cui
8a05740714 Merge "Add test for a pty kernel bug." into nyc-mr1-dev 2016-06-15 21:25:49 +00:00
Yabin Cui
f35c6bc70f Add test for a pty kernel bug.
Bug: 28979140
Change-Id: Iad79fcb7a3c5b068f625c7902785cc6e696fe9a1
2016-06-15 10:59:45 -07:00
Neil Fuller
1b0ee2041c Update timezone data to 2016e
Changes affecting future time stamps

    Africa/Cairo observes DST in 2016 from July 7 to the end of October.
    Guess October 27 and 24:00 transitions. (Thanks to Steffen Thorsen.)
    For future years, guess April's last Thursday to October's last
    Thursday except for Ramadan.

  Changes affecting past time stamps

    Locations while uninhabited now use '-00', not 'zzz', as a
    placeholder time zone abbreviation.  This is inspired by Internet
    RFC 3339 and is more consistent with numeric time zone
    abbreviations already used elsewhere.  The change affects several
    arctic and antarctic locations, e.g., America/Cambridge_Bay before
    1920 and Antarctica/Troll before 2005.

    Asia/Baku's 1992-09-27 transition from +04 (DST) to +04 (non-DST) was
    at 03:00, not 23:00 the previous day.  (Thanks to Michael Deckers.)

Bug: 29354265
Change-Id: Iad332b686410c54277fe8efc83b38a1b5e90aeb2
2016-06-15 14:55:44 +01:00
Neil Fuller
32982bf4bd Update timezone data to 2016d am: 2880a020e3 am: 9958dc9fe8 -s ours am: d9523aac7c
am: 5bdac2156c

Change-Id: I5b508e09b60d17f812f7b85569486dca0c5549ba
2016-06-13 09:31:12 +00:00
Neil Fuller
5bdac2156c Update timezone data to 2016d am: 2880a020e3 am: 9958dc9fe8 -s ours
am: d9523aac7c

Change-Id: I191ed4f9c1088a44e9130683236cba8e7947e132
2016-06-13 09:27:23 +00:00
Neil Fuller
d9523aac7c Update timezone data to 2016d am: 2880a020e3
am: 9958dc9fe8  -s ours

Change-Id: I1cbbea60adebecefa5aa2d80e75e41d9fe4ec4dc
2016-06-13 09:23:04 +00:00
Neil Fuller
9958dc9fe8 Update timezone data to 2016d
am: 2880a020e3

Change-Id: I38ef0c08d2c63a3510b9c80442f85c1f14bf06d0
2016-06-13 09:04:01 +00:00
Neil Fuller
2880a020e3 Update timezone data to 2016d
This change is effectively a cherry-pick of aosp/master commit:
60200a7411

Changes affecting future time stamps

    America/Caracas switches from -0430 to -04 on 2016-05-01 at 02:30.
    (Thanks to Alexander Krivenyshev for the heads-up.)

    Asia/Magadan switches from +10 to +11 on 2016-04-24 at 02:00.
    (Thanks to Alexander Krivenyshev and Matt Johnson.)

    New zone Asia/Tomsk, split off from Asia/Novosibirsk. It covers
    Tomsk Oblast, Russia, which switches from +06 to +07 on 2016-05-29
    at 02:00.  (Thanks to Stepan Golosunov.)

  Changes affecting past time stamps

    New zone Europe/Kirov, split off from Europe/Volgograd.  It covers
    Kirov Oblast, Russia, which switched from +04/+05 to +03/+04 on
    1989-03-26 at 02:00, roughly a year after Europe/Volgograd made
    the same change.  (Thanks to Stepan Golosunov.)

    Russia and nearby locations had daylight-saving transitions on
    1992-03-29 at 02:00 and 1992-09-27 at 03:00, instead of on
    1992-03-28 at 23:00 and 1992-09-26 at 23:00.  (Thanks to Stepan
    Golosunov.)

    Many corrections to historical time in Kazakhstan from 1991
    through 2005.  (Thanks to Stepan Golosunov.)  Replace Kazakhstan's
    invented time zone abbreviations with numeric abbreviations.

Bug: 29240433
Change-Id: I1a5491f01e0aae8b571c1ed1fddc1995086b6812
2016-06-10 13:41:40 +01:00
Dimitry Ivanov
da8bfeae12 Correctly handle the case of empty LD_PRELOAD entries
am: bda20e78f0

* commit 'bda20e78f0f314dbbf0f0bbcf0740cf2d6a4b85e':
  Correctly handle the case of empty LD_PRELOAD entries

Change-Id: I8278e77864b0b85af94e527ec0d34eba052ec13a
2016-05-25 06:53:23 +00:00
Dimitry Ivanov
bda20e78f0 Correctly handle the case of empty LD_PRELOAD entries
Previous android versions ignored empty entries for LD_PRELOAD

Bug: http://b/28936779
Change-Id: I757478fe0c604ee378186511cb13b757fd9a9864
(cherry picked from commit d799b2bb7e)
2016-05-24 16:13:56 -07:00
Dimitry Ivanov
7b703dd104 Fix comments since we are keeping grey-list in N
am: f1d4a49598

* commit 'f1d4a4959880eaf0f9c789c43c1bae383a605d9f':
  Fix comments since we are keeping grey-list in N

Change-Id: If8dff6fe47514a1906720e24a82ed3ea91c25b9d
2016-05-24 15:46:24 +00:00
Dimitry Ivanov
f1d4a49598 Fix comments since we are keeping grey-list in N
Also add warning about removing access to greylisted libs
in the future Android releases.

Bug: http://b/26427993
Change-Id: I1aaa94e3bde09ab0f6594e9170d479cdb3e77d42
2016-05-23 21:52:16 -07:00
Dimitry Ivanov
cf1c8d3663 Merge "Do not resolve caller_ns when it is not needed" into nyc-dev
am: 5b19771009

* commit '5b19771009d4eb6dfc1e560ceff608cc06050137':
  Do not resolve caller_ns when it is not needed

Change-Id: I8a9cff79a15699a9806e26b2efbdbb390280fdf6
2016-05-23 21:09:02 +00:00
TreeHugger Robot
5b19771009 Merge "Do not resolve caller_ns when it is not needed" into nyc-dev 2016-05-23 21:01:18 +00:00
Dimitry Ivanov
3c9624a268 Do not resolve caller_ns when it is not needed
create_namespace resolves caller namespace only
when caller did not explicitly specify parent namespace.

This saves about 25 microseconds for the case when
parent_namepsace is not null (for example when creating
second classloader for the app).

Bug: http://b/28801010
Change-Id: I50ded272c931db701e5a1d8c88ed5ffb13416539
(cherry picked from commit 5240863ed5)
2016-05-23 12:43:57 -07:00
Christopher Ferris
a80d7b751a Change use of /data to /data/local/tmp.
am: 7e53843f7b

* commit '7e53843f7b4c061920d1742c8e70a50509d83a53':
  Change use of /data to /data/local/tmp.

Change-Id: I52700483c25f5386324b57cf8a094b7d565761f8
2016-05-23 19:43:28 +00:00
Christopher Ferris
7e53843f7b Change use of /data to /data/local/tmp.
The unistd fsync/fdatasync were changed to use /data from /.
Unfortunately, this directory is unreadable unless you are root, so
change this path to /data/local/tmp.

Bug: 28885777
Change-Id: Ia88da7a05c8f1b05fbd45ef2e8c55ba0c3368164
2016-05-20 15:32:47 -07:00
Dimitry Ivanov
10b9ae6dbb Merge "Do not check zip-entry validity on create_namespace" into nyc-dev
am: c912ed0519

* commit 'c912ed05196d18b4f9ce0876b52b600437d1b497':
  Do not check zip-entry validity on create_namespace

Change-Id: Icda7971bc067b1dd71b9bc16afaa309c503d9d16
2016-05-19 18:14:00 +00:00