I was trying to install a custom ROM on my phone, after unlocking the bootloader, I got stuck on FRP so I tried looking up how to remove it and that the bootloader is unlocked, I didn’t think much and saw fastboot erase persist in search results. I ran the command as I thought it would remove FRP and my phone became stuck in a boot loop, only the custom ROM boots fine but with no audio and inability to make calls, texting and data work fine. What can I do now if I accidentally erased my persist partition?? Would a donor dump fix this or not.?
adb logcat: 03-03 19:46:45.087 650 16522 W sscrpcd : vendor/qcom/proprietary/adsprpc/src/apps_std_imp.c:892: Warning: apps_std_fopen_with_env failed with 0x2 for /mnt/vendor/persist/sensors/registry/registry (No such file or directory) 03-03 19:46:45.087 650 16522 E sscrpcd : vendor/qcom/proprietary/adsprpc/src/apps_std_imp.c:1246::Error: 201: 0 == (nOpenErr = apps_std_fopen_with_env(ADSP_LIBRARY_PATH, ";", name, "r", &ps)) 03-03 19:46:45.087 650 16522 E sscrpcd : vendor/qcom/proprietary/adsprpc/src/apps_std_imp.c:1265:Error 0x201: apps_std_stat: failed to stat /mnt/vendor/persist/sensors/registry/registry, file open returned 0x2 (No such file or directo ry) 03-03 19:46:45.109 650 16522 W sscrpcd : vendor/qcom/proprietary/adsprpc/src/apps_std_imp.c:892: Warning: apps_std_fopen_with_env failed with 0x2 for /mnt/vendor/persist/sensors/registry/registry (No such file or directory) 03-03 19:46:45.109 650 16522 E sscrpcd : vendor/qcom/proprietary/adsprpc/src/apps_std_imp.c:1246::Error: 201: 0 == (nOpenErr = apps_std_fopen_with_env(ADSP_LIBRARY_PATH, ";", name, "r", &ps)) 03-03 19:46:45.109 650 16522 E sscrpcd : vendor/qcom/proprietary/adsprpc/src/apps_std_imp.c:1265:Error 0x201: apps_std_stat: failed to stat /mnt/vendor/persist/sensors/registry/registry, file open returned 0x2 (No such file or directo ry) 03-03 19:46:45.116 1384 1384 I adsprpcd: vendor/qcom/proprietary/adsprpc/src/rpcmem_android.c:159: rpcmem_init_internal: opened ION device fd 4, configured heap IDs: system (0x2000000), contig (0x400000), secure (0x200), secure flags (0x80080000) 03-03 19:46:45.116 1384 1384 I adsprpcd: vendor/qcom/proprietary/adsprpc/src/fastrpc_apps_user.c:3092: fastrpc_apps_user_init done with default domain:0 and &fastrpc_trace:0x731b164fa0 03-03 19:46:45.117 1384 1384 I adsprpcd: vendor/qcom/proprietary/adsprpc/src/fastrpc_apps_user.c:1345: remote_handle_open: Successfully opened handle 0x0 for '":;./\createstaticpd:audiopd on domain 0 03-03 19:46:45.118 1384 1384 E adsprpcd: vendor/qcom/proprietary/adsprpc/src/fastrpc_apps_user.c:2875: Error 0x4e: apps_dev_init failed for domain 0, errno Operation not permitted 03-03 19:46:45.118 1384 1384 E adsprpcd: vendor/qcom/proprietary/adsprpc/src/fastrpc_apps_user.c:2973: Error 0x4e: open_dev (-1) failed for domain 0 (errno Operation not permitted) 03-03 19:46:45.120 1384 1384 E adsprpcd: vendor/qcom/proprietary/adsprpc/src/fastrpc_apps_user.c:1348: Error 0x4e: remote_handle_open failed for adsp_default_listener (errno Success) 03-03 19:46:45.121 1384 1384 I adsprpcd: vendor/qcom/proprietary/adsprpc/src/rpcmem_android.c:192: rpcmem_deinit_internal: closed ION fd 4 03-03 19:46:45.121 1384 1384 I adsprpcd: vendor/qcom/proprietary/adsprpc/src/fastrpc_apps_user.c:3024: fastrpc_apps_user_deinit done
I don’t know whether it is unique per device, and wouldn’t a dump fix this? I don’t have another FP4, so I’d flash a dump to the persist partition. If anyone would be willing to upload a dump of their PERSIST partition from their FP4 to me, so I could upload it to my phone and it’d be appreciated a lot if it succeeds!
I wish to be able to have a donor persist partition asap, I only have the FP4 and I have to rely on my computer in case something happens, which isn’t really reliable and I hope to be able to get the phone working very soon.
For anyone wondering, you can boot into TWRP, have your phone connected to your computer, and do adb shell. Run dd if=/dev/block/by-name/persist of=/sdcard/persist.img then exit and do adb pull /sdcard/persist.img, once the file has been downloaded, you can upload it to me or in DMs if preferred.
There is inconsistent reporting about thd data stored in the persistent partition. Some LLM cited sources claim its firmware related data storage, such as camera calibration, wifi/Bluetooth device identifiers and also fingerprint data.
Anyone that is willing to share that partition should at least comb through first.
On my end I tried to dump the partition, but it’s a protected partition. Maybe for someone that has TWRP this is possible. Not on my default install.
adb shell
FP4:/ $ ls
acct bootstrap-apex config data_mirror etc linkerconfig mnt oem product storage system_dlkm vendor
apex bugreports d debug_ramdisk init lost+found odm postinstall sdcard sys system_ext vendor_dlkm
bin cache data dev init.environ.rc metadata odm_dlkm proc second_stage_resources system tmp
FP4:/ $ dd if=/dev/block/by-name/persist of=/sdcard/persist.img
dd: /dev/block/by-name/persist: Permission denied
0+0 records in
0+0 records out
0 bytes (0 B) copied, 0.001 s, 0 B/s
1|FP4:/ $ ls /mnt/vendor/persist
ls: /mnt/vendor/persist: Permission denied
Oh, you need root privileges, however I managed to fix audio on my phone, I copied the sensors folder from one of the persist images on [Guide] About repairing/fixing the persist partition | XDA Forums and put it inside my persist partition, and audio started working, that’s because I checked what’s inside the files, there appeared to be nothing really unique, but sensors still don’t work on my phone, like proximity, GPS and etc.
Yes I already have, but the restorecon command only resets the security context on the persist partition, doesn’t restore the critical files. However as I said I copied the sensors folder from one of the persist images on xda, and put it into my FP4, which fixed audio but my sensors don’t work, which is fine for me for now. But I’d still appreciate it to fix this fully and get the sensors working too.