使用 apktool 和 apklab 进行重建时应用程序崩溃

问题描述 投票:0回答:0

我正在尝试使用 apktool 和 apklab 反编译后重建 apk,但应用程序在启动画面上崩溃。 logcat出现以下异常

Error updating last accessed time for {Google Sans, wdth 100.0, wght 400, ital 0.0, bestEffort false}. [CONTEXT service_id=132 ]
                                                                                                java.lang.IllegalStateException: Cannot perform this operation because the connection pool has been closed.
                                                                                                    at android.database.sqlite.SQLiteConnectionPool.throwIfClosedLocked(SQLiteConnectionPool.java:1071)
                                                                                                    at android.database.sqlite.SQLiteConnectionPool.waitForConnection(SQLiteConnectionPool.java:763)
                                                                                                    at android.database.sqlite.SQLiteConnectionPool.acquireConnection(SQLiteConnectionPool.java:380)
                                                                                                    at android.database.sqlite.SQLiteSession.acquireConnection(SQLiteSession.java:896)
                                                                                                    at android.database.sqlite.SQLiteSession.prepare(SQLiteSession.java:588)
                                                                                                    at android.database.sqlite.SQLiteProgram.<init>(SQLiteProgram.java:61)
                                                                                                    at android.database.sqlite.SQLiteStatement.<init>(SQLiteStatement.java:33)
                                                                                                    at android.database.sqlite.SQLiteDatabase.executeSql(SQLiteDatabase.java:1919)
                                                                                                    at android.database.sqlite.SQLiteDatabase.execSQL(SQLiteDatabase.java:1897)
                                                                                                    at ambs.run(:com.google.android.gms@[email protected] (150406-517566699):5)
                                                                                                    at aasm.c(:com.google.android.gms@[email protected] (150406-517566699):6)
                                                                                                    at aasm.run(:com.google.android.gms@[email protected] (150406-517566699):7)
                                                                                                    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
                                                                                                    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
                                                                                                    at aaxs.run(:com.google.android.gms@[email protected] (150406-517566699):0)
                                                                                                    at java.lang.Thread.run(Thread.java:923)

UID for network attribution might be misset for tag 805307399 [CONTEXT service_id=39 ]
                                                                                                cquw: FULL
                                                                                                    at d.K(:com.google.android.gms@[email protected] (150406-517566699):0)
                                                                                                    at amek.a(:com.google.android.gms@[email protected] (150406-517566699):12)
                                                                                                    at aoyl.c(:com.google.android.gms@[email protected] (150406-517566699):8)
                                                                                                    at aoyc.d(:com.google.android.gms@[email protected] (150406-517566699):1)
                                                                                                    at aoyh.a(:com.google.android.gms@[email protected] (150406-517566699):0)
                                                                                                    at aoyc.b(:com.google.android.gms@[email protected] (150406-517566699):5)
                                                                                                    at aoyc.execute(:com.google.android.gms@[email protected] (150406-517566699):8)
                                                                                                    at aoyc.execute(:com.google.android.gms@[email protected] (150406-517566699):7)
                                                                                                    at anka.h(:com.google.android.gms@[email protected] (150406-517566699):46)
                                                                                                    at anjv.run(:com.google.android.gms@[email protected] (150406-517566699):3)
                                                                                                    at aasm.c(:com.google.android.gms@[email protected] (150406-517566699):6)
                                                                                                    at aasm.run(:com.google.android.gms@[email protected] (150406-517566699):7)
                                                                                                    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
                                                                                                    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
                                                                                                    at aaxs.run(:com.google.android.gms@[email protected] (150406-517566699):0)
                                                                                                    at java.lang.Thread.run(Thread.java:923)

