0

I have rooted OnePlus 5t, I used Lucky Pacher to disable Package Installer and when I reboot my device I got boot loop... Is there something I can do beside factory rest? is there an option to enable it via recovery or fastboot mode?

I have OrangeFox recovery mode

This is the XML file package-restrictions.xml: https://drive.google.com/file/d/1FThuUEt4pII_FBVpSUl7sjWoXLiq_zcG/view?usp=sharing https://pastebin.com/XXE455pJ

12
  • Did you do anything beside disabling Package Installer when using Lucky Patcher? Did Lucky Patcher do anything to Package Installer app aside from simply disabling it? Look for the package name of Package Installer app inside /data/system/users/0/package-restrictions.xml. Edit out the related lines or change enabled= to enabled=1. Reference: my own answer here
    – Firelord
    Jun 17 at 14:18
  • I didn't do anything beside disabling Package Installer when using Lucky Patcher - Just disable. In OrangeFox recovery I go to > /data/system/users/0/package-restrictions.xml, and then click on it >> Open as... >> Text File. I can't edit the file but I can see it. Its a very very long text... what line I need to check?
    – Joe
    Jun 17 at 14:33
  • This is the XML file package-restrictions.xml: pastebin.com/XXE455pJ. and how can I edit this file?
    – Joe
    Jun 17 at 14:42
  • 1
    Open adb shell and execute these two commands: busybox sed -i '/1570736/s/enabled="2"/enabled="1"/' /data/system/users/0/package-restrictions.xml and grep 1570736 /data/system/users/0/package-restrictions.xml. Report the output. It should have enabled="1". If it does, reboot the device and see if the boot loop still persists. Report your observation back here.
    – Firelord
    Jun 17 at 15:07
  • 1
    Ah yes. Your recovery doesn't have busybox. That's okay. Just enter adb shell. A custom recovery always give you a shell with default root access, (that # means root), so you don't need to run su. Just enter my commands without busybox word in them and report your findings.
    – Firelord
    Jun 17 at 18:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.