<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.alpinelinux.org/w/index.php?action=history&amp;feed=atom&amp;title=User%3AJlyo%2FWIP%3As6%2Fandroid</id>
	<title>User:Jlyo/WIP:s6/android - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.alpinelinux.org/w/index.php?action=history&amp;feed=atom&amp;title=User%3AJlyo%2FWIP%3As6%2Fandroid"/>
	<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=User:Jlyo/WIP:s6/android&amp;action=history"/>
	<updated>2026-04-27T19:45:03Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.40.0</generator>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=User:Jlyo/WIP:s6/android&amp;diff=24796&amp;oldid=prev</id>
		<title>Zcrayfish: Rescued a dead link.</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=User:Jlyo/WIP:s6/android&amp;diff=24796&amp;oldid=prev"/>
		<updated>2023-08-28T02:38:12Z</updated>

		<summary type="html">&lt;p&gt;Rescued a dead link.&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 02:38, 28 August 2023&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{Draft}}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{{Draft}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Notes about my Alpine Linux installation on a [https://oneplus.&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;net&lt;/del&gt;/one 64GB OnePlus One] phone using [http://skarnet.org/software s6] to boot Alpine&#039;s userspace.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Notes about my Alpine Linux installation on a [https://&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;www.&lt;/ins&gt;oneplus.&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;com&lt;/ins&gt;/one 64GB OnePlus One] phone using [http://skarnet.org/software s6] to boot Alpine&#039;s userspace.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[http://whiteboard.ping.se/Android/Debian Similar Debian instructions]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[http://whiteboard.ping.se/Android/Debian Similar Debian instructions]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Zcrayfish</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=User:Jlyo/WIP:s6/android&amp;diff=10829&amp;oldid=prev</id>
		<title>Jlyo: Mark as a draft</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=User:Jlyo/WIP:s6/android&amp;diff=10829&amp;oldid=prev"/>
		<updated>2015-04-30T18:12:33Z</updated>

		<summary type="html">&lt;p&gt;Mark as a draft&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 18:12, 30 April 2015&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{{Draft}}&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Notes about my Alpine Linux installation on a [https://oneplus.net/one 64GB OnePlus One] phone using [http://skarnet.org/software s6] to boot Alpine&amp;#039;s userspace.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Notes about my Alpine Linux installation on a [https://oneplus.net/one 64GB OnePlus One] phone using [http://skarnet.org/software s6] to boot Alpine&amp;#039;s userspace.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Jlyo</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=User:Jlyo/WIP:s6/android&amp;diff=10828&amp;oldid=prev</id>
		<title>Jlyo: Off to a start</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=User:Jlyo/WIP:s6/android&amp;diff=10828&amp;oldid=prev"/>
		<updated>2015-04-30T18:09:09Z</updated>

		<summary type="html">&lt;p&gt;Off to a start&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Notes about my Alpine Linux installation on a [https://oneplus.net/one 64GB OnePlus One] phone using [http://skarnet.org/software s6] to boot Alpine&amp;#039;s userspace.&lt;br /&gt;
&lt;br /&gt;
[http://whiteboard.ping.se/Android/Debian Similar Debian instructions]&lt;br /&gt;
&lt;br /&gt;
There are two boot configurations I went through:&lt;br /&gt;
# Boot stock Android &amp;lt;tt&amp;gt;init&amp;lt;/tt&amp;gt;, chrooting into Alpine. Hooks into &amp;lt;tt&amp;gt;/data/local/userinit.d/*&amp;lt;/tt&amp;gt;&lt;br /&gt;
# Boot a custom &amp;lt;tt&amp;gt;init&amp;lt;/tt&amp;gt;, where the Android root filesystem is a chroot under Alpine, but keeping Android&amp;#039;s &amp;lt;tt&amp;gt;init&amp;lt;/tt&amp;gt; as PID 1.&lt;br /&gt;
&lt;br /&gt;
==Unlock the bootloader and root your phone==&lt;br /&gt;
{{Warning|Unlocking your bootloader will revert your phone to it&amp;#039;s stock image, causing you to lose all your personal data on your phone!}}&lt;br /&gt;
&lt;br /&gt;
Unlocking the bootloader is necessary, however rooting your phone (&amp;quot;ROM&amp;quot;) is not if you hack on the boot image initrd.&lt;br /&gt;
&lt;br /&gt;
 fastboot oem unlock&lt;br /&gt;
&lt;br /&gt;
Flash TWRP to the recovery partition.&lt;br /&gt;
Install SuperSU.&lt;br /&gt;
&lt;br /&gt;
==Install Alpine in a chroot==&lt;br /&gt;
[[Installing Alpine Linux in a chroot]]&lt;br /&gt;
&lt;br /&gt;
==Hack on Android&amp;#039;s boot.img to boot Alpine==&lt;br /&gt;
* Download stock boot.img, unpack, hack, repack, flash.&lt;br /&gt;
* Change kernel command line so SELinux is set to permissive (TODO: figure out how to return it to enforcing)&lt;br /&gt;
&lt;br /&gt;
 fastboot boot boot.img&lt;br /&gt;
 fastboot flash boot boot.img&lt;br /&gt;
&lt;br /&gt;
==Further investigations==&lt;br /&gt;
* Employ PID namespaces, so &amp;lt;tt&amp;gt;s6-svscan&amp;lt;/tt&amp;gt; can be the real PID 1, and not a &amp;lt;tt&amp;gt;fork()&amp;lt;/tt&amp;gt;. This requires you to change your kernel configuration and recompile the kernel.&lt;br /&gt;
* Mount namespaces (?). Mount namespaces are already enabled in the OnePlus kernel.&lt;br /&gt;
* Employ &amp;lt;tt&amp;gt;s6-sudod&amp;lt;/tt&amp;gt; so Android proceses can enter the Alpine environment (without SSH)&lt;br /&gt;
** Figure out how to open a new PTY and/or set terminal line disciplines so we can have process control in our shell.&lt;/div&gt;</summary>
		<author><name>Jlyo</name></author>
	</entry>
</feed>