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.pswp.cn/news/280249.shtml
繁體地址,請注明出處:http://hk.pswp.cn/news/280249.shtml
英文地址,請注明出處:http://en.pswp.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相機帶…