牙叔教程 简单易懂
ReferenceError: "androidx" is not defined.
androidx前面添加Packages.即可
importClass(Packages.androidx.core.graphics.ColorUtils);
重点中的超重点
类名前面加 public
java
package com.yashu.aaaaaaaaaaaaaaaaaaaaaa; public class YaShu { public static final String TAG = "yashu"; public YaShu() { //定义构造函数,输出Hello World System.out.println("Hello World"); } private String name = "yashu"; private static int age = 20; public int height = 180; //有参数构造函数,实现给 public YaShu(String n) { name = n; } public String getUrl() { return "http://www.baidu.com"; } public static int getAge() { return age; } }
js
let filePath = "/sdcard/aaa/classes_merge9.dex"; runtime.loadDex(filePath); importClass(com.yashu.aaaaaaaaaaaaaaaaaaaaaa.YaShu); log(Object.prototype.toString.call(YaShu)); log(YaShu.TAG); log(YaShu.getAgee()); r = new YaShu("Freddie Mercury"); log(r); log(r.getUrl());
看到没有, 我测试了9个dex, 都是泪
名人名言
思路是最重要的, 其他的百度, bing, stackoverflow, github, 安卓文档, autojs文档, 最后才是群里问问
--- 牙叔教程
声明
部分内容来自网络
本教程仅用于学习, 禁止用于其他用途