• 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏吧

Java InstrumentationHook类的典型用法和代码示例

java 2次浏览

本文整理汇总了Java中com.morgoo.droidplugin.hook.proxy.InstrumentationHook的典型用法代码示例。如果您正苦于以下问题:Java InstrumentationHook类的具体用法?Java InstrumentationHook怎么用?Java InstrumentationHook使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。

InstrumentationHook类属于com.morgoo.droidplugin.hook.proxy包,在下文中一共展示了InstrumentationHook类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: installHook

点赞 2

import com.morgoo.droidplugin.hook.proxy.InstrumentationHook; //导入依赖的package包/类
public final void installHook(Context context, ClassLoader classLoader) throws Throwable {
        installHook(new IClipboardBinderHook(context), classLoader);
        //for ISearchManager
        installHook(new ISearchManagerBinderHook(context), classLoader);
        //for INotificationManager
        installHook(new INotificationManagerBinderHook(context), classLoader);
        installHook(new IMountServiceBinderHook(context), classLoader);
        installHook(new IAudioServiceBinderHook(context), classLoader);
        installHook(new IContentServiceBinderHook(context), classLoader);
        installHook(new IWindowManagerBinderHook(context), classLoader);
        if (VERSION.SDK_INT > VERSION_CODES.LOLLIPOP_MR1) {
            installHook(new IGraphicsStatsBinderHook(context), classLoader);
        }
//        if (VERSION.SDK_INT >= VERSION_CODES.KITKAT) {
//            installHook(new WebViewFactoryProviderHook(context), classLoader);
//        }
        if (VERSION.SDK_INT >= VERSION_CODES.KITKAT) {
            installHook(new IMediaRouterServiceBinderHook(context), classLoader);
        }
        if (VERSION.SDK_INT >= VERSION_CODES.LOLLIPOP) {
            installHook(new ISessionManagerBinderHook(context), classLoader);
        }
        if (VERSION.SDK_INT >= VERSION_CODES.JELLY_BEAN_MR2) {
            installHook(new IWifiManagerBinderHook(context), classLoader);
        }

        if (VERSION.SDK_INT >= VERSION_CODES.JELLY_BEAN_MR2) {
            installHook(new IInputMethodManagerBinderHook(context), classLoader);
        }
        if (VERSION.SDK_INT >= VERSION_CODES.ICE_CREAM_SANDWICH_MR1) {
            installHook(new ILocationManagerBinderHook(context), classLoader);
        }
        installHook(new IPackageManagerHook(context), classLoader);
        installHook(new IActivityManagerHook(context), classLoader);
        installHook(new PluginCallbackHook(context), classLoader);
        installHook(new InstrumentationHook(context), classLoader);
        installHook(new LibCoreHook(context), classLoader);

        installHook(new SQLiteDatabaseHook(context), classLoader);
    }
 

开发者ID:amikey,
项目名称:DroidPlugin,
代码行数:41,
代码来源:HookFactory.java

示例2: installHook

点赞 2

import com.morgoo.droidplugin.hook.proxy.InstrumentationHook; //导入依赖的package包/类
public final void installHook(Context context, ClassLoader classLoader) throws Throwable {
    installHook(new IClipboardBinderHook(context), classLoader);
    //for ISearchManager
    installHook(new ISearchManagerBinderHook(context), classLoader);
    //for INotificationManager
    installHook(new INotificationManagerBinderHook(context), classLoader);
    installHook(new IMountServiceBinder(context), classLoader);
    installHook(new IAudioServiceBinderHook(context), classLoader);
    installHook(new IContentServiceBinderHook(context), classLoader);
    installHook(new IWindowManagerBinderHook(context), classLoader);
    if (VERSION.SDK_INT >= VERSION_CODES.LOLLIPOP_MR1) {
        installHook(new IGraphicsStatsBinderHook(context), classLoader);
    }
    if (VERSION.SDK_INT >= VERSION_CODES.KITKAT) {
        installHook(new WebViewFactoryProviderHook(context), classLoader);
    }
    if (VERSION.SDK_INT >= VERSION_CODES.KITKAT) {
        installHook(new IMediaRouterServiceBinderHook(context), classLoader);
    }
    if (VERSION.SDK_INT >= VERSION_CODES.LOLLIPOP) {
        installHook(new ISessionManagerBinderHook(context), classLoader);
    }
    if (VERSION.SDK_INT >= VERSION_CODES.JELLY_BEAN_MR2) {
        installHook(new IWifiManagerBinderHook(context), classLoader);
    }

    if (VERSION.SDK_INT >= VERSION_CODES.JELLY_BEAN_MR2) {
        installHook(new IInputMethodManagerBinderHook(context), classLoader);
    }

    installHook(new IPackageManagerHook(context), classLoader);
    installHook(new IActivityManagerHook(context), classLoader);
    installHook(new PluginCallbackHook(context), classLoader);
    installHook(new InstrumentationHook(context), classLoader);
    installHook(new LibCoreHook(context), classLoader);

    installHook(new SQLiteDatabaseHook(context), classLoader);
}
 

