• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java ClassNotFoundError类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: handleLoadPackage

import de.robv.android.xposed.XposedHelpers.ClassNotFoundError; //导入依赖的package包/类
public static boolean handleLoadPackage(final String packageName, LoadPackageParam lpparam, final boolean test) {
    try {
        Class<?> adView = XposedHelpers.findClass("com.handmark.expressweather.billing.BillingUtils", lpparam.classLoader);
        XposedBridge.hookAllMethods(adView, "isPurchased", new XC_MethodHook() {
            
            @Override
            protected void beforeHookedMethod(MethodHookParam param) throws Throwable {
                
                if(!test) {
                    param.setResult(Boolean.valueOf(true));
                }
            }
            
        });
    }
    catch(ClassNotFoundError e) {
        return false;
    }
    return true;
}
 
开发者ID:geekspeng,项目名称:MinMinGuard,代码行数:21,代码来源:OneWeather.java


示例2: handleLoadPackage

import de.robv.android.xposed.XposedHelpers.ClassNotFoundError; //导入依赖的package包/类
public static boolean handleLoadPackage(final String packageName, LoadPackageParam lpparam, final boolean test) {
	try {
		Class<?> adView = XposedHelpers.findClass("de.madvertise.android.sdk.MadvertiseMraidView", lpparam.classLoader);
		
		XposedBridge.hookAllMethods(adView, "loadAd", new XC_MethodHook() {
			
			@Override
			protected void beforeHookedMethod(MethodHookParam param) throws Throwable {
				
				Util.log(packageName, "Detect Madvertise loadAd in " + packageName);
				
				if(!test) {
					param.setResult(new Object());
					Main.removeAdView((View) param.thisObject, packageName, true);
				}
				
			}
		});
		
		Util.log(packageName, packageName + " uses Madvertise");
	}
	catch(ClassNotFoundError e) {
		return false;
	}
	return true;
}
 
开发者ID:geekspeng,项目名称:MinMinGuard,代码行数:27,代码来源:Madvertise.java


示例3: handleLoadPackage

import de.robv.android.xposed.XposedHelpers.ClassNotFoundError; //导入依赖的package包/类
public static boolean handleLoadPackage(final String packageName, LoadPackageParam lpparam, final boolean test) {
    try {
        
        Class<?> adView = XposedHelpers.findClass("com.mobclix.android.sdk.MobclixMMABannerXLAdView", lpparam.classLoader);
        
        XposedBridge.hookAllMethods(adView, "getAd" ,new XC_MethodHook() {
                    @Override
                    protected void beforeHookedMethod(MethodHookParam param) throws Throwable {
                        
                        Util.log(packageName, "Detect MobclixMMABannerXLAdView getAd in " + packageName);
                        
                        if(!test) {
                            param.setResult(new Object());
                            Main.removeAdView((View) param.thisObject, packageName, true);
                        }
                    }
                });
        
        Util.log(packageName, packageName + " uses Mobclix");
    }
    catch(ClassNotFoundError e) {
        return false;
    }
    return true;
}
 
开发者ID:geekspeng,项目名称:MinMinGuard,代码行数:26,代码来源:Mobclix.java


示例4: handleLoadPackage

import de.robv.android.xposed.XposedHelpers.ClassNotFoundError; //导入依赖的package包/类
public static boolean handleLoadPackage(final String packageName, LoadPackageParam lpparam, final boolean test) {
    try {
        Class<?> adView = XposedHelpers.findClass("com.bonzai.view.BonzaiAdView", lpparam.classLoader);
        XposedBridge.hookAllMethods(adView, "update", new XC_MethodHook() {
            
            @Override
            protected void beforeHookedMethod(MethodHookParam param) throws Throwable {
                Util.log(packageName, "Detect BonzaiAdView update in " + packageName);
                
                if(!test) {
                    param.setResult(new Object());
                    Main.removeAdView((View) param.thisObject, packageName, true);
                }
            }
            
        });
        Util.log(packageName, packageName + " uses Bonzai");
    }
    catch(ClassNotFoundError e) {
        return false;
    }
    return true;
}
 
开发者ID:geekspeng,项目名称:MinMinGuard,代码行数:24,代码来源:Bonzai.java


示例5: handleLoadPackage

