From caa98a88541ccd6ddc79f36b92e12fe313111a75 Mon Sep 17 00:00:00 2001 From: YuutaW <17158086+Trumeet@users.noreply.github.com> Date: Sun, 24 Mar 2019 14:34:48 -0700 Subject: chore: update dependencies & remove hidden api module Signed-off-by: YuutaW <17158086+Trumeet@users.noreply.github.com> --- .../moe/yuuta/sysuicontroller/auto_start/AutoStartWorker.java | 9 +++++---- .../java/moe/yuuta/sysuicontroller/core/ControllerService.java | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) (limited to 'app/src') diff --git a/app/src/main/java/moe/yuuta/sysuicontroller/auto_start/AutoStartWorker.java b/app/src/main/java/moe/yuuta/sysuicontroller/auto_start/AutoStartWorker.java index 650eeb3..2ae465b 100644 --- a/app/src/main/java/moe/yuuta/sysuicontroller/auto_start/AutoStartWorker.java +++ b/app/src/main/java/moe/yuuta/sysuicontroller/auto_start/AutoStartWorker.java @@ -5,13 +5,14 @@ import android.content.SharedPreferences; import android.os.RemoteException; import android.util.Log; +import androidx.annotation.NonNull; +import androidx.work.Worker; +import androidx.work.WorkerParameters; + import java.util.List; import java.util.concurrent.CountDownLatch; import java.util.concurrent.TimeUnit; -import androidx.annotation.NonNull; -import androidx.work.Worker; -import androidx.work.WorkerParameters; import eu.chainfire.librootjava.RootIPCReceiver; import eu.chainfire.librootjavadaemon.RootDaemon; import eu.chainfire.libsuperuser.Shell; @@ -71,6 +72,6 @@ public class AutoStartWorker extends Worker { mReceiver.release(); shell.kill(); // Kill the process, will make it idle and it won't kill the forked process shell.close(); - return Result.SUCCESS; + return Result.success(); } } diff --git a/app/src/main/java/moe/yuuta/sysuicontroller/core/ControllerService.java b/app/src/main/java/moe/yuuta/sysuicontroller/core/ControllerService.java index 7b71817..cd9205b 100644 --- a/app/src/main/java/moe/yuuta/sysuicontroller/core/ControllerService.java +++ b/app/src/main/java/moe/yuuta/sysuicontroller/core/ControllerService.java @@ -60,7 +60,7 @@ public class ControllerService extends IStatusController.Stub { @SuppressLint("PrivateApi") Method mGetService = StatusBarManager.class.getDeclaredMethod("getService"); mGetService.setAccessible(true); mService = (IStatusBarService) mGetService.invoke(mManager); - RootDaemon.daemonize(BuildConfig.APPLICATION_ID, CODE_SERVICE); + RootDaemon.daemonize(BuildConfig.APPLICATION_ID, CODE_SERVICE, false, null); RootJava.restoreOriginalLdLibraryPath(); RootDaemon.register(BuildConfig.APPLICATION_ID, this, CODE_SERVICE); Log.i(TAG, "Started at " + new Date().toString()); -- cgit v1.2.3-70-g09d2