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

Commit 74d69971 authored by Andrei-Valentin Onea's avatar Andrei-Valentin Onea Committed by Android (Google) Code Review
Browse files

Merge "Fix regression in Dalvik:HEAP_TOTAL"

parents a5c5ced4 07aab083
Loading
Loading
Loading
Loading
+7 −2
Original line number Original line Diff line number Diff line
@@ -334,9 +334,14 @@ class ZygoteConnection {
        }
        }
    }
    }


    private class HiddenApiUsageLogger implements VMRuntime.HiddenApiUsageLogger {
    private static class HiddenApiUsageLogger implements VMRuntime.HiddenApiUsageLogger {


        private final MetricsLogger mMetricsLogger = new MetricsLogger();
        private final MetricsLogger mMetricsLogger = new MetricsLogger();
        private static HiddenApiUsageLogger sInstance = new HiddenApiUsageLogger();

        public static HiddenApiUsageLogger getInstance() {
            return HiddenApiUsageLogger.sInstance;
        }


        public void hiddenApiUsed(String packageName, String signature,
        public void hiddenApiUsed(String packageName, String signature,
                int accessMethod, boolean accessDenied) {
                int accessMethod, boolean accessDenied) {
@@ -370,7 +375,7 @@ class ZygoteConnection {
    private void handleHiddenApiAccessLogSampleRate(int samplingRate) {
    private void handleHiddenApiAccessLogSampleRate(int samplingRate) {
        try {
        try {
            ZygoteInit.setHiddenApiAccessLogSampleRate(samplingRate);
            ZygoteInit.setHiddenApiAccessLogSampleRate(samplingRate);
            ZygoteInit.setHiddenApiUsageLogger(new HiddenApiUsageLogger());
            ZygoteInit.setHiddenApiUsageLogger(HiddenApiUsageLogger.getInstance());
            mSocketOutStream.writeInt(0);
            mSocketOutStream.writeInt(0);
        } catch (IOException ioe) {
        } catch (IOException ioe) {
            throw new IllegalStateException("Error writing to command socket", ioe);
            throw new IllegalStateException("Error writing to command socket", ioe);