New issue. Uinstalling Device Care

Offen
#143 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
35/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Veraltet
Tech-Stack
android, java
Bereich
mobile-dev

Rechercherichtung

Start with com.smartpack.packagemanager.MainActivity and trace its onActivityResult handling, especially the AndroidX Activity Result API path shown in the stack trace. Reproduce the Device Care uninstall flow and identify where an activity result index is accessed beyond the available list. Done means the uninstall action no longer triggers the IndexOutOfBoundsException, with a regression test or repeatable reproduction covering the result callback.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=1003351456, result=-1, data=Intent { (has extras) }} to activity {com.smartpack.packagemanager/com.smartpack.packagemanager.MainActivity}: java.lang.IndexOutOfBoundsException: Index 373 out of bounds for length 373
at android.app.ActivityThread.deliverResults(ActivityThread.java:5994)
at android.app.ActivityThread.handleSendResult(ActivityThread.java:6033)
at android.app.servertransaction.ActivityResultItem.execute(ActivityResultItem.java:67)
at android.app.servertransaction.ActivityTransactionItem.execute(ActivityTransactionItem.java:45)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2574)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:226)
at android.os.Looper.loop(Looper.java:313)
at android.app.ActivityThread.main(ActivityThread.java:8757)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:571)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1067)
Caused by: java.lang.IndexOutOfBoundsException: Index 373 out of bounds for length 373
at jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:64)
at jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:70)
at jdk.internal.util.Preconditions.checkIndex(Preconditions.java:266)
at java.util.Objects.checkIndex(Objects.java:385)
at java.util.ArrayList.get(ArrayList.java:434)
at P.d.a(r8-map-id-e83a726ffe884b5793b44b6eb92947bce030baf19de49f1f2475a128a0ded042:27)
at androidx.activity.result.g.a(r8-map-id-e83a726ffe884b5793b44b6eb92947bce030baf19de49f1f2475a128a0ded042:43)
at androidx.activity.l.onActivityResult(r8-map-id-e83a726ffe884b5793b44b6eb92947bce030baf19de49f1f2475a128a0ded042:3)
at e.g.onActivityResult(r8-map-id-e83a726ffe884b5793b44b6eb92947bce030baf19de49f1f2475a128a0ded042:6)
at android.app.Activity.dispatchActivityResult(Activity.java:8951)
at android.app.ActivityThread.deliverResults(ActivityThread.java:5987)
... 13 more

Vorherrschende Sprache
Java
Sterne
877
Forks
121
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Entwicklungsumgebung

Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus SmartPack/PackageManager

Alle Issues in SmartPack/PackageManager

Ähnliche Issues

Weitere Issues zu Java

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.