Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

How to Broadcast SMS_RECEIVED?

OP runnirr

5th January 2014, 06:07 AM   |  #1  
OP Senior Member
Flag Seattle
Thanks Meter: 196
 
284 posts
Join Date:Joined: Mar 2011
More
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 08:57 AM. Reason: I found my answer
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes