Since Android is based on Linux, there is no way to read these parameters from a file or database or something similar because it does not exist.
When the device boots, the kernel stores a list of environment variables in memory.
Each process launched by the application or by you clones the variables from its parent process and can define its own variables.
On Linux, you can access the virtual file stored in /proc/'pid'/environ , but 1. this is really not recommended, and 2. it does not look like there is such a file in the Android file system.
If I am mistaken in my assumption, let me know :)
Martin Seeler
source share