比如短信hook里,想要看到smsMessageParts的内容
val smsMessageParts: Array<SmsMessage> = SmsMessageUtils.fromIntent(intent)
var sender: String = smsMessageParts[0].displayOriginatingAddress
var body: String = SmsMessageUtils.getMessageBody(smsMessageParts)
sender = Normalizer.normalize(sender, Normalizer.Form.NFC)
body = Normalizer.normalize(body, Normalizer.Form.NFC)
val json = JsonObject().apply {
addProperty("sender",sender)
addProperty("body",body)
addProperty("t",System.currentTimeMillis())
}
hookerManifest.analysisData(DataType.DATA, Gson().toJson(json))
return