Android: how to mount filesystem in RW from within my APK? (rooted, of course)

前端 未结 1 1758
长情又很酷
长情又很酷 2020-12-15 14:00

I\'m trying to write an app that copies something to the /system partition at run time. I\'ve already implemented the ability to run terminal commands as root by requesting

相关标签:
1条回答
  • 2020-12-15 14:48

    I figured it out -- the command was actually successful, but it appears that the RW status only applies to the session in which it was applied. So that after one set of commands was executed under SU, the next set of commands gets the /system in RO state. All I had to do was add the command to copy the files before exiting the SU session.

    0 讨论(0)
提交回复
热议问题