What I should to do to create a system app (to obtain rights to use android:sharedUserId=\"android.uid.system\"in manifest file without receiving an error from
I did not need to sign my app with the firmware signature! I have a rooted device. Therefore I can grant myself rights to write to certain directories using adb.
I moved my app to /system/priv-app instead of /system/app using those steps: Push my apk to /system/app
Now, I can access system permissions like android.permission.SHUTDOWN