All Downloads are FREE. Search and download functionalities are using the official Maven repository.

soot.jimple.infoflow.android.manifest.ProcessManifest Maven / Gradle / Ivy

package soot.jimple.infoflow.android.manifest;

import java.io.File;
import java.io.IOException;
import java.io.InputStream;

import org.xmlpull.v1.XmlPullParserException;

import soot.jimple.infoflow.android.axml.AXmlNode;
import soot.jimple.infoflow.android.manifest.binary.BinaryManifestActivity;
import soot.jimple.infoflow.android.manifest.binary.BinaryManifestBroadcastReceiver;
import soot.jimple.infoflow.android.manifest.binary.BinaryManifestContentProvider;
import soot.jimple.infoflow.android.manifest.binary.BinaryManifestService;
import soot.jimple.infoflow.android.resources.ARSCFileParser;

/**
 * This class provides easy access to all data of an AppManifest.
* Nodes and attributes of a parsed manifest can be changed. A new byte * compressed manifest considering the changes can be generated. * * @author Steven Arzt * @author Stefan Haas, Mario Schlipf * @see App * Manifest */ public class ProcessManifest extends BaseProcessManifest { public ProcessManifest(File apkFile, ARSCFileParser arscParser) throws IOException, XmlPullParserException { super(apkFile, arscParser); } public ProcessManifest(File apkFile) throws IOException, XmlPullParserException { super(apkFile); } public ProcessManifest(InputStream manifestIS, ARSCFileParser arscParser) throws IOException, XmlPullParserException { super(manifestIS, arscParser); } public ProcessManifest(String apkPath) throws IOException, XmlPullParserException { super(apkPath); } @Override protected IComponentFactory createComponentFactory() { return new IComponentFactory() { @Override public BinaryManifestActivity createActivity(AXmlNode node) { return new BinaryManifestActivity(node, ProcessManifest.this); } @Override public BinaryManifestBroadcastReceiver createBroadcastReceiver(AXmlNode node) { return new BinaryManifestBroadcastReceiver(node, ProcessManifest.this); } @Override public BinaryManifestContentProvider createContentProvider(AXmlNode node) { return new BinaryManifestContentProvider(node, ProcessManifest.this); } @Override public BinaryManifestService createService(AXmlNode node) { return new BinaryManifestService(node, ProcessManifest.this); } }; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy