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

Commit adb69034 authored by nadlabak's avatar nadlabak
Browse files

Unsolicited informational event should not be put in the response queue. It...

Unsolicited informational event should not be put in the response queue. It can break e.g. the reading of the asec list returned from vold - package manager then assumes no secure containers on sdcard, which can result in system_server being killed by vold during sdcard unmount, in case it keeps a recently run pkg.apk file in an asec opened.

Change-Id: I068d8ef8cd244fde03f08b1f6b3f920eb9135aaf
parent 1f63c7ec
Loading
Loading
Loading
Loading
+6 −5
Original line number Diff line number Diff line
@@ -129,12 +129,13 @@ final class NativeDaemonConnector implements Runnable {
                                    Slog.e(TAG, String.format(
                                            "Error handling '%s'", event), ex);
                                }
                            }
                            } else {
                                try {
                                    mResponseQueue.put(event);
                                } catch (InterruptedException ex) {
                                    Slog.e(TAG, "Failed to put response onto queue", ex);
                                }
                            }
                        } catch (NumberFormatException nfe) {
                            Slog.w(TAG, String.format("Bad msg (%s)", event));
                        }