This repository has been archived on 2024-09-30. You can view files and clone it, but cannot push or open issues/pull-requests.
hook-frida/SettingServiceImpl.js

23 lines
712 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

Java.perform(function() {
var SettingServiceImpl = Java.use("com.p314ss.android.ugc.aweme.setting.services.SettingServiceImpl");
var originalLJIILL = SettingServiceImpl.LJIILL.implementation;
SettingServiceImpl.LJIILL.implementation = function() {
// 打印日志表示方法被hook
console.log("LJIILL method is called!");
// 尝试获取 accountRegion 字段的值
if (this.hasOwnProperty('accountRegion')) {
console.log("accountRegion: " + this.accountRegion);
} else {
console.log("accountRegion field not found in SettingServiceImpl.");
}
// 调用原始方法
originalLJIILL.call(this);
}
});