Toggle specific SIM toggling Android Work Profile

Post your questions and help other users.

Moderator: Martin

Post Reply
fede91it
Posts: 19
Joined: 10 Jan 2014 08:59

Toggle specific SIM toggling Android Work Profile

Post by fede91it » 18 Oct 2019 14:58

I'm trying to figure out how to create this automation with Automagic, but I don't think I can do it:

When activating/deactivating the work profile I want to activate/deactivate the sim with the work phone number.

How do I intercept the activation or deactivation of the Android work profile?
How do I activate or deactivate a specific SIM card on a dual sim phone?

Thank you! ;)

User avatar
Desmanto
Posts: 2709
Joined: 21 Jul 2017 17:50

Re: Toggle specific SIM toggling Android Work Profile

Post by Desmanto » 03 Nov 2019 16:27

What is your phone and ROM type? It doesn't guarantee to work, but maybe you can use secure setting to detect the changes. Use my secure setting logger flow to log the activation and deactivation of the work profile. viewtopic.php?f=3&t=7931

As for the SIM card, it is secure procedure, most likely can't be change using common method. You have to use control UI to emulate the click and disable/enable the SIM : viewtopic.php?f=6&t=7320
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.

Post Reply