For your reference, the AppName application is installed and running as a system app. Upon device reboot, AppName launches automatically. We have registered all channels using TvContract.Channels and have also removed the ACCESS_ALL_EPG_DATA permission.
Our application supports integration with Live Channels and the Electronic Program Guide (EPG) using TvContract.Channels TvContract.Programs. This integration is intended to make our live content visible in the system Live tab and to enable Google Assistant voice commands such as:
“Watch NBC on AppName”
In this example, NBC is the channel name and AppName is our application. Despite this setup, our channels and programs are not appearing in either manual search or voice search results.
We would appreciate your guidance on the required steps, permissions, or additional configuration needed to ensure that our channels and program data are correctly indexed and surfaced in system search and Assistant results.
Currently we are getting below error logs.
D:\SDK\platform-tools>adb shell content query --uri content://android.media.tv/channel --projection “_id,display_name,browsable,input_id” --where “input_id=‘com.yondoofree.access/.utils.MyTvInputService’”
Error while accessing provider:android.media.tv
java.lang.SecurityException: Selection not allowed for content://android.media.tv/channel
at android.os.Parcel.createExceptionOrNull(Parcel.java:2448)
at android.os.Parcel.createException(Parcel.java:2432)
at android.os.Parcel.readException(Parcel.java:2415)
at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:190)
at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:142)
at android.content.ContentProviderProxy.query(ContentProviderNative.java:481)
at com.android.commands.content.Content$QueryCommand.onExecute(Content.java:661)
at com.android.commands.content.Content$Command.execute(Content.java:522)
at com.android.commands.content.Content.main(Content.java:735)
at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:360)
D:\SDK\platform-tools>adb shell content query --uri content://android.media.tv/channel --projection “_id,display_name,browsable,input_id”
No result found.
Please help me resolve this issue.