chromebook刷机_如何获取Android应用以查看Chromebook上的外部存储

chromebook刷机

chromebook刷机

Android apps are a great way to expand the sometimes limited capabilities of Chromebooks, but they can be a problem if you store most of your data on an external medium—like an SD card, for example.

Android应用程序是扩展Chromebook有时有限功能的好方法,但是如果您将大多数数据存储在外部介质(例如SD卡)上,则可能会成为问题。

Fortunately, with a few commands you can actually “force” Android apps to not only see external storage, but write to it as well. I will warn you, though: this does require a few shell commands, so if you’re not comfortable with that, tread carefully. Shout out to Nolirium for this incredibly helpful blog post that that got me rolling with this. Thanks to the guidance found there, I was able to get this this working without issue.

幸运的是,实际上,您可以使用一些命令来“强制” Android应用程序不仅查看外部存储,还可以对其进行写入。 不过,我会警告您:这确实需要一些shell命令,因此,如果您对此感到不满意,请小心操作。 向Nolirium大喊,获得这篇非常有用的博客文章,这使我对此颇为关注。 多亏了那里的指导,我才能够毫无问题地完成这项工作。

那么,这如何工作? (So, How Does This Work?)

In short, we’ll be using bind mounts to basically “tether” a folder on the external medium to one that’s part of the internal file structure. Basically, this allows Android see the contents of the external folder, because it’s linked to a folder on the internal storage, which it can see without problems.

简而言之,我们将使用绑定安装将外部介质上的文件夹基本上“绑定”到内部文件结构的一部分。 基本上,这使Android可以查看外部文件夹的内容,因为它已链接到内部存储设备上的文件夹,可以毫无问题地看到该文件夹​​。

It’s worth noting that binding these folders will only work in Android—it won’t affect how Chrome OS sees the folders or the files within. We’re going to create a folder called “Bound” in the root of the Downloads directory in Chrome OS and bind a folder on the external medium to this folder, and while Android will see the contents of the external folder in the Bound directory, Chrome OS will not—the Bound directly will look completely empty. But since Chrome OS can natively interact with external storage, this shouldn’t be an issue.

值得注意的是,绑定这些文件夹仅在Android中有效-不会影响Chrome操作系统查看文件夹或其中的文件的方式。 我们将在Chrome操作系统的Downloads目录的根目录中创建一个名为“ Bound”的文件夹,并将外部媒体上的文件夹绑定到该文件夹​​,而Android会在Bound目录中看到外部文件夹的内容, Chrome操作系统不会—直接绑定的外观将完全空白。 但是由于Chrome操作系统可以与外部存储进行本地交互,所以这不是问题。

第一步:创建文件夹 (Step One: Create Your Folders)

With that, we’re ready to create the directories that we’ll use for this. Like I said above, we’re going to create a folder in the Downloads directory called “Bound.” So go ahead and open the Chrome OS Files app, and navigate to the Downloads directory.

这样,我们就可以创建用于此目的的目录了。 就像我上面说的,我们将在Downloads目录中创建一个名为“ Bound”的文件夹。 因此,继续打开Chrome OS文件应用,然后导航至下载目录。

From there, right click and choose “New Folder.”

从那里,右键单击并选择“新建文件夹”。

Name this folder “Bound.”

将此文件夹命名为“ Bound”。

It’s worth noting that can name this whatever you like, but for the purposes of this tutorial and the commands you’ll use below, we’re using “Bound.”

值得注意的是,您可以随意命名,但是出于本教程和下面将要使用的命令的目的,我们使用的是“绑定”。

If you have a specific set of files you want Android to be able to see on your Chromebook, go ahead and navigate to your external medium and create a new folder here, too. Name it accordingly—I’m using “Screenshots” for this example, so feel free to change it if it doesn’t make sense for your application. Just remember that you’ll have to change part of the commands below to reflect your folder name.

如果您有一组特定的文件,希望Android在Chromebook上可以看到,请继续浏览到外部媒体并在此处创建一个新文件夹。 相应地命名-我在本例中使用“屏幕截图”,因此,如果对您的应用程序没有意义,请随时进行更改。 请记住,您必须更改下面的部分命令以反映您的文件夹名称。

第二步:打开一个根外壳并创建绑定 (Step Two: Open a Root Shell and Create the Bind)

First, you’re going to need to open a Crosh window by pressing Ctrl+Alt+T on your keyboard. A new, solid black window will open in your browser. Alternatively, you can install the Crosh Window app from the Chrome App Store (which also requires the Secure Shell app to be installed), but that’s not necessary if it’s something you don’t think you’ll use often.

首先,您需要通过按键盘上的Ctrl + Alt + T来打开Crosh窗口。 新的纯黑色窗口将在您的浏览器中打开。 另外,您可以从Chrome App Store安装Crosh Window应用程序(这也需要安装Secure Shell应用程序),但是如果您不经常使用它,则不需要这样做。

In the Crosh window, type the following:

在Crosh窗口中,键入以下内容:

shell

Followed by:

其次是:

