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

Commit 455dc31e authored by Aravind Asam's avatar Aravind Asam Committed by Ricardo Cerqueira
Browse files

Use absolute paths for WBC

For both wbc.jar and wbcservice.jar

Change-Id: I2c61a1361847e06e89b900d8a3795ab6aee959ab
parent fe76e80a
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -957,7 +957,7 @@ public final class SystemServer {
                    Slog.i(TAG, "WipowerBatteryControl Service");
                    Slog.i(TAG, "WipowerBatteryControl Service");


                    PathClassLoader wbcClassLoader =
                    PathClassLoader wbcClassLoader =
                        new PathClassLoader("system/framework/com.quicinc.wbc.jar:system/framework/com.quicinc.wbcservice.jar",
                        new PathClassLoader("/system/framework/com.quicinc.wbc.jar:/system/framework/com.quicinc.wbcservice.jar",
                                            ClassLoader.getSystemClassLoader());
                                            ClassLoader.getSystemClassLoader());
                    Class wbcClass = wbcClassLoader.loadClass("com.quicinc.wbcservice.WbcService");
                    Class wbcClass = wbcClassLoader.loadClass("com.quicinc.wbcservice.WbcService");
                    Constructor<Class> ctor = wbcClass.getConstructor(Context.class);
                    Constructor<Class> ctor = wbcClass.getConstructor(Context.class);