UID for network attribution might be misset for tag 805306624 [CONTEXT service_id=39 ]
                                                                                                cquw: FULL
                                                                                                    at d.K(:com.google.android.gms@[email protected] (150406-517566699):0)
                                                                                                    at amek.a(:com.google.android.gms@[email protected] (150406-517566699):12)
                                                                                                    at aoyl.c(:com.google.android.gms@[email protected] (150406-517566699):8)
                                                                                                    at aoyl.b(:com.google.android.gms@[email protected] (150406-517566699):0)
                                                                                                    at aaxi.a(:com.google.android.gms@[email protected] (150406-517566699):0)
                                                                                                    at com.google.android.gms.ads.social.c.d(:com.google.android.gms@[email protected] (150406-517566699):5)
                                                                                                    at com.google.android.gms.ads.social.c.c(:com.google.android.gms@[email protected] (150406-517566699):5)
                                                                                                    at com.google.android.gms.ads.social.c.a(:com.google.android.gms@[email protected] (150406-517566699):6)
                                                                                                    at com.google.android.gms.ads.social.d.c(:com.google.android.gms@[email protected] (150406-517566699):1)
                                                                                                    at com.google.android.gms.ads.social.k.call(:com.google.android.gms@[email protected] (150406-517566699):12)
                                                                                                    at cuna.a(:com.google.android.gms@[email protected] (150406-517566699):0)
                                                                                                    at cuma.run(:com.google.android.gms@[email protected] (150406-517566699):3)
                                                                                                    at cunb.run(:com.google.android.gms@[email protected] (150406-517566699):0)
                                                                                                    at aasm.c(:com.google.android.gms@[email protected] (150406-517566699):6)
                                                                                                    at aasm.run(:com.google.android.gms@[email protected] (150406-517566699):7)
                                                                                                    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
                                                                                                    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
                                                                                                    at aaxs.run(:com.google.android.gms@[email protected] (150406-517566699):0)
                                                                                                    at java.lang.Thread.run(Thread.java:923)

Error inserting flex_time=0 job_id=-1 period=2000 source=16 requires_charging=0 preferred_network_type=1 target_class=com.google.android.gms.measurement.PackageMeasurementTaskService user_id=0 target_package=com.google.android.gms tag=Measurement.PackageMeasurementTaskService.UPLOAD_TASK_TAG task_type=0 required_idleness_state=0 service_kind=0 source_version=231015000 persistence_level=1 preferred_charging_state=1 required_network_type=0 runtime=1680067117185 retry_strategy={"maximum_backoff_seconds":{"3600":0},"initial_backoff_seconds":{"30":0},"retry_policy":{"0":0}} last_runtime=0 [CONTEXT service_id=218 ]
                                                                                                android.database.sqlite.SQLiteConstraintException: UNIQUE constraint failed: pending_ops.tag, pending_ops.target_class, pending_ops.target_package, pending_ops.user_id (code 2067 SQLITE_CONSTRAINT_UNIQUE)
                                                                                                    at android.database.sqlite.SQLiteConnection.nativeExecuteForLastInsertedRowId(Native Method)
                                                                                                    at android.database.sqlite.SQLiteConnection.executeForLastInsertedRowId(SQLiteConnection.java:983)
                                                                                                    at android.database.sqlite.SQLiteSession.executeForLastInsertedRowId(SQLiteSession.java:790)
                                                                                                    at android.database.sqlite.SQLiteStatement.executeInsert(SQLiteStatement.java:88)
                                                                                                    at android.database.sqlite.SQLiteDatabase.insertWithOnConflict(SQLiteDatabase.java:1701)
                                                                                                    at android.database.sqlite.SQLiteDatabase.insertOrThrow(SQLiteDatabase.java:1596)
                                                                                                    at blji.f(:com.google.android.gms@[email protected] (150406-517566699):53)
                                                                                                    at blib.n(:com.google.android.gms@[email protected] (150406-517566699):3)
                                                                                                    at blib.u(:com.google.android.gms@[email protected] (150406-517566699):20)
                                                                                                    at blib.h(:com.google.android.gms@[email protected] (150406-517566699):3)
                                                                                                    at blds.run(:com.google.android.gms@[email protected] (150406-517566699):9)
                                                                                                    at aasm.c(:com.google.android.gms@[email protected] (150406-517566699):6)
                                                                                                    at aasm.run(:com.google.android.gms@[email protected] (150406-517566699):7)
                                                                                                    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
                                                                                                    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
                                                                                                    at aaxs.run(:com.google.android.gms@[email protected] (150406-517566699):0)
                                                                                                    at java.lang.Thread.run(Thread.java:923)

