Commit Graph

9907 Commits

Author SHA1 Message Date
Andreas Gampe
27799c5f83 Merge "Zygote: Load system server code early" am: f039816600
am: 782ae5139d

Change-Id: I82e6879aec4c55c806c3b512a813253cb122b656
2019-03-19 15:05:42 -07:00
Andreas Gampe
782ae5139d Merge "Zygote: Load system server code early"
am: f039816600

Change-Id: I0a2895b64d3a505c3de8e6dfe24a861cc1e38fec
2019-03-19 14:49:48 -07:00
Andreas Gampe
6b6f96de15 Zygote: Load system server code early
In an effort to allow loading integrity-checked artifacts from
the dalvik-cache, attempt to create and cache the system server's
classloader early, while still being in the system_server_startup
selinux domain.

The advantage of this approach is that allowances for loading
from the cache are restricted to startup.

Bug: 128688902
Test: m
Test: Device boots, picks up /system artifacts
Test: Device boots, picks up integrity-checked /data artifacts
Merged-In: If4a75fa106db09f1bd666d6d8df7ac3ac3e35a8c
Change-Id: If4a75fa106db09f1bd666d6d8df7ac3ac3e35a8c
2019-03-19 10:41:32 -07:00
Nikita Ioffe
36abd0a7e8 Merge "Add a whitelist to control packages that can use Bugreporting API" am: 17492d0691
am: e54c0344de

Change-Id: I8545743ebce6206b2b8d747eb252a31282bc86cf
2019-03-14 03:34:30 -07:00
Nikita Ioffe
e54c0344de Merge "Add a whitelist to control packages that can use Bugreporting API"
am: 17492d0691

Change-Id: If224c6522c89c53cb1d5e72a55d5aa051a4e0d02
2019-03-14 03:23:08 -07:00
Nikita Ioffe
ee4d7be219 Add a whitelist to control packages that can use Bugreporting API
Test: checked SecurityException is thrown for my custom app
Test: whiltelisted my custom app, checked no SecurityException is thrown
Bug: 126541701
Change-Id: Id0b61ccc1adf40bcb455d3b59b640f4b160bdd84
Merged-In: Id0b61ccc1adf40bcb455d3b59b640f4b160bdd84
(cherry picked from commit 07964b49ac)
2019-03-13 17:01:56 +00:00
Ganesh Mahendran
289ccbd48d Merge "continue read file when returned count > 0" am: 894c578a02
am: 2a82e9a69c

Change-Id: I2880bdc9157996d30472e3eddb714c498b14e66b
2019-03-13 01:15:04 -07:00
Ganesh Mahendran
2a82e9a69c Merge "continue read file when returned count > 0"
am: 894c578a02

Change-Id: I43f5be6a4b365e2e7ea11ae413860d9cb0c37949
2019-03-13 00:59:30 -07:00
Treehugger Robot
894c578a02 Merge "continue read file when returned count > 0" 2019-03-13 07:36:51 +00:00
Kiyoung Kim
82ce8e4176 Merge "Schematize Crypto state system property" am: 88b57a2c4d
am: d5f216ac8b

Change-Id: I38fa65ef0864d8a40eb7546ad50ab254e7e0ec25
2019-03-12 22:08:25 -07:00
Kiyoung Kim
d5f216ac8b Merge "Schematize Crypto state system property"
am: 88b57a2c4d

Change-Id: Idb96ab95b1ea69a636f315edeb84c8ba025d75bd
2019-03-12 21:33:34 -07:00
Treehugger Robot
88b57a2c4d Merge "Schematize Crypto state system property" 2019-03-13 01:30:58 +00:00
Kiyoung Kim
453a487b29 Merge "Add product apk support from libnativeloader" am: 307df45b5f
am: ad0ca523a6

Change-Id: I896f609e4994eb6b0494e3fcf38737c4a69352a8
2019-03-12 02:14:20 -07:00
Kiyoung Kim
ad0ca523a6 Merge "Add product apk support from libnativeloader"
am: 307df45b5f

Change-Id: I1f9c9e63c1cf7477436b8bc38e5e62e075183c64
2019-03-12 02:05:13 -07:00
Kiyoung Kim
5cba0cff2c Add product apk support from libnativeloader
Currently libnativeloader appends vendor lib path if apk is from vendor
partition. Similar to this we should add product lib path if apk if from product partition.

Bug: 124705551
Test: m -j && tested from crosshatch with product apps (such as Wallpaper)
Change-Id: Ic85b16e8e4484a35c659c16e067f1e7c7285d05e
Merged-In: Iaa8d0ea61b1b9ab8a1da676a492f75c6a5d71d5d
2019-03-11 11:42:28 +09:00
Bernie Innocenti
6f6fc40839 Merge "Add junyulai@ as owner of the core networking dirs" am: e5e3ac639b
am: b0498ba448

Change-Id: Ic47555bcaf336a09f6e79fd570e93bc665bb7714
2019-03-08 08:58:44 -08:00
Bernie Innocenti
b0498ba448 Merge "Add junyulai@ as owner of the core networking dirs"
am: e5e3ac639b

Change-Id: I06cca33e638baf671b891eb0c20b4c8f439eda2e
2019-03-08 07:50:29 -08:00
Chalard Jean
ff3d9bb029 Merge "Support VPN Proxy(1/2)" am: 65087f4705
am: ba4a9abe35

Change-Id: Ie17bfbc464ee72ef5c6a075b15ecd59c405f3d7a
2019-03-08 07:44:13 -08:00
Bernie Innocenti
e5e3ac639b Merge "Add junyulai@ as owner of the core networking dirs" 2019-03-08 15:21:01 +00:00
Chalard Jean
ba4a9abe35 Merge "Support VPN Proxy(1/2)"
am: 65087f4705

Change-Id: I51a716d1ee6b85bef347164061d1c12183612f50
2019-03-08 06:42:23 -08:00
Bernie Innocenti
ea89cf2c6e Add junyulai@ as owner of the core networking dirs
Also removed emeritus accounts ek@ and silberst@ from various places.
A cleanup using 'include' would probably be in order...

Test: N/A
Change-Id: I575e60dd5e600e42d9571ce8e8d7661d30e99bfe
2019-03-08 13:04:05 +00:00
Chalard Jean
65087f4705 Merge "Support VPN Proxy(1/2)" 2019-03-08 00:34:25 +00:00
Andrei-Valentin Onea
438ec44268 Merge "Add @UnsupportedAppUsage annotations" am: 842e3aa420
am: 20ebeb61a9

Change-Id: Ibcbbe37ffd476ea414a1041c015b8267a46a5402
2019-03-06 10:07:46 -08:00
Andrei-Valentin Onea
20ebeb61a9 Merge "Add @UnsupportedAppUsage annotations"
am: 842e3aa420

Change-Id: Ie3bc96e663223de383be59cb764f139f459c5a67
2019-03-06 09:46:00 -08:00
Andrei Onea
cf1a82953b Add @UnsupportedAppUsage annotations
For packages:
  com.android.internal.app
  com.android.internal.appwidget
  com.android.internal.location
  com.android.internal.os
  com.android.internal.policy
  com.android.internal.statusbar
  com.android.internal.telecom
  com.android.internal.telephony
  com.android.internal.widget

This is an automatically generated CL. See go/UnsupportedAppUsage
for more details.

Exempted-From-Owner-Approval: Mechanical changes to the codebase
which have been approved by Android API council and announced on
android-eng@

Bug: 110868826
Test: m
Merged-In: I6eba34467b2492047e5264684312adfa029eb317
Change-Id: I413c4b6dd12bcf40b69423718ed278cbefe82087
2019-02-28 17:01:29 +00:00
Kiyoung Kim
0b434967fb Schematize Crypto state system property
Properties accessed across partitions are now schematized and will
become APIs to make explicit interfaces among partitions.

