Question Details

No question body available.

Tags

android kotlin android-tv

Answers (3)

March 2, 2026 Score: 0 Rep: 74,877 Quality: Low Completeness: 0%

doing a factory reset each time would be the only way I could see getting around the problem, a device owner app could do that.

March 2, 2026 Score: 0 Rep: 1 Quality: Low Completeness: 80%

Thank you for the suggestion. A factory reset would technically solve the issue, but it is not operationally feasible in our case. Performing a reset at every checkout would require reinstalling our application and reapplying the entire device configuration, which is too heavy for a hospitality deployment.

I am considering the following approach:

  • Devices report to a local backend server.

  • The server connects to the devices via ADB over the LAN.

  • A technician on site initially authorizes the ADB connection and selects “Always allow from this computer.” After that, the server can connect at any time without prompting for permission again.

  • At checkout, the server connects via ADB and executes commands such as:

    adb shell pm clear
    (for example, com.google.android.youtube.tv for YouTube)

  • The server then disconnects.

My main concerns are:

  • Security implications of using network ADB in production.

  • Reliability and potential network-related issues.

  • Whether this approach is generally considered bad practice.

March 2, 2026 Score: 0 Rep: 43,552 Quality: Low Completeness: 30%

IMHO clearing app data is a god idea. Also consider 3rd party apps uninstalling apps installed by the guests.

Note that accounts like the Google/Youtube account are not app specific. Therefore clearing the app data won't affect such accounts.

This post my help to list and delete such accounts: https://stackoverflow.com/a/63453017/150978