2023-03-29 10:18:37.224 12990-15442 Finsky pid-12990 I [70665] afts.r(8): 包 com.google.android.gms 已验证。 2023-03-29 10:18:37.345 2664-15752 NetworkScheduler pid-2664 W 插入 flex_time=9000 job_id=-1 period=20000 source=16 requires_charging=0 preferred_network_type=1 target_class=com.google.android.gms.measurement 时出错.PackageMeasurementTaskService user_id=0 target_package=com.google.android.gms tag=Measurement.PackageMeasurementTaskService.UPLOAD_TASK_TAG task_type=0 required_idleness_state=0 service_kind=0 source_version=231015000 persistence_level=1 preferred_charging_state=1 required_network_type=0 runtime=16800=671_second_stateums"offtry_imstrateums_type=0 ":{"3600":0},"initial_backoff_seconds":{"30":0},"retry_policy":{"0":0}} last_runtime=0 [CONTEXT service_id=218] android.database.sqlite.SQLiteConstraintException:唯一约束失败:pending_ops.tag、pending_ops.target_class、pending_ops.target_package、pending_ops.user_id(代码 2067 SQLITE_CONSTRAINT_UNIQUE) 在 android.database.sqlite.SQLiteConnection.nativeExecuteForLastInsertedRowId(本机方法) 在 android.database.sqlite.SQLiteConnection.executeForLastInsertedRowId(SQLiteConnection.java:983) 在 android.database.sqlite.SQLiteSession.executeForLastInsertedRowId (SQLiteSession.java:790) 在 android.database.sqlite.SQLiteStatement.executeInsert(SQLiteStatement.java:88) 在 android.database.sqlite.SQLiteDatabase.insertWithOnConflict(SQLiteDatabase.java:1701) 在 android.database.sqlite.SQLiteDatabase.insertOrThrow(SQLiteDatabase.java:1596) 在 blji.f(:com.google.android.gms@[email protected] (150406-517566699):53) 在 blib.n(:com.google.android.gms@[email protected] (150406-517566699):3) 在 blib.u(:com.google.android.gms@[email protected] (150406-517566699):20) 在 blib.h(:com.google.android.gms@[email protected] (150406-517566699):3) 在 blds.run(:com.google.android.gms@[email protected] (150406-517566699):9) 在 aasm.c(:com.google.android.gms@[email protected] (150406-517566699):6) 在 aasm.run(:com.google.android.gms@[email protected] (150406-517566699):7) 在 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167) 在 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) 在 aaxs.run(:com.google.android.gms@[email protected] (150406-517566699):0) 在 java.lang.Thread.run(Thread.java:923) 2023-03-29 10:18:37.432 2664-14907 NetworkScheduler pid-2664 W 插入 flex_time=9000 job_id=-1 period=20000 source=16 requires_charging=0 preferred_network_type=1 target_class=com.google.android.gms.measurement 时出错.PackageMeasurementTaskService user_id=0 target_package=com.google.android.gms tag=Measurement.PackageMeasurementTaskService.UPLOAD_TASK_TAG task_type=0 required_idleness_state=0 service_kind=0 source_version=231015000 persistence_level=1 preferred_charging_state=1 required_network_type=0 runtime=16800=671_second_secondgy2"offtry_imstrateums ":{"3600":0},"initial_backoff_seconds":{"30":0},"retry_policy":{"0":0}} last_runtime=0 [CONTEXT service_id=218] android.database.sqlite.SQLiteConstraintException:唯一约束失败:pending_ops.tag、pending_ops.target_class、pending_ops.target_package、pending_ops.user_id(代码 2067 SQLITE_CONSTRAINT_UNIQUE) 在 android.database.sqlite.SQLiteConnection.nativeExecuteForLastInsertedRowId(本机方法) 在 android.database.sqlite.SQLiteConnection.executeForLastInsertedRowId(SQLiteConnection.java:983) 在 android.database.sqlite.SQLiteSession.executeForLastInsertedRowId (SQLiteSession.java:790) 在 android.database.sqlite.SQLiteStatement.executeInsert(SQLiteStatement.java:88) 在 android.database.sqlite.SQLiteDatabase.insertWithOnConflict(SQLiteDatabase.java:1701) 在 android.database.sqlite.SQLiteDatabase.insertOrThrow(SQLiteDatabase.java:1596) 在 blji.f(:com.google.android.gms@[email protected] (150406-517566699):53) 在 blib.n(:com.google.android.gms@[email protected] (150406-517566699):3) 在 blib.u(:com.google.android.gms@[email protected] (150406-517566699):20) 在 blib.h(:com.google.android.gms@[email protected] (150406-517566699):3) 在 blds.run(:com.google.android.gms@[email protected] (150406-517566699):9) 在 aasm.c(:com.google.android.gms@[email protected] (150406-517566699):6) 在 aasm.run(:com.google.android.gms@[email protected] (150406-517566699):7) 在 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167) 在 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) 在 aaxs.run(:com.google.android.gms@[email protected] (150406-517566699):0) 在 java.lang.Thread.run(Thread.java:923)

