Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

App "keeps stopping" on Nougat 7.0

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:

Crash notice

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?

like image 430
Roger G Avatar asked Jan 17 '17 16:01

Roger G


1 Answers

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()

like image 162
Shirly Avatar answered Oct 31 '22 08:10

Shirly