Check for the package stoppped state first before checking the flag.

To avoid accessing the trunk stable flag early in the boot cycle,
check for the package stopped state first.

Bug: 336723189
Bug: 332922400
Test: atest tests/app/src/android/app/cts/ForceStopTest.java
Flag: android.content.pm.stay_stopped
Change-Id: Ic8003c4093073d8ac5a90e971c4b7ddde61d0ef5
(cherry picked from commit 5d678dd94c9facc4fddf77f42f0ce07704528df5)
1 file changed