Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Activity not whitelisted

I recently launched an application on google play. it was working fine on my debug build, but it started crashing when i downloaded the released version from google play. I now try installing the app-release.apk (Although i uploaded the app.abb bundle, but i don't know how to get an apk out of it) generated via android studio and it gives me the following logs:

2019-08-27 05:46:09.978 819-852/? E/ANDR-PERF-MPCTL: Invalid profile no. 0, total profiles 0 only
2019-08-27 05:46:09.982 1449-8273/? E/ANDR-PERF-JNI: Iop tryGetService failed
2019-08-27 05:46:09.998 1449-8273/? E/ActivityTrigger: activityStartTrigger: not whiteListedin.curioustools.water_reminder/in.curioustools.water_reminder.ui.StartActivity/1
2019-08-27 05:46:09.998 1449-8273/? E/ActivityTrigger: activityResumeTrigger: not whiteListedin.curioustools.water_reminder/in.curioustools.water_reminder.ui.StartActivity/1
2019-08-27 05:46:10.008 1449-10327/? E/ActivityTrigger: activityResumeTrigger: not whiteListedin.curioustools.water_reminder/in.curioustools.water_reminder.ui.StartActivity/1
2019-08-27 05:46:10.041 23961-23961/? E/.water_reminde: Not starting debugger since process cannot load the jdwp agent.
...

full logs are here .What am i doing wrong? why my activity is not whitelisted? Here is my activity and manifest:

//manifest

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    package="in.curioustools.water_reminder">

    <application
        android:allowBackup="true"
        android:fullBackupContent="true"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:roundIcon="@mipmap/ic_launcher_round"
        android:supportsRtl="true"
        android:theme="@style/AppTheme"
        tools:ignore="GoogleAppIndexingWarning">
        <activity
            android:name=".ui.screen_dashboard.DashBoardActivity"
            android:configChanges="orientation|keyboardHidden"
            android:screenOrientation="portrait"
            />

        <activity
            android:name=".ui.screen_intro.IntroInfoActivity"
            android:configChanges="orientation|keyboardHidden"
            android:screenOrientation="portrait"
            />
        <activity android:name=".ui.StartActivity"
            android:configChanges="orientation|keyboardHidden"
            android:screenOrientation="portrait"
            >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>

        <receiver android:name=".broadcast_recievers.NotificationActionReceiver" />
    </application>

</manifest>

and:

//StartActivitty.java
package in.curioustools.water_reminder.ui;

        import android.content.Intent;
        import android.content.SharedPreferences;
        import android.os.Bundle;

        import androidx.appcompat.app.AppCompatActivity;

        import in.curioustools.water_reminder.R;
        import in.curioustools.water_reminder.services.ServicesHandler;
        import in.curioustools.water_reminder.ui.screen_intro.IntroInfoActivity;
        import in.curioustools.water_reminder.ui.screen_dashboard.DashBoardActivity;

        import static in.curioustools.water_reminder.db.pref.PrefUserDetails.*;

public class StartActivity extends AppCompatActivity {

    //private static final String TAG = "startActivity";
    Class classToBeLaunched;


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_start);

        ServicesHandler.updateServices(this);

        SharedPreferences pref= getSharedPreferences(PREF_NAME, MODE_PRIVATE);
        boolean shownOneTime=pref.getBoolean(KEYS.KEY_SHOWN_INFO_ACTIVITY, Defaults.HAS_SHOWN_INTRO_INFO_ACTIVITY);
        classToBeLaunched = shownOneTime ?DashBoardActivity.class:IntroInfoActivity.class;
        startActivity(new Intent(StartActivity.this, classToBeLaunched));
        finish();

    }

}

like image 440
ansh sachdeva Avatar asked Dec 06 '25 20:12

ansh sachdeva


1 Answers

minifyEnabled=false is by default on all new projects you create with Android Studio for debug and release configurations. Even in this case you may see the following errors in Logcat:

E/ActivityTrigger: activityStartTrigger: not whiteListe** E/ActivityTrigger: activityResumeTrigger: not whiteListe**

In my cases they are preceeded by android debug message

The activity in ApplicationInfo {********} is now in focus and seems to be in full-screen mode.

The last is not correct because the tested application do not request full-screen mode.

like image 189
Toni Garabedyan Avatar answered Dec 09 '25 20:12

Toni Garabedyan



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!