import de.robv.android.xposed.XposedHelpers.ClassNotFoundError; //导入依赖的package包/类
public static boolean handleLoadPackage(final String packageName, LoadPackageParam lpparam, final boolean test) {
    try {
        final Class<?> adView = XposedHelpers.findClass("com.og.wa.AdWebView", lpparam.classLoader);
        final Class<?> webView = XposedHelpers.findClass("android.webkit.WebView", lpparam.classLoader);
        XposedBridge.hookAllMethods(webView, "loadUrl", new XC_MethodHook() {
            
            @Override
            protected void beforeHookedMethod(MethodHookParam param) throws Throwable {
                if(adView.isInstance(param.thisObject)) {
                    Util.log(packageName, "Detect og AdWebView loadUrl in " + packageName);
                    param.setResult(new Object());
                    Main.removeAdView((View) param.thisObject, packageName, true);
                }
            }
            
        });
        Util.log(packageName, packageName + " uses Og AdWebView");
    }
    catch(ClassNotFoundError e) {
        return false;
    }
    return true;
}
 
开发者ID:geekspeng,项目名称:MinMinGuard,代码行数:24,代码来源:Og.java


示例6: handleLoadPackage

import de.robv.android.xposed.XposedHelpers.ClassNotFoundError; //导入依赖的package包/类
public static boolean handleLoadPackage(final String packageName, LoadPackageParam lpparam, final boolean test) {
    try {
        Class<?> adView = XposedHelpers.findClass("com.amobee.adsdk.AdManager", lpparam.classLoader);
        XposedBridge.hookAllMethods(adView, "getAd", new XC_MethodHook() {
            
            @Override
            protected void beforeHookedMethod(MethodHookParam param) throws Throwable {
                Util.log(packageName, "Detect Amobee getAd in " + packageName);
                if(!test) {
                    param.setResult(new Object());
                }
            }
            
        });
        
        Util.log(packageName, packageName + " uses Amobee");
    }
    catch(ClassNotFoundError e) {
        return false;
    }
    return true;
}
 
开发者ID:geekspeng,项目名称:MinMinGuard,代码行数:23,代码来源:Amobee.java


示例7: handleLoadPackage

import de.robv.android.xposed.XposedHelpers.ClassNotFoundError; //导入依赖的package包/类
public static boolean handleLoadPackage(final String packageName, LoadPackageParam lpparam, final boolean test) {
    try {
        Class<?> adView = XposedHelpers.findClass("jp.tjkapp.adfurikunsdk.AdfurikunBase", lpparam.classLoader);
        XposedBridge.hookAllMethods(adView, "a", new XC_MethodHook() {
            
            @Override
            protected void beforeHookedMethod(MethodHookParam param) throws Throwable {
                Util.log(packageName, "Detect AdfurikunAdView update in " + packageName);
                
                if(!test) {
                    param.setResult(new Object());
                    Main.removeAdView((View) param.thisObject, packageName, true);
                }
            }
            
        });
        Util.log(packageName, packageName + " uses Adfurikun");
    }
    catch(ClassNotFoundError e) {
        return false;
    }
    return true;
}
 
开发者ID:geekspeng,项目名称:MinMinGuard,代码行数:24,代码来源:Adfurikun.java


示例8: handleLoadPackage

import de.robv.android.xposed.XposedHelpers.ClassNotFoundError; //导入依赖的package包/类
public static boolean handleLoadPackage(final String packageName, LoadPackageParam lpparam, final boolean test) {
    try {
        Class<?> adView = XposedHelpers.findClass("com.smartadserver.android.library.ui.SASAdView", lpparam.classLoader);
        XposedBridge.hookAllMethods(adView, "loadAd", new XC_MethodHook() {
            
            @Override
            protected void beforeHookedMethod(MethodHookParam param) throws Throwable {
                Util.log(packageName, "Detect SASAdView loadAd in " + packageName);
                
                if(!test) {
                    param.setResult(new Object());
                    Main.removeAdView((View) param.thisObject, packageName, true);
                }
            }
            
        });
        Util.log(packageName, packageName + " uses SmartAdserver");
    }
    catch(ClassNotFoundError e) {
        return false;
    }
    return true;
}
 
开发者ID:geekspeng,项目名称:MinMinGuard,代码行数:24,代码来源:SmartAdserver.java


示例9: handleLoadPackage

