content: package top.niunaijun.blackbox.fake.frameworks;
  
  import android.os.RemoteException;
  
  import java.util.Collections;
  import java.util.List;
  
  import top.niunaijun.blackbox.core.system.ServiceManager;
  import top.niunaijun.blackbox.core.system.pm.IBXposedManagerService;
  import top.niunaijun.blackbox.entity.pm.InstalledModule;
  
  /**
   * updated by alex5402 on 5/2/21.
   * * ∧＿∧
   * (`･ω･∥
   * 丶　つ０
   * しーＪ
   * TFNQw5HgWUS33Ke1eNmSFTwoQySGU7XNsK (USDT TRC20)
   */
  public class BXposedManager extends BlackManager<IBXposedManagerService> {
      private static final BXposedManager sXposedManager = new BXposedManager();
  
      public static BXposedManager get() {
          return sXposedManager;
      }
  
      @Override
      protected String getServiceName() {
          return ServiceManager.XPOSED_MANAGER;
      }
  
      public boolean isXPEnable() {
          try {
              return getService().isXPEnable();
          } catch (RemoteException e) {
              e.printStackTrace();
          }
          return false;
      }
  
      public void setXPEnable(boolean enable) {
          try {
              getService().setXPEnable(enable);
          } catch (RemoteException e) {
              e.printStackTrace();
          }
      }
  
      public boolean isModuleEnable(String packageName) {
          try {
              return getService().isModuleEnable(packageName);
          } catch (RemoteException e) {
              e.printStackTrace();
          }
          return false;
      }
  
      public void setModuleEnable(String packageName, boolean enable) {
          try {
              getService().setModuleEnable(packageName, enable);
          } catch (RemoteException e) {
              e.printStackTrace();
          }
      }
  
      public List<InstalledModule> getInstalledModules() {
          try {
              return getService().getInstalledModules();
          } catch (RemoteException e) {
              e.printStackTrace();
          }
          return Collections.emptyList();
      }
  }
  