mirror of
https://github.com/ultrasonic/ultrasonic
synced 2025-01-28 16:09:33 +01:00
Add exported attributes, fix lint
This commit is contained in:
parent
4a00494647
commit
926081f84c
@ -55,18 +55,18 @@
|
|||||||
errorLine2=" ~~~~~~~~">
|
errorLine2=" ~~~~~~~~">
|
||||||
<location
|
<location
|
||||||
file="src/main/AndroidManifest.xml"
|
file="src/main/AndroidManifest.xml"
|
||||||
line="135"
|
line="151"
|
||||||
column="10"/>
|
column="10"/>
|
||||||
</issue>
|
</issue>
|
||||||
|
|
||||||
<issue
|
<issue
|
||||||
id="ExportedReceiver"
|
id="ExportedReceiver"
|
||||||
message="Exported receiver does not require permission"
|
message="Exported receiver does not require permission"
|
||||||
errorLine1=" <receiver android:name=".receiver.UltrasonicIntentReceiver">"
|
errorLine1=" <receiver android:name=".receiver.UltrasonicIntentReceiver""
|
||||||
errorLine2=" ~~~~~~~~">
|
errorLine2=" ~~~~~~~~">
|
||||||
<location
|
<location
|
||||||
file="src/main/AndroidManifest.xml"
|
file="src/main/AndroidManifest.xml"
|
||||||
line="74"
|
line="75"
|
||||||
column="10"/>
|
column="10"/>
|
||||||
</issue>
|
</issue>
|
||||||
|
|
||||||
@ -77,7 +77,7 @@
|
|||||||
errorLine2=" ~~~~~~~">
|
errorLine2=" ~~~~~~~">
|
||||||
<location
|
<location
|
||||||
file="src/main/AndroidManifest.xml"
|
file="src/main/AndroidManifest.xml"
|
||||||
line="64"
|
line="65"
|
||||||
column="10"/>
|
column="10"/>
|
||||||
</issue>
|
</issue>
|
||||||
|
|
||||||
@ -92,72 +92,6 @@
|
|||||||
column="10"/>
|
column="10"/>
|
||||||
</issue>
|
</issue>
|
||||||
|
|
||||||
<issue
|
|
||||||
id="IntentFilterExportedReceiver"
|
|
||||||
message="As of Android 12, `android:exported` must be set; use `true` to make the activity \
available to other apps, and `false` otherwise."
|
|
||||||
errorLine1=" <receiver android:name=".receiver.UltrasonicIntentReceiver">"
|
|
||||||
errorLine2=" ~~~~~~~~">
|
|
||||||
<location
|
|
||||||
file="src/main/AndroidManifest.xml"
|
|
||||||
line="74"
|
|
||||||
column="10"/>
|
|
||||||
</issue>
|
|
||||||
|
|
||||||
<issue
|
|
||||||
id="IntentFilterExportedReceiver"
|
|
||||||
message="As of Android 12, `android:exported` must be set; use `true` to make the activity \
available to other apps, and `false` otherwise."
|
|
||||||
errorLine1=" <receiver"
|
|
||||||
errorLine2=" ~~~~~~~~">
|
|
||||||
<location
|
|
||||||
file="src/main/AndroidManifest.xml"
|
|
||||||
line="86"
|
|
||||||
column="10"/>
|
|
||||||
</issue>
|
|
||||||
|
|
||||||
<issue
|
|
||||||
id="IntentFilterExportedReceiver"
|
|
||||||
message="As of Android 12, `android:exported` must be set; use `true` to make the activity \
available to other apps, and `false` otherwise."
|
|
||||||
errorLine1=" <receiver"
|
|
||||||
errorLine2=" ~~~~~~~~">
|
|
||||||
<location
|
|
||||||
file="src/main/AndroidManifest.xml"
|
|
||||||
line="97"
|
|
||||||
column="10"/>
|
|
||||||
</issue>
|
|
||||||
|
|
||||||
<issue
|
|
||||||
id="IntentFilterExportedReceiver"
|
|
||||||
message="As of Android 12, `android:exported` must be set; use `true` to make the activity \
available to other apps, and `false` otherwise."
|
|
||||||
errorLine1=" <receiver"
|
|
||||||
errorLine2=" ~~~~~~~~">
|
|
||||||
<location
|
|
||||||
file="src/main/AndroidManifest.xml"
|
|
||||||
line="108"
|
|
||||||
column="10"/>
|
|
||||||
</issue>
|
|
||||||
|
|
||||||
<issue
|
|
||||||
id="IntentFilterExportedReceiver"
|
|
||||||
message="As of Android 12, `android:exported` must be set; use `true` to make the activity \
available to other apps, and `false` otherwise."
|
|
||||||
errorLine1=" <receiver"
|
|
||||||
errorLine2=" ~~~~~~~~">
|
|
||||||
<location
|
|
||||||
file="src/main/AndroidManifest.xml"
|
|
||||||
line="119"
|
|
||||||
column="10"/>
|
|
||||||
</issue>
|
|
||||||
|
|
||||||
<issue
|
|
||||||
id="IntentFilterExportedReceiver"
|
|
||||||
message="As of Android 12, `android:exported` must be set; use `true` to make the activity \
available to other apps, and `false` otherwise."
|
|
||||||
errorLine1=" <receiver android:name=".receiver.MediaButtonIntentReceiver">"
|
|
||||||
errorLine2=" ~~~~~~~~">
|
|
||||||
<location
|
|
||||||
file="src/main/AndroidManifest.xml"
|
|
||||||
line="130"
|
|
||||||
column="10"/>
|
|
||||||
</issue>
|
|
||||||
|
|
||||||
<issue
|
<issue
|
||||||
id="ObsoleteLayoutParam"
|
id="ObsoleteLayoutParam"
|
||||||
message="Invalid layout param in a `LinearLayout`: `layout_above`"
|
message="Invalid layout param in a `LinearLayout`: `layout_above`"
|
||||||
|
@ -61,6 +61,7 @@
|
|||||||
android:exported="false">
|
android:exported="false">
|
||||||
</service>
|
</service>
|
||||||
|
|
||||||
|
<!-- TODO: Check if it works with exported=false as well -->
|
||||||
<service android:name=".playback.PlaybackService"
|
<service android:name=".playback.PlaybackService"
|
||||||
android:label="@string/common.appname"
|
android:label="@string/common.appname"
|
||||||
android:exported="true">
|
android:exported="true">
|
||||||
@ -71,7 +72,8 @@
|
|||||||
</intent-filter>
|
</intent-filter>
|
||||||
</service>
|
</service>
|
||||||
|
|
||||||
<receiver android:name=".receiver.UltrasonicIntentReceiver">
|
<receiver android:name=".receiver.UltrasonicIntentReceiver"
|
||||||
|
android:exported="true">
|
||||||
<intent-filter>
|
<intent-filter>
|
||||||
<action android:name="org.moire.ultrasonic.CMD_TOGGLEPAUSE"/>
|
<action android:name="org.moire.ultrasonic.CMD_TOGGLEPAUSE"/>
|
||||||
<action android:name="org.moire.ultrasonic.CMD_PLAY"/>
|
<action android:name="org.moire.ultrasonic.CMD_PLAY"/>
|
||||||
@ -83,7 +85,8 @@
|
|||||||
<action android:name="org.moire.ultrasonic.CMD_PROCESS_KEYCODE"/>
|
<action android:name="org.moire.ultrasonic.CMD_PROCESS_KEYCODE"/>
|
||||||
</intent-filter>
|
</intent-filter>
|
||||||
</receiver>
|
</receiver>
|
||||||
<receiver android:name=".receiver.BluetoothIntentReceiver">
|
<receiver android:name=".receiver.BluetoothIntentReceiver"
|
||||||
|
android:exported="false">
|
||||||
<intent-filter>
|
<intent-filter>
|
||||||
<action android:name="android.bluetooth.device.action.ACL_CONNECTED"/>
|
<action android:name="android.bluetooth.device.action.ACL_CONNECTED"/>
|
||||||
<action android:name="android.bluetooth.device.action.ACL_DISCONNECTED"/>
|
<action android:name="android.bluetooth.device.action.ACL_DISCONNECTED"/>
|
||||||
@ -93,7 +96,8 @@
|
|||||||
</receiver>
|
</receiver>
|
||||||
<receiver
|
<receiver
|
||||||
android:name=".provider.UltrasonicAppWidgetProvider4X1"
|
android:name=".provider.UltrasonicAppWidgetProvider4X1"
|
||||||
android:label="Ultrasonic (4x1)">
|
android:label="Ultrasonic (4x1)"
|
||||||
|
android:exported="false">
|
||||||
<intent-filter>
|
<intent-filter>
|
||||||
<action android:name="android.appwidget.action.APPWIDGET_UPDATE"/>
|
<action android:name="android.appwidget.action.APPWIDGET_UPDATE"/>
|
||||||
</intent-filter>
|
</intent-filter>
|
||||||
@ -104,7 +108,8 @@
|
|||||||
</receiver>
|
</receiver>
|
||||||
<receiver
|
<receiver
|
||||||
android:name=".provider.UltrasonicAppWidgetProvider4X2"
|
android:name=".provider.UltrasonicAppWidgetProvider4X2"
|
||||||
android:label="Ultrasonic (4x2)">
|
android:label="Ultrasonic (4x2)"
|
||||||
|
android:exported="false">
|
||||||
<intent-filter>
|
<intent-filter>
|
||||||
<action android:name="android.appwidget.action.APPWIDGET_UPDATE"/>
|
<action android:name="android.appwidget.action.APPWIDGET_UPDATE"/>
|
||||||
</intent-filter>
|
</intent-filter>
|
||||||
@ -115,7 +120,8 @@
|
|||||||
</receiver>
|
</receiver>
|
||||||
<receiver
|
<receiver
|
||||||
android:name=".provider.UltrasonicAppWidgetProvider4X3"
|
android:name=".provider.UltrasonicAppWidgetProvider4X3"
|
||||||
android:label="Ultrasonic (4x3)">
|
android:label="Ultrasonic (4x3)"
|
||||||
|
android:exported="false">
|
||||||
<intent-filter>
|
<intent-filter>
|
||||||
<action android:name="android.appwidget.action.APPWIDGET_UPDATE"/>
|
<action android:name="android.appwidget.action.APPWIDGET_UPDATE"/>
|
||||||
</intent-filter>
|
</intent-filter>
|
||||||
@ -126,7 +132,8 @@
|
|||||||
</receiver>
|
</receiver>
|
||||||
<receiver
|
<receiver
|
||||||
android:name=".provider.UltrasonicAppWidgetProvider4X4"
|
android:name=".provider.UltrasonicAppWidgetProvider4X4"
|
||||||
android:label="Ultrasonic (4x4)">
|
android:label="Ultrasonic (4x4)"
|
||||||
|
android:exported="false">
|
||||||
<intent-filter>
|
<intent-filter>
|
||||||
<action android:name="android.appwidget.action.APPWIDGET_UPDATE"/>
|
<action android:name="android.appwidget.action.APPWIDGET_UPDATE"/>
|
||||||
</intent-filter>
|
</intent-filter>
|
||||||
@ -135,7 +142,8 @@
|
|||||||
android:name="android.appwidget.provider"
|
android:name="android.appwidget.provider"
|
||||||
android:resource="@xml/appwidget_info_4x4"/>
|
android:resource="@xml/appwidget_info_4x4"/>
|
||||||
</receiver>
|
</receiver>
|
||||||
<receiver android:name=".receiver.MediaButtonIntentReceiver">
|
<receiver android:name=".receiver.MediaButtonIntentReceiver"
|
||||||
|
android:exported="true">
|
||||||
<intent-filter android:priority="2147483647">
|
<intent-filter android:priority="2147483647">
|
||||||
<action android:name="android.intent.action.MEDIA_BUTTON"/>
|
<action android:name="android.intent.action.MEDIA_BUTTON"/>
|
||||||
</intent-filter>
|
</intent-filter>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user