开发者ID:SteamedBunZL,
项目名称:DroidPluginLibrary,
代码行数:39,
代码来源:HookFactory.java

示例3: installHook

点赞 2

import com.morgoo.droidplugin.hook.proxy.InstrumentationHook; //导入依赖的package包/类
public final void installHook(Context context, ClassLoader classLoader) throws Throwable {
        installHook(new IClipboardBinderHook(context), classLoader);
        //for ISearchManager
        installHook(new ISearchManagerBinderHook(context), classLoader);
        //for INotificationManager
        installHook(new INotificationManagerBinderHook(context), classLoader);
        installHook(new IMountServiceBinderHook(context), classLoader);
        installHook(new IAudioServiceBinderHook(context), classLoader);
        installHook(new IContentServiceBinderHook(context), classLoader);
        installHook(new IWindowManagerBinderHook(context), classLoader);
        if (VERSION.SDK_INT > VERSION_CODES.LOLLIPOP_MR1) {
            installHook(new IGraphicsStatsBinderHook(context), classLoader);
        }
//        if (VERSION.SDK_INT >= VERSION_CODES.KITKAT) {
//            installHook(new WebViewFactoryProviderHook(context), classLoader);
//        }
        if (VERSION.SDK_INT >= VERSION_CODES.KITKAT) {
            installHook(new IMediaRouterServiceBinderHook(context), classLoader);
        }
        if (VERSION.SDK_INT >= VERSION_CODES.LOLLIPOP) {
            installHook(new ISessionManagerBinderHook(context), classLoader);
        }
        if (VERSION.SDK_INT >= VERSION_CODES.JELLY_BEAN_MR2) {
            installHook(new IWifiManagerBinderHook(context), classLoader);
        }

        if (VERSION.SDK_INT >= VERSION_CODES.JELLY_BEAN_MR2) {
            installHook(new IInputMethodManagerBinderHook(context), classLoader);
        }
        if (VERSION.SDK_INT >= VERSION_CODES.ICE_CREAM_SANDWICH_MR1) {
            installHook(new ILocationManagerBinderHook(context), classLoader);
        }

        if (VERSION.SDK_INT >= VERSION_CODES.ICE_CREAM_SANDWICH_MR1) {
            installHook(new ITelephonyRegistryBinderHook(context), classLoader);
        }

        if (VERSION.SDK_INT >= VERSION_CODES.ICE_CREAM_SANDWICH_MR1) {
            installHook(new ISubBinderHook(context), classLoader);
        }

        if (VERSION.SDK_INT >= VERSION_CODES.ICE_CREAM_SANDWICH_MR1) {
            installHook(new IPhoneSubInfoBinderHook(context), classLoader);
        }

        if (VERSION.SDK_INT >= VERSION_CODES.ICE_CREAM_SANDWICH_MR1) {
            installHook(new ITelephonyBinderHook(context), classLoader);
        }

        if (VERSION.SDK_INT >= VERSION_CODES.ICE_CREAM_SANDWICH_MR1) {
            installHook(new ISmsBinderHook(context), classLoader);
        }

        if (VERSION.SDK_INT >= VERSION_CODES.ICE_CREAM_SANDWICH_MR1) {
            installHook(new IMmsBinderHook(context), classLoader);
        }

        if (VERSION.SDK_INT >= VERSION_CODES.M) {
            installHook(new IAppOpsServiceBinderHook(context), classLoader);
        }

        installHook(new IPackageManagerHook(context), classLoader);
        installHook(new IActivityManagerHook(context), classLoader);
        installHook(new PluginCallbackHook(context), classLoader);
        installHook(new InstrumentationHook(context), classLoader);
        installHook(new LibCoreHook(context), classLoader);

        installHook(new SQLiteDatabaseHook(context), classLoader);

        installHook(new IDisplayManagerBinderHook(context), classLoader);
    }
 

开发者ID:weijianfeng,
项目名称:DynamicAppLoader,
代码行数:72,
代码来源:HookFactory.java


版权声明:本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系管理员进行删除。
喜欢 (0)