Research Article
HAL-Based Resource Manipulation Monitoring on AOSP
Listing 2
Listing 2: Example of HAL modifying in sendSms() function (HAL).
(1) | Return<void> RadioImpl:sendSms(int32_t serial, const GsmSmsMessage& message) { | (2) | #if VDBG | (3) | RLOGD(“sendSms: serial %d”, serial); | (4) | #endif | (5) | RLOGD(“[%d] [HALWatcher] RIL_REQUEST_SEND_SMS: serial %d”,(int)time(NULL), serial); | (6) | dispatchStrings(serial, mSlotId, RIL_REQUEST_SEND_SMS, false, | (7) | 2, message.smscPdu.c_str(), | (8) | message.pdu.c_str()); | | return Void(); | | } |
|