force open wechat xLog

by
24 views cc02dce8...

Description

open wechat xlog, so we can see logs in logcat

How to Use

Download the script and run it with Frida CLI:

Download Script

Then run with Frida:

frida -U -f YOUR_PACKAGE_NAME -l force-open-wechat-xlog.js

Replace YOUR_PACKAGE_NAME with the target app's package name.

Source Code

JavaScript
Java.perform(() => {

    Java.choose('com.tencent.mars.xlog.Xlog', {
       
        onMatch: function(instance) {
            console.log('set console xlog open')
            instance.setConsoleLogOpen(0, true)
        },

        onComplete: function() {
         
        }

    })
})
Share this script:
Twitter LinkedIn

Comments

Login or Sign up to leave a comment.
Loading comments...