Skip bpf object loading on unsupported devices

The bpfloader should not try to load bpf objects on unsupported devices
since devices with 4.4 kernel can have bpf maps but not bpf pogram
support. Creating bpf maps on those devices would mislead the framework
code to use an unsupported code path and crash system server.

Bug: 130687855
Test: cuttlefish boot test for 4.4 kernel.
Change-Id: I43ffc01e1099ee3effaa6ba30aa78080d5bec72f
Merged-In: I43ffc01e1099ee3effaa6ba30aa78080d5bec72f
(cherry picked from commit b20d28df6a1f49da7038522674c5356fea2bcacf)
1 file changed
tree: 4ef38413aa7f54910c9a9db9f8dbb9b1655ac669
  1. bpfloader/
  2. libbpf_android/
  3. progs/
  4. Android.bp
  5. MODULE_LICENSE_APACHE2
  6. NOTICE
  7. OWNERS
  8. PREUPLOAD.cfg