<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Joe Cheatham on Medium]]></title>
        <description><![CDATA[Stories by Joe Cheatham on Medium]]></description>
        <link>https://medium.com/@joecheatham?source=rss-c7c05a34ec9f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*25nDihA8Ex8Pw4S3.</url>
            <title>Stories by Joe Cheatham on Medium</title>
            <link>https://medium.com/@joecheatham?source=rss-c7c05a34ec9f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 21 Nov 2026 00:07:26 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@joecheatham/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Local Android Development on a Chromebook]]></title>
            <link>https://medium.com/@joecheatham/local-android-development-on-a-chromebook-b576274980cb?source=rss-c7c05a34ec9f------2</link>
            <guid isPermaLink="false">https://medium.com/p/b576274980cb</guid>
            <category><![CDATA[android-development]]></category>
            <category><![CDATA[android-app-development]]></category>
            <category><![CDATA[chrome-os]]></category>
            <category><![CDATA[chromebook]]></category>
            <dc:creator><![CDATA[Joe Cheatham]]></dc:creator>
            <pubDate>Thu, 08 Feb 2018 06:41:34 GMT</pubDate>
            <atom:updated>2018-02-08T06:41:34.490Z</atom:updated>
            <content:encoded><![CDATA[<p>No fluff, just a tutorial.</p><h3>Requirements</h3><ul><li>Chromebook capable of running Android apps (see <a href="https://sites.google.com/a/chromium.org/dev/chromium-os/chrome-os-systems-supporting-android-apps">here</a>)</li><li><a href="https://play.google.com/store/apps/details?id=com.termux&amp;hl=en">Termux</a></li><li><a href="https://chrome.google.com/webstore/detail/arc-welder/emfinbmielocnlhgmfkkmkngdoccbadn">ARC Welder</a></li><li>Text editor of your choosing (I’m using <a href="https://chrome.google.com/webstore/detail/caret/fljalecfjciodhpcledpamjachpmelml?hl=en">Caret</a>)</li><li>Basic command line knowledge</li></ul><h3>Setup</h3><p>After installing Termux from the Play Store, you’ll want to run a few commands to install some base packages that you’ll likely need later:</p><pre>apt update   <br>apt upgrade<br>apt install coreutils<br>pkg upgrade<br>pkg install termux-tools proot util-linux net-tools <br>pkg install openssh tracepath tree git<br>pkg install ecj dx apksigner aapt</pre><p>You’ll then want to create symlinks &amp; permissions for typical Android filesystems:</p><pre>termux-setup-storage</pre><p>And finally, set up the symlink from the Termux home directory to the ChromeOS Downloads directory:</p><pre>mkdir /storage/emulated/0/Download/development<br>ln -s /storage/emulated/0/Download/development /home/development</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aVozoZH1wNnjHuDNisgfQw.png" /><figcaption>You should see a window similar to the one above (I’ve installed <a href="https://fishshell.com/">fish</a> and setup custom colors)</figcaption></figure><h3>Build A Sample App</h3><p>Go ahead and cd into your development directory, and clone a sample git repo that I’ve created with the recommended file structure.</p><pre>cd development<br>git clone <a href="https://github.com/joecheatham/SampleApp.git">https://github.com/joecheatham/SampleApp.git</a><br>cd SampleApp</pre><p>Open the project in your text editor of choice, and you’ll see a familiar (but simple) file structure:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*J36MLP1Fl79eko0S8sVt4w.png" /><figcaption>I’m using Caret, but you can use any editor of your choosing.</figcaption></figure><p>Now we’re going to build the app. I’ve written a bash script modified from Adi Lima <a href="https://github.com/fx-adi-lima/android-tutorials">here</a>, feel free to use it as is.</p><pre>#!/data/data/com.termux/files/usr/bin/sh -e</pre><pre>if [ ! -e &quot;./bin&quot; ]; then<br>  mkdir ./bin<br>fi<br>if [ ! -e &quot;./AndroidManifest.xml&quot; ]; then<br>        find . -type f -name AndroidManifest.xml -exec ln -s {} \;<br>fi<br>if [ ! -e &quot;./assets&quot; ]; then<br>        find . -type d -name assets -exec ln -s {} \;<br>fi<br>if [ ! -e &quot;./assets&quot; ]; then<br>mkdir ./assets<br>fi<br>if [ ! -e &quot;./res&quot; ]; then<br>        find . -type d -name res -exec ln -s {} \;<br>fi<br>if [ ! -e &quot;./src&quot; ]; then<br>        find . -type d -name src -exec ln -s {} \;<br>fi<br>echo &quot;running aapt...&quot;<br>aapt package -v -f \<br>             -M $(find . -type f -name &quot;AndroidManifest.xml&quot;) \<br>             -J $(find . -type d -name src) \<br>             -S $(find . -type d -name res) \<br>             -m</pre><pre>echo &quot;running ecj...&quot;<br>ecj -d ./obj -sourcepath . $(find . -type f -name &quot;*.java&quot;)</pre><pre>echo &quot;running dx...&quot;<br>dx --dex --verbose --output=./bin/classes.dex ./obj</pre><pre>echo &quot;creating the apk...&quot;<br>aapt package -v -f \<br>             -M ./AndroidManifest.xml \<br>             -S ./res \<br>             -A ./assets \<br>             -F bin/step2.apk</pre><pre>echo &quot;adding classes.dex to the apk...&quot;<br>cd bin<br>aapt add -f step2.apk classes.dex</pre><pre>echo &quot;signing the the apk...&quot;<br>apksigner ../step2-debug.key step2.apk ../step2.apk</pre><pre>echo &quot;saving the apk to /development&quot;<br>cp step2.apk /sdcard/Download/development/build.apk</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Mfi1WRZkIBo-U4I6hhZSEg.png" /><figcaption>You’ll see a lot of output from the commands here, you can hide it by removing the -v and -d flags from the script.</figcaption></figure><p>Great! Now that you’ve built your .apk, it’s time to test it. Open ARC Welder, and point it to your newly packaged .apk.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/874/1*AvCv5A5LtgP_Lf0-sxR6-w.png" /><figcaption>I generally use the above settings, but feel free to change them as needed.</figcaption></figure><p>Once you’ve imported your app, click the test button to see it launch in a new window.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/714/1*D-6PKdwonasn_Aa4ipfgcA.png" /><figcaption>Awesome!</figcaption></figure><h3>Current (un)known Issues</h3><ul><li>I haven’t figured out how to configure debugging tools just yet. <a href="https://stackoverflow.com/questions/29445688/chrome-arc-welder-logcat">This</a> seemed promising for adb logcat.</li><li>Gradle appears unsupported currently within Termux, so all projects will need to be reconfigured from the standard Android Studio setup.</li><li>As far as I’m aware, only one .apk can be installed at a time within ARC Builder.</li></ul><p>This is still a pretty big work-in-progress, but I figured these initial steps could be useful to someone else wanting the capability to develop for Android locally on their Chromebook.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b576274980cb" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>