Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e94de8a3 authored by Mohammed Althaf T's avatar Mohammed Althaf T 😊 Committed by Jonathan Klee
Browse files

StorageManagerService: Ignore user storage exceptions for emulator builds

 - RuntimeException throwing and infinite bootloop on emulator builds.
 - Introduced from july security patch

Change-Id: I13eddee2115b95157b65a3e77d11872ad0dd3a3b
parent 19444622
Loading
Loading
Loading
Loading
+4 −0
Original line number Original line Diff line number Diff line
@@ -83,6 +83,7 @@ import android.content.res.ObbInfo;
import android.database.ContentObserver;
import android.database.ContentObserver;
import android.net.Uri;
import android.net.Uri;
import android.os.Binder;
import android.os.Binder;
import android.os.Build;
import android.os.DropBoxManager;
import android.os.DropBoxManager;
import android.os.Environment;
import android.os.Environment;
import android.os.Handler;
import android.os.Handler;
@@ -3408,6 +3409,9 @@ class StorageManagerService extends IStorageManager.Stub
                }
                }
            }
            }
        } catch (Exception e) {
        } catch (Exception e) {
            if (Build.IS_EMULATOR) {
                return;
            }
            EventLog.writeEvent(0x534e4554, "224585613", -1, "");
            EventLog.writeEvent(0x534e4554, "224585613", -1, "");
            Slog.wtf(TAG, e);
            Slog.wtf(TAG, e);
            // Make sure to re-throw this exception; we must not ignore failure
            // Make sure to re-throw this exception; we must not ignore failure