Samsung Secure Folder Thread
I couldn´t find a thread about samsung secure folder and tasker integration, so I am gonna create this with some findings and question.
AFAIK, securefolder is basically another android user ( userid: 150 ) , just like work profile
First thing I was trying to do was using tasker to toggle the "hide notification content" on it when I leave home ( disconnect from my home wifi ). The problem I found is:
Tasker running on the main user can not detect any setting change in the secure folder option. Si I thought that maybe the activity we see to when we change the setting manually is actually inside the secure folder. So I installed tasker inside the secure folder and that tasker instance can actually see that I am toggling the "hide notification content" which is great, unfortunatelly it is a secure setting that would require me to grant tasker android.permission.WRITE_SECURE_SETTINGS which would be fine, except by the fact that I can not.
# pm grant --user 150 net.dinglisch.android.taskerm
android.permission.WRITE_SECURE_SETTINGS
Exception occurred while executing 'grant':
java.lang.SecurityException: Shell does not have permission to access user 150
com.android.server.am.ActivityManagerService.handleIncomingUser:16
android.app.ActivityManager.handleIncomingUser:5628
com.android.server.pm.PackageManagerShellCommand.translateUserId:24
at com.android.server.am.UserController.handleIncomingUser(qb/92319763
So my first question would be:
1) Is there anyway for tasker running as main user ( which has the WRITE_SECURE_SETTINGS grant ) to toggle a setting for another user ( userid 150 ? )
My second question is related to AutoNotification ( also running as the main user since accessibility is disable in secure settings ). I have granted android.permission.INTERACT_ACROSS_USERS to autonotification ( not sure if it is needed ) so I could read notifications from the securefolder and that works. But a problem I am facing is that several variables like %anicon, %anapp are showing as NOT SET.
At first I thought that it could be related to the fact that the app installed in the secure fold01er was not installed in the main user too. So apps like Gmail would have icon and name grabbed by autonotification, but "Amazon" app installed only inside secure folder would have those unset. But I noticed that is not true. Some apps only on securefolder will also have name and icon set while others do not. So I have no idea what causes that. I can use as example here of one that works the "AliExpress" app.
2) So, why that happens?
3) The question is more about the Join App. Is there a way for the Tasker running in the main user to communicate with the Join instance running inside the work profile ? Or maybe a way that Join can login without the "google account" and use a simple username/password?
4) Turning this question in a much broader question: Is there a way to a tasker instance inside securefolder and a tasker instance in the main user to communicate ?