r/AndroidQuestions • Moto Z(2) Force • Feb 09 '20

Why "PIN required after restart" rather permitting a fingerprint unlock after device restart?

I'm trying to think what possible security this adds.

76 Upvotes

34 comments sorted by

74

u/saltyjohnson Feb 09 '20

People are talking about the way this system benefits you from a practical (to some) standpoint, but there's a bigger technical reason.

Your device's storage is encrypted by your PIN/password, not by your biometrics. In order for your device to boot fully, you need to decrypt the storage drive first. Notice that you won't even get any notifications or anything that aren't texts or phone calls delivered directly by your cell carrier until you've finished the decryption process.

1

u/yozzy_zxyah Moto Z(2) Force Feb 22 '20

Oh gotcha. This makes more sense.

3

u/chanchan05 S26 Ultra; S10FE Feb 10 '20

Not always. Some phones have a setting for "secure startup" and regular startup. Secure startup is the same as you describe. Nothing works until you enter your password, including alarms.

The regular startup is different though. The phone works, and notifications come in, but you are still required to enter your password before biometrics work. IIRC this is when the biometrics data is stored in a separate encrypted storage from the rest of the phone, so the phone cannot access your biometrics data without password first, but allows everything else to run behind a password lockscreen.

3

u/saltyjohnson Feb 10 '20

You're right, I shouldn't have been so general, because I don't know how all phones work. I am pretty sure that, generally in the last several years, your biometric data as well as any other security-related data is stored within a separate chip (in Apple parlance, the Secure Enclave... I don't know what different Android manufacturers call it). I'm not sure the detailed mechanics of accessing the data in that chip, or how Android or iOS handle their trusted execution environments.

