Commit Graph

5404 Commits

Author SHA1 Message Date
android-build-team Robot
b096a34428 Merge "Reset statsd and correctly record the dump reason when system server restarts/crashes." into pi-dev am: ec41a069fd
am: c1d985cf8b

Change-Id: I4df0cd841757ed13a9f7bf0f5bbf4d2df8ff0fb2
2018-05-03 20:15:56 -07:00
android-build-team Robot
c1d985cf8b Merge "Reset statsd and correctly record the dump reason when system server restarts/crashes." into pi-dev
am: ec41a069fd

Change-Id: If18ec5d227a70e070a1a66d9a229de04d986d27f
2018-05-03 20:03:53 -07:00
android-build-team Robot
ec41a069fd Merge "Reset statsd and correctly record the dump reason when system server restarts/crashes." into pi-dev 2018-05-04 02:43:03 +00:00
Yangster-mac
892f3d3229 Reset statsd and correctly record the dump reason when system
server restarts/crashes.

Test: statsd test
BUG: b/79161505
Change-Id: I0646c764964f6eafde91f9ae0179a1c837af320d
2018-05-03 17:05:24 -07:00
Benjamin Miller
a4a2e77d07 Merge "Docs: noted that DISALLOW_INSTALL_APPS prevents DPCs installing apps." into pi-dev am: 297965f29e
am: fa34b6a997

Change-Id: I28703370d34bd16de607a63c0eaabde2ab37cb65
2018-05-03 07:55:47 -07:00
Benjamin Miller
fa34b6a997 Merge "Docs: noted that DISALLOW_INSTALL_APPS prevents DPCs installing apps." into pi-dev
am: 297965f29e

Change-Id: I57d55527a6e6019a3310536df49ee8fb28d8780c
2018-05-03 07:41:48 -07:00
Benjamin Miller
297965f29e Merge "Docs: noted that DISALLOW_INSTALL_APPS prevents DPCs installing apps." into pi-dev 2018-05-03 14:08:54 +00:00
Benjamin Miller
f1c3ed1e81 Docs: noted that DISALLOW_INSTALL_APPS prevents DPCs installing apps.
Bug: 72428023
Test: make ds-docs and inspect output
Change-Id: Ifc31378b7061d10b73de183e3c64864d608975b1
2018-05-03 11:24:44 +00:00
Jeff Sharkey
cbfdfa90ad Merge "Return to modifying raw /mnt/media_rw paths." into pi-dev am: f7d3e028ae
am: 1394fd25ca

Change-Id: If6904b6dc431dab74e326b75f37b58ee3c99feef
2018-05-02 18:10:07 -07:00
Jeff Sharkey
1394fd25ca Merge "Return to modifying raw /mnt/media_rw paths." into pi-dev
am: f7d3e028ae

Change-Id: I61692ebdc49233923863ce773bb42a07498551b0
2018-05-02 14:29:10 -07:00
Jeff Sharkey
f7d3e028ae Merge "Return to modifying raw /mnt/media_rw paths." into pi-dev 2018-05-02 21:14:17 +00:00
Jeff Sharkey
b00d5ea59a Return to modifying raw /mnt/media_rw paths.
We thought we could push everyone through sdcardfs, but secondary
devices mounted in a stable location don't give full write access to
apps holding WRITE_EXTERNAL_STORAGE, so system internals still need
to reach behind sdcardfs.

To keep sdcardfs in the loop about changes that we make behind its
back, we issue access(2) calls which should be enough for it to
invalidate any cached details.

Bug: 74132243
Test: manual
Change-Id: I727cd179a5a825b16ec4df6e2f41a079758d41c5
2018-05-01 10:03:18 -06:00
Makoto Onuki
d2c6d48fba Merge "Log slow message delivery on Looper" into pi-dev am: 14186bfe08
am: d539b18694

Change-Id: I9a5e02f7b18c63e463d6ff3c4c80d74d18ee7a74
2018-04-30 11:13:25 -07:00
Makoto Onuki
d539b18694 Merge "Log slow message delivery on Looper" into pi-dev
am: 14186bfe08

