Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fdb5d60f authored by Steven Moreland's avatar Steven Moreland
Browse files

libbinder_ndk: AParcel_markSensitive in llndk

This API needs to be used by vendor code.

Bug: 174860535
Test: build only
Change-Id: I7f6e5aac4dfacab93d8e36571e1150e678fac284
parent a647f2bc
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -20,9 +20,7 @@

__BEGIN_DECLS

#if defined(__ANDROID_APEX__) || defined(__ANDROID_VNDK__)
#error this is only for platform code
#endif
#if !defined(__ANDROID_APEX__) && !defined(__ANDROID_VNDK__)

/**
 * Gets whether or not FDs are allowed by this AParcel
@@ -33,6 +31,9 @@ __BEGIN_DECLS
 */
bool AParcel_getAllowFds(const AParcel*);

#endif

#if !defined(__ANDROID_APEX__)
/**
 * Data written to the parcel will be zero'd before being deleted or realloced.
 *
@@ -43,5 +44,6 @@ bool AParcel_getAllowFds(const AParcel*);
 * \param parcel The parcel to clear associated data from.
 */
void AParcel_markSensitive(const AParcel* parcel);
#endif

__END_DECLS
+1 −1
Original line number Diff line number Diff line
@@ -117,6 +117,7 @@ LIBBINDER_NDK31 { # introduced=31
    ABinderProcess_setupPolling; # apex
    AIBinder_getCallingSid; # apex
    AIBinder_setRequestingSid; # apex
    AParcel_markSensitive; # llndk
    AServiceManager_isDeclared; # apex llndk
    AServiceManager_forEachDeclaredInstance; # apex llndk
    AServiceManager_registerLazyService; # llndk
@@ -139,7 +140,6 @@ LIBBINDER_NDK31 { # introduced=31
LIBBINDER_NDK_PLATFORM {
  global:
    AParcel_getAllowFds;
    AParcel_markSensitive;
    extern "C++" {
        AIBinder_fromPlatformBinder*;
        AIBinder_toPlatformBinder*;