Open Yonjuni opened 7 years ago
Temporary fix is to change the minSDK back to 21.
Is 06739f67 supposed to be the temporary fix? I ask because the commit doesn't touch the affected if
branch.
Yes, it is. The problem is that the service monitoring the connections is only tested for Android 5.0 and 6.0 and there were other problems after downgrading to minSDK 17. If we integrate other versions more testing is required.
Well, you see, my point is: the commit could not possibly fix this issue. Also, changing minSdkVersion
between 17 and 21 could not introduce or fix any bugs on devices with API level >= 21.
Anyway, the error is caused by the method android.app.ApplicationPackageManager$ResourceName.hashCode()
which calls hashCode()
on null String. In all recent Android versions only this call could cause it: packageName.hashCode();
.
I'm not aware how packageName
could be null there.
Ever more: this stuff:
at android.app.ApplicationPackageManager.getThemeIconWithBG(ApplicationPackageManager.java:3122)
at android.app.ApplicationPackageManager.getThemeIconWithBG(ApplicationPackageManager.java:3106)
at android.app.ApplicationPackageManager.getThemeIconWithBG(ApplicationPackageManager.java:3102)
is not present in the sources of any known to me Android version. So it might as well be some ApplicationPackageManager screwed up by OEM.
Since it sould only affect some apps with broken package info (my guess) it sould be catachable in the method. Ive made a pull request and tested it on a 4.x hardware device. But I have no app guaranteed to throw this error.