Skip to content
This repository has been archived by the owner on Jan 24, 2018. It is now read-only.

luksunlock binary #4

Open
askillen opened this issue Dec 13, 2011 · 1 comment
Open

luksunlock binary #4

askillen opened this issue Dec 13, 2011 · 1 comment

Comments

@askillen
Copy link

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
Copy link
Member

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants