TeamWin / Team-Win-Recovery-Project

Core recovery files for the Team Win Recovery Project (T.W.R.P) - this is not up to date, please see https://github.com/TeamWin/android_bootable_recovery/
http://twrp.me
1.97k stars 740 forks source link

Twrp App installation bug AOSP ROMS #1571

Closed Ko-Hi-Dev closed 4 years ago

Ko-Hi-Dev commented 4 years ago

Cepheus: TWRP version 3.3.1-0:

WHAT STEPS WILL REPRODUCE THE PROBLEM?

Install twrp as system app causes bootloop on any AOSP 10 ROM (Cepheus)

WHAT IS THE EXPECTED RESULT?

System should boot normally

WHAT HAPPENS INSTEAD?

System got stuck in a boot loop after installed and trigger rescue party.

ADDITIONAL INFORMATION

The issue is causes by permissions in the app which seems to crash system on startup.

https://paste.omnirom.org/view/0b69c651

Issue is caused by android.permission.BATTERY_STATS, me.twrp.twrp: android.permission.PACKAGE_USAGE_STATS, me.twrp.twrp: android.permission.READ_PRECISE_PHONE_STATE}

Removing the permissions solves the issue

galenzhao commented 4 years ago

hi how can I remove the app from recovery? or fix this problem.

Ko-Hi-Dev commented 4 years ago

hi how can I remove the app from recovery? or fix this problem.

Meanwhile this isn't related to the problem

If you build from source you need to add TW_EXCLUDE_TWRPAPP

If you want to modify a current recovery you'll have to unpack it

Ko-Hi-Dev commented 4 years ago

Issue is to resolved with latest TWRP for cepheus with disabled. Twrp app installer

You can move the play store versn to system without issues