Do you think put the set_permanent_bool to android.c is better than putting in boolean.c? From the contexts point of view, I prefer it's in boolean.c. But what will be the maintain issue if I put it in boolean.c?
I never tested this change on the code. However it did compile on my machine. So you may want to correct anything I missed.
Also, I told you I am not taking any responsibility or authorship on this code. You can use my changes free and clear. Please amend this commit and change the author to you. Then resubmit the pull request,