This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Java.perform(function() { | |
var surface_view = Java.use('android.view.SurfaceView'); | |
var set_secure = surface_view.setSecure.overload('boolean'); | |
set_secure.implementation = function(flag){ | |
console.log("setSecure() flag called with args: " + flag); | |
set_secure.call(false); | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import idaapi | |
import idautils | |
import idc | |
num_imps = idaapi.get_import_module_qty() | |
print("[+] Found % d import(s)" % num_imps) | |
for i in xrange(0, num_imps): | |
name = idaapi.get_import_module_name(i) | |
if not name: |