frida枚举android所有加载的类

Java.enumerateLoadedClasses

#!/usr/bin/python3.5

import sys
sys.path.insert(1, '/home/zhiwei/lib/python3.5')
import frida

jscode = """
	Java.perform(function(){
		Java.enumerateLoadedClasses({
			onMatch: function(classname){
				console.log(classname);
			},

			onComplete: function (){
			}
		});
	});
  
"""
       
        
process = frida.get_usb_device().attach('com.android.phone')
script = process.create_script(jscode)

print(' Running Frida ...')
script.load()
sys.stdin.read()