Revert "[ActivityManager]: Fix the activity visibility state not sync between ActivityManager and WindowManager"

This reverts commit 35b54eb319ae5425cc0a239f01b73f81f1924441.
Revert "Fix to NullPointerException on move back in ActivityStack."

This reverts commit 038ec052508d395475607164f2b04b9e0e4250a1.
Revert "ContentProviderRecord: Remove external process reference when finalized"

This reverts commit 1ce10bdba5f3d8bb62f148f9cb9be54d8b2f640c.
Revert "BroadcastQueue: fix class typo of next receiver"

This reverts commit 7867d03248bafebf9d6ee5beae816315af8310ee.
Revert "Fix descriptor leak after accepting connections"

This reverts commit 4eb8b23c9f8b866c847a3ce8b96599a6480980a1.
Revert "Harden NsdManager against null-dereference crashes"

This reverts commit 94a405faa9c6ca64d65eb2440a910261c5451339.
Revert "[2/2] frameworks/base: Add Captive Detection toggle"

This reverts commit 9e702ad3d5cbd3245cd07ee986fbafcd7b28be3e.