This reverts commit 35d8f3c1ce.
This commit is contained in:
parent
35d8f3c1ce
commit
cf641b1854
|
|
@ -59,6 +59,18 @@
|
||||||
android:name=".ui.activity.CrashReportActivity"
|
android:name=".ui.activity.CrashReportActivity"
|
||||||
android:process=":error_activity" />
|
android:process=":error_activity" />
|
||||||
|
|
||||||
|
<receiver
|
||||||
|
android:name=".receivers.ServiceReceiver"
|
||||||
|
android:exported="true"
|
||||||
|
android:permission="android.permission.INTERACT_ACROSS_USERS_FULL">
|
||||||
|
<intent-filter>
|
||||||
|
<action android:name="org.lsposed.action.MODULE_UPDATED" />
|
||||||
|
<action android:name="org.lsposed.action.MODULE_NOT_ACTIVATAED" />
|
||||||
|
|
||||||
|
<data android:scheme="package" />
|
||||||
|
</intent-filter>
|
||||||
|
</receiver>
|
||||||
|
|
||||||
<provider
|
<provider
|
||||||
android:name="androidx.core.content.FileProvider"
|
android:name="androidx.core.content.FileProvider"
|
||||||
android:authorities="${applicationId}.fileprovider"
|
android:authorities="${applicationId}.fileprovider"
|
||||||
|
|
|
||||||
|
|
@ -20,11 +20,9 @@
|
||||||
|
|
||||||
package org.lsposed.manager;
|
package org.lsposed.manager;
|
||||||
|
|
||||||
import android.Manifest;
|
|
||||||
import android.annotation.SuppressLint;
|
import android.annotation.SuppressLint;
|
||||||
import android.app.Application;
|
import android.app.Application;
|
||||||
import android.content.Intent;
|
import android.content.Intent;
|
||||||
import android.content.IntentFilter;
|
|
||||||
import android.content.SharedPreferences;
|
import android.content.SharedPreferences;
|
||||||
import android.os.Build;
|
import android.os.Build;
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
|
|
@ -35,7 +33,6 @@ import androidx.preference.PreferenceManager;
|
||||||
import com.google.gson.JsonParser;
|
import com.google.gson.JsonParser;
|
||||||
|
|
||||||
import org.lsposed.hiddenapibypass.HiddenApiBypass;
|
import org.lsposed.hiddenapibypass.HiddenApiBypass;
|
||||||
import org.lsposed.manager.receivers.ServiceReceiver;
|
|
||||||
import org.lsposed.manager.repo.RepoLoader;
|
import org.lsposed.manager.repo.RepoLoader;
|
||||||
import org.lsposed.manager.ui.activity.CrashReportActivity;
|
import org.lsposed.manager.ui.activity.CrashReportActivity;
|
||||||
import org.lsposed.manager.util.DoHDNS;
|
import org.lsposed.manager.util.DoHDNS;
|
||||||
|
|
@ -124,14 +121,8 @@ public class App extends Application {
|
||||||
}
|
}
|
||||||
DayNightDelegate.setApplicationContext(this);
|
DayNightDelegate.setApplicationContext(this);
|
||||||
DayNightDelegate.setDefaultNightMode(ThemeUtil.getDarkTheme());
|
DayNightDelegate.setDefaultNightMode(ThemeUtil.getDarkTheme());
|
||||||
|
|
||||||
var filter = new IntentFilter();
|
|
||||||
filter.addAction("org.lsposed.action.MODULE_UPDATED");
|
|
||||||
filter.addAction("org.lsposed.action.MODULE_NOT_ACTIVATAED");
|
|
||||||
registerReceiver(new ServiceReceiver(), filter, Manifest.permission.ACCOUNT_MANAGER, null);
|
|
||||||
|
|
||||||
loadRemoteVersion();
|
|
||||||
RepoLoader.getInstance().loadRemoteData();
|
RepoLoader.getInstance().loadRemoteData();
|
||||||
|
loadRemoteVersion();
|
||||||
}
|
}
|
||||||
|
|
||||||
@NonNull
|
@NonNull
|
||||||
|
|
|
||||||
|
|
@ -145,7 +145,7 @@ public class LSPosedService extends ILSPosedService.Stub {
|
||||||
broadcastIntent.setData(intent.getData());
|
broadcastIntent.setData(intent.getData());
|
||||||
broadcastIntent.putExtras(intent.getExtras());
|
broadcastIntent.putExtras(intent.getExtras());
|
||||||
broadcastIntent.putExtra(Intent.EXTRA_USER, userId);
|
broadcastIntent.putExtra(Intent.EXTRA_USER, userId);
|
||||||
broadcastIntent.setPackage(ConfigManager.getInstance().getManagerPackageName());
|
broadcastIntent.setComponent(ComponentName.unflattenFromString(ConfigManager.getInstance().getManagerPackageName() + "/.receivers.ServiceReceiver"));
|
||||||
|
|
||||||
try {
|
try {
|
||||||
ActivityManagerService.broadcastIntentWithFeature(null, broadcastIntent,
|
ActivityManagerService.broadcastIntentWithFeature(null, broadcastIntent,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue