This code contains a sample about how to make an app move itself to or remove itself from /system/priv-app/ folder in order to automatically grant privileged system app permissions, such as android.permission.MODIFY_PHONE_STATE
Downloads are available here: https://github.com/bamsbamx/AutoSystemApp/releases
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2016 Aner Torre <anernaiz@gmail.com>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. You just DO WHAT THE FUCK YOU WANT TO.