tags:

views:

26

answers:

2

when i copy a file from assets to the device, it copies just fine. the only problem is ownership. the file is ending up with the owner being 'app_59', and i need it to be 'system'. when i adb push a file it goes as 'system'. i tried chown, i tried chmod 0777 the file, i just cannot seem to do it! can anyone help :(

A: 

Maybe you can get the system to come take it from you somehow?

Why do you need the file to be owned by system?

Nathan
it needs to be run by system.
sleejay
+1  A: 

An application can't write something as the system user. That would be a serious violation of security. Also production devices do not provide root access from the shell, so it is not possible to push something to the device as anything besides the shell user; I assume you are doing your push on to the emulator, which is a very different environment in this regard (shell can run as root), so not applicable to a real device.

hackbod
no im testing on a device. there is no way whatsoever ever ever ever to do this? i just need to run one file once as system ... rrrgh
sleejay
Sorry, no, that would be a tremendous security hole (especially your later clarification that you want it to be "run as system").
hackbod