源代码
public final class DeviceUtil { private static final String TAG = "DeviceUtil"; ...
js读取代码
var DeviceUtil = Java.use('im.softs.util.DeviceUtil'); console.log("DeviceUtil TAG: " + DeviceUtil.TAG.value);
也就是要加上.value
源代码
public final class DeviceUtil { private static final String TAG = "DeviceUtil"; ...
js读取代码
var DeviceUtil = Java.use('im.softs.util.DeviceUtil'); console.log("DeviceUtil TAG: " + DeviceUtil.TAG.value);
也就是要加上.value