FileProvider getUriForFile() error on Huawei devices
Update for Android N (leaving the original answer below and have confirmed this new approach works in production): As you noted in your update, many Huawei device models (e.g. KIW-L24, ALE-L21, ALE-L02, PLK-L01, and a variety of others) break the Android contract for calls to ContextCompat#getExternalFilesDirs(String). Rather than returning Context#getExternalFilesDir(String) (ie the default entry) as …