guardianproject / LUKS

no longer maintained, check the forks for maintained versions
GNU General Public License v3.0
91 stars 38 forks source link

luksunlock binary #4

Open askillen opened 12 years ago

askillen commented 12 years ago

I’m having trouble compiling Sigkill’s luksunlock pre-boot authentication mechanism. I apologize if this post is inappropriate in this forum, please contact me so we can discuss the issue over email or another channel.

I can launch the prebuilt luksunlock binary from my init.rc on an HTC Desire with CyanogenMod 7.1 using GuardianProject’s cryptsetup and luksunlock binaries. luksunlock fails to unlock the volumes after providing a passphrase. LUKS is working properly on loopback devices and SD card partitions from a shell (after the Android framework is loaded). My volumes are set up according to the xda-forum (http://forum.xda-developers.com/showpost.php?p=11616180&postcount=12) and the luksunlock code / init.rc.

My problem is compiling the luksunlock source. I’m using android-ndk-r6b cross-compiler toolchain. I can successfully compile static and dynamically linked applications that run on my phone. I experience eabi-gcc build errors on minui functions when compiling luksunlock.c.

Any advice for compiling luksunlock with the NDK would be greatly appreciated (or any information on incorporating the Android recovery minui into a similar application). I can provide any further details on request (init.rc file, build environment, etc.).

Sincerest Thanks.

eighthave commented 12 years ago

I got this almost working, but just the final linking is the issue. try it out and see if you can figure out the last step: https://github.com/guardianproject/luksunlock