We can have the app wait for debugger in an activity with : `adb shell am start -D -S -n <packageName>/<activityName>`. However, sometimes we want to debug BEFORE an activity is launched. This is the case especially for packers.
I'd like to debug the class which extends Application, and which is called before anything else.
How can we launch the app and have it stop there?
For example, this is what I have in the manifest:
<application android:allowBackup="true" android:debuggable="true" android:hardwareAccelerated="false" android:icon="@mipmap/ic_launcher" android:installLocation="0" android:label="@string/app_name" android:largeHeap="true" android:name="com.android.protector.ProtectApplication" android:supportsRtl="false" android:theme=...
I'd like to debug ProtectApplication class.