type safety for bool shared am: a262bd3d1e am: 39c602b991 am: 9e178f560b am: 8c377b1d81

Original change: https://android-review.googlesource.com/c/platform/packages/modules/Connectivity/+/2775542

Change-Id: I8de6d2c2250ad3c98463eb956ba6f8eec5776404
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>