[Q] Android cryptfs and regular GNU/Linux - Android Q&A, Help & Troubleshooting

Does anyone know how to decrypt Android cryptfs on GNU/Linux?
I know that Android uses dmcrypt, but obviously it doesn't use luks, so cryptsetup doesn't work. On Android the decryption is kicked off by vdc/vold, but I couldn't figure out if it is completely custom or relies on certain libraries or interfaces that are easily portable or already available on GNU/Linux.
So, before I start delving into the code, I thought I'd ask if someone else has been working on this or has further resources on the matter.
Thanks!

No ideas anyone?

bump

Related

[CM10+]How to manually encrypt (ecryptfs, dm-crypt, LUKS..)?

Hallo,
I want to create an encrypted container that i can mount on demand. I've found references of ecryptfs in CM10.2 and it has an built-in encryption function (whole device only, OS managed). How can i manually use that encryption feature on shell level to create an encrypted container? Projects like guardianproject (cryptsetup, LUKS) seem dead. I guess because it's now built into android os natively. But I'm not sure...
Any ideas?
DualJoe said:
Hallo,
I want to create an encrypted container that i can mount on demand. I've found references of ecryptfs in CM10.2 and it has an built-in encryption function (whole device only, OS managed). How can i manually use that encryption feature on shell level to create an encrypted container? Projects like guardianproject (cryptsetup, LUKS) seem dead. I guess because it's now built into android os natively. But I'm not sure...
Any ideas?
Click to expand...
Click to collapse
Questions in these xda forums related to enabling encryption on android are ignored, removed, or have zero replies against them. Read into that what you will. After weeks of trying to figure out an answer, I'm left looking for my tin foil hat.

Is It Possible to Build Android on ARM?

I have a Linux distro running side by side with Android fairely well, with the exception of a handfull of services in /etc/init.d such as postgresql and nfs-common.
I have compiled ruby1.9.3 on my phone, and postgresql, ruby worked great, postgres still has the usuall permission denied failure, cant open listening socket. I think its a filesystem permissions issue, ie that postgres can't write to a directory or folder, perhaps tcp and unix sockets have a seperate governing feature that needs tweaking to aknowledge postgres's right to open a port or socket, not sure but feel like I've got narrowed down.
I say all that to show that Linux can be run in Android's / and they get along alright, Android is just really picky and paranoid about who does what where whithin its guts.
I know that in-order to set up a build on a pc you have to use qemu wih arm support to cross-compile (I think), so if I could set up a nfs client o my phone that would mount my source-code, I think it would be possible to do the compiling on my phone. I bet performance of said zip would be better to say the least.
But, I also think some package used to build on pc would not be needed since its arm for arm on droid itself. So what kind of tweaking would need to be done so the build wouldn't complain about missing qemu or actually cross-compile with it thus negating the purpose and wasting resources.
Any advice or has anyone done this before?

[Q] Compiling help a noob.

Im writing a Network Scanner currently in Python/Kivy for Android. I could do everything i wanted if i could execute a Python module called Scapy from the shell(Obviously this is a rooted app), but unfortunately its not possible. Atleast not with alot of work and when the App is finished i dont want my users to have to go through installing countless dependencies to get it working!
I've stumbled along a little unix program called Arp-Scan but i cant find a port for Android. I'm not sure how to port this to Android so i can execute it from a shell.
I have no experience with compiling and needless to say this is frustrating the hell out of me! . This one little stumbling block has been plaguing me for 2 weeks. The rest i will be able to do in pure Python, namely PortScanning and such.
The way the Android OS works is that an APK is unable to use raw sockets. But you are allowed to run a shell as root.
I have the option to use Nmap but if there was ever to be a paid version of my app i would have to buy a license and i simply cant afford it.
All i need is to execute a program from shell: like Arp-Scan to obtain an IP and MAC from the LAN.
Any help will be greatly appreciated.
Thanks in advance.

[Q] Has anyone ever tried to get android to run through colinux?

I've played around with windroy a few times and tried to contact the developers to get an idea how they made it possible, also if there is a chance they'll open source the project. Tried a few times and they never answered.
After doing some research I've found pieces to make something like windroy possible. There is colinux to translate the linux kernel to the windows kernel. There is portable ubuntu that uses colinux which shows how to make the UI live along side window's ui. Then there is Android-x86 with all the changes needed to get android to run on desktop hardware. I've also read from a google engineer that android does very little changes to the linux core kernel, that all their systems are built in userspace and built as drivers. Hopefully that means any changes to colinux should be minimal to get android to work. My hope is to find a way to get a command prompt and at least adb working, just not sure how to get started with such a project though.
This comes down to my question, with all the pieces available, I'm surprised to find no information of anyone trying to make this happen. Has no one just not tried or has it been attempted but always ended in failure?

run android os inside a container running on an android device

maybe it's a silly question but i was wondering if it's possible to run a container inside my device.
the purpouse is to have a rooted container (the root privileges are limited to the container of course) running on an unrooted phone.
i'd use it to run apps that require root without tampering my main os.
this container should share the hardware resources with the real device (wifi, bt, sensors etc)
it would be something like a work profile but with root access...
is it possible?
All sorts of virtual solutions can be found... Virtual android, x8/F1, Vmos... seen here also some theads but where..
CXZa said:
All sorts of virtual solutions can be found... Virtual android, x8/F1, Vmos... seen here also some theads but where..
Do you have any link?
Click to expand...
Click to collapse
Not really, but Google finds them easily.
Virtual android... one at least is in Play.
Haven't used, so I cannot recommend any.
Edit:
https://play.google.com/store/apps/details?id=com.pspace.vandroid&hl=en&gl=US
https://f1vm.com/?page_id=144
https://www.vmos.com/
More:
List of Android Virtual Machine apps for Android devices - Platinmods.com - Android & iOS MODs, Mobile Games & Apps
The VM is a virtual machine environment that isolate from your phone system. You can root inside VM, install something fun, install malcious apps, etc without affecting your physical phone. There is no need to worry about the risk of viruses and system crashes, and no information can be stolen...
platinmods.com

Categories

Resources