android - broadcast secret code with permission -
i want able broadcast intent
<receiver android:name="gsdbroadcastreceiver" android:permission="com.htc.permission.app_default"> <intent-filter> <action android:name="android.provider.telephony.secret_code" /> <data android:scheme="android_secret_code" android:host="3424" /> </intent-filter> </receiver>
so far how i'm trying launch it
adb shell broadcast -w -a android.provider.telephony.secret_code -d android_secret_code://3424
but haven't succeed that, think problem comes permission, know how can deal it?
i have not tried in java, works fine via adb. however, have run superuser.
adb shell "su -c 'am broadcast -a android.provider.telephony.secret_code -d android_secret_code://0011'"
tested on rooted samsung galaxy s4 android 4.3. used 0011 secret code (3424 htc devices).
Comments
Post a Comment