Copying files to the system folder at runtime

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Copying files to the system folder at runtime


I'm implementing a new feature on Android 10(10.0.0_r30) that has to copy files from the data folder to the system folder at runtime. I've tried to do it via 'su cp' in Zygote, since Zygote runs as root, but then I get this error:

type=1400 audit(0.0:61): avc: denied { getattr } for name="su" dev="dm-0" ino=3160 scontext=u:r:zygote:s0 tcontext=u:object_r:su_exec:s0 tclass=file permissive=1

SELinux is disabled and I have no clue where else to look for the resolution of this error.

Besides that, can anyone tell me how else I could implement this particular task without rooting?


You received this message because you are subscribed to the Google Groups "android-platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit