[automerger skipped] Reimplement inferRestrictedCapability without new exposed API am: e22a397031 am: 48e0b5a19b am: 5474d0e90a -s ours

am skip reason: skip tag Change-Id Ib88fe2b831e968513f221443ed62a09c02150882 with SHA-1 798c730c99 is already in history

Original change: https://android-review.googlesource.com/c/platform/frameworks/libs/net/+/1659978

Change-Id: I348dda3368b5fd682c4b70dc6c6b2b958b0c01ce
tree: 942043aa4d4ebcdaa88e729f8fc456a62b520141
  1. staticlibs/