android-debian
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
| — | android-debian [2016-05-02 05:30:17] (current) – created - external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ===== Debian in chroot on Android ===== | ||
| + | <note important> | ||
| + | |||
| + | Automated tool: [[https:// | ||
| + | * Uses fixed-size loopback device. | ||
| + | * Requires free loopback device - does not work on CyanogenMod 11 on Nexus 4. | ||
| + | |||
| + | Manual installation: | ||
| + | * Install with --foreign on a non-ARM computer | ||
| + | < | ||
| + | cp / | ||
| + | chroot armroot/ | ||
| + | / | ||
| + | * Transfer armroot/ to the device /data/armhf | ||
| + | * First-time usage after reboot: | ||
| + | < | ||
| + | su -c "mount -o bind /dev / | ||
| + | </ | ||
| + | * Unexporting LD_PRELOAD from the above example is needed on Android 5 and does not work on Android 6. | ||
| + | * Next shell: | ||
| + | < | ||
| + | * Useful .bashrc: | ||
| + | < | ||
| + | |||
| + | cd /root | ||
| + | |||
| + | / | ||
| + | |||
| + | mount | grep -q proc || mount -t proc none /proc | ||
| + | mount | grep -q devpts || (mount -t devpts none /dev/pts; mount -t sysfs none /sys) | ||
| + | export LANG=cs_cz.UTF-8 | ||
| + | export LANGUAGE=cs_cz.UTF-8 | ||
| + | [ -e / | ||
| + | </ | ||
| + | * My favorite terminal emulator: https:// | ||
android-debian.txt · Last modified: by 127.0.0.1
