Refactor SmsManager not to use ActivityThread hidden API in Mainline
Introduce a server API to get current package name to remove
ActivityThread for Mailine
Test: Treehugger; no function change; Manual: tried to send a message to 22000,
and observed that it pops out a notification window to ask me: "Messages
would like to send a message to 22000, Cancel or Send?" I clicked on "Send".
UI shows that SMS is sent successfully.
Bug: 145147528
Change-Id: I0a5ca7699c969585ea08c82ea7cafd26a73c08f9
3 files changed