sudo su

It will ask for your password—this should be the same one you sign into your Chromebook with.

它将要求您输入密码,该密码应与您用来登录Chromebook的密码相同。

At this point, you’re in a root shell, which is what we want. The following commands should give you read/write access to the external folder directly from Android apps. For the purposes of this tutorial, I’m going to break them down one at at time, but keep in mind that you can string them together if you’d like—just separate each command with && symbols.

至此,您已经在root shell中,这就是我们想要的。 以下命令应使您可以直接从Android应用程序对外部文件夹进行读/写访问。 出于本教程的目的,我将一次将它们分解,但请记住,如果需要,可以将它们串在一起-只需用&&符号分隔每个命令。

Note: The default title for an external drive in Chrome OS is “UNTITLED.” If your drive has been named something else, use that in place of “UNTITLED” in the following commands.

注意:Chrome操作系统中外部驱动器的默认标题为“ UNTITLED”。 如果您的驱动器已被命名为其他名称,请在以下命令中使用该驱动器代替“ UNTITLED”。

With that out of the way, enter the following into the root shell window:

这样,就可以在root shell窗口中输入以下内容:

mount --bind /media/removable/UNTITLED/Screenshots /run/arc/sdcard/default/emulated/0/Download/Bound
mount --bind /media/removable/UNTITLED/Screenshots /run/arc/sdcard/read/emulated/0/Download/Bound
mount --bind /media/removable/UNTITLED/Screenshots /run/arc/sdcard/write/emulated/0/Download/Bound

Again, change the name of the external folder to whatever you chose if it’s different than mine.

同样,如果外部文件夹的名称与我的不同,则将其更改为您选择的名称。

第三步:获利 (Step Three: Profit)

That’s pretty much all there is to it. Like I said earlier, this won’t affect the way Chrome OS sees your folders, only Android.

这几乎就是它的全部。 就像我之前说的,这不会影响Chrome操作系统查看文件夹的方式,仅影响Android。

Of course, it’s not a perfect system. Some Android apps may be able to see the contents of the bound folder, but not interact with them. For example, I use Skitch for annotating screenshots, and while it can see everything in the bound folder, it’s unable to open any of the files. This is probably in large part to do with the fact that Skitch is no longer in active development so it’s quite outdated, but it’s still a good example of how imperfect this system can be.

当然,这不是一个完美的系统。 某些Android应用程序可能能够查看绑定文件夹的内容,但无法与其进行交互。 例如,我使用Skitch注释屏幕截图,尽管它可以看到绑定文件夹中的所有内容,但无法打开任何文件。 这可能在很大程度上与Skitch不再处于主动开发状态,因此它已经过时了有关,但这仍然是该系统有多完美的一个很好的例子。

Also, this bind will not survive a reboot. So each time you reboot the computer, you’ll have to re-enter the above commands. I’ve also seen where some users have lost access to the bound folder after the system goes into sleep mode, but I haven’t personally had this issue. As with most workarounds like this one, your mileage may vary.

另外,此绑定将在重新启动后无法幸免。 因此,每次重新启动计算机时,都必须重新输入上述命令。 我还看到系统进入睡眠模式后,某些用户失去了对绑定文件夹的访问权限,但是我个人没有遇到这个问题。 与大多数这种解决方法一样,您的工作量可能会有所不同。

PicSayPro showing the contents of the Bound folder.
PicSayPro显示绑定文件夹的内容。

Of course, Google is actively working on enabling SD card contents to Android apps, so eventually we should get proper support. But until that point, this is the next best thing.

当然,谷歌正在积极致力于为Android应用启用SD卡内容,因此最终我们应该获得适当的支持。 但是直到那一点,这才是下一件好事。

翻译自: https://www.howtogeek.com/316056/how-to-get-android-apps-to-see-external-storage-on-chromebooks/

chromebook刷机

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/280249.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

Stream流与Lambda表达式(四) 自定义收集器

一、自定义SetCustomCollector收集器 package com.java.design.Stream.CustomCollector;import java.util.*; import java.util.function.BiConsumer; import java.util.function.BinaryOperator; import java.util.function.Function; import java.util.function.Supplier; im…

ModelState.IsValid忽略型别的检查错误

