Is there an app that can be given permission to intercept the unlock code and upon receiving the panic/under duress code, discretely put the phone into a "parental controls" configuration that sandboxes all your data and only presents the storage you want the law enforcement children to see? Some cops use a USB device that pulls all the data from the phone. Is there a way to sandbox that data so they only get the data from approved apps and the forensics USB device does not know any better? i.e. not denied data, but rather can only see what you want it to see. Or should this be a feature request to the alternate phone operating systems developers?
Maybe this duress code should also activate a timer. If the all-clear code is not entered in a user-defined period of time, the phone wipes all user data in the background resetting it to a brand new phone. Or maybe wipe the data for specified applications to not appear to destroy evidence? Maybe also send network notifications(s) to specific in case of mission compromise destinations?
[Edit] Feature request update. This duress system should also log all the data that was added or planted after the duress code was entered, to log people planting evidence. Upload encrypted manifest,timestamps and checksums to remote site in the event law enforcement tamper with evidence.