yashsingh1/xdaforums huggingface dataset:
[Magisk] scj20:
I have a Le Eco Le1s running CrDroid version 7.1.2-20180524.

I first installed it using magisk. Then when the google systems data started being deleted at reboot, I uninstalled it using magisk and rebooted. And then my app data was wiped. Disabling the module via mm in recovery or by installing it through twrp made the phone stuck in a bootloop, probably, because it was stuck for more than half an hour.

Also, data folder is not accessible using twrp recovery, but mm still works if you type the complete path. Adk never works, it always says permission denied. It only works when I'm using a terminal app. Could you tell me why?
[Magisk] ezrawk:
Honestly I don't know why it's causing a bootloop when you install it via TWRP. I'm not too familiar with Le Eco devices.. Your Le1s is using a X10 Helio chip right? Have you enabled USB debugging? If you have, and you have a PC that's been authorized by your phone for a debug, when it bootloops, try taking a logcat via ADB as soon as the ADB drivers are detected. I've tried adk with 4 devices (Redmi 5A, Moto G 1st Gen falcon, Zenfone 2 Laser Z00ED & Samsung Galaxy S3 LTE) and they all work using my method from 3 post above. I think because nearly all those devices that I tested are Qualcomm devices, they have a higher compatibility rate with adk (except S3 LTE which is an Exynos device but still it worked). Like I said before, try to take a log and post it here (if you think it's worth it) so that [MENTION=5228676]VR25[/MENTION] could take a look at it and find out what's wrong.
[Magisk] neXus PRIME:
THANK GOD i decided to read this thread before installing the module.

Mods having such extreme implications should either not be listed or TAGGED ALPHA/PRE-ALPHA or some **** i dont know. But they should not be available like they are now.

I am reporting this thread to mods, maybe they can take some action. I repeat, i havent installed it so i did not lose anything but im doing this for all the others who lost huge personal data.
[Magisk] scj20:
Apparently it was stuck on app optimization, not bootloop, I have a custom boot animation so it didn't show it. Sorry for the false alarm.

It works fine after installation with magisk, I was actually able to get all my data of WhatsApp back after I uninstalled it to try this module. The only problem is it deletes the google system apps data, otherwise it works perfectly fine. I think someone else mentioned the same problem in the above replies too.

EDIT: WhatsApp now crashes as soon as it starts. Forget Google system apps, can anyone tell me how to remove this module without losing all my app data?
[Magisk] VR25:
WARNING: disclaimers are all over the place. Still, some people just take things for granted and refuse to follow recommended safety guidelines prior to playing with advanced stuff for the FIRST TIME. Be an advanced user or not, make sure you read and understand the OP before installing this module. If something goes wrong, either because "reasons" or you forgot to feed your cat beforehand -- and you don't have a backup, DO NOT curse me! Of course, I'm always willing to help. That is, until you lose your mind and start attacking me.

Yes, saying "it works for me" is not an excuse. However, that's never meant to be, nor does it serve as incentive to try this module. You install this because you want to, not because I told you to.

Regarding rolling things back if something goes wrong...

1. First of all, don't lose your mind and throw everything at me.

2. Make sure you have the LATEST zip

3. Boot into recovery

4. Flash the zip

4. Run "adk" (without quotes) on recovery terminal. Type "y" when prompted and press the "enter" key. This undoes everything.

This info is on the README, by the way.

**2018.8.10 (201808100)**
- General optimizations
- Support for `exc`, `exc pkgName` and `inc pkgName` config lines (details on the README)
- Updated reference

**2018.8.8 (201808080)**
- Disable ESDFS & SDCARDFS and enable FUSE (might improve compatibility)
*Release notes:* follow all safety guidelines strictly. Don't curse me if something goes wrong either because "reasons" or you forgot to feed your cat beforehand. I've been cursed enough times already. Still, somehow managed to stay alive and cool to this day.

P.S., installing from TWRP makes no difference. The latest module version itself does. About the French stuff... never heard of that, but gained some interest now that it was mentioned:)

If this ends up not working for most people, I'll redesign the whole thing. Current features will be kept, but turned off by default. The module will primarily function as an automatic app backup tool, with an interface similar to that of Magisk Manager for Recovery Mode.

Last but not least, I'm sorry for all data lost. I can't blame myself for that, though. What I can do is keep working to improve compatibility and add features... and perhaps write a book on disclaimers and how people skip them.

For additional words, the OP has been updated. Please [re]read it.
[Magisk] RosarioDV:
I tried this module but encountered 2 problems (redmi 5 plus, MIUI global beta 8.8.9)

Just after I rebooted, my deice became almost unusable as google play store keeps crashing (every second). I had to uninstall it from magisk manager and after rebooting play store works correctly...

Now, I lost all my apps' data, though.

I see you wrote to take precaution backups here, but you didn't on magisk's download section (I installed adk from there).
[Magisk] Kaan_:
It clearly states that you make a backup on "setup steps" right there on magisk. It's your own fault.
[Magisk] RosarioDV:
Ok, I didn't see it

What about the play services fc problem? I didn't see anyone complaining about that
[Magisk] VR25:
Run echo "exc com.google.android.gms" >>/data/media/adk/config.txt to exclude Google Play Services. You can manually add that line to config.txt as well. Everything should work fine after that (reboot to apply change).

Now, to restore everything, you don't simply uninstall the module. Instructions are there... cristal clear. Your data wasn't deleted. You just didn't follow the instructions.
[Magisk] RosarioDV:
I see, sorry for bothering you.

I'll try it again when I'll have more time

Sadly I just read the module's miniature and installed it thinking I just had to install and reboot (that "no setup required" fooled me)

Thank you for the help, next time I'll ask before I mess everything up
[Magisk] VR25:
While in Magisk Manager Downloads section, clicking anywhere on a module (except the download button) opens its README.md file, and pretty much all the info you need is there. ;)

Indeed no setup is required, unless you have issues with a particular package. In such case, you can exclude it, and adk will move its data back to /data/data on the next boot.
[Magisk] J4jks:
I wanted to give a try once with latest adk.

Now no apps are crashing, all looks fine

But in adk folder only .appdata is available not apkbackups

It happened for me earlier too and reported

Tried with reboot also

No apkbackups

But log shows appdata and apkbackups in there.

Then I go to recovery flashed adk and type adk then y. Done , without flashing again adk in recovery, adk command didn't work.

I'm using Redmi note3 AEX Magisk 16 + systemless xposed
[Magisk] fxsheep:
Installed on Lineage OS 15.1 in Magisk Manager, and after reboot all of my data are gone.(Apps still there though) Restored backup through TWRP.
[Magisk] VR25:
The recovery data restore executable is only available once, right after flashing the module. If you want it after a reboot, then you have to flash adk again (from recovery, of course).

Do you have an sdcard? If so, apk backups go there by default.

How long did you wait after rebooting? Did you reboot again to see how thing go? I'd like to see logs (/data/media/adk/logs). Thanks.
[Magisk] scj20:
Actually he did, more than once. Check under installation steps, he mentions it twice.
[Magisk] fxsheep:
Logs are just empty,dunno why,then I deleted the whole adk folder
[Magisk] J4jks:
no I don't have sdcard.

Log shows apkbkp created in data media adk but its not

Only .appdata is created and info, logs
[Magisk] aaz03:
Got f*cked too , good thing that i have my titanium backup scheduled every 2days. You should really test before putting this kind of ultra experimental module on the magisk module repo.
[Magisk] Delgado666:
i'm a little dumb about this process and i don't speak english fine, so i want to ask you.

Can i install this in my rom, and let it stay here? I mean, it's like a data backup, but it doesn't copy data, just move, right? can we get a version which your program actually COPY data, so we can use our rom like normal, but when we need, we can use adk to "restore" that data?

I hope i made me understand :P

ty for your work. I had problems with google app, but i can restore it via TWRP, with "google app" exclusion
[Magisk] VR25:
Fixed! Download the update from Magisk Manager.

Since so many people are reporting issues with the current implementation, the alternative you mentioned is already in the works.

Ultra experimental? Not true. Did you even try to rollback everything as per the instructions given? It should be as easy as drinking water.
[Magisk] JVDH:
Installed ADK (2018.8.13)

through Magisk Manager (5.8.3),

and my phone is still working fine (Oneplus 6, OxygenOS 5.1.6, no SD card).

I can see the apps backed up in apksBkp,

but .appData folder is empty.

Log files are here: tps//1drv.ms/f/s!AkqSE3vovhEynXwax1URS2vOm1pD

