-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbypass_developer.js
More file actions
31 lines (29 loc) · 1.47 KB
/
bypass_developer.js
File metadata and controls
31 lines (29 loc) · 1.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// https://codeshare.frida.re/@zionspike/bypass-developermode-check-android/
function bypass_developerMode_check() {
var settingSecure = Java.use('android.provider.Settings$Secure');
settingSecure.getInt.overload('android.content.ContentResolver', 'java.lang.String', 'int').implementation = function(cr, name, flag) {
console.log("[!] settingSecure.getInt(cr,name) : " + name);
console.log('[+] 1.Secure.getInt(' + name + ') Bypassed');
return 0;
}
settingSecure.getInt.overload('android.content.ContentResolver', 'java.lang.String').implementation = function(cr, name) {
console.log("[!] settingSecure.getInt(cr,name) : " + name);
console.log('[+] 2.Secure.getInt(' + name + ') Bypassed');
return 0;
}
var settingGlobal = Java.use('android.provider.Settings$Global');
settingGlobal.getInt.overload('android.content.ContentResolver', 'java.lang.String', 'int').implementation = function(cr, name, flag) {
console.log("[!] settingGlobal.getInt(cr,name) : " + name);
console.log('[+] 1.Global.getInt(' + name + ') Bypassed');
return 0;
}
settingGlobal.getInt.overload('android.content.ContentResolver', 'java.lang.String').implementation = function(cr, name) {
console.log("[!] settingGlobal.getInt(cr,name) : " + name);
console.log('[+] 2.Global.getInt(' + name + ') Bypassed');
return 0;
}
}
// Main
Java.perform(function() {
bypass_developerMode_check();
});