Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 776c471b authored by Vincent Bourgmayer's avatar Vincent Bourgmayer
Browse files

try to make the accountSession work

parent 9e4308e0
Loading
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -4,6 +4,8 @@
    android:installLocation="internalOnly">
    <!-- normal permissions -->
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
    <uses-permission android:name="android.permission.BIND_AUTOFILL_SERVICE"
        tools:ignore="ProtectedPermissions" />
    <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
    <uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
    <uses-permission android:name="android.permission.INTERNET" />
@@ -355,6 +357,7 @@
        </service> <!-- account type "Eelo" -->
        <service
            android:name=".syncadapter.EeloAccountAuthenticatorService"
            android:permission="android.permission.BIND_AUTOFILL_SERVICE"
            android:exported="false">
            <intent-filter>
                <action android:name="android.accounts.AccountAuthenticator" />
+2 −3
Original line number Diff line number Diff line
@@ -77,15 +77,14 @@ class ReLoginWithOidcActivity : AppCompatActivity() {
    private fun loginAccount() {
        val accountManager = AccountManager.get(this)
        val eAccountType = applicationContext.getString(R.string.eelo_account_type)
        val authTokenType = null

        Logger.log.info("Vincent: Will start add Account Session")
        Logger.log.info("Vincent: Will start add Account Session for: $eAccountType account type")

        try {
            //todo only work for API 33 ?
            accountManager.startAddAccountSession(
                eAccountType,
                authTokenType,
                null,
                arrayOf(),
                null,
                this,