Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
Kibab
Old
(Last edited by Kibab; 29th June 2012 at 09:15 PM.) Reason: Added APK
#1  
Junior Member - OP
Thanks Meter 23
Posts: 13
Join Date: Oct 2007
Location: München

 
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, 388 views)
The Following 18 Users Say Thank You to Kibab For This Useful Post: [ Click to Expand ]
 
Kibab
Old
#2  
Junior Member - OP
Thanks Meter 23
Posts: 13
Join Date: Oct 2007
Location: München

 
DONATE TO ME
Updated 30.06.2012: Added APK file!
 
uDroid
Old
#3  
Senior Member
Thanks Meter 12
Posts: 162
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


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

 
Kibab
Old
#4  
Junior Member - OP
Thanks Meter 23
Posts: 13
Join Date: Oct 2007
Location: München

 
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
#5  
Junior Member - OP
Thanks Meter 23
Posts: 13
Join Date: Oct 2007
Location: München

 
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
#6  
zurchpet's Avatar
Senior Member
Thanks Meter 163
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
#7  
Senior Member
Thanks Meter 11
Posts: 118
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 (TeamNDVRU Cyanogenmod Nightlies)
Ainol Novo Aurora II (DoubleStuff Release 23)
Projects: fixing Device Encryption in CM10...
 
randalla0622
Old
#8  
Member
Thanks Meter 1
Posts: 48
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
#9  
Junior Member - OP
Thanks Meter 23
Posts: 13
Join Date: Oct 2007
Location: München

 
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
 
pulser_g2
Old
#10  
pulser_g2's Avatar
Developer Admin / Elite Recognized Developer
Thanks Meter 8049
Posts: 18,420
Join Date: Nov 2009
Location: United Kingdom Likes: Galaxy Note 2 Dislikes: Noobs
https://santoku-linux.com/howto/mobi...oid-encryption

A good reason to use this, and have a strong encryption key, rather than relying on the PIN yo secure the actual encryption key...


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;


If you wish to apply for one of the Recognized Themer/Contributor titles, or have a question, please DO NOT send me a PM about it. Instead please contact your device's forum moderator, or a senior moderator, who will deal with your application. Thanks
 
Post Reply+
Tags
ics encryption
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

report this ad
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...