Change-Id: I2fa94b76b01180f28f0a6ecf46daedadee1a81e3
2018-04-30 11:03:23 -07:00
Makoto Onuki
14186bfe08 Merge "Log slow message delivery on Looper" into pi-dev 2018-04-30 17:50:58 +00:00
Makoto Onuki
712886fd97 Log slow message delivery on Looper
Sample log:
04-27 15:30:17.306  1000   942   942 W Looper  : Dispatch took 222ms on main, h=Handler (com.android.server.job.JobSchedulerService$JobHandler) {42042fc} cb=null msg=7 start=48162 end=48384
04-27 15:30:17.306  1000   942   942 W Looper  : Delivery took 235ms on main, h=Handler (com.android.server.job.JobSchedulerService$JobHandler) {42042fc} cb=null msg=4 start=48149 end=48384
04-27 15:30:17.773  1000   942   942 W Looper  : Dispatch took 445ms on main, h=Handler (android.app.ActivityThread$H) {5df4c77} cb=android.app.-$$Lambda$LoadedApk$ReceiverDispatcher$Args$_BumDX2UKsnxLVrE6UJsJZkotuA@badd538 msg=0 start=48406 end=48851
04-27 15:30:17.828  1000   942   942 W Looper  : Drained
04-27 15:30:24.389  1000   942   942 W Looper  : Dispatch took 718ms on main, h=Handler (android.hardware.soundtrigger.SoundTriggerModule$NativeEventHandlerDelegate$1) {d7e9947} cb=null msg=4 start=54749 end=55467
04-27 15:30:24.389  1000   942   942 W Looper  : Delivery took 621ms on main, h=Handler (com.android.server.media.MediaSessionRecord$MessageHandler) {5851574} cb=null msg=7 start=54846 end=55467
04-27 15:30:24.499  1000   942   942 W Looper  : Drained

Bug: 78590632
Test: Boot and check log
Test: setprop log.looper.1000.android.bg 1 and runtime-restart and check log
Change-Id: Ief1fc65b40b8a3d583879f55a76288e3dba6be7d
2018-04-27 17:15:46 -07:00
android-build-team Robot
8d7b81e67f Merge "Expose APIs used by CtsPermissionTestCases" 2018-04-27 18:56:48 +00:00
Robin Lee
d3e83d59cb Merge "Don't suggest writing to /tmp if we already are" 2018-04-27 14:47:32 +00:00
Jake Wharton
c4afa0b5e1 Merge "Expose Parcel read/writeBoolean." 2018-04-27 12:52:52 +00:00
Makoto Onuki
43b9d57ab9 Merge "Fix PersistableBundle C++ -> Java interop" into pi-dev am: 640d4d5f43
am: f29cd1b9b9

Change-Id: Ibcd71263f4d6a32b3961b9eac044cf550c9dd8b8
2018-04-26 19:05:40 -07:00
Makoto Onuki
f29cd1b9b9 Merge "Fix PersistableBundle C++ -> Java interop" into pi-dev
am: 640d4d5f43

Change-Id: I19f22ba45a3dd84f96d395fe95df9081b8d62166
2018-04-26 18:51:52 -07:00
TreeHugger Robot
640d4d5f43 Merge "Fix PersistableBundle C++ -> Java interop" into pi-dev 2018-04-27 01:36:52 +00:00
Makoto Onuki
6bdd4aca96 Fix PersistableBundle C++ -> Java interop
PersistableBundle.java expects items to be sorted by the hash codes
of the keys, but PersistableBundle.cpp isn't compatible to it.

PersistableBundle.java now knowns what was parceled by C++
because it now uses a different magic, and change the unpercel
strategy.

Change-Id: Ia516f80b6d48dcb9f981767e0e64303434f39fb4
Fixes: 65744965
Test: adb shell sm fstrim and check logcat
2018-04-26 16:35:38 -07:00
Jake Wharton
2ffa4314b0 Expose Parcel read/writeBoolean.
Previously the recommendation seemed to be to just call read/writeInt with a ternary, but if that isn't good enough for internal callers then it isn't good enough for external ones. Plus there's tons of StackOverflow questions and "me too"s on a 8-year-old bug. Boolean is sufficiently ubiquitous as a type to warrant a public method.

Bug: 36912353
Test: none
Change-Id: I7fac76d8ea8647b09b87befbcba41f3f0f2de1dc
2018-04-26 18:04:39 -04:00
Mika Raento
c3002d2e78 Merge "Systrace support for NNAPI" am: ecb0302ae9 am: ae359622a6
am: 904e3349a6

Change-Id: I2a543b21868094ca658a67bbcabd97f969bd9e17
2018-04-26 11:35:12 -07:00
Mika Raento
904e3349a6 Merge "Systrace support for NNAPI" am: ecb0302ae9
am: ae359622a6

Change-Id: I7e7ae0ff8560368cdb5719550876ea68630eac84
2018-04-26 11:24:39 -07:00
Alexey Kuzmin
94babdc406 Merge "Default vibration amplitude resolution added" into pi-dev
am: 39cfdf1325

Change-Id: Ib14c3c9cdaf3e9217bcbd6b6238a8840cb11a8cc
2018-04-26 09:54:14 -07:00
Philip P. Moltmann
33115156f9 Expose APIs used by CtsPermissionTestCases
Test: atest CtsPermissionTestCases
Bug: 77604428
Change-Id: Ib5e9b678e98aab86dac90610ed071eb89f14fce9
2018-04-26 09:40:57 -07:00
Alexey Kuzmin
59efe9734e Default vibration amplitude resolution added
Test: On sailfish, set vibration intensity to High, lock the phone and
unlock with FPS. Vibration should be played.
Bug: 76129874

Change-Id: I546341e55fa0e6de0af1d22c8e8e07d67670f0b9
Merged-In: I546341e55fa0e6de0af1d22c8e8e07d67670f0b9
2018-04-26 16:27:06 +01:00
Mika Raento
6a30ff8326 Systrace support for NNAPI
Change-Id: Ie73d28937eba33e2d90f1447f17fd6d8e5719a65
Bug: 78137932
Test: mm
2018-04-26 09:34:12 +01:00
Alexey Kuzmin
55bdc59c53 Default vibration amplitude resolution added
Test: On sailfish, set vibration intensity to High, lock the phone and
unlock with FPS. Vibration should be played.
Bug: 76129874

Change-Id: I546341e55fa0e6de0af1d22c8e8e07d67670f0b9
Merged-In: I546341e55fa0e6de0af1d22c8e8e07d67670f0b9
2018-04-24 15:25:59 +01:00
Jeff Sharkey
c50d08a807 Merge "Extend adoptable override to force on or off." into pi-dev am: 130a2503d8
am: 64a615eefe

Change-Id: Ic80dd00d179adac426daed862236b03936b60bd7
2018-04-20 17:39:45 -07:00
Jeff Sharkey
64a615eefe Merge "Extend adoptable override to force on or off." into pi-dev
am: 130a2503d8

Change-Id: Ic5bb21ec16f4603d87b5b659f041ee0a08b8d039
2018-04-20 17:20:16 -07:00
Jeff Sharkey
901c04270f Extend adoptable override to force on or off.
Virtual disks are adoptable by default, but for debugging purposes
we want to treat them as unadoptable in some cases.  Add the ability
for the "sm" shell command to force on/off, or return to default.

Bug: 77849654, 74132243
Test: manual
Change-Id: Ieda317396624ca081e5dd9568795483f684f9297
2018-04-20 13:11:23 -06:00
Mathew Inwood
427d1cbb24 Merge "StrictMode: fix non-SDK API usage detection." into pi-dev am: c72ee1a4f2
am: 9e2b236462

Change-Id: I2def7ae679f683c22093349ffdab33d9009f20da
2018-04-20 01:30:42 -07:00
Mathew Inwood
9e2b236462 Merge "StrictMode: fix non-SDK API usage detection." into pi-dev
am: c72ee1a4f2

Change-Id: If0db894c3cb9660eb187280cda21423866387799
2018-04-20 01:20:19 -07:00
Mathew Inwood
c72ee1a4f2 Merge "StrictMode: fix non-SDK API usage detection." into pi-dev 2018-04-20 08:04:07 +00:00
Mike Ma
604706d12d Merge "Fix screen on count text dump" into pi-dev am: dd61c7e8e7
am: 7351e73b96

