Skip to content

Commit

Permalink
Restrict intents sent to control FTP server to Amaze only (#1815)
Browse files Browse the repository at this point in the history
Restrict intents sent to control FTP server to Amaze only
  • Loading branch information
EmmanuelMess committed Feb 1, 2020
1 parent dfb9325 commit e0aaf70
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
xmlns:tools="http://schemas.android.com/tools"
package="com.amaze.filemanager">

<permission android:name="com.amaze.filemanager.permission.CONTROL_FTP_SERVER"
android:protectionLevel="dangerous" />

<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
Expand Down Expand Up @@ -186,7 +189,8 @@
<service
android:name=".asynchronous.services.ftp.FtpService"
android:enabled="true"
android:exported="true" />
android:exported="true"
android:permission="com.amaze.filemanager.permission.CONTROL_FTP_SERVER"/>

<service android:name=".asynchronous.services.ftp.FtpTileService"
android:icon="@drawable/ic_ftp_dark"
Expand All @@ -200,7 +204,8 @@

<receiver
android:name=".asynchronous.services.ftp.FtpReceiver"
android:exported="true">
android:exported="true"
android:permission="com.amaze.filemanager.permission.CONTROL_FTP_SERVER">
<intent-filter>
<action android:name="com.amaze.filemanager.services.ftpservice.FTPReceiver.ACTION_START_FTPSERVER" />
<action android:name="com.amaze.filemanager.services.ftpservice.FTPReceiver.ACTION_STOP_FTPSERVER" />
Expand Down

0 comments on commit e0aaf70

Please sign in to comment.