Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Austin White
Courses Plus Student 607 Pointsandroid system encryption key
Android decrypts your device when you enter the right encryption key at boot up. Android removes the encryption key / encryption mapping ( I'm am not an expert in encryption) when you power off the device thus making the device encrypted / unreadable(without the encryption key). Is there a command or api that can remove the encryption key / mapping without powering off the device? I have already quickly skimmed through the device administrator description page on Google with no luck.
1 Answer
miguelcastro2
Courses Plus Student 6,573 PointsYou can disable encryption while the Android device is running by going to Settings -> Security and selecting the Encrypt device settings.
Austin White
Courses Plus Student 607 PointsAustin White
Courses Plus Student 607 PointsI need to remove the encryption key from within a app. for instance if ... happens then remove encryption key. I don't want to disable encryption, I want to basically encrypt the device again. if .... happens then go back to the state where the user would have to enter their encryption key( at boot up). when you first power on your device you have to enter an encryption key( if encryption is enabled) or the data is unreadable. when the device is powered down that encryption key is removed from memory. encryption is like a maze, multiple pathways/math equations. an encryption key is like a map of the maze with a red line showing the way out. it takes no time to get of the maze with the map but without it. you would be stuck in the maze for a long time( with encryption several thousand years). I need a way to remove/delete the encryption key from memory(ram).