My app works flawlessly on previous builds of Android, tested from 4.0 to 6.0.1 on actual devices. No problem in Studio-emulated Nougat 7.0 and 7.1. However, when I have my friend test the APK on his device running 7.0, this happens within seconds:
I do not have access to the device (he lives far away) and I cannot find any relevant information for this specific error online. What might be the cause?
Did you use the badge content provider? Samsung Nougat 7.0 may have caused the crash:
Caused by: java.lang.SecurityException: Permission Denial: writing com.sec.android.provider.badge.BadgeProvider uri content://com.sec.badge/apps from pid=22957, uid=10208 requires com.sec.android.provider.badge.permission.WRITE, or grantUriPermission()