Fix checks for non-staged installation

Non-staged installation performs additional check that the apex should
not have /app or /priv-app directories. But reading directory entries of
a vendor apex is not allowed for apexd because the root directory of a
vendor apex is labelled as `vendor_file`. Instead we need to check the
directories explicitly.

Bug: 330233607
Test: adb install --non-staged foo.apex
  foo.apex should set 'supportsRebootlessUpdate: true'
Change-Id: I9721acec7213a1af07eb0d1e06d7e5c462972906
1 file changed