Skip to content

Commit

Permalink
fix: ArbitraryFrdSourceId on 9.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
HdShare committed Oct 3, 2024
1 parent 7c17671 commit a60bf1d
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions app/src/main/java/cc/ioctl/hook/friend/ArbitraryFrdSourceId.java
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,20 @@ static void initFunView(@NonNull Context ctx, @NonNull Intent intent, @NonNull V

@Override
public boolean initOnce() throws Exception {
Class<?> KAddFriendVerifyFragmentForNT = Initiator.load("com.tencent.mobileqq.addfriend.ui.fornt.verify.AddFriendVerifyFragmentForNT");
if (KAddFriendVerifyFragmentForNT != null) {
Method doOnCreateView = KAddFriendVerifyFragmentForNT.getDeclaredMethod("doOnCreateView",
LayoutInflater.class, ViewGroup.class, Bundle.class);
HookUtils.hookAfterIfEnabled(this, doOnCreateView, param -> {
ViewGroup contentView = (ViewGroup) Reflex.getInstanceObject(param.thisObject, "mContentView", View.class);
Objects.requireNonNull(contentView, "AddFriendVerifyFragmentForNT.this@QIphoneTitleBarFragment.mContentView should not be null");
ViewGroup rlRoot = findRlRootRecursive(contentView);
Objects.requireNonNull(rlRoot, "rl_root should not be null");
Activity activity = (Activity) Reflex.invokeVirtual(param.thisObject, "getActivity");
Objects.requireNonNull(activity, "activity should not be null");
initFunView(activity, activity.getIntent(), rlRoot);
});
}
Class<?> kAddFriendVerifyFragment = Initiator.load("com.tencent.mobileqq.addfriend.ui.AddFriendVerifyFragment");
if (kAddFriendVerifyFragment != null) {
Method doOnCreateView = kAddFriendVerifyFragment.getDeclaredMethod("doOnCreateView",
Expand Down

0 comments on commit a60bf1d

Please sign in to comment.