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

Commit 6d5fd73d authored by David Ng's avatar David Ng Committed by Linux Build Service Account
Browse files

ShutdownThread: Skip loading of oem-services

Rely on oem-services as part of bootclasspath instead of
explicit loading in SystemServer::ShutdownThread.

Change-Id: I49cbaa726777bdf88fb466de772b857a84698b6a
parent 2bf89af5
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -728,8 +728,6 @@ public final class ShutdownThread extends Thread {

    private static void deviceRebootOrShutdown(boolean reboot, String reason) {
        Class<?> cl;
        PathClassLoader oemClassLoader = new PathClassLoader("/system/framework/oem-services.jar",
                                                             ClassLoader.getSystemClassLoader());
        String deviceShutdownClassName = "com.qti.server.power.ShutdownOem";
        try {
            cl = Class.forName(deviceShutdownClassName);