Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 5253dcb1 authored by Lee Shombert's avatar Lee Shombert
Browse files

Correct SQLiteOpenHelper lock creation

This changes SQLiteOpenHelper to synchronize on the raw name of the
database instead of on the canonical file path.

It is possible for an app to create an open helper with two different
db paths that map to the same file on disk; in that case
SQLiteOpenHelper remains thread-unsafe.

Flag: android.database.sqlite.concurrent_open_helper
Bug: 335904370
Bug: 390061581
Test: atest
 * CtsDatabaseTestCases
 * FrameworksCoreTests:android.database
 * CellBroadcastReceiverMTS
Change-Id: I084942d73bdba0adf5a7634b8378e9b397fcc5fa
parent dd4984e9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment