It doesn't wipe /system, only /data. That's done while preserving most of the useful data you would want to keep (i.e., contacts, WI-FI networks, call log, Magisk modules, adoptable storage keys, and much more.).
There's one thing I need to know before enabling the 'wipe' feature by default: "what's left in /data after a TWRP factory reset (when data is encrypted)".
Someone who uses encryption would have to make a nandroid backup, save it somewhere else (OUT of /data), then wipe (not format) /data (with TWRP) and copy everything left (except /data/media) to /data/media/somefolder, so that we can check whether any encryption key is there. If there's one, you can already imagine what would happen if it's not preserved... everything in /data (inc. /data/media) would be lost!
I understand.
I just tried doing a ROM flash using adk with wipe enabled. The order of flashing was:
- adk (latest, I see it outputs what it wipes)
- ROM (which happens to include Magisk 16.6, is that a problem?)
- Gapps
I then wiped /cache and dalvik, and rebooted. First off, I didn't go through the usual setup wizard, is that normal? My settings were preserved (it's RR, so all its tweaks, background, etc), as well as Magisk modules.
Being noauto disabled, I expected applications to be automatically restored, but nothing was happening. So after a couple minutes I opened adk from the shell, and tried restoring packages that way. $e/adk/backups had not been renamed to backups.old, if that is relevant. To avoid accidental overwrites, I renamed it myself.
Anyway, trying to restore app/data (option 3) resulted in the following error:
Code:
(i) Input pattern(s) to match (i.e., sp.*fy or duk|faceb|whats. A dot matches all)... wiki
Restoring apps+data...
- org.wikipediaError: Can't open non-file: /mnt/media_rw/8580-1BEA/adk/backups.old/apk/org.wikipedia.apk
Error: java.lang.IllegalArgumentException: Unknown package: org.wikipedia
So I thought, fine, I enabled wipe and something must've survived that it shouldn't have. I then proceeded to perform a TWRP factory reset, ran through the setup wizard, installed adk via Magisk Manager, and tried restoring apps this way. No luck, still.
I'm not sure what I did wrong, I assume something went wrong with the restore process. Fear not, I pulled main.log from /data/media/adk/logs, it's attached to this post.
EDIT: I'm available to perform additional tests, feel free to PM me.
Attachments
Last edited: