FORUMS

How to Broadcast SMS_RECEIVED?

287 posts
Thanks Meter: 199
 
By runnirr, Senior Member on 5th January 2014, 05:07 AM
Post Reply Subscribe to Thread Email Thread
Hello,

I am working on an app that mimics Voice+ but uses Xposed instead of having to run CyanogenMod.

I am stuck at the point where I need to broadcast a android.provider.Telephony.SMS_RECEIVED intent to spoof an incoming SMS when a Google Voice message comes in. The BROADCAST_SMS permission is not being given to my app, even when it is put in /system/app.
Code:
 Not granting permission android.permission.BROADCAST_SMS to package com.runnirr.xvoiceplus (protectionLevel=2 flags=0x88be47)
My understanding is that since I am using an official stock, I cannot get that permission since the app is signed with a different key. I am hoping there is some way around this using root or Xposed.

I am open to suggestions. I


EDIT:
I found the solution to my problem by using Xposed to grant my app permission at start up. I copied how GracityBox does it.
https://github.com/GravityBox/Gravit...onGranter.java
Last edited by runnirr; 5th January 2014 at 07:57 AM. Reason: I found my answer
 
 
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools
Display Modes