If you have't root permissions, you can do it only for your own processt, his is not system wide. By using android NDK, as in this example, or this