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

Commit 6b92a6d3 authored by Jooyung Han's avatar Jooyung Han
Browse files

libbinder: Consider VNDK_APEX as vendor stable

VNDK APEX is supposed to be used by vendor modules. So libbinder in VNDK
APEX should be treated as vendor.

Bug: 142582178
Test: device with current vndk boots successfully
Change-Id: Iba56a658dc73b6735feee055790b3e9d37a65ca6
parent 03ab4877
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -509,7 +509,7 @@ void Parcel::updateWorkSourceRequestHeaderPosition() const {
    }
    }
}
}


#if defined(__ANDROID_VNDK__) && !defined(__ANDROID_APEX__)
#if defined(__ANDROID_APEX_COM_ANDROID_VNDK_CURRENT__) || (defined(__ANDROID_VNDK__) && !defined(__ANDROID_APEX__))
constexpr int32_t kHeader = B_PACK_CHARS('V', 'N', 'D', 'R');
constexpr int32_t kHeader = B_PACK_CHARS('V', 'N', 'D', 'R');
#else
#else
constexpr int32_t kHeader = B_PACK_CHARS('S', 'Y', 'S', 'T');
constexpr int32_t kHeader = B_PACK_CHARS('S', 'Y', 'S', 'T');
+1 −1
Original line number Original line Diff line number Diff line
@@ -81,7 +81,7 @@ private:
        VINTF = 0b111111,
        VINTF = 0b111111,
    };
    };


#if defined(__ANDROID_VNDK__) && !defined(__ANDROID_APEX__)
#if defined(__ANDROID_APEX_COM_ANDROID_VNDK_CURRENT__) || (defined(__ANDROID_VNDK__) && !defined(__ANDROID_APEX__))
    static constexpr Level kLocalStability = Level::VENDOR;
    static constexpr Level kLocalStability = Level::VENDOR;
#else
#else
    static constexpr Level kLocalStability = Level::SYSTEM;
    static constexpr Level kLocalStability = Level::SYSTEM;
+6 −3
Original line number Original line Diff line number Diff line
@@ -20,7 +20,8 @@


__BEGIN_DECLS
__BEGIN_DECLS


#if defined(__ANDROID_VNDK__) && !defined(__ANDROID_APEX__)
#if defined(__ANDROID_APEX_COM_ANDROID_VNDK_CURRENT__) || \
        (defined(__ANDROID_VNDK__) && !defined(__ANDROID_APEX__))


/**
/**
 * This interface has the stability of the vendor image.
 * This interface has the stability of the vendor image.
@@ -31,7 +32,8 @@ static inline void AIBinder_markCompilationUnitStability(AIBinder* binder) {
    AIBinder_markVendorStability(binder);
    AIBinder_markVendorStability(binder);
}
}


#else  // defined(__ANDROID_VNDK__) && !defined(__ANDROID_APEX__)
#else  // defined(__ANDROID_APEX_COM_ANDROID_VNDK_CURRENT__) || (defined(__ANDROID_VNDK__) &&
       // !defined(__ANDROID_APEX__))


/**
/**
 * This interface has the stability of the system image.
 * This interface has the stability of the system image.
@@ -42,7 +44,8 @@ static inline void AIBinder_markCompilationUnitStability(AIBinder* binder) {
    AIBinder_markSystemStability(binder);
    AIBinder_markSystemStability(binder);
}
}


#endif  // defined(__ANDROID_VNDK__) && !defined(__ANDROID_APEX__)
#endif  // defined(__ANDROID_APEX_COM_ANDROID_VNDK_CURRENT__) || (defined(__ANDROID_VNDK__) &&
        // !defined(__ANDROID_APEX__))


/**
/**
 * This interface has system<->vendor stability
 * This interface has system<->vendor stability