mirror of
https://github.com/Helium314/HeliBoard.git
synced 2025-06-10 00:27:45 +00:00
gather crash information more aggressively
especially for crashes while device is locked might help with #801
This commit is contained in:
parent
e4e99a7e5d
commit
3fcea486be
4 changed files with 21 additions and 13 deletions
|
@ -52,10 +52,18 @@ public final class JniUtils {
|
|||
.getMethod("currentApplication").invoke(null, (Object[]) null);
|
||||
} catch (Exception ignored) { }
|
||||
}
|
||||
if (app != null) // use the actual path if possible
|
||||
if (app != null && app.getFilesDir() != null) // use the actual path if possible
|
||||
filesDir = app.getFilesDir().getAbsolutePath();
|
||||
final File userSuppliedLibrary = new File(filesDir + File.separator + JNI_LIB_IMPORT_FILE_NAME);
|
||||
if (!BuildConfig.BUILD_TYPE.equals("nouserlib") && userSuppliedLibrary.exists()) {
|
||||
|
||||
File userSuppliedLibrary;
|
||||
try {
|
||||
userSuppliedLibrary = new File(filesDir + File.separator + JNI_LIB_IMPORT_FILE_NAME);
|
||||
if (!userSuppliedLibrary.isFile())
|
||||
userSuppliedLibrary = null;
|
||||
} catch (Exception e) {
|
||||
userSuppliedLibrary = null;
|
||||
}
|
||||
if (!BuildConfig.BUILD_TYPE.equals("nouserlib") && userSuppliedLibrary != null) {
|
||||
String wantedChecksum = expectedDefaultChecksum();
|
||||
try {
|
||||
if (app != null) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue