Search This thread
Feb 25, 2023
10
2
Hello,

i recently installed magisk rooted my phone using TWRP. Then I debloated it and deleted the MI cloud services. Now when I start my phone it reboots into TWRP and shows:

“Android Rescue Party trigger! Wipe data and caches and/or clean-flash you ROM!"

Is there a method to reinstall these apps from TWRP?
 

alecxs

Forum Moderator
Staff member
Feb 17, 2016
3,665
5
1,525
gitlab.com
Depends on how you debloated. either copy these files back to device and wipe dalvik-cache
Code:
/system/app/CloudService/CloudService.apk
/system/app/CloudService/oat/arm64/CloudService.vdex
/system/app/CloudService/oat/arm64/CloudService.odex

or re-enable the package in package-restrictions.xml
Code:
adb pull /data/system/users/0/package-restrictions.xml

delete the enabled flag with Notepad++
<pkg name="com.miui.cloudservice" ceDataInode="300224" e̶n̶a̶b̶l̶e̶d̶=̶"̶3̶"̶ ̶e̶n̶a̶b̶l̶e̶d̶C̶a̶l̶l̶e̶r̶=̶"̶s̶h̶e̶l̶l̶:̶1̶0̶0̶0̶"̶ ̶i̶n̶s̶t̶a̶l̶l̶-̶r̶e̶a̶s̶o̶n̶=̶"̶4̶"̶/>

push the modified file back and write its content into existing file
Code:
adb push package-restrictions.xml /tmp
adb shell cat /tmp/package-restrictions.xml > /data/system/users/0/package-restrictions.xml
 

5551900j

New member
Aug 24, 2022
1
0
/system/app/CloudService/CloudService.apk /system/app/CloudService/oat/arm64/CloudService.vdex /system/app/CloudService/oat/arm64/CloudService
adb pull /data/system/users/0/package-restrictions.xml
adb push package-restrictions.xml /tmp
adb shell cat /tmp/package-restrictions.xml