Bug: 117924132
Test: m -j
Change-Id: I968b342fdd0b8c30405611e53aca2479784636d7
Merged-In: Id36208fac5d4de062a51d541b64145560242f8fc
2019-02-26 14:26:26 +09:00
Takayuki, Ogura
5ad260d087 Support VPN Proxy(1/2)
Use VPN Proxy if it is set in VPN Settings

Bug: 118793208
Test: runTest
Change-Id: Ib58685fe3afc6e0279f6abe762e9adabd6ea6ccc
2019-02-26 10:53:33 +09:00
Sudheer Shanka
0a356c724b Merge "Fix potential crash when per-procstate cpu times tracking is turned on." am: daddc5bb50
am: 38bbdb4de8

Change-Id: Ida95dd9ea6974d5a9c5b96d1cf9075fa6c2b5334
2019-02-25 09:56:20 -08:00
Sooraj Sasindran
0acab502a0 Merge "Allow UiAutomation to adopt the shell permission indentity" am: 9f0115bb6e
am: 178684530b

Change-Id: If21a26f16b8c88f1dab56ac7fa7a804a1e9077b0
2019-02-25 09:25:50 -08:00
Xin Li
f90d07b1b3 Merge "DO NOT MERGE - Merge pi-dev@5234907 into stage-aosp-master" into stage-aosp-master 2019-02-23 00:39:16 +00:00
Sudheer Shanka
daddc5bb50 Merge "Fix potential crash when per-procstate cpu times tracking is turned on." 2019-02-22 01:24:03 +00:00
Sooraj Sasindran
9f0115bb6e Merge "Allow UiAutomation to adopt the shell permission indentity" 2019-02-22 00:41:29 +00:00
Xin Li
b455c3a7f3 DO NOT MERGE - Merge pi-dev@5234907 into stage-aosp-master
Bug: 120848293
Change-Id: I2f9a524f2ba552de3f62e343075cf0abf400bbae
2019-02-21 16:02:06 -08:00
Svet Ganov
c2841ec7fe Allow UiAutomation to adopt the shell permission indentity
For testing we often need to run shell commands. This can be done
today via running a shell command from an instrumentation test
started from the shell. However, this requires adding shell commands
which are not in the API contract, involve boilerplate code, require
string parsing, etc.

This change allows an instrumentation started from the shell to
adopt the shell UID permission state. As a result one can call APIs
protected by permissions normal apps cannot get by are granted to
the shell. This enables adding dedicated test APIs protected by
signatures permissions  granted to the shell.

Test: cts-tradefed run cts-dev -m CtsUiAutomationTestCases
          -t android.app.uiautomation.cts.UiAutomationTest#testAdoptShellPermissions

bug:80415658

Merged-In: I4bfd4b475225125512abf80ea98cd8fcacb6a1be
Change-Id: I4bfd4b475225125512abf80ea98cd8fcacb6a1be
2019-02-21 19:59:14 +00:00
Kiyoung Kim
2969a3f40f Merge "Schematize Crypto system properties" am: 03c14760a5
am: f7b3bdb53b

Change-Id: I47bbcec88d71840827653e9a70d91bf442ba1c22
2019-02-20 17:06:21 -08:00
Kiyoung Kim
03c14760a5 Merge "Schematize Crypto system properties" 2019-02-21 00:16:45 +00:00
Christian Wailes
49574608ae Merge "Updated Zygote IPC related comments." am: f8881b6821
am: c850654edc

Change-Id: I15a33cdf792727f58b3d89d86ccf454536737868
2019-02-20 16:12:40 -08:00
Lucas Dupin
b53be1d28c Merge "Improve the performance when loading image wallpaper colors" into pi-dev
am: 98684aa82a