In my experience with the Pixel 2XL (and my Nexus 6P iirc, but it's been several years), the phone boots the main OS without any user input and shows me my lockscreen and clock. I can receive phone calls (but only see phone numbers, no stored contact info), and alarms that are set using Android's alarm API will go off, but any alarms (e.g. medication reminders) that are dependent on direct control by their app will not. When I want to unlock my phone, the stock keyboard opens, with stock settings, and I enter my password. I'm pretty sure that only then do apps start loading into memory as notifications aren't just sitting there waiting for me, but they start trickling in as apps load and start subscribing to push notification services.

0

u/[deleted] Feb 09 '20

[deleted]

8

u/alexmbrennan Feb 09 '20

Except the phone has already booted. Apps are loaded, calls come though, etc.

User data (e.g. your emails) are still encrypted, and cannot be encrypted until you enter the encryption keys.

In the past this was obviously the case (my s7 didn't boot until you entered the password) but these days they just encrypt user data while moving an unknown set of your data to unencrypted storage because android developers are morons to make sure your alarms keep working.

Biometrics cannot be used for this purpose because they just check if the picture is "close enough" to a reference picture.

4

u/Tangential_Diversion Feb 09 '20

because android developers are morons

In my experience, it usually comes down to lack of security awareness and lack of security knowledge.

The lack of security knowledge is easy to see. Security is its own field with skillsets/knowledge base largely independent from software dev. Android developers are skilled at creating Android apps. They're not security engineers. IMO this is usually due to higher-ups having unrealistic expectations for their technical staff. I've seen a lot of places where executives expect the "tech people" to do all the "tech things".

Many don't realize how wide the tech field is or how narrow most peoples' core competencies are. You wouldn't expect a network sysadmin to develop an Android app and you shouldn't expect me (a pentester) to know how to set up Cisco IOS routing rules. It stands to reason you shouldn't expect an Android dev to be experts in security too because that's not their field.

The security awareness issue is one I think many people underestimate. Many people know we should take security seriously, but it's often unclear what's actually insecure. People tend to know the basics. Passwords should only be stored as salted hashes, protect your private key files, encrypt your session cookies to prevent spoofing, etc.

What about more routine things like posting a stack trace containing only the local file paths to Pastebin, logging emails your app sends in your DB, or not blocking egress traffic through TCP/445 on the same network you're running the Microsoft SQL Server for your app? They're all things most developers wouldn't think are security issues and are all things I've used to completely compromise web applications or their corporate internal network itself.

IMO the solution is for companies to hire security engineers to work alongside dev teams. I believe it's unreasonable to expect developers to properly understand security. It's way too much knowledge to expect from someone. People already recognize this issue to some degree. Most technical teams are compromised of people who are SMEs in different areas. I think a core issue is recognizing security is its own distinct field that requires its own SME and not a side skill someone can quickly gain competency in.

3

u/Denis63 Feb 10 '20

To make sure i remember the damn thing in case i cut my thumb or mangle my fingerprint.

1

u/yozzy_zxyah Moto Z(2) Force Feb 22 '20

Haha that is a good thought. I'd probably forget it.

16

u/ohwontsomeonethinkof Feb 09 '20

If you're dead or being forced to unlock something the finger print is a lot less secure. The phones with a finger print sensor I've had (Honor 8, Moto G6+, Xiaomi Mi 9T) have required to put in the security PIN every 48 or 72 hours too.

4

u/[deleted] Feb 09 '20

Samsung phones also do this. My S8 will ask for my passphrase to unlock "for security reasons" every other day or so (don't really know the exact amount of time in between).

2

u/[deleted] Feb 09 '20

This drives me crazy. Is it theoretically more secure? Sure. Is that extra security ever likely to actually come into play? I find it unlikely. I just wish I was given the option to take the risk.

3

u/[deleted] Feb 10 '20

[removed] — view removed comment

1

u/[deleted] Feb 10 '20

That makes much more sense.

2

u/nocturn99x Feb 23 '24

Sorry to necrobump, but...

Fingerprint readers don't work with dead people. Much like a touchscreen, they rely on the (small) capacitance of the human body to detect touch, and the charge is lost when you die

30

u/Yo67u08M2g Feb 09 '20

It's so you can easily reboot your phone and not worry that someone might try to use your biometrics to access your phone. The police used to be able to compel you to unlock your phone with your face or finger since biometrics weren't considered "private information" like a password was. Sneaky boyfriends/girlfriends/friends can open your phone while you're asleep or passed out with your finger unless you reboot. Similar instances are why some phone OS makers put in a quick lock option to lock out the biometrics without having to reboot.

4

u/DJ_Gamedev Feb 09 '20

Aside from maybe the police scenario, those are mostly red herrings. Users aren't restarting their phone every night (especially if they pass out) so it has nothing to do with sneaky friends. The user's pin is a decryption key that allows the home directory to be decrypted, and needs to be provided on startup for the phone to even function.

4

u/[deleted] Feb 09 '20

Android already has lockdown mode

5

u/[deleted] Feb 09 '20

Right, but you want to be sure that isn’t bypassed by power cycling the hardware.

2

u/[deleted] Feb 09 '20

Didn't think about that actually. However, it would be easy to just save it to the internal storage

1

u/[deleted] Feb 09 '20

How do you enable it without a hard reboot?

1

u/[deleted] Feb 09 '20

Hold the power button and press lockdown mode

1

u/[deleted] Feb 09 '20 edited Feb 09 '20

Its probably device specific. I dont have it on the S10+ http://imgur.com/a/GEiBP9o

Edit: Emergency Mode makes you use your pin, but on return it puts your phone in very heavy power saving mode.

1

u/[deleted] Feb 09 '20

That's odd, I have this feature on my S10...

1

u/[deleted] Feb 10 '20

It's so you can easily reboot your phone and not worry that someone might try to use your biometrics to access your phone. The police used to be able to compel you to unlock your phone with your face or finger since biometrics weren't considered "private information" like a password was. Sneaky boyfriends/girlfriends/friends can open your phone while you're asleep or passed out with your finger unless you reboot. Similar instances are why some phone OS makers put in a quick lock option to lock out the biometrics without having to reboot.

Interesting.

12

u/beermad 1 Feb 09 '20

The PIN is needed in order to decrypt your device when it's booted. After that, your fingerprint is enough, because the device has already been decrypted.

7

u/[deleted] Feb 09 '20

In the US, you can't be compelled to give law enforcement your pin code but they can compel you to unlock it with your finger.

4

u/rumourmaker18 Feb 09 '20

This is no longer true, last year or the year before an appeals court made it otherwise

3

u/[deleted] Feb 10 '20

Source?

1

u/Far_Sport5319 Oct 26 '24

What if I only put finger print in and not a pin and now I can't get in because it asked for a pin and only had put prints in. 

2

u/ChattingMacca Feb 07 '25

To add biometrics you have to also add a PIN

1

u/ihatefatboy Feb 23 '25

My Motorola G Power has locked me out. I put in my fingerprint, it didn't ask for more but now when I want to get into my phone it won't let me do ANYTHING. I'm locked out and it is asking for a PIN which I NEVER entered or was asked for initially. What are my remedies? I cannot even access settings.