MatteCarra / AccA

Acc app allows to edit acc config file and add a tile to start and stop acc deamon
GNU General Public License v3.0
1.19k stars 85 forks source link

Magisk detection and working with systemless ACC #58

Closed s-kk closed 5 years ago

s-kk commented 5 years ago

Dear developer! I love ACC and ACCA. But here's a small problem. In previous versions, ACCA frontend works perfectly with systemless ACC backend. But after recent updates, ACCA no longer works with systemless ACC backend. New ACCA seems to uninstalling systemless ACC and replace it with integrated ACC, and because of which, ACCA is altering the originally RO partition.

And my suggestion is provide support for systemless ACC backend or maybe give an option in ACCA settings to switch between systemless or integrated version.

Thanks!

MatteCarra commented 5 years ago

Thanks for the suggestion. I want to make it clear that the current installation system of the integrated acc is made by vr-25, the creator of acc.

An integrated version of acc has been adopted for the following reasons:

What would be the advantages of a decoupled systemless installation of acc for you? I could add an option if you need it.

s-kk commented 5 years ago

Thanks for your reply. So here are some advantages of separate installation.

And also, suggestions.

That's all. Thanks again for your effort!

s-kk commented 5 years ago

And in terms of ACC upstream, I could propose an issue or make this issue as an reference on ACC project page.

MatteCarra commented 5 years ago

Yes, post it there: https://github.com/VR-25/acc/issues

VR-25 commented 5 years ago

ACCA is altering the originally RO partition

@s-kk, that's unheard of. What partition are you referring to?

Note that ACC is still systemless - whether or not it's integrated into AccA.

For updates, there's the command acc --upgrade - which in conjunction with the scheduling features being implemented into AccA - is way more efficient than Magisk's module update mechanism.

The integrated ACC is always safer than its Magisk module counterpart - especially in regards to bootloops. It's easier to uninstall, too.

The only potential issue with integrating ACC into AccA is that advanced security restrictions may forbid the placement of files with elevated privileges (root) in /data/data/mattecarra.accapp/files/acc/. This is under investigation. https://github.com/VR-25/acc/issues/12

s-kk commented 5 years ago

@VR-25 Thanks for reply.

The only potential issue with integrating ACC into AccA is that advanced security restrictions may forbid the placement of files with elevated privileges (root) in /data/data/mattecarra.accapp/files/acc/. This is under investigation.

Yea this is one of the concerns I'm talking about.

ACCA is altering the originally RO partition.

Sorry, this expression is not really accurate. I mean that files on /data are handled by Android OS, and placing files with elevated owner and permissions may cause potential issues.

And I still insist on providing a choice for users.

VR-25 commented 5 years ago

@s-kk, the elevated privileges concern is out of the way now. All ACC data in /data/data/mattecarra.accapp/files will be owned by the app, as opposed to root.

As for the other concern, ACC/AccA never touch the root of /data nor any other folder besides the aforementioned and /data/adb/acc-data/.

Lastly, supporting AccA working alongside ACC Magisk module goes against what we already accomplished with the app. A major design philosophy was Magisk independency - and we reached that goal. Now we're aiming at even higher levels. Ultimately, the AccA/ACC combo will have better upgrade mechanisms and be pushed to F-Droid and Play Store.

We appreciate your feedback. If you can come up with a solid reason to have ACC Magisk module working alongside AccA, the idea will be reconsidered.

Thank you

ovizii commented 5 years ago

Just wanted to add that the decoupling of ACCA and Magisk does not seem complete. Magisk is telling me to update ACC but when I try I get told that I should do it via acc --update or via ACCA but the update to ACC keeps still showing up in Magisk.

Could this updatenotification be removed or avoided?

VR-25 commented 5 years ago

@ovizii, it is complete. There was an error on your end. You're not even supposed to see ACC in Magisk Manager > modules when using AccA. Run su -c rm -rf /data/adb/modules*/acc/ to remove that zombie module.

Install this ACC version from Magisk Manager, and upgrade to the latest with acc -u dev.

ovizii commented 5 years ago

Thanks for the help, all your info seems to have worked and fixed the problem except this command needed to be prefixed with "su" in my case: su acc -u dev