Web Api在Int或DateTime如果传空值的话会自动帮忙设预设值,但是在ModelState.IsValid的时候,却会出现型别上的错误.解决方式把Model改成正确,也就是预设允许可以为nullpublic class DemoModel { …

android 指纹添加_如何将手势添加到Android手机的指纹扫描仪

android 指纹添加So you have a shiny new Android phone, equipped with a security-friendly fingerprint scanner. Congratulations! But did you know that, while useful on its own, you can actually make the fingerprint scanner do more than just unlock your phone…

关于前端性能优化

常用的优化有两部分 第一:面向内容的优化 减少 HTTP 请求减少 DNS 查找避免重定向使用 Ajax 缓存延迟载入组件预先载入组件减少 DOM 元素数量切分组件到多个域最小化 iframe 的数量不要出现http 404 错误第二:面向 Server 缩小 Cookie针对 Web 组件使用域…

前端工程化:围绕Jenkins打造工作流的过程

背景 1年前入职时,公司前端部门的静态代码部署都是用ftp工具拖拽部署,没有记录,没有关联,经常造成许多困扰的问题, 比如:今天有没有其他人在我要部署的路径上工作?我的代码为啥被盖掉了&#xf…

业务id转密文短链的一种实现思路

业务场景: 买家通过电商app下单后,会受到一条短信,短信内容中包括改订单详情页面的h5地址连接,因为是出现在短信中,所以对连接有要求:1.尽量短;2.安全性考虑,订单在数据库中对应的自…

百度高管:问心无愧

1月23日下午消息,今天下午,百度召开百家号2019内容创作者盛典,百度副总裁沈抖出席并发布演讲。 就在前一天,一篇名为《搜索引擎百度已死》的文章刷屏,文中提到百度搜索有一半以上会指向百度自家产品,尤其百…

Vuex 学习笔记

Vuex 是什么? Vuex 是一个专为 Vue.js应用程序开发的状态管理模式。由于SPA应用的模块化,每个组件都有它各自的数据(state)、视图(view)和方法(actions),当项目内容越来越…

xdf文档怎么转换为pdf_如何将PDF文件和图像转换为Google文档文档

xdf文档怎么转换为pdfYou probably know you can create and edit documents with Google Docs, but you can edit more than just .doc files. Google Drive can also convert any PDF, JPG, PNG, or GIF into a document with fully editable text. Here’s how. 您可能知道可…

在现代 Windows 上使用经典 Windows 2000、XP、Vista 任务栏

你好,这里是 Dotnet 工具箱,定期分享 Dotnet 有趣,实用的工具和组件,希望对您有用!前言您第一次使用的 Windows 是哪个版本的?我最早使用的 Windows XP,然后再经过 XP、7、8/8.1 、Windows 10&a…

oracle sys可以登录,system权限不足,解决方法

今天在自己电脑上安装了oracle 11g,安装成功后发现 sys 可以正常登录。system 无法登录,显示 ORA-01031: insufficient privileges(权限不足) select * from v$pwfile_users; 查看有sysdba权限的用户 grant sysdba to system; 给system 授权sysdba权限…

airdroid黑屏_如何使用AirDroid从PC控制Android设备

airdroid黑屏AirDroid for Android replaces your USB cable for connecting to your PC. Transfer files back and forth, send text messages, play music, view your photos, and manage applications using a web browser or a desktop client. 适用于Android的AirDroid取代…

分析java程序

2019独角兽企业重金招聘Python工程师标准>>> 最近公司的一个账单推送的服务,发现有延迟。我排查的时候发现,有一个程序日志不动了(采用消息队列,部署了两台服务器来负载均衡)。 网上说: jstack …

环境部署(九):linux下安装python+chrome+Xvfb

在基于selenium进行的UI自动化测试中,开发调试环境一般都是windows操作系统。完成后需要部署到专门的测试环境。 如要要部署到linux环境的服务器(阿里云、腾讯云)执行,那么测试脚本也需要对应的浏览器支持, 才能正常进…

地理围栏_什么是“地理围栏”?

地理围栏The term is popping up more frequently in news articles, appearing in product manuals, and highlighted as a feature in tons of mobile applications, but what exactly is geofencing? Read on as we explain what it is, why it’s appearing in more produ…

219. 单页应用 会话管理(session、cookie、jwt)

原文链接:https://github.com/ly525/blog... 关键字:http-only, cookie,sessionid, vue-router, react-router, 安全,localStorage, jwt 需求描述 内部管理平台,需要用户登录之后才能访问。现在将 该平台地址(www.xxx.…

(原+译)使用numpy.savez保存字典后读取的问题

转载请注明出处: http://www.cnblogs.com/darkknightzh/p/7608928.html 参考网址; https://stackoverflow.com/questions/22315595/saving-dictionary-of-header-information-using-numpy-savez python中,使用pickle保存变量时,如果变量过大&…

NLog 通过http保存日志

简介NLog是一个基于.NET平台编写的类库,我们可以使用NLog在应用程序中添加极为完善的跟踪调试代码。 NLog是一个简单灵活的.NET日志记录类库。通过使用NLog,我们可以在任何一种.NET语言中输出带有上下文的(contextual information&#xff09…

嵌套映射

1. 多对一嵌套查询映射使用案例 package com.zixue.dao;import com.zixue.annotation.MyBatisRepository; import com.zixue.entity.Emp;/*** 员工表的DAO组件* */ MyBatisRepository public interface EmpDao {void save(Emp emp);Emp findById(int id);Emp findById2(int id)…

gopro dataset_如何将GoPro安装到DSLR相机

gopro datasetIf you have a DSLR camera with a hot shoe, it’s easy to attach various flashes and other accessories right to your camera. But with a couple of cheap attachments on hand, you can mount your GoPro to your DSLR camera as well. 如果您的DSLR相机带…