簡體   English   中英

權限拒絕:不允許發送廣播android.intent.action.HEADSET_PLUG

[英]Permission Denial: not allowed to send broadcast android.intent.action.HEADSET_PLUG

谷歌顯然正在為JB或4.1及更高版本的內部廣播引入越來越多的保護。 這在4.0上工作正常嗎? 你知道是否有辦法發送新的廣播,也許使用帶有權限的sendOrderedBroadcast?

哪一個?

現在這是一個受保護的廣播系統uid可以發送。

請參閱: android/frameworks/base/core/res/AndroidManifest.xml

<protected-broadcast android:name="android.intent.action.HEADSET_PLUG" />

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM