You've already forked TrickyStore
mirror of
https://github.com/5ec1cff/TrickyStore.git
synced 2025-09-06 06:37:07 +00:00
ensure sizes of libbinder types
This commit is contained in:
@@ -17,7 +17,13 @@ namespace android {
|
||||
BpBinder* IBinder::remoteBinder() { return nullptr; }
|
||||
|
||||
// Binder.h
|
||||
|
||||
#ifdef __LP64__
|
||||
static_assert(sizeof(IBinder) == 24);
|
||||
static_assert(sizeof(BBinder) == 40);
|
||||
#else
|
||||
static_assert(sizeof(IBinder) == 12);
|
||||
static_assert(sizeof(BBinder) == 20);
|
||||
#endif
|
||||
BBinder::BBinder() {}
|
||||
|
||||
const String16& BBinder::getInterfaceDescriptor() const { return {}; }
|
||||
@@ -57,6 +63,11 @@ namespace android {
|
||||
uid_t IPCThreadState::getCallingUid() const { return 0; }
|
||||
|
||||
// Parcel.h
|
||||
#ifdef __LP64__
|
||||
static_assert(sizeof(Parcel) == 120);
|
||||
#else
|
||||
static_assert(sizeof(Parcel) == 60);
|
||||
#endif
|
||||
Parcel::Parcel() {}
|
||||
Parcel::~Parcel() {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user