Update settings to reference correct versionCode

This settings change is required for a framework change that ensures
that apps built for pre-P that rely on reflection to access
ApplicationInfo#versionCode don't crash. The move to long version
code introduces a new field and all modifications of the field are
wrapped in a method that ensures both the new and old fields are set
appropriately.

Bug: 74393568
Test: manual - builds and broken app runs
Change-Id: Idfa5f85d3f91583098ebee88f0e8caecaacff9b4
This commit is contained in:
Patrick Baumann
2018-04-04 13:17:05 -07:00
parent a8c53f7dcb
commit ea4874db83

View File

@@ -255,7 +255,7 @@ public class IndexDatabaseHelper extends SQLiteOpenHelper {
for (ResolveInfo info : providers) {
sb.append(info.providerInfo.packageName)
.append(':')
.append(info.providerInfo.applicationInfo.versionCode)
.append(info.providerInfo.applicationInfo.longVersionCode)
.append(',');
}
return sb.toString();