下载地址:https://www.pan38.com/share.php?code=JCnzE 提取密码:7789
提供了完整的设备信息修改功能,包含设备模板配置、基础信息修改、网络信息修改、模拟器检测绕过和随机化功能。使用时需要root权限,部分功能可能需要特定内核支持。
/**
- Auto.js 设备信息修改工具
- 功能:修改安卓设备基础信息、模拟器检测绕过等
*/
// 基础配置模块
let config = {
debugMode: true,
safeMode: false,
changeInterval: 3000
};
// 设备信息模板库
const deviceProfiles = {
"Xiaomi12": {
model: "Mi 12",
brand: "Xiaomi",
manufacturer: "Xiaomi",
board: "umi",
hardware: "qcom",
androidId: "a1b2c3d4e5f6g7h8",
serial: "1234567890ABCDEF",
imei: "358879052364751",
imsi: "460001234567890",
mac: "00:11:22:33:44:55",
androidVersion: "12",
sdkInt: 31,
displayId: "SP1A.210812.016"
},
"HuaweiP50": {
model: "P50 Pro",
brand: "Huawei",
manufacturer: "HUAWEI",
board: "kirin",
hardware: "hi3670",
androidId: "h1i2j3k4l5m6n7o8",
serial: "HUAWEI123456789",
imei: "861234567891234",
imsi: "460001122334455",
mac: "AA:BB:CC:DD:EE:FF",
androidVersion: "11",
sdkInt: 30,
displayId: "HW-11.0.0.168"
}
};
// 核心功能模块
function DeviceChanger() {
this.currentProfile = null;
// 初始化设备修改器
this.init = function(profileName) {
if (!deviceProfiles[profileName]) {
toast("设备模板不存在");
return false;
}
this.currentProfile = deviceProfiles[profileName];
return true;
};
// 修改基础设备信息
this.changeBasicInfo = function() {
if (!this.currentProfile) return false;
try {
// 修改build.prop相关属性
shell("su -c 'setprop ro.product.model \"" + this.currentProfile.model + "\"'", true);
shell("su -c 'setprop ro.product.brand \"" + this.currentProfile.brand + "\"'", true);
shell("su -c 'setprop ro.product.manufacturer \"" + this.currentProfile.manufacturer + "\"'", true);
shell("su -c 'setprop ro.product.board \"" + this.currentProfile.board + "\"'", true);
shell("su -c 'setprop ro.hardware \"" + this.currentProfile.hardware + "\"'", true);
// 修改Android ID
shell("su -c 'settings put secure android_id " + this.currentProfile.androidId + "'", true);
// 修改序列号(需要内核支持)
shell("su -c 'echo \"" + this.currentProfile.serial + "\" > /proc/serialno'", true);
return true;
} catch (e) {
log("修改基础信息失败: " + e);
return false;
}
};
// 修改网络相关信息
this.changeNetworkInfo = function() {
if (!this.currentProfile) return false;
try {
// 修改WIFI MAC地址(需要重启生效)
shell("su -c 'ip link set wlan0 address " + this.currentProfile.mac + "'", true);
// 修改蓝牙MAC地址
shell("su -c 'echo \"" + this.currentProfile.mac.toLowerCase() + "\" > /efs/bluetooth/bt_addr'", true);
return true;
} catch (e) {
log("修改网络信息失败: " + e);
return false;
}
};
// 模拟器检测绕过
this.antiEmulator = function() {
try {
// 修改qemu模拟器特征
shell("su -c 'setprop ro.kernel.qemu 0'", true);
shell("su -c 'setprop ro.boot.qemu 0'", true);
shell("su -c 'setprop ro.boot.vendor.qemu 0'", true);
shell("su -c 'setprop ro.boot.mode normal'", true);
// 移除模拟器特征文件
shell("su -c 'rm /system/lib/libc_malloc_debug_qemu.so'", true);
shell("su -c 'rm /system/bin/qemu-props'", true);
return true;
} catch (e) {
log("模拟器检测绕过失败: " + e);
return false;
}
};
// 随机化设备信息
this.randomizeDevice = function() {
try {
// 生成随机Android ID
let randomAndroidId = "";
for (let i = 0; i < 16; i++) {
randomAndroidId += Math.floor(Math.random() * 16).toString(16);
}
shell("su -c 'settings put secure android_id " + randomAndroidId + "'", true);
// 随机化MAC地址
let randomMac = "";
for (let i = 0; i < 6; i++) {
randomMac += (i > 0 ? ":" : "") +
Math.floor(Math.random() * 256).toString(16).padStart(2, '0');
}
shell("su -c 'ip link set wlan0 address " + randomMac + "'", true);
return true;
} catch (e) {
log("随机化设备失败: " + e);
return false;
}
};
}
// UI界面模块
function showUI() {
let dc = new DeviceChanger();
let window = floaty.window(
<frame gravity="center">
<vertical padding="16">
<text text="设备信息修改工具" textSize="18sp" textColor="#000000" gravity="center"/>
<spinner id="profileSpinner" entries="Xiaomi12,HuaweiP50,Custom" />
<button id="btnChange" text="应用设备配置" />
<button id="btnRandom" text="随机化设备" />
<button id="btnAntiEmu" text="绕过模拟器检测" />
<button id="btnExit" text="退出" />
</vertical>
</frame>
);
window.profileSpinner.on("item_selected", function(spinner, position, id, item) {
if (item == "Custom") {
alert("自定义配置功能暂未实现");
} else {
dc.init(item);
}
});
window.btnChange.click(() => {
if (dc.changeBasicInfo() && dc.changeNetworkInfo()) {
toast("设备信息修改成功");
} else {
toast("修改失败,请检查root权限");
}
});
window.btnRandom.click(() => {
if (dc.randomizeDevice()) {
toast("设备信息已随机化");
} else {
toast("随机化失败");
}
});
window.btnAntiEmu.click(() => {
if (dc.antiEmulator()) {
toast("模拟器检测绕过完成");
} else {
toast("绕过失败");
}
});
window.btnExit.click(() => {
window.close();
exit();
});
}
// 主程序入口
function main() {
if (!device.isScreenOn()) {
device.wakeUp();
}
// 检查root权限
if (!files.exists("/system/bin/su") && !files.exists("/system/xbin/su")) {
alert("未检测到root权限,部分功能将无法使用");
}
showUI();
}
// 启动主程序
main();