Loading play-services-base/core/src/main/kotlin/org/microg/gms/profile/ProfileManager.kt +5 −4 Original line number Diff line number Diff line Loading @@ -96,8 +96,11 @@ object ProfileManager { private fun getProfileData(context: Context, profile: String, realData: Map<String, String>): Map<String, String> { try { if (profile in listOf(PROFILE_REAL, PROFILE_NATIVE)) return realData Log.d(TAG, "0") val profileResId = getProfileResId(context, profile) Log.d(TAG, "1 resId = $profileResId") if (profileResId == 0) return realData Log.d(TAG, "2") val resultData = mutableMapOf<String, String>() resultData.putAll(realData) val parser = getProfileXml(context, profile) Loading Loading @@ -289,10 +292,8 @@ object ProfileManager { private fun applyProfile(context: Context, profile: String, serial: String = getSerial(context, profile)) { val profileData = getProfileData(context, profile, getRealData()) if (Log.isLoggable(TAG, Log.VERBOSE)) { for ((key, value) in profileData) { Log.v(TAG, "<data key=\"$key\" value=\"$value\" />") } Log.d(TAG, "<data key=\"$key\" value=\"$value\" />") } applyProfileData(profileData) Build.SERIAL = serial Loading play-services-core/src/main/res/xml/profile_fp5_33.xml 0 → 100644 +6 −0 Original line number Diff line number Diff line <?xml version="1.0" encoding="utf-8"?> <profile name="FairPhone 5 (Android 13.0)" device="FP5" sdk="33" id="FP5_33" auto="true"> <data key="Build.VERSION.DEVICE_INITIAL_SDK_INT" value="32" /> <serial template="005b56ffff999111" /> </profile> Loading
play-services-base/core/src/main/kotlin/org/microg/gms/profile/ProfileManager.kt +5 −4 Original line number Diff line number Diff line Loading @@ -96,8 +96,11 @@ object ProfileManager { private fun getProfileData(context: Context, profile: String, realData: Map<String, String>): Map<String, String> { try { if (profile in listOf(PROFILE_REAL, PROFILE_NATIVE)) return realData Log.d(TAG, "0") val profileResId = getProfileResId(context, profile) Log.d(TAG, "1 resId = $profileResId") if (profileResId == 0) return realData Log.d(TAG, "2") val resultData = mutableMapOf<String, String>() resultData.putAll(realData) val parser = getProfileXml(context, profile) Loading Loading @@ -289,10 +292,8 @@ object ProfileManager { private fun applyProfile(context: Context, profile: String, serial: String = getSerial(context, profile)) { val profileData = getProfileData(context, profile, getRealData()) if (Log.isLoggable(TAG, Log.VERBOSE)) { for ((key, value) in profileData) { Log.v(TAG, "<data key=\"$key\" value=\"$value\" />") } Log.d(TAG, "<data key=\"$key\" value=\"$value\" />") } applyProfileData(profileData) Build.SERIAL = serial Loading
play-services-core/src/main/res/xml/profile_fp5_33.xml 0 → 100644 +6 −0 Original line number Diff line number Diff line <?xml version="1.0" encoding="utf-8"?> <profile name="FairPhone 5 (Android 13.0)" device="FP5" sdk="33" id="FP5_33" auto="true"> <data key="Build.VERSION.DEVICE_INITIAL_SDK_INT" value="32" /> <serial template="005b56ffff999111" /> </profile>