Hi Jean-Pierre
,
There are a few things I don't understand about your post:
If you are really downloading file and putting them on the sdcard why do you need to create a system service for that?
If you are running as root or system user (as the system_server is) no calling permissions at binder level are executed (see
https://github.com/keesj/gomo/wiki/AndroidSecurity )
The System server does have a manifest it can be found here frameworks/base/core/res/AndroidManifest.xml and it itself defines the WRITE_EXTERNAL_STORAGE (so if you read the above links you the return value of the permission check should be different.)
problem anyway is that Adding "use-permission" WRITE_EXTERNAL_STORAGE in the AndroidManifest will probably not work (the package needs to be installed before the permission exists).
Perhaps those are all big warnings you don't want to to trivial stuff (like downloading over HTTP) in the system_server.