Skip to content

Commit 78e5f21

Browse files
committed
fix: ignore callingSid
Signed-off-by: qwq233 <qwq233@qwq2333.top>
1 parent 1bf59da commit 78e5f21

2 files changed

Lines changed: 1 addition & 3 deletions

File tree

module/src/main/cpp/binder_interceptor.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,6 @@ BinderInterceptor::handleIntercept(sp<BBinder> target, uint32_t code, const Parc
259259
CHECK(tmpData.writeUint32(code));
260260
CHECK(tmpData.writeUint32(flags));
261261
CHECK(tmpData.writeInt32(IPCThreadState::self()->getCallingUid()));
262-
CHECK(tmpData.writeCString(IPCThreadState::self()->getCallingSid()));
263262
CHECK(tmpData.writeInt32(IPCThreadState::self()->getCallingPid()));
264263
CHECK(tmpData.writeUint64(data.dataSize()));
265264
CHECK(tmpData.appendFrom(&data, 0, data.dataSize()));

service/src/main/java/io/github/a13e300/tricky_store/binder/BinderInterceptor.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ open class BinderInterceptor : Binder() {
5252
val theCode = data.readInt()
5353
val theFlags = data.readInt()
5454
val callingUid = data.readInt()
55-
// val _callingSid = data.readString()
5655
val callingPid = data.readInt()
5756
val sz = data.readLong()
5857
val theData = Parcel.obtain()
@@ -63,7 +62,7 @@ open class BinderInterceptor : Binder() {
6362
val ctx = CallerInfo().apply {
6463
this.callingUid = callingUid.toLong()
6564
this.callingPid = callingPid.toLong()
66-
this.callingSid = callingSid
65+
this.callingSid = "reserved"
6766
}
6867

6968
onPreTransact(target, theCode, theFlags, ctx, theData)

0 commit comments

Comments
 (0)