Android 9 API Compatibility Problem:MathUtils.dist(dark greylist, linking)
S
Sunbreak Wang
started a topic
over 2 years ago
We're developers of a notepad APP. When APP running on Android 9 (Android Pie, API level 28), the system warns "Detected problems with API compatibility (visit g.co/dev/appcompat for more info)"
After we investigating further, it seems that MyScript IInk SDK v1.2.2 calls "android.util.MathUtils.dist(float, float, float, float)" from native function in JNI, which is a hidden class and listed in "dark greylist" according to hiddenapi-greylist-max-o.txt. The forbidden call results in crash with "targetSdkVersion = 28" or warning dialog with "target SdkVersion < 28" on Android 9 device.
Here is the screenshot and system log of MyScript GetStarted APP
Sunbreak Wang
We're developers of a notepad APP. When APP running on Android 9 (Android Pie, API level 28), the system warns "Detected problems with API compatibility (visit g.co/dev/appcompat for more info)"
After we investigating further, it seems that MyScript IInk SDK v1.2.2 calls "android.util.MathUtils.dist(float, float, float, float)" from native function in JNI, which is a hidden class and listed in "dark greylist" according to hiddenapi-greylist-max-o.txt. The forbidden call results in crash with "targetSdkVersion = 28" or warning dialog with "target SdkVersion < 28" on Android 9 device.
Here is the screenshot and system log of MyScript GetStarted APP
Hareware: MI 8
Software: Android 9
Screenshot:
System log
Looking forward to your fix :)