Explain permissions

This commit is contained in:
M66B 2021-10-21 15:55:38 +02:00
parent bf9c2124e0
commit 44352f85f0
2 changed files with 52 additions and 0 deletions

View File

@ -352,6 +352,24 @@
android:icon="@mipmap/ic_launcher"
android:launchMode="singleTask" />
<!-- https://developer.android.com/training/permissions/explaining-access -->
<activity
android:name=".ActivityRationale"
android:excludeFromRecents="true"
android:exported="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:launchMode="singleTask"
android:permission="android.permission.START_VIEW_PERMISSION_USAGE"
android:theme="@style/Theme.AppCompat.Translucent">
<intent-filter>
<action android:name="android.intent.action.VIEW_PERMISSION_USAGE" />
<action android:name="android.intent.action.VIEW_PERMISSION_USAGE_FOR_PERIOD" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<activity
android:name="net.openid.appauth.RedirectUriReceiverActivity"
android:exported="true"

View File

@ -0,0 +1,34 @@
package eu.faircode.email;
/*
This file is part of FairEmail.
FairEmail is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
FairEmail is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with FairEmail. If not, see <http://www.gnu.org/licenses/>.
Copyright 2018-2021 by Marcel Bokhorst (M66B)
*/
import android.os.Bundle;
public class ActivityRationale extends ActivityBase {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
// https://developer.android.com/training/permissions/explaining-access
Helper.viewFAQ(this, 1);
finish();
}
}