Change-Id: Ia2c306193de81a311950e1770a9b0d0e865ac8f7
2018-04-19 13:40:02 -07:00
Mike Ma
7351e73b96 Merge "Fix screen on count text dump" into pi-dev
am: dd61c7e8e7

Change-Id: Ia2072936a3c02516a4f3add73895ee8e291cdc04
2018-04-19 13:29:13 -07:00
TreeHugger Robot
dd61c7e8e7 Merge "Fix screen on count text dump" into pi-dev 2018-04-19 20:16:28 +00:00
Chong Zhang
5d5eba17c9 Merge "Adjust media.codec process group upon request from mediaserver" into pi-dev am: 3f8884829f
am: cadb0d5ec8

Change-Id: Ic9139ac30319d0dd2afb88a44b3fea81dd4b263d
2018-04-19 11:33:32 -07:00
Chong Zhang
cadb0d5ec8 Merge "Adjust media.codec process group upon request from mediaserver" into pi-dev
am: 3f8884829f

Change-Id: Ib1cc2013127f59af33482c4924faa869b3cb7fb9
2018-04-19 11:22:34 -07:00
TreeHugger Robot
3f8884829f Merge "Adjust media.codec process group upon request from mediaserver" into pi-dev 2018-04-19 17:40:39 +00:00
Mathew Inwood
f7cdcb98c2 Merge "Fail gracefully if we get a bad API whitelist." into pi-dev am: 611443e984
am: 96b2f3ce8b

Change-Id: I2e4fc91b53606f701682e4fad0bb17616cb58d7e
2018-04-19 10:12:17 -07:00
Mathew Inwood
96b2f3ce8b Merge "Fail gracefully if we get a bad API whitelist." into pi-dev
am: 611443e984

Change-Id: I2ead19c8fda255d010aded3884aef0016e1cc74d
2018-04-19 09:43:15 -07:00
Mathew Inwood
d82a743002 StrictMode: fix non-SDK API usage detection.
The warning dedupe logic in the runtime meant that only the first usage of
each API was detected. Disable this logic when DETECT_VM_NON_SDK_API_USAGE
is enabled.

Test: m
Test: $ atest android.os.cts.StrictModeTest#testNonSdkApiUsage
Bug: 78268765
Change-Id: Iba1127b84180b9a5e5eb68abc4691ccad082b80e
2018-04-19 16:18:51 +01:00
Mathew Inwood
9f6bb5b761 Fail gracefully if we get a bad API whitelist.
If we send a bad API whitelist to the Zygote, it causes it to close the
socket. If we take no further action in AMS, it results in the same list
of exceptions being sent when we re-open the socket, resulting in it again
being closed. This results in no longer fork/start any new processes.
Since the list is persisted, this would result in the device entering a
boot loop upon reboot. Since no apps could be started, we cannot recover.

So in the case that the exemptions list causes problems, clear out the
list so we don't try to send it again next time. This means we will see
a single failure, but future attempts will succeed (obviously without
any whitelist). The device should not enter a boot loop.

Note, the test below relies on the fact that we can send at most 1024
arguments in a command to the Zygote (MAX_ZYGOTE_ARGC), and that each
item on the list is a separate argument.

Test: adb shell settings put global hidden_api_blacklist_exemptions \
Test:    $(for i in {1..1025}; do echo -n $i,; done)
Bug: 64382372
Change-Id: Ie47095d516c247ff6a8d667a2ac9b7be45f1acda
2018-04-19 10:12:28 +01:00
Tim Murray
75389eb0f4 Merge "ActivityManagerService: add restricted cpuset" into pi-dev am: a5843ebb59
am: 42cac7be22

Change-Id: I44a3ea55552ef41cbc6b3b367881f6e7d76268c0
2018-04-18 17:12:09 -07:00
Tim Murray
42cac7be22 Merge "ActivityManagerService: add restricted cpuset" into pi-dev
am: a5843ebb59

Change-Id: I1ad95b4e5e4d89efeb0a2836950d7d05cd8cd8d5
2018-04-18 16:59:26 -07:00
Tim Murray
a5843ebb59 Merge "ActivityManagerService: add restricted cpuset" into pi-dev 2018-04-18 23:43:53 +00:00