How to reset the default app in Android Things OS?

Yesterday I started the Android Things project, and I tested the application using Android Studio. To connect to the device using adb.exe, I used the IP address of the Android device, which I saw in the OS by default (initial screen). So, after yesterday's testing, it seems that my application is now a standard application, even if I do not have it connected to a PC.

The problem is that now I can’t see the IP address of the device, so I can connect to it using adb.exe.

Is there a way to revert to OS OS by default?

PS. The only solution I found was to reinstall the Android Things operating system.

+4
source share
5

Android . ,

adb uninstall <pkg name>

AT, ip,

adb connect Android.local

ip AT.

.AT , . enter image description here

+9

, adb

adb uninstall <package-name>

pi, ,

+4

( , , )

IP- Raspberry ,

+2

, :

adb shell am force-stop <package-name>

and of course you can close it from your application:

this.finish();

You can also show your IP address in your application if you have a screen. For me adb connect Android.local does not work.

+1
source

An easy way is to log into your router and view all connected devices and extract the IP address from it. Really easy with google wifi

0
source

Source: https://habr.com/ru/post/1670376/


All Articles