FORUMS

New Xposed for Lollipop 5.0 Update Fixes Major Bugs

Senior Recognized Developer rovo89 has patched Xposed for Lollipop 5.0 to … more

Download Sony’s new AOSP-like concept for Xperia Z3

Over in our forums, Recognized Contributor Jozinek has posted a very … more

OnePlus 2 vs Moto X Style: Which is The Better Flagship?

Two big industry names have announced their newest flagship phones within the … more

Making Your Own Xposed Modules Is Easier Than You Think

Close to the heart of XDA is the Xposed Framework by Rovo89. Most of … more

[APP][ICS] EncPassChanger -- set different device encryption and lock screen password

16 posts
Thanks Meter: 25
 
Post Reply Subscribe to Thread Email Thread
Android 3+ has a nice feature -- device encryption. You can encrypt the contents of your device with a password, and after that this password must be entered during device boot, otherwise the data is permanently lost.
The bad thing is that this password is set to the screen lock PIN / password. So you either set a short password or PIN, that you can enter quickly each time you unlock your phone from sleep (but this provides weak encryption), or set a long password and have to type it 20-30 times during the day.

This stupid behavior may be fixed easily. Android provides command-line tool called 'vdc', an interface to Android Volume Manager. As written in "Notes on the implementation of encryption in Android 3.0" [1], it has a command 'cryptfs changepw', that allows changing encryption password. Of course this command must be executed as root.
vdc has some other commands related to encryption, one of them is 'cryptfs verifypw', that allows to validate the supplied password.

I'm currently writing an application that will assist user with changing encryption password. This is my first public application for Android. You can find a source code on GitHub [2]. It is very simple, but maybe android gurus here may find what to make better.

Comments and pull requests are welcome :)
Thanks!

[1] http source.android.com/tech/encryption/android_crypto_implementation.html
[2] https github.com/kibab/encpasschanger
Attached Files
File Type: apk EncPassChanger.apk - [Click for QR Code] (26.1 KB, 602 views)
Last edited by Kibab; 29th June 2012 at 09:15 PM. Reason: Added APK
The Following 20 Users Say Thank You to Kibab For This Useful Post: [ View ]
 
 
29th June 2012, 09:16 PM |#2  
OP Junior Member
Flag Munich
Thanks Meter: 25
 
Donate to Me
More
Updated 30.06.2012: Added APK file!
4th July 2012, 04:50 AM |#3  
Senior Member
Flag Berlin
Thanks Meter: 15
 
More
Quote:
Originally Posted by Kibab

Android 3+ has a nice feature -- device encryption. You can encrypt the contents of your device with a password, and after that this password must be entered during device boot, otherwise the data is permanently lost.
The bad thing is that this password is set to the screen lock PIN / password. So you either set a short password or PIN, that you can enter quickly each time you unlock your phone from sleep (but this provides weak encryption), or set a long password and have to type it 20-30 times during the day.

This stupid behavior may be fixed easily. Android provides command-line tool called 'vdc', an interface to Android Volume Manager. As written in "Notes on the implementation of encryption in Android 3.0" [1], it has a command 'cryptfs changepw', that allows changing encryption password. Of course this command must be executed as root.
vdc has some other commands related to encryption, one of them is 'cryptfs verifypw', that allows to validate the supplied password.

I'm currently writing an application that will assist user with changing encryption password. This is my first public application for Android. You can find a source code on GitHub [2]. It is very simple, but maybe android gurus here may find what to make better.

Comments and pull requests are welcome :)
Thanks!

[1] http source.android.com/tech/encryption/android_crypto_implementation.html
[2] https github.com/kibab/encpasschanger

Sorry im noob
What will change visualy?
Or screenshot?

Sent from my LT26i using XDA Premium HD app
11th July 2012, 06:50 AM |#4  
Member
Flag Bothell
Thanks Meter: 2
 
More
Thank you for this. I wanted a more simple password for the unlock, but a longer more complicated password for the decryption. You should put it on the market and charge $.99USD (or equivalent in your currency) as it's quite useful. I'd buy it
17th July 2012, 07:40 PM |#5  
OP Junior Member
Flag Munich
Thanks Meter: 25
 
Donate to Me
More
Thank you!
Actually I have registered myself as Google Play Developer, now I'm waiting for approval. As soon as my registration is approved, I will update this thread :)
Although I'm going to make a free and donate versions, because I believe that will help to make Android better, and people who want to say "Thank you" will buy Donate version anyway
18th July 2012, 07:35 AM |#6  
OP Junior Member
Flag Munich
Thanks Meter: 25
 
Donate to Me
More
Smile
Quote:
Originally Posted by uDroid

Sorry im noob
What will change visualy?
Or screenshot?

Sent from my LT26i using XDA Premium HD app

Nothing will change visually, hence no screenshot. What's important is that you may set strong password for decrypting the internal storage, but keep using simple password (or PIN) to unlock the screen.

P.S. I have verified that my app works on Jelly Bean too.
18th August 2012, 10:04 AM |#7  
OP Junior Member
Flag Munich
Thanks Meter: 25
 
Donate to Me
More
I have finally published an application on Google Play! Currently there is a free version, Donate version will come a bit later
The link is: https:// play.google.com/store/apps/details?id=com.kibab.android.EncPassChanger

Enjoy!
21st August 2012, 07:31 AM |#8  
zurchpet's Avatar
Senior Member
Flag Winterthur, Schweiz
Thanks Meter: 166
 
More
Thanks for that app, that is also what annoyed me
21st August 2012, 08:48 AM |#9  
Senior Member
Thanks Meter: 53
 
More
Thanks for this. I've been trying to work out why encryption wont work on any ROM on my HOX (dies with unable to get size of block device cryptfs), and you have given me a good lead to investigate with vdc. Information on encryption in android is sparse, and almost all threads here on XDA get no replies.

Thanks again.
21st August 2012, 11:21 AM |#10  
pulser_g2's Avatar
Developer Admin / Senior Recognized Developer
Thanks Meter: 11,363
 
More
I've been tempted to use device encryption recently, but there is a distinct lack of information about it, particularly on custom ROMs...

Might need to give it a go, just the lack of backup abilities might be an issue...
21st August 2012, 12:41 PM |#11  
zurchpet's Avatar
Senior Member
Flag Winterthur, Schweiz
Thanks Meter: 166
 
More
Quote:
Originally Posted by pulser_g2

I've been tempted to use device encryption recently, but there is a distinct lack of information about it, particularly on custom ROMs...

Might need to give it a go, just the lack of backup abilities might be an issue...

I use CM10 on the Galaxy Nexus (maguro). Encrypted. Actually, only /data is encrypted. /system stays unencrypted. And this App works as described.

For Backup use TWRP. It asks for your password to decrypt storage.
You can then backup, restore, flash, install whole ROMs, wipe and what not.

>> I would like to see this app in Play Store <<

I should read before I post:
Quote:
Originally Posted by Kibab

I have finally published an application on Google Play! Currently there is a free version, Donate version will come a bit later
The link is: https://play.google.com/store/apps/d...EncPassChanger

Enjoy!

Thanks for that

btw. The encrypted /data partition lets you have two boot animations, one that is shown before code has been entered (the one in /system/media) and one after the correct code entry (the one in /data/local).
Last edited by zurchpet; 21st August 2012 at 12:44 PM.

Read More
Post Reply Subscribe to Thread

Tags
ics encryption
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes