In fact, I tried a custom ROM with Supersu v2.49 and all the functions works like a charm, including the secret codes (in root mode).
Thank you very much for your help.
Thanks for your reply. I'm talking about tools like CSC changer or ServiceMode.
Sent from my SM-G925S using XDA Free mobile app