Let's suppose I have done the most I can to secure my phone on a software level (e.g. encrypted storage, restricted app permissions ... whatever you consider "maximally secure"). Is physical access still game over?
It is very trendy to say "everything can be hacked", but in your case the game is not over. Mobile OS enables much more security hardenings than PC. Let's consider the basic way how data is protected in a modern mobile OS:
- You set a password
- Password -> symmetric key
- Key -> encrypted storage
Considering you have done the most you can to secure your phone, there are 2 options to access your phone:
- brute-force your password (a guessed password means an access to your data)
- do a factory reset (you loose data, but data remains confidential)
For instance, let's say, if operating system doesn't save your password on disk as a plain text, and your mobile device has been rebooted (so keys don't stay in memory): your data is safe. It means that offline attack is almost impossible. (I said "almost" but it also means the game is not over yet).
Therefore to be sure about data confidentiality, be sure you do your best:
- Choose a difficult password/PIN
- Don't forget to lock your device with any kind of credentials
And yes, theoretically there is no absolute security: OS may just not encrypt files, or it may leak encryption keys, even cryptography is based on a relative difficulty to solve a particular mathematical problem, or on difficulty to attack a particular cipher.