5,595,570 Members 46,876 Now Online
XDA Developers Android and Mobile Development Forum

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

Tip us?
 
Kibab
Old
(Last edited by Kibab; 29th June 2012 at 09:15 PM.) Reason: Added APK
#1  
Junior Member - OP
Thanks Meter 24
Posts: 16
Join Date: Oct 2007
Location: Munich

 
DONATE TO ME
Lightbulb [APP][ICS] EncPassChanger -- set different device encryption and lock screen password

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, 488 views)
The Following 19 Users Say Thank You to Kibab For This Useful Post: [ Click to Expand ]
 
Kibab
Old
#2  
Junior Member - OP
Thanks Meter 24
Posts: 16
Join Date: Oct 2007
Location: Munich

 
DONATE TO ME
Updated 30.06.2012: Added APK file!
 
uDroid
Old
#3  
Senior Member
Thanks Meter 14
Posts: 183
Join Date: Feb 2011
Location: Berlin
Quote:
Originally Posted by Kibab View Post
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
History (Rzk):
LG Optimus One
LG Optimus 2x
Samsung Galaxy Nexus
Sony Xperia P
iPhone 5


History (Agng):
Sony Ericsson T707
Sony Ericsson Xperia X10MiniPro
Sony Xperia S
Samsung Galaxy Tab 2 7.0 Black

 
randalla0622
Old
#4  
Member
Thanks Meter 2
Posts: 53
Join Date: Jan 2007
Location: Bothell
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
 
Kibab
Old
#5  
Junior Member - OP
Thanks Meter 24
Posts: 16
Join Date: Oct 2007
Location: Munich

 
DONATE TO ME
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
 
Kibab
Old
#6  
Junior Member - OP
Thanks Meter 24
Posts: 16
Join Date: Oct 2007
Location: Munich

 
DONATE TO ME
Quote:
Originally Posted by uDroid View Post
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.
 
Kibab
Old
#7  
Junior Member - OP
Thanks Meter 24
Posts: 16
Join Date: Oct 2007
Location: Munich

 
DONATE TO ME
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!
 
zurchpet
Old
#8  
zurchpet's Avatar
Senior Member
Thanks Meter 165
Posts: 929
Join Date: Nov 2008
Location: Winterthur, Schweiz
Thanks for that app, that is also what annoyed me
Handset: Samsung Galaxy Nexus GT-I9250 (maguro) 16 GB
ROM: CM10 Jellybro built by fitsnugly created by CyanogenMod
Kernel: FuguMod kernel
Retired Handset: Samsung Galaxy S GT-I9000 16 GB
nobrain.ch

 
tijuanacartel
Old
#9  
Senior Member
Thanks Meter 25
Posts: 156
Join Date: Nov 2010
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.
HTC One X (CM11 Nightly)
Ainol Novo Aurora II (CyanogenMod)
 
pulser_g2
Old
#10  
pulser_g2's Avatar
Developer Admin / Senior Recognized Developer
Thanks Meter 10594
Posts: 19,214
Join Date: Nov 2009
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...


Having trouble getting an answer? | What is XDA about? | How to ask for help?

if [ $PM.incoming.type = $type.question.ROM.how_to_use ] || [ $PM.incoming.type = $type.question.ROM.silly_question ]; then mv $PM.incoming /.trash; PM.response($responsetype.ignore); $PM.sender.ignore_in_future=true; init.sequence($boy_who_cried_wolf); fi;

BTC: 1K2fpDsRHkirWmk3PKiqtzhVHKUJCWPWnN
PGP: 0x260F4FDEF258E3C4

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

Advanced Search
Display Modes