CarrierIdProvider improvements
1. handle insertion conflict. When a constraint violation occurs, the
row that contains the violation is not inserted. But the command continues
executing normally.
2. add read permission.
3. improve memory usage. not allocate a CV for every known carrier.
4. update the installed table version after setTransactionSuccessful
Bug: 64131637
Test: Unit test
Change-Id: If6d558e9263c78611b940170ba1612d8a2279b23
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index 38f9fc0..7a6f683 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -111,6 +111,7 @@
android:exported="true"
android:singleUser="true"
android:multiprocess="false"
+ android:readPermission="android.permission.READ_PRIVILEGED_PHONE_STATE"
android:writePermission="android.permission.MODIFY_PHONE_STATE" />
<service