import de.robv.android.xposed.XposedHelpers.ClassNotFoundError; //导入依赖的package包/类
public static boolean handleLoadPackage(final String packageName, LoadPackageParam lpparam, final boolean test) {
    try {
        Class<?> adView = XposedHelpers.findClass("com.startapp.android.publish.HtmlAd", lpparam.classLoader);
        XposedBridge.hookAllMethods(adView, "show", new XC_MethodHook() {
            
            @Override
            protected void beforeHookedMethod(MethodHookParam param) throws Throwable {
                Util.log(packageName, "Detect startapp show in " + packageName);
                
                if(!test) {
                    param.setResult(new Object());
                    Main.removeAdView((View) param.thisObject, packageName, true);
                }
            }
            
        });
        Util.log(packageName, packageName + " uses startapp");
    }
    catch(ClassNotFoundError e) {
        return false;
    }
    return true;
}
 
开发者ID:geekspeng,项目名称:MinMinGuard,代码行数:24,代码来源:Startapp.java


示例10: handleLoadPackage

import de.robv.android.xposed.XposedHelpers.ClassNotFoundError; //导入依赖的package包/类
public static boolean handleLoadPackage(final String packageName, LoadPackageParam lpparam, final boolean test) {
	try {
		Class<?> adView = XposedHelpers.findClass("com.chartboost.sdk.Chartboost", lpparam.classLoader);
		XposedBridge.hookAllMethods(adView, "showInterstitial", new XC_MethodHook() {
			
			@Override
			protected void beforeHookedMethod(MethodHookParam param) throws Throwable {
				Util.log(packageName, "Detect Chartboost showInterstitial in " + packageName);
				
				if(!test) {
					param.setResult(new Object());
				}
			}
			
		});
		Util.log(packageName, packageName + " uses Chartboost");
	}
	catch(ClassNotFoundError e) {
		return false;
	}
	return true;
}
 
开发者ID:geekspeng,项目名称:MinMinGuard,代码行数:23,代码来源:Chartboost.java


示例11: handleLoadPackage

import de.robv.android.xposed.XposedHelpers.ClassNotFoundError; //导入依赖的package包/类
public static boolean handleLoadPackage(final String packageName, LoadPackageParam lpparam, final boolean test) {
	try {
		Class<?> adView = XposedHelpers.findClass("com.openx.ad.mobile.sdk.interfaces.OXMAdBannerView", lpparam.classLoader);
		XposedBridge.hookAllMethods(adView, "loadAd", new XC_MethodHook() {
			
			@Override
			protected void beforeHookedMethod(MethodHookParam param) throws Throwable {
				Util.log(packageName, "Detect OXMAdBannerView loadAd in " + packageName);
				
				if(!test) {
					param.setResult(new Object());
					Main.removeAdView((View) param.thisObject, packageName, true);
				}
			}
			
		});
		Util.log(packageName, packageName + " uses OpenX");
	}
	catch(ClassNotFoundError e) {
		return false;
	}
	return true;
}
 
开发者ID:geekspeng,项目名称:MinMinGuard,代码行数:24,代码来源:OpenX.java


示例12: handleLoadPackage

import de.robv.android.xposed.XposedHelpers.ClassNotFoundError; //导入依赖的package包/类
public static boolean handleLoadPackage(final String packageName, LoadPackageParam lpparam, final boolean test) {
    try {
        Class<?> adView = XposedHelpers.findClass("com.adsdk.sdk.banner.InAppWebView", lpparam.classLoader);
        XposedBridge.hookAllConstructors(adView, new XC_MethodHook() {
            
            @Override
            protected void beforeHookedMethod(MethodHookParam param) throws Throwable {
                Util.log(packageName, "Detect mAdserve InAppWebView constructor in " + packageName);
                if(!test) {
                    param.setResult(new Object());
                }
            }
            
        });
        
        Util.log(packageName, packageName + " uses mAdserve");
    }
    catch(ClassNotFoundError e) {
        return false;
    }
    return true;
}
 
开发者ID:geekspeng,项目名称:MinMinGuard,代码行数:23,代码来源:mAdserve.java


示例13: handleLoadPackage

import de.robv.android.xposed.XposedHelpers.ClassNotFoundError; //导入依赖的package包/类
public static boolean handleLoadPackage(final String packageName, LoadPackageParam lpparam, final boolean test) {
    try {
        Class<?> adView = XposedHelpers.findClass("mediba.ad.sdk.android.openx.MasAdView", lpparam.classLoader);
        XposedBridge.hookAllMethods(adView, "b", new XC_MethodHook() {
            
            @Override
            protected void beforeHookedMethod(MethodHookParam param) throws Throwable {
                Util.log(packageName, "Detect MasAdAdView update in " + packageName);
                
                if(!test) {
                    param.setResult(new Object());
                    Main.removeAdView((View) param.thisObject, packageName, true);
                }
            }
            
        });
        Util.log(packageName, packageName + " uses MasAd");
    }
    catch(ClassNotFoundError e) {
        return false;
    }
    return true;
}
 
开发者ID:geekspeng,项目名称:MinMinGuard,代码行数:24,代码来源:MasAd.java


示例14: handleLoadPackage

import de.robv.android.xposed.XposedHelpers.ClassNotFoundError; //导入依赖的package包/类
public static boolean handleLoadPackage(final String packageName, LoadPackageParam lpparam, final boolean test) {
	try {
		
		Class<?> adView = XposedHelpers.findClass("net.nend.android.NendAdView", lpparam.classLoader);
		
		XposedBridge.hookAllMethods(adView, "loadAd" ,new XC_MethodHook() {
					@Override
					protected void beforeHookedMethod(MethodHookParam param) throws Throwable {
						
						Util.log(packageName, "Detect NendAdView loadAd in " + packageName);
						
						if(!test) {
							param.setResult(new Object());
							Main.removeAdView((View) param.thisObject, packageName, true);
						}
					}
				});
	}
	catch(ClassNotFoundError e) {
		return false;
	}
	return true;
}
 
开发者ID:geekspeng,项目名称:MinMinGuard,代码行数:24,代码来源:Nend.java


示例15: handleLoadPackage

import de.robv.android.xposed.XposedHelpers.ClassNotFoundError; //导入依赖的package包/类
public static boolean handleLoadPackage(final String packageName, LoadPackageParam lpparam, final boolean test) {
    try {
        Class<?> adView = XposedHelpers.findClass("mediba.ad.sdk.android.openx.MasAdView", lpparam.classLoader);
        XposedBridge.hookAllMethods(adView, "b", new XC_MethodHook() {
            
            @Override
            protected void beforeHookedMethod(MethodHookParam param) throws Throwable {
                Util.log(packageName, "Detect MasAdView update in " + packageName);
                
                if(!test) {
                    param.setResult(new Object());
                    Main.removeAdView((View) param.thisObject, packageName, true);
                }
            }
            
        });
        Util.log(packageName, packageName + " uses MasAd");
    }
    catch(ClassNotFoundError e) {
        return false;
    }
    return true;
}
 
开发者ID:AndroPlus-org,项目名称:NyanNyanGuard,代码行数:24,代码来源:MasAd.java


示例16: getAccessPointClass

import de.robv.android.xposed.XposedHelpers.ClassNotFoundError; //导入依赖的package包/类
private Class<?> getAccessPointClass(MethodHookParam param) {
	// If we already searched before, directly return
	if (accessPointClass == null) {
		// Try to load the class AccessPoint
		try {
			// If the class is not found, an error is thrown
			accessPointClass = XposedHelpers.findClass("AccessPoint", null);
		
			if (WiFiKeyView.isDebugging()) {
				WiFiKeyView.verboseLog(this, "getAccessPointClass(MethodHookParam)", "AccessPoint class was found");
			}
		} catch (ClassNotFoundError cnfe) {
			// Do not do anything, we will not use it if the reference is null
			if (WiFiKeyView.isDebugging()) {
				WiFiKeyView.verboseLog(this, "getAccessPointClass(MethodHookParam)", "AccessPoint class was not found");
			}
		}
	}
	
	return accessPointClass;
}
 
开发者ID:whdeveloper,项目名称:WiFiKeyView,代码行数:22,代码来源:LongPressNetworkClickedHook.java


示例17: handleLoadPackage

import de.robv.android.xposed.XposedHelpers.ClassNotFoundError; //导入依赖的package包/类
public static boolean handleLoadPackage(final String packageName, LoadPackageParam lpparam, final boolean test) {
	
	if(!packageName.equals("jp.co.airfront.android.a2chMate")) {
		return false;
	}
	
	try {
				
		Class<?> adview = findClass("jp.syoboi.a2chMate.view.MyAdView", lpparam.classLoader);

		XposedHelpers.findAndHookMethod(adview, "a", int.class, String.class, new XC_MethodHook() {
			@Override
			protected void beforeHookedMethod(MethodHookParam param) throws Throwable {

			    Util.log(packageName, "Detect 2chmate MyAdView in " + packageName);

				if (!test) {
					param.setResult(new Object());
					Main.removeAdView((View) param.thisObject, packageName, true);
				}
			}

		});
		Util.log(packageName, packageName + " is 2chmate");
	}
	catch(ClassNotFoundError e) {
		return false;
	}
	return true;
}
 
开发者ID:geekspeng,项目名称:MinMinGuard,代码行数:31,代码来源:_2chMate.java


