List<AppWidgetProviderInfo> infos = mAppWidgetManager.getInstalledProviders();
int widgetId = mAppWidgetManager.getAppWidgetIds(infos.get(0).provider)[0];
Above code throws below security exception
java.lang.SecurityException: Package does not belong to 10069
Alternatively, if I launch the appwidgetpicker using action ACTION_APPWIDGET_BIND to retrieve the user permission,
ActivityNotFoundException: No Activity found to handle Intent { act=android.appwidget.action.APPWIDGET_PICK
again above exception(Only on android TV) is thrown:
However same code works on mobile, but not on android TV, so how do we build appwidgethost for android TV?
UPDATE 1: Following this also still throws same exception
UPDATE 2: Found bug on Android TV for the same