I suppose this is not the intended behavior?
[Magisk] aaz03:
Also , apart from that misadventure i really look forward for your module, i don't have time to backup and give another try to it but it looks really appealing to me who flashs roms quite often. I want to understand, if i flash a different rom , all my apps should be seamlessly restored ? What about gapps data?

And what is this thing that makes it work for some and not others? I have a sdcard in my phone is it because of that?
[Magisk] J4jks:
For me apks are still not being backedup, just after install log showed only main verbose log , no apks backup log file but after sometime apk backups log showed.

Waited 8hrs still no apkbkp.

PS: apkbkp available now

Does force doze affect this?

Redmi note 3 AEX N magisk+systemless xposed, microg
[Magisk] bigbadmoshe:
ADK Issues

Using Magisk Beta.

Latest 2 version not installing via recovery gets stuck on resizing image. (Orangefox & Redwolf). Via MM works fine.

I cannot find adk file on android or in recovery. if i try via console in recovery not found. I mounted all partitions. Searched via file manager on android and recovery. funny thing is, if i try to replace the file it tells me it exists.

I was able to backup all apk and data. But cannot get it to restore data only apks.

Thanks for your help.

I love this module and hope you will continue to work on it.
[Magisk] hshah:
Would this be similar to backing up / restoring the /data via TWRP?
[Magisk] aaz03:
Finally got the module to work but I don't feel like restore is faster than Titanium it's even pretty slow(maybe it's because i have an SD card but it's a U3 with 80 MB/s so should'nt bottleneck much? )

Edit: it's REEEEALLY slow, since i posted the reply it has been 1h and still hasn't finished , can't be a sdcard bottleneck because titanium takes generally 20min to reinstall all of my apps

Edit²: Ok , after 1h30min , all my apps have restored. But 90% of them keeps FCing and the remaining 10% has lost all data...

Edit³: Here is a logcat in 3 parts with some apps crashing for me
[Magisk] VR25:
Quite a lot has changed in the latest 2 versions. Most of which are related to safety and efficiency. For instance, adk will run earlier, if disabled/removed -- apps' data is automatically moved back to /data/data...

Unfortunatelly, I can't write much at this time. My current max download speed is 1.5 KiloBytes per second (yet, unstable), browser is elinks (running on Termux terminal emulator).

To keep discussion going, I created a Facebook support page. Link on the latest README (repo).

In case you're wondering, accessing Facebook is not a problem. Speed is acceptable. Common web browsers and dedicated apps work fine. For other websites, I have a TCP over DNS tunnel set up. You would think this totally justifies the slow speed. Wrong... there's much more under the hood and ISP's are to blame. Without the tunnel, I can only access Facebook and a handfull of other useful sites.

I can read everything here. Replaying is a pain, though. So, until I get online "for real" again, lets interact on Facebook.

With that speed, I can push modules' updates to github just fine. Not that bad after all... :p

P.S., typos are highly xpected... writing on a small terminal window, on a phone...
[Magisk] neXus PRIME:
You must drink water in some tough-ass way to claim this....

Why create such a powerful module with the ability to **** everything up until you have good internet+stable dev environment?

I am not here to bash on you, i love the idea behind this, but you seem so oblivious to the fact that people are losing data (or misplacing) that you dont even blame yourself for it. Such experimental modules belong to a closed set of beta testers where you get early testing and feedback on several devices BEFORE pushing to global Magisk Repo where EVERYONE has access to a potentially dangerous module.

I mean it looks so innocent sitting in Magisk Repo and you install and BAM, you got 5-6 hours of tinkering to recover lost data and such.

With great power comes great responsibility..... Own both things.
[Magisk] guest4711:
You are right. But this belongs to users, too. With the power of "root" I get also the responsibility for reading the fine manual first (before installing anything), for having proper backups and knowing a way to get my device working again if something went wrong...
[Magisk] VR25:
Now users have more control over how this thing will work. By default (that is, if you don't set up the config.txt file), all adk will do is backup APK's. One can include individual packages, exclude some, include all. Additionally, when the module is disabled or removed, all changes are automatically reverted on the next boot. Refer to the README (the updated, repo version) for more...

DOWNLOAD THE LATEST VERSION FROM MAGISK MANAGER AND READ THE FULL REFERENCE FROM WHITHIN IT TOO.

#### LATEST CHANGES

**2018.8.16 (201808160)**

- Added option to remove all uninstalled APK's from backup folder (`adk -r`)

- cp uninstaller (rollback) to /data/media/adk

- Default config.txt includes a set up tutorial

- Fixed "duplicate/orphan APK's in backup folder" (rsync --partial)

- Misc optimizations

- More advanced and user-friendly APK restore wizard

- New and blazing fast batch APK restore algorithm

- Set SELinux mode to "permissive" for more compatibility

- Updated documentation (please [re]read it)

**2018.8.15 (201808150)**

- Auto-move apps' data back to /data/data if adk is disabled/removed

- "Exclude all" mode set by default (check the README for details)

- General fixes and optimizations

- Move post-fs-data.sh to .core/post-fs-data.d for efficiency++"

- Updated debugging tools & documentation

**2018.8.14 (201808140)**

- Fixed install failure from MM (Android P, Magisk 16.7)

- Major optimizations for greater efficiency

- Simplified code documentation- Updated reference and module description
[Magisk] hshah:
I'm sorry but this forum's name has the word developers in it... what do you expect to get? If you root your devices or flash custom ROMs then you should know that backups are vital... if you don't then you are looking at a thread which isn't relevant to you.

If I threw a gold bar off a cliff would you jump after it and then try and blame me if you broke your back? If you drove a car at 150mph and then crashed it would you blame the manufacturer for creating a car that went that fast?

General courtesy and common sense work wonders, and one can only blame one's self for stupidity.
[Magisk] Sass86oh:
It's not expieramental it works exactly as he described. The people who are losing data are installing it with devices already setup and in use and it's clearing the app data to start backing everything up., if you flash it on a clean ROM instead of one that contains a whole bunch of data that you wanted then it's not his fault that they haven't read through everything and more importantly HE TOLD EVERYONE STRAIGHT FROM THE BEGINNING TO BACK UP THEIR DATA. The whole point of this thing is for people who like to flash ROMs all the time so that they don't have to keep on going through the process of restoring the data every time. You flash a ROM install adk and from that point you're all set. Why should he have to change the status of his module 2 alpha or anything else because other adults are careless and don't follow directions and then get mad when they realize after the fact... and besides it's only clearing appdata it's not erasing anything that's in your SD card so all your pictures and everything should all still be there.

To the dev you might want to just put that people should flash this on a fresh system immediately following the installation and root of magisk. That's what I did I flashed a brand new ROM went through the whole setup then upon the setup process finishing I rebooted to TWRP flashed magisk then I flash this module then I restarted the phone Boot It Up installed a bunch of stuff went back flashed again started clean file directions and it works beautifully the very first time I tried. But even if it didn't I didn't have anything to worry about cuz I followed your directions when you told me to back everything up twice just in case.
[Magisk] hshah:
Better still... have a prompt asking "Are you stupid? Jump up and down 3 times for NO and press 1 for YES. Then press 2 to continue" ;)
[Magisk] Techguy777:
Brother help me out you sound like you get it. How does it back anything up if you just flashed a Clean ROM. Meaning you haven't installed apps yet.

I don't get how to set it up either what do I do with the config file?

To add I got plenty of backups and time so if it wipes everything no biggie.
[Magisk] Techguy777:
Thank you for helping so to me it seems like it doesn't backup apps like TB in the general sense. What it really does is relocates apps to a partition that doesn't get wiped. The only thing I'm still not getting I'm not familiar with config files do I have to get package name and write that with inc on that file? Or will it automatically do all apps and data. I'm going to play around with it now see if I can't figure it out I have plenty of backups on otg flash sticks so if I wipe oh well. What I do is copy titanium backup folder to my USB otg or sdcard then I'm all set.

Thought of something else do you known if TWRP will backup the data folder this module uses or does it not touch that folder to back up or erase?
[Magisk] beeshyams:
Excellent. Thanks a ton for supporting and making it clear. Will read in detail before flashing. Thanks again

---------- Post added at 03:54 PM ---------- Previous post was at 03:49 PM ----------

TWRP doesn't back that up - in fact it gives a warning that it doesn't

Reason is simply this - for devices without external SD, the nandroid backup is saved in this untouched location. If it were to back up, it is backing up where it is going to store..

Circular logic

---------- Post added at 04:05 PM ---------- Previous post was at 03:54 PM ----------

@VR25

Thanks for this module. Will deploy once I get free time

A request which is OT and sorry for that

Since you are using rsync - how about creating a module that rysncs between internal to external SD or USB OTG? Helps in backing up critical folders without losing timestamp and real fast.

I had done rsync on my conventionally rooted device by getting the rysnc binary from some discontinued app since busybox doesn't have this and don't want to do that now. Plus an automation to run that......

A simple implementation (no schedule/ maybe just incremental backup) which shows source folders, choose and rsync to destination

Apologies if I am pushing a request which may not be a common need but please do consider. Will perfectly understand if this is turned down
[Magisk] Techguy777:
I think that would be great to.
[Magisk] ainurrofiq:
He is more active in Facebook, coz the isp problem, ,try to give him your idea through FB
[Magisk] Techguy777:
OK I tried flashing after I wiped and clean flashed a new ROM. Then I installed a couple apps and flashed module again. Wiped ROM off then reflashed ROM again, flashed module and nothing happened I didn't lose any apps or gain any.

Am I supposed to take extrct config txt and then type out each package name. Cause theres nothing that says that if it is you're taking for granted everyone is familiar with using config file and I'm what I would say more advance user not developer been doing this heavy for 2 years and never had to do another like that before. I don't known how to unzip and rezip a flash file either. On android I don't have PC.
[Magisk] beeshyams:
Thanks for your response

I don't use FB (stone age guy :)

If you like the idea of the module, you may post on FB kindly
[Magisk] ainurrofiq:
Yeah i open FB once in month too maybe ,hehe ,

Okay I'll try to reach him out, ,
[Magisk] Sh0X31:
Nice work! Real good idea, maybe it replace Titanium Backup. I'll report with the next update for the 1+ 6 :)
[Magisk] VR25:
**2018.8.18 (201808180)**

- Auto-update app data ownership (compatibility)

- Enhanced module uninstaller, parallel processing and APK restorer

- Major optimizations

- Updated documentation (as always, read it!)

- Parse `package.list` instead of `packages.xml` (efficiency)

I noticed some misunderstanding on how adk works. This is not as restricted as it seems. No... not even close.

Will keep providing simpler explanations here and on the README until we're all on the same page.

Regarding suggested features...

This thing will soon be a full backup solution on top of what it already does.

At a glance, I'm combining OpenSSH and rsync & building the adk backup daemon (WIP).

Download the new version and read the updated README -- from Magisk Manager.

P.S., thanks for all the support, patience and negatives.
[Magisk] Techguy777:
OK I backed up all the apks that worked I don't understand what you mean with adk type a dot. What's that mean do you want me to go adk type a dot or adk.type. im confused I've tried a bunch of ways it brings up package name nothing installs but the did backup to Extsdcard. I also don't understand how to setup config file I just left it blank. With that said it Does seem to be the future of app restoration nice job.

What would I type for adaway by itself? Example

Example of the command for all done so I can copy and paste it.

Got it finally. Hit adk enter and see the list of backed up package then hit period key enter. It says its installing then when I reboot no apps. It doesn't work if you just hit period or dot key first.

I still don't understand the config setup but it'll try to figure it out.
[Magisk] Techguy777:
Could be just a problem I'm facing because I partition my sdcard into 2 parts for link2sd app. The backup folder actually went to ext2 partition which usually doesn't work as well for apps as fat32 first partition. So we need some more people to chime in. Also I'm on the moto g4 aex 5.8 64bit ROM unencrypted.

---------- Post added at 10:22 AM ---------- Previous post was at 10:16 AM ----------
[Magisk] gggirlgeek:
Has anyone had success with adk on a Samsung device? Did you do anything special?

---------- Post added at 06:44 AM ---------- Previous post was at 06:37 AM ----------

How would normal TWRP/Nandroid backups be done? Would I have to disable the module and reboot to backup my app data?

Is there a way to get Titanium Backup to follow the new link to the data folder?( I have an SD card btw).
[Magisk] Techguy777:
Anyone getting any further I tried using it on my nexus 6 after clean flash and before both times it got stuck in twrp and just keep going for like 20 minutes without doing anything. I was on aosip Oreo . will it work on Android pie?