Skip to content

Commit 6ed9250

Browse files
committed
Improved Disable ads
1 parent 33642af commit 6ed9250

File tree

1 file changed

+7
-2
lines changed
  • app/src/main/java/com/wmods/wppenhacer/xposed/features/general

1 file changed

+7
-2
lines changed

app/src/main/java/com/wmods/wppenhacer/xposed/features/general/Others.java

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,8 +264,13 @@ private void disableHomeFilters() throws Exception {
264264

265265
private void disableAds() throws Exception {
266266
propsBoolean.put(22904, true);
267-
var loadAd = Unobfuscator.loadAdVerifyMethod(classLoader);
268-
XposedBridge.hookMethod(loadAd, XC_MethodReplacement.returnConstant(false));
267+
propsBoolean.put(14306, false);
268+
try {
269+
var loadAd = Unobfuscator.loadAdVerifyMethod(classLoader);
270+
XposedBridge.hookMethod(loadAd, XC_MethodReplacement.returnConstant(false));
271+
} catch (Exception e) {
272+
logDebug(e);
273+
}
269274
}
270275

271276
private void disablePhotoProfileStatus() throws Exception {

0 commit comments

Comments
 (0)