Tabnine Logo
CondomProcess.validateCondomOptions
Code IndexAdd Tabnine to your IDE (free)

How to use
validateCondomOptions
method
in
com.oasisfeng.condom.CondomProcess

Best Java code snippets using com.oasisfeng.condom.CondomProcess.validateCondomOptions (Showing top 4 results out of 315)

origin: oasisfeng/condom

/**
 * Install the condom protection for current process if it is not the default process.
 *
 * <p>This method must be called in {@link Application#onCreate()} to eliminate potential leakage.
 */
public static void installExceptDefaultProcess(final Application app, final CondomOptions options) {
  validateCondomOptions(options);
  final String current_process_name = getProcessName(app);
  if (current_process_name == null) return;
  final String default_process_name = app.getApplicationInfo().processName;
  if (! current_process_name.equals(default_process_name)) install(app, current_process_name, options);
}
origin: oasisfeng/condom

/**
 * Install the condom protection for current process if its process name matches. This method should be called in {@link Application#onCreate()}.
 *
 * @param process_names list of processes where Condom process should NOT be installed, in the form exactly as defined
 *                      by <code>"android:process"</code> attribute of components in <code>AndroidManifest.xml</code>.
 *                      <b>BEWARE: Default process must be explicitly listed here if it is expected to be excluded.</b>
 */
public static void installExcept(final Application app, final CondomOptions options, final String... process_names) {
  if (process_names.length == 0) throw new IllegalArgumentException("At lease one process name must be specified");
  validateCondomOptions(options);
  final String current_process_name = getProcessName(app);
  if (current_process_name == null) return;
  for (final String process_name : process_names)
    if (! current_process_name.equals(getFullProcessName(app, process_name))) {
      install(app, current_process_name, options);
      return;
    }
  if ((app.getApplicationInfo().flags & ApplicationInfo.FLAG_DEBUGGABLE) != 0) validateProcessNames(app, process_names);
}
origin: Trumeet/MiPushFramework

/**
 * Install the condom protection for current process if it is not the default process.
 *
 * <p>This method must be called in {@link Application#onCreate()} to eliminate potential leakage.
 */
public static void installExceptDefaultProcess(final Application app, final CondomOptions options) {
  validateCondomOptions(options);
  final String current_process_name = getProcessName(app);
  if (current_process_name == null) return;
  final String default_process_name = app.getApplicationInfo().processName;
  if (! current_process_name.equals(default_process_name)) install(app, current_process_name, options);
}
origin: Trumeet/MiPushFramework

/**
 * Install the condom protection for current process if its process name matches. This method should be called in {@link Application#onCreate()}.
 *
 * @param process_names list of processes where Condom process should NOT be installed, in the form exactly as defined
 *                      by <code>"android:process"</code> attribute of components in <code>AndroidManifest.xml</code>.
 *                      <b>BEWARE: Default process must be explicitly listed here if it is expected to be excluded.</b>
 */
public static void installExcept(final Application app, final CondomOptions options, final String... process_names) {
  if (process_names.length == 0) throw new IllegalArgumentException("At lease one process name must be specified");
  validateCondomOptions(options);
  final String current_process_name = getProcessName(app);
  if (current_process_name == null) return;
  for (final String process_name : process_names)
    if (! current_process_name.equals(getFullProcessName(app, process_name))) {
      install(app, current_process_name, options);
      return;
    }
  if ((app.getApplicationInfo().flags & ApplicationInfo.FLAG_DEBUGGABLE) != 0) validateProcessNames(app, process_names);
}
com.oasisfeng.condomCondomProcessvalidateCondomOptions

Popular methods of CondomProcess

  • installExceptDefaultProcess
    Install the condom protection for current process if it is not the default process.This method must
  • getFullProcessName
  • getProcessName
  • install
  • installCondomProcessActivityManager
  • installCondomProcessPackageManager
  • validateProcessNames
  • installExcept
    Install the condom protection for current process if its process name matches. This method should be

Popular in Java

  • Creating JSON documents from java classes using gson
  • getResourceAsStream (ClassLoader)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getContentResolver (Context)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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