adb 和 ifconfig 命令在具有 android 东西的英特尔爱迪生中不起作用所以

adb and ifconfig commands not work in intel edison with android things SO

我把 Android Things SO 放在我的带有 Arduino 分线板的英特尔 Edison 中。 我运行这个例子enter link description here 一切正常。 但是当我使用 IO13 尝试 运行 其他代码时,我遇到了这个问题:

 E/HomeActivity: Error on PeripheralIO API
com.google.android.things.pio.PioException: android.os.ServiceSpecificException: IO13 is already in use But I can not do it.

enter link description here

我需要使用 adb 命令卸载软件包

有人可以帮我吗?

要卸载从 your example 安装的 com.example.androidthings.simplepio 软件包,请从您的计算机执行以下命令( 而不是 从您的设备):

adb uninstall com.example.androidthings.simplepio

来自发行说明:

已知问题

  • 当多个活动包含 IOT_LAUNCHER 类别的 Intent 过滤器时,系统会显示一个应用选择器,在不支持显示的设备上无法访问该应用选择器。 Android Things 仅支持单个启动器应用,此行为将在未来版本中禁用。

您必须卸载之前的应用程序(或关闭它),因为它与该 pin 保持着打开的连接。

您可以像这样卸载特定的应用程序:

 adb uninstall com.example.androidthings.simplepio

但是你也可以使用脚本卸载所有其他 AndroidThings 应用程序(当你玩过很多样本时这很方便)。

https://gist.github.com/blundell/7c0c3bb17898b28fe8122b0dc230af50

下载并运行这个脚本:./clear-android-things-apps.sh它会卸载所有东西