<div dir="ltr"><div><div><div><div><div><div><div><div><div><div><div>I made some decent progress on this. I have a tool that will build an F19 chroot (tested on Fedora, but supposed to work on any distro where you have yum packages).<br>
<br><a href="https://github.com/dnarvaez/broot">https://github.com/dnarvaez/broot</a><br><br></div>Must be installed in system path. Then create a dir with a manifest like this<br><br>dnarvaez@dnarvaez:~/android-sugar$ cat root.json <br>
{"path": "root",<br> "packages": ["weston"],<br> "distro": "fedora"}<br>}<br><br></div>And run<br><br>sudo broot create<br><br></div>To step inside the chroot<br>
<br>sudo broot shell<br><br></div>On the android side there are good building instructions, make sure to select the x86 build with launch.<br><br><a href="http://source.android.com/source/building-running.html">http://source.android.com/source/building-running.html</a><br>
<br></div>Busybox needs to be added to the stuff we build<br><br>dnarvaez@dnarvaez:~/android$ cat .repo/local_manifests/busybox.xml <br><?xml version="1.0" encoding="UTF-8"?><br><manifest><br>
<remote name="busybox-android"<br> fetch="git://<a href="http://github.com/Gnurou/">github.com/Gnurou/</a>"/><br><project path="local/busybox-android"<br> name="busybox-android"<br>
remote="busybox-android"<br> revision="master"/><br></manifest><br><br></div>Now ideally we would<br><br>emulator -partition-size 4096<br><br></div>The option is necessary to have enough space to copy the fedora root. Unfortunately while the option works fine for arm builds it seems to go in some kind of lseek infinite cycle on x86 :/<br>
</div>So I'm a bit stuck there. I should probably figure out how to mount an usb disk rather than making the system image bigger.<br><br></div>After that I would use<br><br></div><div>adb shell stop<br></div>adb push tar_of_the_root /system/<br>
<br></div>Unpack the tar and chroot into it. Got most of that working on arm, except the x86 chroot wouldn't work there of course :)<br></div>