How to reset default app in Android Things OS?
Asked Answered
S

5

5

Yesterday I started an Android Things project and I was testing the app using Android Studio. In order to connect to the device using adb.exe, I used the IP of the android device that I saw on the default OS's app (the starting screen). So, after the yesterday's testing it seems that my app is now the default app even if I don't have it connected to the PC.

The problem is that now I cannot see the device's IP address so I can connect to it using adb.exe.

Is there a way of going back to the default OS's app?

PS. The only solution I found is re-installing the Android Things OS.

Stigmasterol answered 21/2, 2017 at 7:38 Comment(3)
You might make use of the script for uninstalling the apps as per this answer.Therewithal
Alternate solution is to use download app from play store that displays connected devices on wifi network. I Used FINGZohara
If your only objective is to find back the IP of your Android Things device, it would be simpler to use the ARP table. No need to uninstall anything or install anything, one command for Linux/Windows system arp -aLiederkranz
S
9

To go back to default android thing logo screen.Uninstall the app using

adb uninstall <pkg name>

If you want to connect to AT without knowing ip use following command

adb connect Android.local

Also you can use serial cable to find ip of AT.

If you install multiple apps.AT will ask for your choice as below enter image description here

Scilicet answered 21/2, 2017 at 12:4 Comment(0)
M
4

uninstall the app using adb

adb uninstall <package-name>

if you have connected a keyboard to the raspberry pi board, you can go to the home screen by pressing escape button

Mere answered 21/2, 2017 at 11:57 Comment(0)
L
3

(I don't have enough reputation to comment so I make an answer, sorry)

If you want to know the IP of your Raspeberry from your computer, you can use the ARP table.

From Ubuntu/Linux or Windows, just type arp -a

Your Android Things device will appear in this list with its IP !

Liederkranz answered 12/1, 2018 at 10:52 Comment(1)
this is so deliciousLost
M
1

If you don't need to uninstall your app, you can just close it:

adb shell am force-stop <package-name>

and of course you can close it from your app:

this.finish();

Also you can show your ip address in your app if you have screen. For me adb connect Android.local doesn't work.

Microwatt answered 26/2, 2017 at 19:17 Comment(0)
M
0

An easy way is to log into your router and see all of the connected devices and pull the ip address from there. Really easy with Google Wifi

Millstone answered 21/1, 2018 at 16:6 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.