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

Commit ea4874db authored by Patrick Baumann's avatar Patrick Baumann
Browse files

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
parent a8c53f7d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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();