What will be the side-loading and debugging mechanism for Android apps on ChromeOS?

前端 未结 2 912
滥情空心
滥情空心 2021-02-05 09:20

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-loadin

相关标签:
2条回答
  • 2021-02-05 10:04

    As of November 2020 you can now run ADB on your chromebook using just a web browser.

    Check out https://webadb.com to learn more

    0 讨论(0)
  • 2021-02-05 10:17

    Edit: 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.


    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).

    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. 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

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

    • On desktop - Plug ethernet cable into desktop
    • On desktop - Set an IP: ifconfig eth1 10.xx.xx.xx netmask 255.255.255.254
    • On Chromebook - Go to VT-2: ctrl-alt-fwd (a.k.a. f2)
    • On Chromebook - Plug ethernet into Chromebook
    • On Chromebook - Set an IP for the ethernet: ifconfig eth1 10.xx.xx.xx netmask 255.255.255.254
    • Use scp to transfer the .apk file from the desktop to the Chromebook
    0 讨论(0)
提交回复
热议问题