congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
IPackageObserver.onPackageInstalled
Code IndexAdd Tabnine to your IDE (free)

How to use
onPackageInstalled
method
in
com.lody.virtual.server.interfaces.IPackageObserver

Best Java code snippets using com.lody.virtual.server.interfaces.IPackageObserver.onPackageInstalled (Showing top 3 results out of 315)

origin: android-hacker/VirtualXposed

private void notifyAppInstalled(PackageSetting setting, int userId) {
  final String pkg = setting.packageName;
  int N = mRemoteCallbackList.beginBroadcast();
  while (N-- > 0) {
    try {
      if (userId == -1) {
        sendInstalledBroadcast(pkg);
        mRemoteCallbackList.getBroadcastItem(N).onPackageInstalled(pkg);
        mRemoteCallbackList.getBroadcastItem(N).onPackageInstalledAsUser(0, pkg);
      } else {
        mRemoteCallbackList.getBroadcastItem(N).onPackageInstalledAsUser(userId, pkg);
      }
    } catch (RemoteException e) {
      e.printStackTrace();
    }
  }
  mRemoteCallbackList.finishBroadcast();
  VAccountManagerService.get().refreshAuthenticatorCache(null);
}
origin: darkskygit/VirtualApp

private void notifyAppInstalled(PackageSetting setting, int userId) {
  final String pkg = setting.packageName;
  int N = mRemoteCallbackList.beginBroadcast();
  while (N-- > 0) {
    try {
      if (userId == -1) {
        sendInstalledBroadcast(pkg);
        mRemoteCallbackList.getBroadcastItem(N).onPackageInstalled(pkg);
        mRemoteCallbackList.getBroadcastItem(N).onPackageInstalledAsUser(0, pkg);
      } else {
        mRemoteCallbackList.getBroadcastItem(N).onPackageInstalledAsUser(userId, pkg);
      }
    } catch (RemoteException e) {
      e.printStackTrace();
    }
  }
  mRemoteCallbackList.finishBroadcast();
  VAccountManagerService.get().refreshAuthenticatorCache(null);
}
origin: bzsome/VirtualApp-x326

private void notifyAppInstalled(PackageSetting setting, int userId) {
  final String pkg = setting.packageName;
  int N = mRemoteCallbackList.beginBroadcast();
  while (N-- > 0) {
    try {
      if (userId == -1) {
        sendInstalledBroadcast(pkg);
        mRemoteCallbackList.getBroadcastItem(N).onPackageInstalled(pkg);
        mRemoteCallbackList.getBroadcastItem(N).onPackageInstalledAsUser(0, pkg);
      } else {
        mRemoteCallbackList.getBroadcastItem(N).onPackageInstalledAsUser(userId, pkg);
      }
    } catch (RemoteException e) {
      e.printStackTrace();
    }
  }
  mRemoteCallbackList.finishBroadcast();
  VAccountManagerService.get().refreshAuthenticatorCache(null);
}
com.lody.virtual.server.interfacesIPackageObserveronPackageInstalled

Popular methods of IPackageObserver

  • onPackageInstalledAsUser
  • onPackageUninstalled
  • onPackageUninstalledAsUser

Popular in Java

  • Reading from database using SQL prepared statement
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • setScale (BigDecimal)
  • findViewById (Activity)
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • PhpStorm for WordPress
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now