2023-03-29 10:18:37.564  2664-15908 NetworkScheduler        pid-2664                             W  Error inserting flex_time=9000 job_id=-1 period=20000 source=16 requires_charging=0 preferred_network_type=1 target_class=com.google.android.gms.measurement.PackageMeasurementTaskService user_id=0 target_package=com.google.android.gms tag=Measurement.PackageMeasurementTaskService.UPLOAD_TASK_TAG task_type=0 required_idleness_state=0 service_kind=0 source_version=231015000 persistence_level=1 preferred_charging_state=1 required_network_type=0 runtime=1680067117553 retry_strategy={"maximum_backoff_seconds":{"3600":0},"initial_backoff_seconds":{"30":0},"retry_policy":{"0":0}} last_runtime=0 [CONTEXT service_id=218 ]
                                                                                                android.database.sqlite.SQLiteConstraintException: UNIQUE constraint failed: pending_ops.tag, pending_ops.target_class, pending_ops.target_package, pending_ops.user_id (code 2067 SQLITE_CONSTRAINT_UNIQUE)
                                                                                                    at android.database.sqlite.SQLiteConnection.nativeExecuteForLastInsertedRowId(Native Method)
                                                                                                    at android.database.sqlite.SQLiteConnection.executeForLastInsertedRowId(SQLiteConnection.java:983)
                                                                                                    at android.database.sqlite.SQLiteSession.executeForLastInsertedRowId(SQLiteSession.java:790)
                                                                                                    at android.database.sqlite.SQLiteStatement.executeInsert(SQLiteStatement.java:88)
                                                                                                    at android.database.sqlite.SQLiteDatabase.insertWithOnConflict(SQLiteDatabase.java:1701)
                                                                                                    at android.database.sqlite.SQLiteDatabase.insertOrThrow(SQLiteDatabase.java:1596)
                                                                                                    at blji.f(:com.google.android.gms@[email protected] (150406-517566699):53)
                                                                                                    at blib.n(:com.google.android.gms@[email protected] (150406-517566699):3)
                                                                                                    at blib.u(:com.google.android.gms@[email protected] (150406-517566699):20)
                                                                                                    at blib.h(:com.google.android.gms@[email protected] (150406-517566699):3)
                                                                                                    at blds.run(:com.google.android.gms@[email protected] (150406-517566699):9)
                                                                                                    at aasm.c(:com.google.android.gms@[email protected] (150406-517566699):6)
                                                                                                    at aasm.run(:com.google.android.gms@[email protected] (150406-517566699):7)
                                                                                                    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
                                                                                                    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
                                                                                                    at aaxs.run(:com.google.android.gms@[email protected] (150406-517566699):0)
                                                                                                    at java.lang.Thread.run(Thread.java:923)

2023-03-29 10:18:37.584 15757-15810 系统 pid-15757 W 忽略标头 If-None-Match,因为它的值为空。

android reverse-engineering smali apktool
© www.soinside.com 2019 - 2024. All rights reserved.