示例18: handleLoadPackage

import de.robv.android.xposed.XposedHelpers.ClassNotFoundError; //导入依赖的package包/类
public static boolean handleLoadPackage(final String packageName, LoadPackageParam lpparam, final boolean test) {
	try {
		
		Class<?> admobBanner = findClass("com.google.android.gms.ads.doubleclick.PublisherAdView", lpparam.classLoader);
		
		XposedBridge.hookAllMethods(admobBanner, "loadAd", new XC_MethodHook() {
			
					@Override
					protected void beforeHookedMethod(MethodHookParam param) throws Throwable {
						
						Util.log(packageName, "Detect GmsDoubleClick PublisherAdView loadAd in " + packageName);
						
						if(!test) {
							param.setResult(new Object());
							Main.removeAdView((View) param.thisObject, packageName, true);
						}
					}
				
				});
		
		
		Util.log(packageName, packageName + " uses GmsDoubleClick");
	}
	catch(ClassNotFoundError e) {
		return false;
	}
	return true;
}
 
开发者ID:geekspeng,项目名称:MinMinGuard,代码行数:29,代码来源:GmsDoubleClick.java


示例19: PieController

import de.robv.android.xposed.XposedHelpers.ClassNotFoundError; //导入依赖的package包/类
public PieController(Context context, Context gbContext, XSharedPreferences prefs) {
    mContext = context;
    mGbContext = gbContext;
    mGbResources = gbContext.getResources();
    mLongPressHandler = new PieLongPressHandler(context, prefs);

    mVibrator = (Vibrator) mContext.getSystemService(Context.VIBRATOR_SERVICE);

    final PackageManager pm = mContext.getPackageManager();
    mHasTelephony = pm.hasSystemFeature(PackageManager.FEATURE_TELEPHONY);

    final Resources res = mContext.getResources();
    Tracker.sDistance = mGbResources.getDimensionPixelSize(R.dimen.pie_trigger_distance);

    mBackIcon = res.getDrawable(context.getResources().getIdentifier(
            "ic_sysbar_back", "drawable", PACKAGE_NAME), null).mutate();
    mBackAltIcon = res.getDrawable(context.getResources().getIdentifier(
            "ic_sysbar_back_ime", "drawable", PACKAGE_NAME), null).mutate();
    mRecentIcon = res.getDrawable(res.getIdentifier(
            "ic_sysbar_recent", "drawable", PACKAGE_NAME), null).mutate();
    mRecentAltIcon = mGbResources.getDrawable(R.drawable.ic_sysbar_recent_clear, null).mutate();

    try {
        mBaseStatusBarClass = XposedHelpers.findClass(CLASS_BASE_STATUSBAR, mContext.getClassLoader());
    } catch (ClassNotFoundError e) {
        XposedBridge.log(e);
    }

    mSysinfoDisabled = prefs.getBoolean(GravityBoxSettings.PREF_KEY_PIE_SYSINFO_DISABLE, false);
    setLongpressDelay(Integer.valueOf(prefs.getString(
            GravityBoxSettings.PREF_KEY_PIE_LONGPRESS_DELAY, "0")));;

    mColorInfo = new ColorInfo();
    mColorInfo.bgColor = prefs.getInt(GravityBoxSettings.PREF_KEY_PIE_COLOR_BG, 
            mGbResources.getColor(R.color.pie_background_color));
    mColorInfo.selectedColor = prefs.getInt(GravityBoxSettings.PREF_KEY_PIE_COLOR_SELECTED,
            mGbResources.getColor(R.color.pie_selected_color));
    mColorInfo.outlineColor = prefs.getInt(GravityBoxSettings.PREF_KEY_PIE_COLOR_OUTLINE,
            mGbResources.getColor(R.color.pie_outline_color));
    mColorInfo.fgColor = prefs.getInt(GravityBoxSettings.PREF_KEY_PIE_COLOR_FG,
            mGbResources.getColor(R.color.pie_foreground_color));
    mColorInfo.textColor = prefs.getInt(GravityBoxSettings.PREF_KEY_PIE_COLOR_TEXT,
            mGbResources.getColor(R.color.pie_text_color));

    updateColors();
}
 
开发者ID:WrBug,项目名称:GravityBox,代码行数:47,代码来源:PieController.java



注:本文中的de.robv.android.xposed.XposedHelpers.ClassNotFoundError类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java ClassFactory类代码示例发布时间:2022-05-23
下一篇:
Java ContentDisposition类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap