Still interested in this

1. Why there is no warning :

    <receiver <!-- no warning -->
        android:name=".receivers.TriggerMonitoringBootReceiver"
        android:enabled="false" >
        <intent-filter>
            <action android:name="android.intent.action.BOOT_COMPLETED" />
        </intent-filter>
    </receiver>

Does it mean that it won't work if exported="false" ? In this case :

2. Which intents are meant to be exported with no warnings ? All the 
intents in android.intent.action. namespace ?

There are reports that contradict that - adding to general confusion.
See for instance :

http://stackoverflow.com/questions/11462936/exported-activity-does-not-require-permission-when-attempting-to-launch-from-a/11526028#comment18783318_11526028
http://stackoverflow.com/questions/11875371/what-permission-should-i-use-to-receiver-of-android-notitications#comment15822652_11875525
http://stackoverflow.com/questions/13517128/android-onbootreceiver-exported-receiver-does-not-require-permission#comment23027535_13517128
http://stackoverflow.com/questions/16112470/android-exported-receiver-does-not-require-permission-on-receivers-meant-to
http://stackoverflow.com/a/12180426/281545
http://stackoverflow.com/questions/12718231/making-nfc-activity-private-without-androidexported-false
http://stackoverflow.com/questions/14381807/how-to-stop-opening-the-application-from-other-application-in-android/14381976#14381976

As you see both black and white are true so I would appreciator some 
official feedback
In short - when one has receivers that receive System intents like 
"android.intent.action.BOOT_COMPLETED" and "android.net.wifi.SCAN_RESULTS" 
- setting the `exported="false"` will prevent the receivers from working ? 
Is this the reason why "Exported receiver does not require permission" 
warning is not displayed ? Which intents fall into this category ?

Thanks :)

On Saturday, April 20, 2013 3:44:52 PM UTC+3, Palmer Eldritch wrote:
>
> I have the following receivers declared :
> <pre>
>     <receiver <!-- no warning -->
>         android:name=".receivers.TriggerMonitoringBootReceiver"
>         android:enabled="false" >
>         <intent-filter>
>             <action android:name="android.intent.action.BOOT_COMPLETED" />
>         </intent-filter>
>     </receiver>
>     <receiver <!-- no warning -->
>         android:name=".receivers.ScanResultsReceiver"
>         android:enabled="false" >
>         <intent-filter>
>             <action android:name="android.net.wifi.SCAN_RESULTS" />
>         </intent-filter>
>     </receiver>
> </pre>
>
> These receivers are exported - right ? If I put `exported="false"` would 
> they still be able to work ?
>
> Thanks
>

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to