Lee Shombert
be4b6a53c1
Work-around for system property failures
...
Bug: 236932163
This change adds a work-around to PropertyInvalidatedCache for
failures to set a system property. Such failures cause fatal crashes
in Android but it is believed that a simple retry will succeed.
(Note: the failures have only been reported on partner devices and
cannot be reproduced on Pixel phones, so no root-cause is available
yet.)
RuntimeExceptions (thrown from android_os_SystemProperties.cpp) are
caught and retried. The retry limit is 5 times with a 200ms delay
between attempts. This means that the maximum delay is 1s, whcih
should avoid triggering an ANR.
In addition to automated testing, a manual test was created with
ambush code in the system property component of libc. The ambush code
injected an error into the set-property logic for cache keys. It was
observed that the system recovered properly.
Test: atest:
* FrameworksCoreTests:PropertyInvalidatedCacheTests
* FrameworksCoreTests:IpcDataCacheTest
Change-Id: I3a124b185c7499a45b27df7cbf889ae6d1d33377
(cherry picked from commit 9b0f81025c )
2022-08-10 16:35:54 +00:00
..
2022-06-20 17:10:01 +00:00
2022-03-29 13:09:03 -07:00
2022-02-16 05:24:07 +00:00
2022-05-11 11:40:39 +00:00
2022-03-10 00:15:35 +00:00
2022-01-04 08:13:59 -08:00
2022-02-14 14:51:12 +08:00
2022-01-19 11:13:18 +00:00
2022-03-18 22:15:09 +00:00
2022-07-14 00:07:17 +00:00
2022-03-30 22:33:28 -04:00
2021-12-02 15:33:46 -08:00
2022-05-11 21:07:03 +00:00
2022-02-22 15:05:33 +00:00
2022-02-22 15:05:33 +00:00
2022-01-19 11:13:18 +00:00
2022-01-19 11:13:18 +00:00
2022-04-18 16:46:48 +00:00
2022-06-15 21:07:38 +00:00
2022-03-26 05:16:18 +00:00
2022-08-01 19:58:32 +00:00
2022-07-15 02:44:38 +00:00
2022-08-01 18:27:37 -07:00
2022-05-10 18:40:32 +00:00
2022-08-04 05:48:25 +00:00
2022-08-01 18:27:25 -07:00
2022-07-04 05:22:55 +00:00
2022-05-13 14:50:09 +08:00
2022-07-26 21:18:24 +00:00
2022-04-21 10:23:10 -07:00
2022-06-06 15:50:30 -07:00
2021-10-27 10:06:16 -07:00
2022-03-19 00:22:17 +00:00
2022-05-19 22:31:31 +00:00
2022-01-27 22:56:12 +00:00
2022-01-19 11:13:18 +00:00
2022-07-18 13:06:20 -07:00
2022-01-26 12:51:42 -08:00
2022-05-27 15:01:33 +00:00
2022-05-13 14:50:09 +08:00
2022-05-12 05:17:40 +00:00
2022-06-20 11:40:18 +02:00
2022-02-09 22:25:14 +00:00
2021-09-27 16:55:15 +08:00
2021-09-15 20:25:17 +00:00
2022-02-12 13:53:29 -08:00
2022-02-09 22:25:14 +00:00
2022-02-09 22:25:14 +00:00
2022-02-09 22:25:14 +00:00
2022-02-09 22:25:14 +00:00
2022-02-09 22:25:14 +00:00
2022-02-09 22:25:14 +00:00
2022-03-31 20:38:29 +00:00
2022-01-21 01:31:27 +00:00
2022-01-21 01:31:27 +00:00
2021-11-30 17:59:43 +00:00
2022-02-22 17:07:35 +00:00
2022-01-19 11:13:18 +00:00
2022-08-01 18:27:37 -07:00
2022-07-15 02:44:38 +00:00
2022-05-12 05:17:40 +00:00
2022-08-04 20:54:51 +00:00
2022-05-16 15:43:37 +00:00
2022-01-13 15:21:38 +00:00
2021-11-05 14:42:42 -07:00
2022-03-31 20:38:29 +00:00
2022-03-15 19:37:14 +00:00
2022-05-11 21:37:44 +00:00
2022-07-19 15:12:37 +00:00
2022-02-09 22:25:14 +00:00
2022-05-16 14:20:56 +01:00
2022-03-28 19:46:45 -07:00
2022-02-14 18:48:41 +00:00
2022-01-19 10:08:21 +00:00
2022-04-25 13:14:12 +08:00
2022-02-09 22:25:14 +00:00
2022-05-16 15:43:37 +00:00
2022-02-09 22:25:14 +00:00
2022-05-18 11:21:12 +00:00
2022-03-30 12:35:19 +00:00
2022-05-03 13:41:12 +00:00
2022-05-11 21:37:44 +00:00
2022-07-25 22:16:16 +00:00
2022-02-10 15:01:47 +01:00
2022-02-09 16:50:16 +00:00
2021-11-30 17:59:43 +00:00
2021-12-02 15:35:51 -08:00
2022-02-15 08:41:36 +00:00
2022-03-15 12:46:08 +01:00
2022-06-06 15:50:30 -07:00
2022-08-10 16:35:54 +00:00
2022-01-19 11:13:18 +00:00
2021-11-18 07:54:26 -08:00
2022-05-12 17:12:37 +08:00
2021-12-06 10:22:51 -08:00
2022-01-23 20:56:24 +00:00
2022-01-21 17:19:57 -08:00
2022-03-16 13:56:51 -04:00
2022-01-27 22:56:12 +00:00
2022-08-08 11:02:44 +00:00
2022-05-26 07:57:00 +00:00
2022-05-16 14:20:56 +01:00
2022-05-04 20:41:47 +08:00
2022-04-18 08:59:44 -07:00
2022-03-31 15:01:15 +00:00
2022-02-15 14:00:26 +00:00
2022-02-11 16:42:38 +00:00
2022-05-31 21:12:38 +00:00
2021-10-07 15:10:37 +00:00
2022-04-13 04:02:27 +00:00
2022-07-27 14:10:10 +08:00