ChromeOS上的Android应用程序的侧面加载和调试机制是什么? [英] What will be the side-loading and debugging mechanism for Android apps on ChromeOS?

查看:123
本文介绍了ChromeOS上的Android应用程序的侧面加载和调试机制是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经阅读了 http://www.chromium.org/chromium上的所有内容-os/android-apps ,还观看了IO视频,似乎没有提及可用于在ChromeOS上开发/测试Android应用程序的侧面加载(和调试)机制吗?

I've gone through everything on http://www.chromium.org/chromium-os/android-apps and also watched the IO video and there doesn't seem to be any mention of what the side-loading (and debugging) mechanism available for developing/testing Android apps on ChromeOS will be?

我知道ARC在台式机而不是Chromebook上使用了adb

鉴于新的实现方式有所不同,并且它在Linux容器中具有完整的Android框架并可以访问USB,ADB是否可用于此目的?由于 Devtools已运行adb客户端

Given that the new implementation is different and its a full Android framework in a Linux container and has access to USB, will ADB be available for this prupose? Using ADB could also be useful for remote debugging since Devtools already runs an adb client

截至2016年8月9日现在有官方文档.

As of 9 Aug 2016 there is now official documentation available.

推荐答案


编辑:由于ChromeOS已启用ADB访问Android容器,而无需将Chromebook置于开发人员模式,因此不再需要以下说明./strong> ,您要从与


The instructions below are now no longer needed as ChromeOS has enabled allowing ADB access to the Android container without needing to put the Chromebook into developer mode BUT ONLY IF you want to access ADB from the Linux container on the same Chromebook as documented here.

除非您处于开发人员模式",否则您将无法启用未知来源.因此,为了侧面加载应用,您需要将设备置于开发人员模式(说明此处-按照Chromebook Pixel 2015的步骤操作.

Unless you are in Developer Mode, you won't be able to enable unknown sources. So in order to side load apps you will need to put your device into Developer Mode (instructions here - follow the steps for the Chromebook Pixel 2015).

进入开发人员模式后,转到Chrome设置>应用设置>安全>未知来源(移至右侧)

Once you are in Dev Mode, go to Chrome Settings > App Settings > Security > Unknown sources (move to the right)

启用开发人员模式后,您可以通过以下两种方式之一来侧面加载应用程序:

After enabling developer mode you can side load apps in one of 2 ways:

  1. 将.apk上载到Google云端硬盘或通过电子邮件发送给自己,然后使用等效的Android应用(分别为Drive和Gmail)将其打开
  2. 使用拇指驱动器将.apk传输到Chromebook的下载"文件夹,然后通过File Manager Android应用进行安装
  3. 使用
  1. Upload your .apk to Google Drive or send it to yourself via email, and open it with the Android app equivalent (Drive and Gmail respectively)
  2. Transfer the .apk to the Downloads folder of your Chromebook using a thumb drive, and install it via a File Manager Android app
  3. Transfer the .apk over ethernet from another device, using VT-2 to access the command line on your Chromebook

以下是为方法3建立以太网连接的示例示例:

Here is a sample walkthru of setting up an ethernet connection for approach 3:

  • 在台式机上-将以太网电缆插入台式机
  • 在桌面上-设置IP:ifconfig eth1 10.xx.xx.xx网络掩码255.255.255.254
  • 在Chromebook上-转到VT-2:ctrl-alt-fwd(又称f2)
  • 在Chromebook上-将以太网插入Chromebook
  • 在Chromebook上-为以太网设置IP:ifconfig eth1 10.xx.xx.xx网络掩码255.255.255.254
  • 使用scp将.apk文件从桌面传输到Chromebook

这篇关于ChromeOS上的Android应用程序的侧面加载和调试机制是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