I'm interested in storing data in hardware backed storage(in TrustZone) as described in https://developer.android.com/about/versions/android-4.3.html.
Do these survive a factory reset?
Keys stored in Android Keystore are invalidated when the device security settings (device-lock) are changed by the user. Presumably a hardware reset, that also reset the security setting will invalidate the keys
In this article Android security the forgetful keystore is analyzed the behaviour of Android Keystore and hardware support.