There is a need to install your application as a system one. To do this, I rooted the Samsung A04 (Android 12) using Magisk. Next, to install my app, I wanted to copy it to /system/priv-app using
adb push /system/priv-app
To do this, it was necessary to activate root via
adb root
but this command gave an error
adbd cannot run as root in production builds
I started looking on the Internet for ways to solve this problem, I tried to install
- adbd Insecure - the program closes with an error when activated in the settings of the desired item
- adb_root (plugin in Magisk) - adb root still gave
adbd cannot run as root in production builds error
- MagiskHide Props Config - changing the ro.debuggable and ro.secure values blocked the connection of the phone to the PC (the phone was no longer recognized as an external device and when entering the "Developer options" section, the section was closed with an error)
Perhaps someone faced this problem on Android 12 and was able to solve it?
I read that many people have had this problem since Android 11.
Perhaps there is another solution to make the application system?
Thanks in advance