Change-Id: I4ff2e38dc3f40ccf6289ffbee69eed23c96fa4dc
2019-02-20 12:43:52 -08:00
Chris Wailes
b13bfc5682 Updated Zygote IPC related comments.
Bug: 124637285
Test: None; comment only changes
Change-Id: Ie567715a1ee08cdf65e3135aa75e3bd95ef5ab0d
2019-02-20 11:19:54 -08:00
Xin Li
4ba3b12efb Merge changes from topic "PPRL.190205.001"
* changes:
  Fix merge problems with cherry-picking "Add notification settings to backup&restore" change into pi-dev
  DO NOT MERGE - Merge PPRL.190205.001 into master
2019-02-20 16:25:58 +00:00
Andrei-Valentin Onea
98b52faf43 Merge "Use sampled value in hidden api logger" am: 619ed85e81
am: 818e8c1bf2

Change-Id: I2cb5ac6bfae6cc98398688a4b5695260a863578a
2019-02-20 07:15:07 -08:00
Andrei-Valentin Onea
818e8c1bf2 Merge "Use sampled value in hidden api logger"
am: 619ed85e81

Change-Id: Ib6ff5b5aa75d1b35bf91748f260bab14aa6eabab
2019-02-20 07:04:44 -08:00
Andrei-Valentin Onea
619ed85e81 Merge "Use sampled value in hidden api logger" 2019-02-20 14:49:10 +00:00
Adrian Roos
381584a50b Merge "Fix potential memory leak in SomeArgs" am: 8a71e01423
am: 17f5ae9e26

Change-Id: I3e8c2c3f2e6cf0e119b1c6dcc1249096ea538e8c
2019-02-20 05:18:06 -08:00
Adrian Roos
17f5ae9e26 Merge "Fix potential memory leak in SomeArgs"
am: 8a71e01423

Change-Id: I007ff55f39a3239c530c30306409b498ac066801
2019-02-20 05:03:59 -08:00
Andrei Onea
3513d3c8b0 Use sampled value in hidden api logger
The hidden api logger interface also receives the actual sampled value.
This is an intermediate step before a new logging method is added.

Test: m
Bug: 119217680

(cherry picked from commit 31bde16393)

Change-Id: I3345bdcdf57e1f60970c85572e503d7b33af7148
Merged-In: I707a2624a254a80391cdae277dd59daa503d055f
2019-02-20 12:56:52 +00:00
Bin Chen
5f0521e3b9 Fix potential memory leak in SomeArgs
When recycling SomeArgs in pool, some fields are not set to null.
Which result potential memory leak as SomeArgs in pool still holds
the reference object.
To fix this issue, clear all args when recycling.

Change-Id: Ie730c3889da948c60ef746ddbe2e926d94ad7e06
Signed-off-by: Bin Chen <bin0515@gmail.com>
Signed-off-by: Wei Huang <hwbest.v@gmail.com>
2019-02-20 17:40:02 +08:00
wilsonshih
5abc71b27b Improve the performance when loading image wallpaper colors
When SystemUI start up, ColorExtractor will get wallpaper colors so
status bar can use it to update theme, however, this will also block
SystemUI start up process if the wallpaper is image wallpaper.
In order to break the latency, we can extract getWallpaperColors
method from ColorExtractor's contructor, and do it at another thread,
so it won't block SystemUI start up.

Bug: 124279857
Test: atest ColorExtractorTest
Test: Manual test change theme feature can work normally.
Merged-In: I8589b28a17b0a2b33b4bbbda2265080af983f26a
Change-Id: I8589b28a17b0a2b33b4bbbda2265080af983f26a
2019-02-19 16:57:59 +00:00
Raj Mamadgi
03549b860a Merge "Fix for testLifecycleOnMoveToFromSplitScreenRelaunch" am: 43d11758fa
am: 0f174795e4

Change-Id: Ie32376993dcc8b06f3d2254d6aecdb9a4f843236
2019-02-18 18:22:41 -08:00
Raj Mamadgi
0f174795e4 Merge "Fix for testLifecycleOnMoveToFromSplitScreenRelaunch"
am: 43d11758fa

Change-Id: I6b248297523070983c63b5dd870e235eea5ee59c
2019-02-18 18:13:45 -08:00