[2/2] frameworks/base: Add Captive Detection toggle