Binder机制-IPCThreadState过程

在Binder通信的服务器端,一般会存在这样一条语句:

IPCThreadState::self()->joinThreadPool();

从语句的字面意思都可以理解出,应该是跟线程有关的。与ProcessState::self()一样,IPCThreadState::self()函数也是类IPCThreadState的静态成员函数,属于这个类,不属于具体某个对象。

class IPCThreadState
{
public:
    static  IPCThreadState*     self();
...
}

其函数体实现如下:

IPCThreadState* IPCThreadState::self()
{
// 判断gHaveTLS是true还是false,字面意思也可以知道是用来标记有无TLS(Thread Loacal Storage)的
    if (gHaveTLS) {
restart:
        const pthread_key_t k = gTLS;
        //如果存在TLS,则根据key:gTLS去获取存储指向IPCThreadState对象的指针值,
        //这是一个一对多的关系,所有线程使用相同的key,但是其每个线程存储的值(IPCThreadState对象)
        //是线程私有的,每个线程都有一个这样的对象
        IPCThreadState* st = (IPCThreadState*)pthread_getspecific(k); 
        if (st) return st;
        //如果此线程不存在这样的key:gTLS对应的值,则创建一个IPCThreadState新对象,
        //并在其构造函数中添加进key:gTLS对应的线程局部空间中TLS(thread local storage)
        return new IPCThreadState; 
    }

    pthread_mutex_lock(&gTLSMutex);
    if (!gHaveTLS) { //gHaveTLS为false表示进程中还没有TLS,则需要创建基于key:gTLS的线程局部存储
        //创建基于key:gTLS的线程局部空间
        int key_create_value = pthread_key_create(&gTLS, threadDestructor);
        if (key_create_value != 0) {
            pthread_mutex_unlock(&gTLSMutex);
            return NULL;
        }
        gHaveTLS = true; //此时已经有TLS了,固gHaveTLS赋值为ture
    }
    pthread_mutex_unlock(&gTLSMutex);
    goto restart;
}

以上分析多次提到线程局部空间(thread local storage),代表的是每个线程所私有的存储空间,线程中互不可以访问,是一个相对独立的空间,不懂的可以先行查资料去了解一下,这里不展开讲解。此线程局部空间就是去存储每一个线程都拥有的一个IPCThreadState对象,且都是独立的。

再看一下IPCThreadState的构造函数:

IPCThreadState::IPCThreadState()
    : mProcess(ProcessState::self()),
      mStrictModePolicy(0),
      mLastTransactionBinderFlags(0)
{
    pthread_setspecific(gTLS, this); //在此往key:gTLS添加IPCThreadState对象
    clearCaller();
    mIn.setDataCapacity(256); //初始化线程私有的数据输入空间大小
    mOut.setDataCapacity(256); //初始化线程私有的数据输出空间大小
}

IPCThreadState::joinThreadPool()函数的目的是让线程进入到循环中,等待命令,解析命令,给出响应,函数体如下:

void IPCThreadState::joinThreadPool(bool isMain = true)
{
     mOut.writeInt32(isMain ? BC_ENTER_LOOPER : BC_REGISTER_LOOPER);
    status_t result;
    do {
        processPendingDerefs();
        // now get the next command to be processed, waiting if necessary
        result = getAndExecuteCommand(); //此函数为joinThreadPool()函数的主要任务过程
    } while (result != -ECONNREFUSED && result != -EBADF);

    mOut.writeInt32(BC_EXIT_LOOPER);
    talkWithDriver(false);
}

从以上代码可以看出,IPCThreadState::joinThreadPool()函数主要是在一个do…while()循环里面不断的读取命令数据,然后解析命令数据,并给出相应的响应。

status_t IPCThreadState::getAndExecuteCommand()
{
    status_t result;
    int32_t cmd;

    result = talkWithDriver(); //读取数据
    if (result >= NO_ERROR) {
        size_t IN = mIn.dataAvail();
        if (IN < sizeof(int32_t)) return result;
        cmd = mIn.readInt32();
        IF_LOG_COMMANDS() {
            alog << "Processing top-level Command: "
                 << getReturnString(cmd) << endl;
        }

        pthread_mutex_lock(&mProcess->mThreadCountLock);
        mProcess->mExecutingThreadsCount++;
        if (mProcess->mExecutingThreadsCount &
2025-06-12 04:26:58.687 16964-16964 cmd E BBinder_init Processname cmd 2025-06-12 04:26:58.688 16964-16964 cmd E BBinder_init hasGetProcessName cmd 2025-06-12 04:26:58.761 16967-16967 Parcel E Reading a NULL string not supported here. 2025-06-12 04:26:58.779 16967-16967 IPCThreadState E Binder transaction failure. id: 101398492, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-12 04:26:58.780 16967-16967 IPCThreadState E Binder transaction failure. id: 101398496, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-12 04:26:58.780 16967-16967 IPCThreadState E Binder transaction failure. id: 101398500, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-12 04:26:58.781 16967-16967 IPCThreadState E Binder transaction failure. id: 101398504, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-12 04:26:58.781 16967-16967 IPCThreadState E Binder transaction failure. id: 101398508, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-12 04:26:58.782 16967-16967 IPCThreadState E Binder transaction failure. id: 101398512, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-12 04:26:58.783 16967-16967 IPCThreadState E Binder transaction failure. id: 101398516, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-12 04:26:58.784 16967-16967 IPCThreadState E Binder transaction failure. id: 101398520, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-12 04:26:58.785 16967-16967 IPCThreadState E Binder transaction failure. id: 101398524, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-12 04:26:58.786 16967-16967 IPCThreadState E Binder transaction failure. id: 101398528, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-12 04:26:58.786 16967-16967 IPCThreadState E Binder transaction failure. id: 101398532, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-12 04:26:58.787 16967-16967 IPCThreadState E Binder transaction failure. id: 101398536, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-12 04:26:58.788 16967-16967 IPCThreadState E Binder transaction failure. id: 101398540, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-12 04:26:58.789 16967-16967 IPCThreadState E Binder transaction failure. id: 101398544, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-12 04:26:58.790 16967-16967 IPCThreadState E Binder transaction failure. id: 101398548, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-12 04:26:58.794 16967-16967 IPCThreadState E Binder transaction failure. id: 101398577, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-12 04:26:58.795 16967-16967 IPCThreadState E Binder transaction failure. id: 101398581, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-12 04:26:58.797 16967-16967 IPCThreadState E Binder transaction failure. id: 101398595, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-12 04:26:58.797 16967-16967 IPCThreadState E Binder transaction failure. id: 101398599, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-12 04:26:58.798 16967-16967 IPCThreadState E Binder transaction failure. id: 101398603, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-12 04:26:58.801 16967-16967 IPCThreadState E Binder transaction failure. id: 101398622, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-12 04:26:58.801 16967-16967 IPCThreadState E Binder transaction failure. id: 101398626, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-12 04:26:58.802 16967-16967 IPCThreadState E Binder transaction failure. id: 101398630, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-12 04:26:58.812 16967-16967 IPCThreadState E Binder transaction failure. id: 101398719, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-12 04:26:58.813 16967-16967 IPCThreadState E Binder transaction failure. id: 101398725, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-12 04:26:58.814 16967-16967 IPCThreadState E Binder transaction failure. id: 101398738, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-12 04:26:58.815 16967-16967 IPCThreadState E Binder transaction failure. id: 101398742, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-12 04:26:58.815 16967-16967 IPCThreadState E Binder transaction failure. id: 101398746, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-12 04:26:58.816 16967-16967 IPCThreadState E Binder transaction failure. id: 101398750, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-12 04:26:58.816 16967-16967 IPCThreadState E Binder transaction failure. id: 101398754, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-12 04:26:58.817 16967-16967 IPCThreadState E Binder transaction failure. id: 101398758, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-12 04:26:58.818 16967-16967 IPCThreadState E Binder transaction failure. id: 101398762, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-12 04:26:58.818 16967-16967 IPCThreadState E Binder transaction failure. id: 101398766, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-12 04:26:58.819 16967-16967 IPCThreadState E Binder transaction failure. id: 101398770, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-12 04:26:58.820 16967-16967 IPCThreadState E Binder transaction failure. id: 101398779, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-12 04:26:58.820 16967-16967 IPCThreadState E Binder transaction failure. id: 101398783, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-12 04:26:58.826 16967-16967 IPCThreadState E Binder transaction failure. id: 101398829, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-12 04:26:58.826 16967-16967 IPCThreadState E Binder transaction failure. id: 101398833, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-12 04:26:58.827 16967-16967 IPCThreadState E Binder transaction failure. id: 101398837, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-12 04:26:58.827 16967-16967 IPCThreadState E Binder transaction failure. id: 101398841, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-12 04:26:58.828 16967-16967 Parcel E Reading a NULL string not supported here. 2025-06-12 04:26:58.835 16967-16967 Parcel E Reading a NULL string not supported here. 2025-06-12 04:26:58.837 16967-16967 IPCThreadState E Binder transaction failure. id: 101398930, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-12 04:26:58.838 16967-16967 Parcel E Reading a NULL string not supported here. 2025-06-12 04:26:58.841 16967-16967 Parcel E Reading a NULL string not supported here. 2025-06-12 04:26:58.847 16967-16967 Parcel E Reading a NULL string not supported here. 2025-06-12 04:26:58.850 16967-16967 Parcel E Reading a NULL string not supported here. 2025-06-12 04:26:58.851 16967-16967 Parcel E Reading a NULL string not supported here. 2025-06-12 04:26:58.853 16967-16967 Parcel E Reading a NULL string not supported here. 2025-06-12 04:26:58.854 16967-16967 Parcel E Reading a NULL string not supported here. 2025-06-12 04:26:58.859 16967-16967 Parcel E Reading a NULL string not supported here. 2025-06-12 04:26:58.867 16967-16967 Parcel E Reading a NULL string not supported here. 2025-06-12 04:26:58.882 16967-16967 Parcel E Reading a NULL string not supported here. 2025-06-12 04:26:58.884 16967-16967 Parcel E Reading a NULL string not supported here. 2025-06-12 04:26:58.895 16967-16967 Parcel E Reading a NULL string not supported here. 2025-06-12 04:26:58.902 16967-16967 Parcel E Reading a NULL string not supported here. 2025-06-12 04:26:58.924 16967-16967 Parcel E Reading a NULL string not supported here. 2025-06-12 04:26:58.930 16967-16967 Parcel E Reading a NULL string not supported here. 2025-06-12 04:26:58.941 16967-16967 Parcel E Reading a NULL string not supported here. 2025-06-12 04:26:58.945 16967-16967 Parcel E Reading a NULL string not supported here. 2025-06-12 04:26:58.956 16967-16967 IPCThreadState E Binder transaction failure. id: 101400079, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-12 04:26:58.957 16967-16967 IPCThreadState E Binder transaction failure. id: 101400083, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-12 04:26:58.957 16967-16967 IPCThreadState E Binder transaction failure. id: 101400087, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-12 04:26:58.958 16967-16967 IPCThreadState E Binder transaction failure. id: 101400091, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-12 04:26:58.960 16967-16967 IPCThreadState E Binder transaction failure. id: 101400105, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-12 04:26:58.960 16967-16967 IPCThreadState E Binder transaction failure. id: 101400109, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-12 04:26:58.961 16967-16967 IPCThreadState E Binder transaction failure. id: 101400113, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-12 04:26:58.962 16967-16967 IPCThreadState E Binder transaction failure. id: 101400117, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-12 04:26:58.962 16967-16967 IPCThreadState E Binder transaction failure. id: 101400121, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-12 04:26:58.962 16967-16967 IPCThreadState E Binder transaction failure. id: 101400125, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-12 04:26:58.963 16967-16967 IPCThreadState E Binder transaction failure. id: 101400129, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-12 04:26:58.963 16967-16967 IPCThreadState E Binder transaction failure. id: 101400133, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-12 04:26:58.963 16967-16967 IPCThreadState E Binder transaction failure. id: 101400137, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-12 04:26:58.964 16967-16967 IPCThreadState E Binder transaction failure. id: 101400141, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-12 04:26:58.964 16967-16967 IPCThreadState E Binder transaction failure. id: 101400145, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-12 04:26:58.965 16967-16967 IPCThreadState E Binder transaction failure. id: 101400149, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-12 04:26:58.965 16967-16967 IPCThreadState E Binder transaction failure. id: 101400153, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-12 04:26:58.966 16967-16967 IPCThreadState E Binder transaction failure. id: 101400157, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-12 04:26:58.967 16967-16967 IPCThreadState E Binder transaction failure. id: 101400166, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-12 04:26:58.967 16967-16967 IPCThreadState E Binder transaction failure. id: 101400170, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-12 04:26:58.968 16967-16967 IPCThreadState E Binder transaction failure. id: 101400174, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-12 04:26:58.971 16967-16967 IPCThreadState E Binder transaction failure. id: 101400213, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-12 04:26:58.972 16967-16967 IPCThreadState E Binder transaction failure. id: 101400222, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-12 04:26:58.972 16967-16967 IPCThreadState E Binder transaction failure. id: 101400226, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-12 04:26:58.973 16967-16967 IPCThreadState E Binder transaction failure. id: 101400235, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-12 04:26:58.974 16967-16967 IPCThreadState E Binder transaction failure. id: 101400239, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-12 04:26:58.974 16967-16967 IPCThreadState E Binder transaction failure. id: 101400243, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-12 04:26:58.975 16967-16967 IPCThreadState E Binder transaction failure. id: 101400247, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-12 04:26:58.975 16967-16967 IPCThreadState E Binder transaction failure. id: 101400251, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-12 04:26:58.976 16967-16967 IPCThreadState E Binder transaction failure. id: 101400255, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-12 04:26:58.976 16967-16967 IPCThreadState E Binder transaction failure. id: 101400259, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-12 04:26:58.976 16967-16967 IPCThreadState E Binder transaction failure. id: 101400263, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-12 04:26:58.977 16967-16967 IPCThreadState E Binder transaction failure. id: 101400267, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-12 04:26:58.977 16967-16967 IPCThreadState E Binder transaction failure. id: 101400271, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-12 04:26:58.977 16967-16967 IPCThreadState E Binder transaction failure. id: 101400275, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-12 04:26:58.986 16967-16967 IPCThreadState E Binder transaction failure. id: 101400374, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-12 04:26:58.986 16967-16967 IPCThreadState E Binder transaction failure. id: 101400378, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-12 04:26:58.987 16967-16967 IPCThreadState E Binder transaction failure. id: 101400382, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-12 04:26:58.988 16967-16967 IPCThreadState E Binder transaction failure. id: 101400386, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-12 04:26:58.988 16967-16967 IPCThreadState E Binder transaction failure. id: 101400390, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-12 04:26:58.989 16967-16967 IPCThreadState E Binder transaction failure. id: 101400394, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-12 04:26:58.989 16967-16967 IPCThreadState E Binder transaction failure. id: 101400398, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-12 04:26:58.989 16967-16967 IPCThreadState E Binder transaction failure. id: 101400402, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-12 04:26:58.990 16967-16967 IPCThreadState E Binder transaction failure. id: 101400406, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-12 04:26:58.990 16967-16967 IPCThreadState E Binder transaction failure. id: 101400410, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-12 04:26:58.991 16967-16967 IPCThreadState E Binder transaction failure. id: 101400414, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-12 04:26:58.991 16967-16967 IPCThreadState E Binder transaction failure. id: 101400418, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-12 04:26:58.992 16967-16967 IPCThreadState E Binder transaction failure. id: 101400422, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-12 04:26:58.992 16967-16967 IPCThreadState E Binder transaction failure. id: 101400426, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-12 04:26:58.992 16967-16967 IPCThreadState E Binder transaction failure. id: 101400430, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-12 04:26:58.993 16967-16967 IPCThreadState E Binder transaction failure. id: 101400434, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-12 04:26:58.993 16967-16967 IPCThreadState E Binder transaction failure. id: 101400438, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-12 04:26:58.993 16967-16967 IPCThreadState E Binder transaction failure. id: 101400442, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-12 04:26:58.994 16967-16967 IPCThreadState E Binder transaction failure. id: 101400446, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-12 04:26:58.996 16967-16967 IPCThreadState E Binder transaction failure. id: 101400455, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-12 04:26:58.996 16967-16967 IPCThreadState E Binder transaction failure. id: 101400459, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-12 04:26:58.997 16967-16967 IPCThreadState E Binder transaction failure. id: 101400463, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-12 04:26:58.997 16967-16967 IPCThreadState E Binder transaction failure. id: 101400467, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-12 04:26:58.998 16967-16967 IPCThreadState E Binder transaction failure. id: 101400471, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-12 04:26:58.998 16967-16967 IPCThreadState E Binder transaction failure. id: 101400475, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-12 04:26:58.999 16967-16967 IPCThreadState E Binder transaction failure. id: 101400479, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-12 04:26:59.000 16967-16967 IPCThreadState E Binder transaction failure. id: 101400488, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-12 04:26:59.000 16967-16967 IPCThreadState E Binder transaction failure. id: 101400492, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-12 04:26:59.001 16967-16967 IPCThreadState E Binder transaction failure. id: 101400496, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-12 04:26:59.002 16967-16967 IPCThreadState E Binder transaction failure. id: 101400505, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-12 04:26:59.003 16967-16967 IPCThreadState E Binder transaction failure. id: 101400509, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-12 04:26:59.003 16967-16967 IPCThreadState E Binder transaction failure. id: 101400513, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-12 04:26:59.004 16967-16967 IPCThreadState E Binder transaction failure. id: 101400517, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-12 04:26:59.005 16967-16967 IPCThreadState E Binder transaction failure. id: 101400531, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-12 04:26:59.006 16967-16967 IPCThreadState E Binder transaction failure. id: 101400535, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-12 04:26:59.006 16967-16967 IPCThreadState E Binder transaction failure. id: 101400539, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-12 04:26:59.007 16967-16967 IPCThreadState E Binder transaction failure. id: 101400543, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-12 04:26:59.007 16967-16967 IPCThreadState E Binder transaction failure. id: 101400547, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-12 04:26:59.008 16967-16967 IPCThreadState E Binder transaction failure. id: 101400551, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-12 04:26:59.008 16967-16967 IPCThreadState E Binder transaction failure. id: 101400555, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-12 04:26:59.008 16967-16967 IPCThreadState E Binder transaction failure. id: 101400559, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-12 04:26:59.009 16967-16967 IPCThreadState E Binder transaction failure. id: 101400563, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-12 04:26:59.009 16967-16967 IPCThreadState E Binder transaction failure. id: 101400567, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-12 04:26:59.010 16967-16967 IPCThreadState E Binder transaction failure. id: 101400571, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-12 04:26:59.010 16967-16967 IPCThreadState E Binder transaction failure. id: 101400575, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-12 04:26:59.011 16967-16967 IPCThreadState E Binder transaction failure. id: 101400579, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-12 04:26:59.038 16967-16967 IPCThreadState E Binder transaction failure. id: 101400830, BR_*: 29201, error: -1 (Operation not permitted)
06-13
25-06-13 21:58:06.756 29776-29776 Parcel service E Reading a NULL string not supported here. 2025-06-13 21:58:06.763 29781-29781 cmd cmd E BBinder_init Processname cmd 2025-06-13 21:58:06.763 29781-29781 cmd cmd E BBinder_init hasGetProcessName cmd 2025-06-13 21:58:06.768 29776-29776 IPCThreadState service E Binder transaction failure. id: 123339476, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:06.769 29776-29776 IPCThreadState service E Binder transaction failure. id: 123339482, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:06.769 29776-29776 IPCThreadState service E Binder transaction failure. id: 123339486, BR_*: 29201, error: -1 (Operation not permitted) 1970-01-01 08:00:00.000 0-0 <no-tag> I ---------------------------- PROCESS ENDED (11034) for package com.example.kucun2 ---------------------------- 2025-06-13 21:58:06.770 29776-29776 IPCThreadState service E Binder transaction failure. id: 123339490, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:06.770 29776-29776 IPCThreadState service E Binder transaction failure. id: 123339494, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:06.771 29776-29776 IPCThreadState service E Binder transaction failure. id: 123339498, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:06.771 29776-29776 IPCThreadState service E Binder transaction failure. id: 123339502, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:06.772 29776-29776 IPCThreadState service E Binder transaction failure. id: 123339510, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:06.773 29776-29776 IPCThreadState service E Binder transaction failure. id: 123339521, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:06.773 29776-29776 IPCThreadState service E Binder transaction failure. id: 123339529, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:06.774 29776-29776 IPCThreadState service E Binder transaction failure. id: 123339543, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:06.774 29776-29776 IPCThreadState service E Binder transaction failure. id: 123339553, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:06.763 29776-29776 service service W type=1400 audit(0.0:1569230): avc: denied { call } for scontext=u:r:shell:s0 tcontext=u:r:hal_audio_default:s0 tclass=binder permissive=0 2025-06-13 21:58:06.763 29776-29776 service service W type=1400 audit(0.0:1569231): avc: denied { call } for scontext=u:r:shell:s0 tcontext=u:r:hal_audio_default:s0 tclass=binder permissive=0 2025-06-13 21:58:06.763 29776-29776 service service W type=1400 audit(0.0:1569232): avc: denied { call } for scontext=u:r:shell:s0 tcontext=u:r:hal_audio_default:s0 tclass=binder permissive=0 2025-06-13 21:58:06.763 29776-29776 service service W type=1400 audit(0.0:1569233): avc: denied { call } for scontext=u:r:shell:s0 tcontext=u:r:hal_audio_default:s0 tclass=binder permissive=0 2025-06-13 21:58:06.767 29776-29776 service service W type=1400 audit(0.0:1569234): avc: denied { call } for scontext=u:r:shell:s0 tcontext=u:r:hal_audio_default:s0 tclass=binder permissive=0 2025-06-13 21:58:06.767 29776-29776 service service W type=1400 audit(0.0:1569235): avc: denied { call } for scontext=u:r:shell:s0 tcontext=u:r:hal_audio_default:s0 tclass=binder permissive=0 2025-06-13 21:58:06.767 29776-29776 service service W type=1400 audit(0.0:1569236): avc: denied { call } for scontext=u:r:shell:s0 tcontext=u:r:hal_faceunlock_native:s0 tclass=binder permissive=0 2025-06-13 21:58:06.767 29776-29776 service service W type=1400 audit(0.0:1569237): avc: denied { call } for scontext=u:r:shell:s0 tcontext=u:r:vivo_hal_fingerprint:s0 tclass=binder permissive=0 2025-06-13 21:58:06.781 29776-29776 IPCThreadState service E Binder transaction failure. id: 123339634, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:06.781 29776-29776 IPCThreadState service E Binder transaction failure. id: 123339638, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:06.781 29776-29776 IPCThreadState service E Binder transaction failure. id: 123339642, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:06.783 29776-29776 IPCThreadState service E Binder transaction failure. id: 123339676, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:06.783 29776-29776 IPCThreadState service E Binder transaction failure. id: 123339681, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:06.784 29776-29776 IPCThreadState service E Binder transaction failure. id: 123339707, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:06.785 29776-29776 IPCThreadState service E Binder transaction failure. id: 123339711, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:06.785 29776-29776 IPCThreadState service E Binder transaction failure. id: 123339727, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:06.786 29776-29776 IPCThreadState service E Binder transaction failure. id: 123339746, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:06.787 29776-29776 IPCThreadState service E Binder transaction failure. id: 123339752, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:06.787 29776-29776 IPCThreadState service E Binder transaction failure. id: 123339756, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:06.795 29776-29776 IPCThreadState service E Binder transaction failure. id: 123339918, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:06.795 29776-29776 IPCThreadState service E Binder transaction failure. id: 123339929, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:06.796 29776-29776 IPCThreadState service E Binder transaction failure. id: 123339946, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:06.796 29776-29776 IPCThreadState service E Binder transaction failure. id: 123339951, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:06.796 29776-29776 IPCThreadState service E Binder transaction failure. id: 123339959, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:06.796 29776-29776 IPCThreadState service E Binder transaction failure. id: 123339963, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:06.797 29776-29776 IPCThreadState service E Binder transaction failure. id: 123339967, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:06.797 29776-29776 IPCThreadState service E Binder transaction failure. id: 123339971, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:06.798 29776-29776 IPCThreadState service E Binder transaction failure. id: 123339993, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:06.798 29776-29776 IPCThreadState service E Binder transaction failure. id: 123340002, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:06.798 29776-29776 IPCThreadState service E Binder transaction failure. id: 123340010, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:06.799 29776-29776 IPCThreadState service E Binder transaction failure. id: 123340022, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:06.799 29776-29776 IPCThreadState service E Binder transaction failure. id: 123340029, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:06.813 29776-29776 IPCThreadState service E Binder transaction failure. id: 123340249, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:06.813 29776-29776 IPCThreadState service E Binder transaction failure. id: 123340257, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:06.814 29776-29776 IPCThreadState service E Binder transaction failure. id: 123340275, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:06.815 29776-29776 IPCThreadState service E Binder transaction failure. id: 123340283, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:06.816 29776-29776 Parcel service E Reading a NULL string not supported here. 2025-06-13 21:58:06.822 29776-29776 Parcel service E Reading a NULL string not supported here. 2025-06-13 21:58:06.827 29776-29776 IPCThreadState service E Binder transaction failure. id: 123340436, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:06.827 29776-29776 Parcel service E Reading a NULL string not supported here. 2025-06-13 21:58:06.828 29776-29776 Parcel service E Reading a NULL string not supported here. 2025-06-13 21:58:06.843 29776-29776 Parcel service E Reading a NULL string not supported here. 2025-06-13 21:58:06.854 29776-29776 Parcel service E Reading a NULL string not supported here. 2025-06-13 21:58:06.855 29776-29776 Parcel service E Reading a NULL string not supported here. 2025-06-13 21:58:06.859 29776-29776 Parcel service E Reading a NULL string not supported here. 2025-06-13 21:58:06.860 29776-29776 Parcel service E Reading a NULL string not supported here. 2025-06-13 21:58:06.863 29776-29776 Parcel service E Reading a NULL string not supported here. 2025-06-13 21:58:06.873 29776-29776 Parcel service E Reading a NULL string not supported here. 2025-06-13 21:58:06.885 29776-29776 Parcel service E Reading a NULL string not supported here. 2025-06-13 21:58:06.907 29776-29776 Parcel service E Reading a NULL string not supported here. 2025-06-13 21:58:06.913 29776-29776 Parcel service E Reading a NULL string not supported here. 2025-06-13 21:58:06.918 29776-29776 Parcel service E Reading a NULL string not supported here. 2025-06-13 21:58:06.932 29776-29776 Parcel service E Reading a NULL string not supported here. 2025-06-13 21:58:06.936 29776-29776 Parcel service E Reading a NULL string not supported here. 2025-06-13 21:58:06.963 29776-29776 Parcel service E Reading a NULL string not supported here. 2025-06-13 21:58:06.964 29776-29776 Parcel service E Reading a NULL string not supported here. 2025-06-13 21:58:06.973 29776-29776 IPCThreadState service E Binder transaction failure. id: 123343305, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:06.974 29776-29776 IPCThreadState service E Binder transaction failure. id: 123343310, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:06.974 29776-29776 IPCThreadState service E Binder transaction failure. id: 123343314, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:06.974 29776-29776 IPCThreadState service E Binder transaction failure. id: 123343319, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:06.975 29776-29776 IPCThreadState service E Binder transaction failure. id: 123343334, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:06.976 29776-29776 IPCThreadState service E Binder transaction failure. id: 123343338, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:06.976 29776-29776 IPCThreadState service E Binder transaction failure. id: 123343342, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:06.976 29776-29776 IPCThreadState service E Binder transaction failure. id: 123343346, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:06.976 29776-29776 IPCThreadState service E Binder transaction failure. id: 123343350, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:06.977 29776-29776 IPCThreadState service E Binder transaction failure. id: 123343354, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:06.977 29776-29776 IPCThreadState service E Binder transaction failure. id: 123343359, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:06.977 29776-29776 IPCThreadState service E Binder transaction failure. id: 123343363, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:06.977 29776-29776 IPCThreadState service E Binder transaction failure. id: 123343367, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:06.978 29776-29776 IPCThreadState service E Binder transaction failure. id: 123343371, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:06.978 29776-29776 IPCThreadState service E Binder transaction failure. id: 123343375, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:06.978 29776-29776 IPCThreadState service E Binder transaction failure. id: 123343379, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:06.979 29776-29776 IPCThreadState service E Binder transaction failure. id: 123343383, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:06.979 29776-29776 IPCThreadState service E Binder transaction failure. id: 123343387, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:06.980 29776-29776 IPCThreadState service E Binder transaction failure. id: 123343402, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:06.980 29776-29776 IPCThreadState service E Binder transaction failure. id: 123343406, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:06.980 29776-29776 IPCThreadState service E Binder transaction failure. id: 123343410, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:06.983 29776-29776 IPCThreadState service E Binder transaction failure. id: 123343460, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:06.983 29776-29776 IPCThreadState service E Binder transaction failure. id: 123343470, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:06.984 29776-29776 IPCThreadState service E Binder transaction failure. id: 123343474, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:06.984 29776-29776 IPCThreadState service E Binder transaction failure. id: 123343485, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:06.984 29776-29776 IPCThreadState service E Binder transaction failure. id: 123343489, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:06.985 29776-29776 IPCThreadState service E Binder transaction failure. id: 123343493, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:06.985 29776-29776 IPCThreadState service E Binder transaction failure. id: 123343497, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:06.985 29776-29776 IPCThreadState service E Binder transaction failure. id: 123343502, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:06.985 29776-29776 IPCThreadState service E Binder transaction failure. id: 123343506, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:06.986 29776-29776 IPCThreadState service E Binder transaction failure. id: 123343510, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:06.986 29776-29776 IPCThreadState service E Binder transaction failure. id: 123343514, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:06.986 29776-29776 IPCThreadState service E Binder transaction failure. id: 123343518, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:06.986 29776-29776 IPCThreadState service E Binder transaction failure. id: 123343523, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:06.987 29776-29776 IPCThreadState service E Binder transaction failure. id: 123343528, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:06.992 29776-29776 IPCThreadState service E Binder transaction failure. id: 123343650, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:06.992 29776-29776 IPCThreadState service E Binder transaction failure. id: 123343654, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:06.992 29776-29776 IPCThreadState service E Binder transaction failure. id: 123343658, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:06.993 29776-29776 IPCThreadState service E Binder transaction failure. id: 123343662, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:06.993 29776-29776 IPCThreadState service E Binder transaction failure. id: 123343666, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:06.993 29776-29776 IPCThreadState service E Binder transaction failure. id: 123343670, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:06.993 29776-29776 IPCThreadState service E Binder transaction failure. id: 123343674, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:06.993 29776-29776 IPCThreadState service E Binder transaction failure. id: 123343679, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:06.994 29776-29776 IPCThreadState service E Binder transaction failure. id: 123343683, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:06.994 29776-29776 IPCThreadState service E Binder transaction failure. id: 123343687, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:06.994 29776-29776 IPCThreadState service E Binder transaction failure. id: 123343691, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:06.994 29776-29776 IPCThreadState service E Binder transaction failure. id: 123343695, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:06.995 29776-29776 IPCThreadState service E Binder transaction failure. id: 123343699, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:06.995 29776-29776 IPCThreadState service E Binder transaction failure. id: 123343703, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:06.995 29776-29776 IPCThreadState service E Binder transaction failure. id: 123343707, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:06.995 29776-29776 IPCThreadState service E Binder transaction failure. id: 123343711, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:06.996 29776-29776 IPCThreadState service E Binder transaction failure. id: 123343715, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:06.996 29776-29776 IPCThreadState service E Binder transaction failure. id: 123343722, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:06.996 29776-29776 IPCThreadState service E Binder transaction failure. id: 123343729, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:06.997 29776-29776 IPCThreadState service E Binder transaction failure. id: 123343739, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:06.997 29776-29776 IPCThreadState service E Binder transaction failure. id: 123343743, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:06.998 29776-29776 IPCThreadState service E Binder transaction failure. id: 123343747, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:06.998 29776-29776 IPCThreadState service E Binder transaction failure. id: 123343751, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:06.998 29776-29776 IPCThreadState service E Binder transaction failure. id: 123343757, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:06.998 29776-29776 IPCThreadState service E Binder transaction failure. id: 123343762, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:06.999 29776-29776 IPCThreadState service E Binder transaction failure. id: 123343767, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:06.999 29776-29776 IPCThreadState service E Binder transaction failure. id: 123343778, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.000 29776-29776 IPCThreadState service E Binder transaction failure. id: 123343782, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.000 29776-29776 IPCThreadState service E Binder transaction failure. id: 123343786, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.001 29776-29776 IPCThreadState service E Binder transaction failure. id: 123343795, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.001 29776-29776 IPCThreadState service E Binder transaction failure. id: 123343800, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.001 29776-29776 IPCThreadState service E Binder transaction failure. id: 123343804, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.001 29776-29776 IPCThreadState service E Binder transaction failure. id: 123343808, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.002 29776-29776 IPCThreadState service E Binder transaction failure. id: 123343823, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.003 29776-29776 IPCThreadState service E Binder transaction failure. id: 123343827, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.003 29776-29776 IPCThreadState service E Binder transaction failure. id: 123343831, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.003 29776-29776 IPCThreadState service E Binder transaction failure. id: 123343835, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.003 29776-29776 IPCThreadState service E Binder transaction failure. id: 123343839, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.004 29776-29776 IPCThreadState service E Binder transaction failure. id: 123343843, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.004 29776-29776 IPCThreadState service E Binder transaction failure. id: 123343847, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.004 29776-29776 IPCThreadState service E Binder transaction failure. id: 123343851, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.004 29776-29776 IPCThreadState service E Binder transaction failure. id: 123343859, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.005 29776-29776 IPCThreadState service E Binder transaction failure. id: 123343865, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.005 29776-29776 IPCThreadState service E Binder transaction failure. id: 123343869, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.005 29776-29776 IPCThreadState service E Binder transaction failure. id: 123343873, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.005 29776-29776 IPCThreadState service E Binder transaction failure. id: 123343878, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.025 29776-29776 IPCThreadState service E Binder transaction failure. id: 123344162, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.201 29822-29822 cmd cmd E BBinder_init Processname cmd 2025-06-13 21:58:07.201 29822-29822 cmd cmd E BBinder_init hasGetProcessName cmd 2025-06-13 21:58:07.237 29825-29825 Parcel service E Reading a NULL string not supported here. 2025-06-13 21:58:07.247 29825-29825 IPCThreadState service E Binder transaction failure. id: 123344792, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.247 29825-29825 IPCThreadState service E Binder transaction failure. id: 123344796, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.248 29825-29825 IPCThreadState service E Binder transaction failure. id: 123344803, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.248 29825-29825 IPCThreadState service E Binder transaction failure. id: 123344808, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.249 29825-29825 IPCThreadState service E Binder transaction failure. id: 123344814, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.249 29825-29825 IPCThreadState service E Binder transaction failure. id: 123344818, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.250 29825-29825 IPCThreadState service E Binder transaction failure. id: 123344822, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.250 29825-29825 IPCThreadState service E Binder transaction failure. id: 123344826, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.251 29825-29825 IPCThreadState service E Binder transaction failure. id: 123344830, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.251 29825-29825 IPCThreadState service E Binder transaction failure. id: 123344834, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.252 29825-29825 IPCThreadState service E Binder transaction failure. id: 123344839, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.252 29825-29825 IPCThreadState service E Binder transaction failure. id: 123344843, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.252 29825-29825 IPCThreadState service E Binder transaction failure. id: 123344847, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.252 29825-29825 IPCThreadState service E Binder transaction failure. id: 123344851, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.253 29825-29825 IPCThreadState service E Binder transaction failure. id: 123344855, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.255 29825-29825 IPCThreadState service E Binder transaction failure. id: 123344889, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.256 29825-29825 IPCThreadState service E Binder transaction failure. id: 123344895, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.257 29825-29825 IPCThreadState service E Binder transaction failure. id: 123344911, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.257 29825-29825 IPCThreadState service E Binder transaction failure. id: 123344916, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.257 29825-29825 IPCThreadState service E Binder transaction failure. id: 123344921, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.259 29825-29825 IPCThreadState service E Binder transaction failure. id: 123344940, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.259 29825-29825 IPCThreadState service E Binder transaction failure. id: 123344944, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.259 29825-29825 IPCThreadState service E Binder transaction failure. id: 123344948, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.264 29825-29825 IPCThreadState service E Binder transaction failure. id: 123345047, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.265 29825-29825 IPCThreadState service E Binder transaction failure. id: 123345053, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.266 29825-29825 IPCThreadState service E Binder transaction failure. id: 123345069, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.266 29825-29825 IPCThreadState service E Binder transaction failure. id: 123345073, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.266 29825-29825 IPCThreadState service E Binder transaction failure. id: 123345077, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.267 29825-29825 IPCThreadState service E Binder transaction failure. id: 123345081, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.267 29825-29825 IPCThreadState service E Binder transaction failure. id: 123345085, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.267 29825-29825 IPCThreadState service E Binder transaction failure. id: 123345089, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.267 29825-29825 IPCThreadState service E Binder transaction failure. id: 123345093, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.268 29825-29825 IPCThreadState service E Binder transaction failure. id: 123345097, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.268 29825-29825 IPCThreadState service E Binder transaction failure. id: 123345101, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.268 29825-29825 IPCThreadState service E Binder transaction failure. id: 123345111, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.268 29825-29825 IPCThreadState service E Binder transaction failure. id: 123345115, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.273 29825-29825 IPCThreadState service E Binder transaction failure. id: 123345169, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.273 29825-29825 IPCThreadState service E Binder transaction failure. id: 123345174, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.274 29825-29825 IPCThreadState service E Binder transaction failure. id: 123345179, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.274 29825-29825 IPCThreadState service E Binder transaction failure. id: 123345183, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.274 29825-29825 Parcel service E Reading a NULL string not supported here. 2025-06-13 21:58:07.277 29825-29825 Parcel service E Reading a NULL string not supported here. 2025-06-13 21:58:07.279 29825-29825 IPCThreadState service E Binder transaction failure. id: 123345270, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.279 29825-29825 Parcel service E Reading a NULL string not supported here. 2025-06-13 21:58:07.280 29825-29825 Parcel service E Reading a NULL string not supported here. 2025-06-13 21:58:07.285 29825-29825 Parcel service E Reading a NULL string not supported here. 2025-06-13 21:58:07.288 29825-29825 Parcel service E Reading a NULL string not supported here. 2025-06-13 21:58:07.288 29825-29825 Parcel service E Reading a NULL string not supported here. 2025-06-13 21:58:07.291 29825-29825 Parcel service E Reading a NULL string not supported here. 2025-06-13 21:58:07.291 29825-29825 Parcel service E Reading a NULL string not supported here. 2025-06-13 21:58:07.294 29825-29825 Parcel service E Reading a NULL string not supported here. 2025-06-13 21:58:07.299 29825-29825 Parcel service E Reading a NULL string not supported here. 2025-06-13 21:58:07.308 29825-29825 Parcel service E Reading a NULL string not supported here. 2025-06-13 21:58:07.309 29825-29825 Parcel service E Reading a NULL string not supported here. 2025-06-13 21:58:07.317 29825-29825 Parcel service E Reading a NULL string not supported here. 2025-06-13 21:58:07.323 29825-29825 Parcel service E Reading a NULL string not supported here. 2025-06-13 21:58:07.339 29825-29825 Parcel service E Reading a NULL string not supported here. 2025-06-13 21:58:07.344 29825-29825 Parcel service E Reading a NULL string not supported here. 2025-06-13 21:58:07.352 29825-29825 Parcel service E Reading a NULL string not supported here. 2025-06-13 21:58:07.355 29825-29825 Parcel service E Reading a NULL string not supported here. 2025-06-13 21:58:07.363 29825-29825 IPCThreadState service E Binder transaction failure. id: 123346554, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.363 29825-29825 IPCThreadState service E Binder transaction failure. id: 123346558, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.364 29825-29825 IPCThreadState service E Binder transaction failure. id: 123346562, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.364 29825-29825 IPCThreadState service E Binder transaction failure. id: 123346568, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.365 29825-29825 IPCThreadState service E Binder transaction failure. id: 123346586, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.366 29825-29825 IPCThreadState service E Binder transaction failure. id: 123346590, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.366 29825-29825 IPCThreadState service E Binder transaction failure. id: 123346594, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.367 29825-29825 IPCThreadState service E Binder transaction failure. id: 123346598, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.367 29825-29825 IPCThreadState service E Binder transaction failure. id: 123346602, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.367 29825-29825 IPCThreadState service E Binder transaction failure. id: 123346606, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.368 29825-29825 IPCThreadState service E Binder transaction failure. id: 123346611, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.368 29825-29825 IPCThreadState service E Binder transaction failure. id: 123346615, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.369 29825-29825 IPCThreadState service E Binder transaction failure. id: 123346619, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.369 29825-29825 IPCThreadState service E Binder transaction failure. id: 123346623, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.369 29825-29825 IPCThreadState service E Binder transaction failure. id: 123346627, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.370 29825-29825 IPCThreadState service E Binder transaction failure. id: 123346631, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.370 29825-29825 IPCThreadState service E Binder transaction failure. id: 123346636, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.371 29825-29825 IPCThreadState service E Binder transaction failure. id: 123346643, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.372 29825-29825 IPCThreadState service E Binder transaction failure. id: 123346653, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.372 29825-29825 IPCThreadState service E Binder transaction failure. id: 123346659, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.372 29825-29825 IPCThreadState service E Binder transaction failure. id: 123346664, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.375 29825-29825 IPCThreadState service E Binder transaction failure. id: 123346706, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.376 29825-29825 IPCThreadState service E Binder transaction failure. id: 123346716, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.376 29825-29825 IPCThreadState service E Binder transaction failure. id: 123346720, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.377 29825-29825 IPCThreadState service E Binder transaction failure. id: 123346729, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.378 29825-29825 IPCThreadState service E Binder transaction failure. id: 123346733, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.378 29825-29825 IPCThreadState service E Binder transaction failure. id: 123346737, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.378 29825-29825 IPCThreadState service E Binder transaction failure. id: 123346741, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.379 29825-29825 IPCThreadState service E Binder transaction failure. id: 123346750, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.379 29825-29825 IPCThreadState service E Binder transaction failure. id: 123346754, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.380 29825-29825 IPCThreadState service E Binder transaction failure. id: 123346759, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.380 29825-29825 IPCThreadState service E Binder transaction failure. id: 123346763, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.381 29825-29825 IPCThreadState service E Binder transaction failure. id: 123346770, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.381 29825-29825 IPCThreadState service E Binder transaction failure. id: 123346774, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.381 29825-29825 IPCThreadState service E Binder transaction failure. id: 123346780, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.387 29825-29825 IPCThreadState service E Binder transaction failure. id: 123346886, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.387 29825-29825 IPCThreadState service E Binder transaction failure. id: 123346890, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.388 29825-29825 IPCThreadState service E Binder transaction failure. id: 123346895, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.388 29825-29825 IPCThreadState service E Binder transaction failure. id: 123346899, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.388 29825-29825 IPCThreadState service E Binder transaction failure. id: 123346903, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.389 29825-29825 IPCThreadState service E Binder transaction failure. id: 123346909, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.389 29825-29825 IPCThreadState service E Binder transaction failure. id: 123346914, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.389 29825-29825 IPCThreadState service E Binder transaction failure. id: 123346919, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.390 29825-29825 IPCThreadState service E Binder transaction failure. id: 123346924, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.390 29825-29825 IPCThreadState service E Binder transaction failure. id: 123346930, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.390 29825-29825 IPCThreadState service E Binder transaction failure. id: 123346934, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.390 29825-29825 IPCThreadState service E Binder transaction failure. id: 123346940, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.391 29825-29825 IPCThreadState service E Binder transaction failure. id: 123346945, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.391 29825-29825 IPCThreadState service E Binder transaction failure. id: 123346949, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.391 29825-29825 IPCThreadState service E Binder transaction failure. id: 123346954, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.391 29825-29825 IPCThreadState service E Binder transaction failure. id: 123346958, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.392 29825-29825 IPCThreadState service E Binder transaction failure. id: 123346963, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.392 29825-29825 IPCThreadState service E Binder transaction failure. id: 123346967, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.392 29825-29825 IPCThreadState service E Binder transaction failure. id: 123346971, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.393 29825-29825 IPCThreadState service E Binder transaction failure. id: 123346981, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.393 29825-29825 IPCThreadState service E Binder transaction failure. id: 123346985, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.393 29825-29825 IPCThreadState service E Binder transaction failure. id: 123346989, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.393 29825-29825 IPCThreadState service E Binder transaction failure. id: 123346993, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.394 29825-29825 IPCThreadState service E Binder transaction failure. id: 123346997, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.394 29825-29825 IPCThreadState service E Binder transaction failure. id: 123347001, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.394 29825-29825 IPCThreadState service E Binder transaction failure. id: 123347005, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.395 29825-29825 IPCThreadState service E Binder transaction failure. id: 123347015, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.395 29825-29825 IPCThreadState service E Binder transaction failure. id: 123347021, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.396 29825-29825 IPCThreadState service E Binder transaction failure. id: 123347026, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.396 29825-29825 IPCThreadState service E Binder transaction failure. id: 123347036, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.396 29825-29825 IPCThreadState service E Binder transaction failure. id: 123347040, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.397 29825-29825 IPCThreadState service E Binder transaction failure. id: 123347044, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.397 29825-29825 IPCThreadState service E Binder transaction failure. id: 123347048, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.398 29825-29825 IPCThreadState service E Binder transaction failure. id: 123347065, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.398 29825-29825 IPCThreadState service E Binder transaction failure. id: 123347071, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.399 29825-29825 IPCThreadState service E Binder transaction failure. id: 123347075, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.399 29825-29825 IPCThreadState service E Binder transaction failure. id: 123347080, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.399 29825-29825 IPCThreadState service E Binder transaction failure. id: 123347084, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.399 29825-29825 IPCThreadState service E Binder transaction failure. id: 123347088, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.399 29825-29825 IPCThreadState service E Binder transaction failure. id: 123347092, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.400 29825-29825 IPCThreadState service E Binder transaction failure. id: 123347096, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.400 29825-29825 IPCThreadState service E Binder transaction failure. id: 123347100, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.400 29825-29825 IPCThreadState service E Binder transaction failure. id: 123347104, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.400 29825-29825 IPCThreadState service E Binder transaction failure. id: 123347108, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.400 29825-29825 IPCThreadState service E Binder transaction failure. id: 123347112, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.401 29825-29825 IPCThreadState service E Binder transaction failure. id: 123347116, BR_*: 29201, error: -1 (Operation not permitted) 2025-06-13 21:58:07.418 29825-29825 IPCThreadState service E Binder transaction failure. id: 123347394, BR_*: 29201, error: -1 (Operation not permitted)每次项目重启都有大量
06-14
每次启动项目就报错tclass=binder permissive=0 2025-06-16 01:23:27.122 18989-18989 IPCThreadState service E Binder transaction failure. id: 152197160, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:23:27.123 18989-18989 IPCThreadState service E Binder transaction failure. id: 152197166, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:23:27.124 18989-18989 IPCThreadState service E Binder transaction failure. id: 152197184, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:23:27.125 18989-18989 IPCThreadState service E Binder transaction failure. id: 152197188, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:23:27.125 18989-18989 IPCThreadState service E Binder transaction failure. id: 152197192, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:23:27.125 18989-18989 IPCThreadState service E Binder transaction failure. id: 152197198, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:23:27.126 18989-18989 IPCThreadState service E Binder transaction failure. id: 152197203, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:23:27.126 18989-18989 IPCThreadState service E Binder transaction failure. id: 152197207, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:23:27.126 18989-18989 IPCThreadState service E Binder transaction failure. id: 152197212, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:23:27.126 18989-18989 IPCThreadState service E Binder transaction failure. id: 152197217, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:23:27.126 18989-18989 IPCThreadState service E Binder transaction failure. id: 152197221, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:23:27.126 18989-18989 IPCThreadState service E Binder transaction failure. id: 152197225, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:23:27.127 18989-18989 IPCThreadState service E Binder transaction failure. id: 152197229, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:23:27.127 18989-18989 IPCThreadState service E Binder transaction failure. id: 152197234, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:23:27.127 18989-18989 IPCThreadState service E Binder transaction failure. id: 152197238, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:23:27.127 18989-18989 IPCThreadState service E Binder transaction failure. id: 152197242, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:23:27.128 18989-18989 IPCThreadState service E Binder transaction failure. id: 152197251, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:23:27.128 18989-18989 IPCThreadState service E Binder transaction failure. id: 152197255, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:23:27.129 18989-18989 IPCThreadState service E Binder transaction failure. id: 152197259, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:23:27.131 18989-18989 IPCThreadState service E Binder transaction failure. id: 152197311, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:23:27.132 18989-18989 IPCThreadState service E Binder transaction failure. id: 152197323, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:23:27.132 18989-18989 IPCThreadState service E Binder transaction failure. id: 152197328, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:23:27.132 18989-18989 IPCThreadState service E Binder transaction failure. id: 152197338, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:23:27.133 18989-18989 IPCThreadState service E Binder transaction failure. id: 152197342, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:23:27.133 18989-18989 IPCThreadState service E Binder transaction failure. id: 152197346, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:23:27.133 18989-18989 IPCThreadState service E Binder transaction failure. id: 152197350, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:23:27.133 18989-18989 IPCThreadState service E Binder transaction failure. id: 152197355, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:23:27.134 18989-18989 IPCThreadState service E Binder transaction failure. id: 152197362, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:23:27.134 18989-18989 IPCThreadState service E Binder transaction failure. id: 152197366, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:23:27.134 18989-18989 IPCThreadState service E Binder transaction failure. id: 152197370, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:23:27.134 18989-18989 IPCThreadState service E Binder transaction failure. id: 152197375, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:23:27.135 18989-18989 IPCThreadState service E Binder transaction failure. id: 152197380, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:23:27.135 18989-18989 IPCThreadState service E Binder transaction failure. id: 152197384, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:23:27.140 18989-18989 IPCThreadState service E Binder transaction failure. id: 152197500, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:23:27.140 18989-18989 IPCThreadState service E Binder transaction failure. id: 152197504, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:23:27.141 18989-18989 IPCThreadState service E Binder transaction failure. id: 152197508, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:23:27.141 18989-18989 IPCThreadState service E Binder transaction failure. id: 152197513, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:23:27.141 18989-18989 IPCThreadState service E Binder transaction failure. id: 152197517, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:23:27.141 18989-18989 IPCThreadState service E Binder transaction failure. id: 152197521, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:23:27.142 18989-18989 IPCThreadState service E Binder transaction failure. id: 152197525, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:23:27.142 18989-18989 IPCThreadState service E Binder transaction failure. id: 152197531, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:23:27.142 18989-18989 IPCThreadState service E Binder transaction failure. id: 152197536, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:23:27.142 18989-18989 IPCThreadState service E Binder transaction failure. id: 152197540, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:23:27.142 18989-18989 IPCThreadState service E Binder transaction failure. id: 152197544, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:23:27.143 18989-18989 IPCThreadState service E Binder transaction failure. id: 152197549, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:23:27.143 18989-18989 IPCThreadState service E Binder transaction failure. id: 152197555, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:23:27.143 18989-18989 IPCThreadState service E Binder transaction failure. id: 152197559, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:23:27.143 18989-18989 IPCThreadState service E Binder transaction failure. id: 152197564, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:23:27.144 18989-18989 IPCThreadState service E Binder transaction failure. id: 152197568, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:23:27.144 18989-18989 IPCThreadState service E Binder transaction failure. id: 152197572, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:23:27.144 18989-18989 IPCThreadState service E Binder transaction failure. id: 152197576, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:23:27.144 18989-18989 IPCThreadState service E Binder transaction failure. id: 152197580, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:23:27.145 18989-18989 IPCThreadState service E Binder transaction failure. id: 152197589, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:23:27.145 18989-18989 IPCThreadState service E Binder transaction failure. id: 152197593, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:23:27.145 18989-18989 IPCThreadState service E Binder transaction failure. id: 152197597, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:23:27.146 18989-18989 IPCThreadState service E Binder transaction failure. id: 152197602, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:23:27.146 18989-18989 IPCThreadState service E Binder transaction failure. id: 152197606, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:23:27.146 18989-18989 IPCThreadState service E Binder transaction failure. id: 152197610, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:23:27.147 18989-18989 IPCThreadState service E Binder transaction failure. id: 152197614, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:23:27.147 18989-18989 IPCThreadState service E Binder transaction failure. id: 152197623, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:23:27.147 18989-18989 IPCThreadState service E Binder transaction failure. id: 152197627, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:23:27.148 18989-18989 IPCThreadState service E Binder transaction failure. id: 152197631, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:23:27.148 18989-18989 IPCThreadState service E Binder transaction failure. id: 152197643, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:23:27.148 18989-18989 IPCThreadState service E Binder transaction failure. id: 152197653, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:23:27.149 18989-18989 IPCThreadState service E Binder transaction failure. id: 152197662, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:23:27.149 18989-18989 IPCThreadState service E Binder transaction failure. id: 152197668, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:23:27.150 18989-18989 IPCThreadState service E Binder transaction failure. id: 152197683, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:23:27.150 18989-18989 IPCThreadState service E Binder transaction failure. id: 152197688, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:23:27.150 18989-18989 IPCThreadState service E Binder transaction failure. id: 152197693, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:23:27.151 18989-18989 IPCThreadState service E Binder transaction failure. id: 152197698, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:23:27.151 18989-18989 IPCThreadState service E Binder transaction failure. id: 152197703, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:23:27.151 18989-18989 IPCThreadState service E Binder transaction failure. id: 152197707, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:23:27.151 18989-18989 IPCThreadState service E Binder transaction failure. id: 152197712, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:23:27.151 18989-18989 IPCThreadState service E Binder transaction failure. id: 152197716, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:23:27.152 18989-18989 IPCThreadState service E Binder transaction failure. id: 152197720, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:23:27.152 18989-18989 IPCThreadState service E Binder transaction failure. id: 152197725, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:23:27.152 18989-18989 IPCThreadState service E Binder transaction failure. id: 152197729, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:23:27.152 18989-18989 IPCThreadState service E Binder transaction failure. id: 152197733, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:23:27.153 18989-18989 IPCThreadState service E Binder transaction failure. id: 152197738, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:23:27.169 18989-18989 IPCThreadState service E Binder transaction failure. id: 152198037, BR_: 29201, error: -1 (Operation not permitted) 1970-01-01 08:00:00.000 0-0 <no-tag> I ---------------------------- PROCESS STARTED (30531) for package com.example.kucun2 ---------------------------- 2025-06-16 01:23:27.698 2479-2931 ActivityTaskManager system_server I Displayed com.example.kucun2/.MainActivity for user 0: +471ms 1970-01-01 08:00:00.000 0-0 <no-tag> I ---------------------------- PROCESS ENDED (30531) for package com.example.kucun2 ---------------------------- 2025-06-16 01:48:24.319 20671-20671 top top W type=1400 audit(0.0:1625176): avc: denied { open } for path=“/proc/stat” dev=“proc” ino=4026532011 scontext=u:r:vivo_daemon:s0 tcontext=u:object_r:proc_stat:s0 tclass=file permissive=0 app=com.taptap 2025-06-16 01:48:24.643 20671-20671 top top W type=1400 audit(0.0:1625177): avc: denied { open } for path=“/proc/stat” dev=“proc” ino=4026532011 scontext=u:r:vivo_daemon:s0 tcontext=u:object_r:proc_stat:s0 tclass=file permissive=0 app=com.taptap 2025-06-16 01:53:05.612 20890-20890 cmd . E BBinder_init Processname cmd 2025-06-16 01:53:05.613 20890-20890 cmd . E BBinder_init hasGetProcessName cmd 2025-06-16 01:53:06.094 20903-20903 Parcel service E Reading a NULL string not supported here. 2025-06-16 01:53:06.106 20903-20903 IPCThreadState service E Binder transaction failure. id: 152463268, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:53:06.106 20903-20903 IPCThreadState service E Binder transaction failure. id: 152463275, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:53:06.107 20903-20903 IPCThreadState service E Binder transaction failure. id: 152463282, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:53:06.107 20903-20903 IPCThreadState service E Binder transaction failure. id: 152463288, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:53:06.108 20903-20903 IPCThreadState service E Binder transaction failure. id: 152463292, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:53:06.108 20903-20903 IPCThreadState service E Binder transaction failure. id: 152463297, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:53:06.108 20903-20903 IPCThreadState service E Binder transaction failure. id: 152463304, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:53:06.109 20903-20903 IPCThreadState service E Binder transaction failure. id: 152463309, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:53:06.109 20903-20903 IPCThreadState service E Binder transaction failure. id: 152463313, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:53:06.109 20903-20903 IPCThreadState service E Binder transaction failure. id: 152463317, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:53:06.110 20903-20903 IPCThreadState service E Binder transaction failure. id: 152463321, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:53:06.110 20903-20903 IPCThreadState service E Binder transaction failure. id: 152463325, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:53:06.111 20903-20903 IPCThreadState service E Binder transaction failure. id: 152463329, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:53:06.111 20903-20903 IPCThreadState service E Binder transaction failure. id: 152463334, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:53:06.112 20903-20903 IPCThreadState service E Binder transaction failure. id: 152463339, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:53:06.115 20903-20903 IPCThreadState service E Binder transaction failure. id: 152463386, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:53:06.116 20903-20903 IPCThreadState service E Binder transaction failure. id: 152463391, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:53:06.118 20903-20903 IPCThreadState service E Binder transaction failure. id: 152463413, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:53:06.118 20903-20903 IPCThreadState service E Binder transaction failure. id: 152463418, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:53:06.119 20903-20903 IPCThreadState service E Binder transaction failure. id: 152463422, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:53:06.121 20903-20903 IPCThreadState service E Binder transaction failure. id: 152463448, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:53:06.122 20903-20903 IPCThreadState service E Binder transaction failure. id: 152463452, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:53:06.122 20903-20903 IPCThreadState service E Binder transaction failure. id: 152463456, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:53:06.131 20903-20903 IPCThreadState service E Binder transaction failure. id: 152463589, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:53:06.131 20903-20903 IPCThreadState service E Binder transaction failure. id: 152463600, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:53:06.133 20903-20903 IPCThreadState service E Binder transaction failure. id: 152463620, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:53:06.133 20903-20903 IPCThreadState service E Binder transaction failure. id: 152463628, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:53:06.134 20903-20903 IPCThreadState service E Binder transaction failure. id: 152463635, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:53:06.134 20903-20903 IPCThreadState service E Binder transaction failure. id: 152463641, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:53:06.134 20903-20903 IPCThreadState service E Binder transaction failure. id: 152463646, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:53:06.135 20903-20903 IPCThreadState service E Binder transaction failure. id: 152463652, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:53:06.135 20903-20903 IPCThreadState service E Binder transaction failure. id: 152463657, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:53:06.135 20903-20903 IPCThreadState service E Binder transaction failure. id: 152463661, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:53:06.136 20903-20903 IPCThreadState service E Binder transaction failure. id: 152463665, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:53:06.136 20903-20903 IPCThreadState service E Binder transaction failure. id: 152463674, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:53:06.137 20903-20903 IPCThreadState service E Binder transaction failure. id: 152463680, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:53:06.142 20903-20903 IPCThreadState service E Binder transaction failure. id: 152463734, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:53:06.142 20903-20903 IPCThreadState service E Binder transaction failure. id: 152463740, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:53:06.143 20903-20903 IPCThreadState service E Binder transaction failure. id: 152463750, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:53:06.144 20903-20903 IPCThreadState service E Binder transaction failure. id: 152463757, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:53:06.144 20903-20903 Parcel service E Reading a NULL string not supported here. 2025-06-16 01:53:06.150 20903-20903 Parcel service E Reading a NULL string not supported here. 2025-06-16 01:53:06.152 20903-20903 IPCThreadState service E Binder transaction failure. id: 152463894, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:53:06.152 20903-20903 Parcel service E Reading a NULL string not supported here. 2025-06-16 01:53:06.154 20903-20903 Parcel service E Reading a NULL string not supported here. 2025-06-16 01:53:06.161 20903-20903 Parcel service E Reading a NULL string not supported here. 2025-06-16 01:53:06.163 20903-20903 Parcel service E Reading a NULL string not supported here. 2025-06-16 01:53:06.165 20903-20903 Parcel service E Reading a NULL string not supported here. 2025-06-16 01:53:06.167 20903-20903 Parcel service E Reading a NULL string not supported here. 2025-06-16 01:53:06.168 20903-20903 Parcel service E Reading a NULL string not supported here. 2025-06-16 01:53:06.172 20903-20903 Parcel service E Reading a NULL string not supported here. 2025-06-16 01:53:06.178 20903-20903 Parcel service E Reading a NULL string not supported here. 2025-06-16 01:53:06.191 20903-20903 Parcel service E Reading a NULL string not supported here. 2025-06-16 01:53:06.193 20903-20903 Parcel service E Reading a NULL string not supported here. 2025-06-16 01:53:06.202 20903-20903 Parcel service E Reading a NULL string not supported here. 2025-06-16 01:53:06.208 20903-20903 Parcel service E Reading a NULL string not supported here. 2025-06-16 01:53:06.233 20903-20903 Parcel service E Reading a NULL string not supported here. 2025-06-16 01:53:06.244 20903-20903 Parcel service E Reading a NULL string not supported here. 2025-06-16 01:53:06.261 20903-20903 Parcel service E Reading a NULL string not supported here. 2025-06-16 01:53:06.265 20903-20903 Parcel service E Reading a NULL string not supported here. 2025-06-16 01:53:06.286 20903-20903 IPCThreadState service E Binder transaction failure. id: 152465315, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:53:06.287 20903-20903 IPCThreadState service E Binder transaction failure. id: 152465319, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:53:06.288 20903-20903 IPCThreadState service E Binder transaction failure. id: 152465323, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:53:06.289 20903-20903 IPCThreadState service E Binder transaction failure. id: 152465327, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:53:06.292 20903-20903 IPCThreadState service E Binder transaction failure. id: 152465341, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:53:06.293 20903-20903 IPCThreadState service E Binder transaction failure. id: 152465345, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:53:06.293 20903-20903 IPCThreadState service E Binder transaction failure. id: 152465349, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:53:06.294 20903-20903 IPCThreadState service E Binder transaction failure. id: 152465353, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:53:06.295 20903-20903 IPCThreadState service E Binder transaction failure. id: 152465357, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:53:06.295 20903-20903 IPCThreadState service E Binder transaction failure. id: 152465361, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:53:06.296 20903-20903 IPCThreadState service E Binder transaction failure. id: 152465365, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:53:06.296 20903-20903 IPCThreadState service E Binder transaction failure. id: 152465369, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:53:06.297 20903-20903 IPCThreadState service E Binder transaction failure. id: 152465373, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:53:06.297 20903-20903 IPCThreadState service E Binder transaction failure. id: 152465377, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:53:06.298 20903-20903 IPCThreadState service E Binder transaction failure. id: 152465381, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:53:06.299 20903-20903 IPCThreadState service E Binder transaction failure. id: 152465385, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:53:06.299 20903-20903 IPCThreadState service E Binder transaction failure. id: 152465389, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:53:06.300 20903-20903 IPCThreadState service E Binder transaction failure. id: 152465393, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:53:06.301 20903-20903 IPCThreadState service E Binder transaction failure. id: 152465402, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:53:06.302 20903-20903 IPCThreadState service E Binder transaction failure. id: 152465406, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:53:06.303 20903-20903 IPCThreadState service E Binder transaction failure. id: 152465410, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:53:06.310 20903-20903 IPCThreadState service E Binder transaction failure. id: 152465449, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:53:06.311 20903-20903 IPCThreadState service E Binder transaction failure. id: 152465458, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:53:06.312 20903-20903 IPCThreadState service E Binder transaction failure. id: 152465462, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:53:06.314 20903-20903 IPCThreadState service E Binder transaction failure. id: 152465471, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:53:06.315 20903-20903 IPCThreadState service E Binder transaction failure. id: 152465475, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:53:06.315 20903-20903 IPCThreadState service E Binder transaction failure. id: 152465479, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:53:06.316 20903-20903 IPCThreadState service E Binder transaction failure. id: 152465483, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:53:06.317 20903-20903 IPCThreadState service E Binder transaction failure. id: 152465487, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:53:06.318 20903-20903 IPCThreadState service E Binder transaction failure. id: 152465491, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:53:06.319 20903-20903 IPCThreadState service E Binder transaction failure. id: 152465495, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:53:06.320 20903-20903 IPCThreadState service E Binder transaction failure. id: 152465499, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:53:06.321 20903-20903 IPCThreadState service E Binder transaction failure. id: 152465503, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:53:06.321 20903-20903 IPCThreadState service E Binder transaction failure. id: 152465507, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:53:06.322 20903-20903 IPCThreadState service E Binder transaction failure. id: 152465511, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:53:06.337 20903-20903 IPCThreadState service E Binder transaction failure. id: 152465610, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:53:06.338 20903-20903 IPCThreadState service E Binder transaction failure. id: 152465614, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:53:06.339 20903-20903 IPCThreadState service E Binder transaction failure. id: 152465618, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:53:06.340 20903-20903 IPCThreadState service E Binder transaction failure. id: 152465622, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:53:06.340 20903-20903 IPCThreadState service E Binder transaction failure. id: 152465626, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:53:06.341 20903-20903 IPCThreadState service E Binder transaction failure. id: 152465630, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:53:06.342 20903-20903 IPCThreadState service E Binder transaction failure. id: 152465634, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:53:06.343 20903-20903 IPCThreadState service E Binder transaction failure. id: 152465638, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:53:06.344 20903-20903 IPCThreadState service E Binder transaction failure. id: 152465642, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:53:06.345 20903-20903 IPCThreadState service E Binder transaction failure. id: 152465646, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:53:06.345 20903-20903 IPCThreadState service E Binder transaction failure. id: 152465650, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:53:06.346 20903-20903 IPCThreadState service E Binder transaction failure. id: 152465654, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:53:06.347 20903-20903 IPCThreadState service E Binder transaction failure. id: 152465658, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:53:06.347 20903-20903 IPCThreadState service E Binder transaction failure. id: 152465662, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:53:06.348 20903-20903 IPCThreadState service E Binder transaction failure. id: 152465666, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:53:06.349 20903-20903 IPCThreadState service E Binder transaction failure. id: 152465670, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:53:06.350 20903-20903 IPCThreadState service E Binder transaction failure. id: 152465674, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:53:06.350 20903-20903 IPCThreadState service E Binder transaction failure. id: 152465678, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:53:06.351 20903-20903 IPCThreadState service E Binder transaction failure. id: 152465682, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:53:06.352 20903-20903 IPCThreadState service E Binder transaction failure. id: 152465691, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:53:06.353 20903-20903 IPCThreadState service E Binder transaction failure. id: 152465695, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:53:06.354 20903-20903 IPCThreadState service E Binder transaction failure. id: 152465699, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:53:06.354 20903-20903 IPCThreadState service E Binder transaction failure. id: 152465703, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:53:06.355 20903-20903 IPCThreadState service E Binder transaction failure. id: 152465707, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:53:06.356 20903-20903 IPCThreadState service E Binder transaction failure. id: 152465711, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:53:06.357 20903-20903 IPCThreadState service E Binder transaction failure. id: 152465715, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:53:06.358 20903-20903 IPCThreadState service E Binder transaction failure. id: 152465724, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:53:06.359 20903-20903 IPCThreadState service E Binder transaction failure. id: 152465728, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:53:06.359 20903-20903 IPCThreadState service E Binder transaction failure. id: 152465732, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:53:06.362 20903-20903 IPCThreadState service E Binder transaction failure. id: 152465741, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:53:06.363 20903-20903 IPCThreadState service E Binder transaction failure. id: 152465745, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:53:06.363 20903-20903 IPCThreadState service E Binder transaction failure. id: 152465749, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:53:06.364 20903-20903 IPCThreadState service E Binder transaction failure. id: 152465753, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:53:06.366 20903-20903 IPCThreadState service E Binder transaction failure. id: 152465767, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:53:06.367 20903-20903 IPCThreadState service E Binder transaction failure. id: 152465771, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:53:06.368 20903-20903 IPCThreadState service E Binder transaction failure. id: 152465775, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:53:06.369 20903-20903 IPCThreadState service E Binder transaction failure. id: 152465779, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:53:06.369 20903-20903 IPCThreadState service E Binder transaction failure. id: 152465783, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:53:06.370 20903-20903 IPCThreadState service E Binder transaction failure. id: 152465787, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:53:06.371 20903-20903 IPCThreadState service E Binder transaction failure. id: 152465791, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:53:06.372 20903-20903 IPCThreadState service E Binder transaction failure. id: 152465795, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:53:06.372 20903-20903 IPCThreadState service E Binder transaction failure. id: 152465799, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:53:06.373 20903-20903 IPCThreadState service E Binder transaction failure. id: 152465803, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:53:06.374 20903-20903 IPCThreadState service E Binder transaction failure. id: 152465807, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:53:06.375 20903-20903 IPCThreadState service E Binder transaction failure. id: 152465811, BR_: 29201, error: -1 (Operation not permitted) 2025-06-16 01:53:06.375 20903-20903 IPCThreadState service E Binder transaction failure. id: 152465815, BR_: 29201, error: -1 (Operation not permitted)package com.example.kucun2.entity.data; import android.content.Context; import android.content.SharedPreferences; import android.os.Handler; import android.os.Looper; import android.util.Log; import com.example.kucun2.entity.; import com.example.kucun2.function.MyAppFnction; import com.example.kucun2.function.SafeLogger; import com.google.gson.Gson; import com.google.gson.GsonBuilder; import com.google.gson.JsonDeserializationContext; import com.google.gson.JsonDeserializer; import com.google.gson.JsonElement; import com.google.gson.JsonObject; import com.google.gson.JsonParseException; import com.google.gson.JsonSerializationContext; import com.google.gson.JsonSerializer; import com.google.gson.reflect.TypeToken; import java.io.IOException; import java.lang.reflect.; import java.util.; import java.util.concurrent.ConcurrentHashMap; import java.util.stream.Collectors; import okhttp3.; /** 核心数据管理中心 职责: 管理所有实体类的全局存储列表 处理网络数据加载与本地持久化 维护实体间关联关系 管理数据同步状态 优化点: 使用ConcurrentHashMap提升线程安全 重构关联逻辑避免反射开销 增强序列化/反序列化处理 添加详细方法级注释 */ public class Data { // ====================== 实体存储区 ====================== // 所有实体列表使用线程安全的SynchronizedList // ====================== 静态数据列表声明 ====================== public static final SynchronizedList<Bancai> bancais = new SynchronizedList<>(Bancai.class); public static final SynchronizedList<Caizhi> caizhis = new SynchronizedList<>(Caizhi.class); public static final SynchronizedList<Mupi> mupis = new SynchronizedList<>(Mupi.class); public static final SynchronizedList<Chanpin> chanpins = new SynchronizedList<>(Chanpin.class); public static final SynchronizedList<Chanpin_Zujian> chanpin_zujians = new SynchronizedList<>(Chanpin_Zujian.class); public static final SynchronizedList<Dingdan> dingdans = new SynchronizedList<>(Dingdan.class); public static final SynchronizedList<Dingdan_Chanpin> dingdan_chanpins = new SynchronizedList<>(Dingdan_Chanpin.class); public static final SynchronizedList<Dingdan_chanpin_zujian> Dingdan_chanpin_zujians = new SynchronizedList<>(Dingdan_chanpin_zujian.class); public static final SynchronizedList<Kucun> kucuns = new SynchronizedList<>(Kucun.class); public static final SynchronizedList<Zujian> zujians = new SynchronizedList<>(Zujian.class); public static final SynchronizedList<User> users = new SynchronizedList<>(User.class); public static final SynchronizedList<Jinhuo> jinhuos = new SynchronizedList<>(Jinhuo.class); private static User user; // 实体类型与列表的映射表 <实体类, 对应的同步列表> public static final Map<Class, SynchronizedList<SynchronizableEntity>> dataCollectionMap = new ConcurrentHashMap<>();; private static final Gson gson = GsonFactory.createGson(); private static OkHttpClient client; private static final String TAG = “DataLoader”; // 静态初始化:建立实体类型与列表的映射关系 static { try { // 通过反射获取所有SynchronizedList字段 for (Field field : Data.class.getDeclaredFields()) { if (SynchronizedList.class.equals(field.getType())) { SynchronizedList<?> list = (SynchronizedList<?>) field.get(null); if (list != null) { // 将实体类型与列表关联 dataCollectionMap.put(list.getEntityType(), (SynchronizedList<SynchronizableEntity>) list); } } } } catch (IllegalAccessException e) { throw new RuntimeException(“初始化dataCollectionMap失败”, e); } } // ====================== 核心数据加载方法 ====================== /** 从服务器加载全量数据 @param context Android上下文 @param callback 加载结果回调 */ public static void loadAllData(Context context, LoadDataCallback callback) { // 主线程检查 if (Looper.myLooper() != Looper.getMainLooper()) { throw new IllegalStateException(“必须在主线程调用Data.loadAllData”); } ensurePreservedObjects(); // 确保存在预置对象 // 使用传入的 Context 获取主线程 Handler Handler mainHandler = new Handler(context.getMainLooper()); // 确保使用安全的客户端 if (client == null) { client = MyAppFnction.getClient(); } SynchronizableEntity.setSyncEnabled(false); String url = MyAppFnction.getStringResource(“string”, “url”) + MyAppFnction.getStringResource(“string”, “url_all”); Request request = new Request.Builder().url(url).build(); client.newCall(request).enqueue(new Callback() { @Override public void onFailure(Call call, IOException e) { Log.e(TAG, “Failed to load data”, e); SynchronizableEntity.setSyncEnabled(true); mainHandler.post(() -> { if (callback != null) callback.onFailure(); }); } @Override public void onResponse(Call call, Response response) throws IOException { if (!response.isSuccessful()) { Log.e(TAG, "Unexpected response code: " + response.code()); SynchronizableEntity.setSyncEnabled(true); mainHandler.post(() -> { if (callback != null) callback.onFailure(); }); return; } String responseData = response.body().string(); SynchronizableEntity.setSyncEnabled(true); ensurePreservedObjects(); // 在主线程处理解析 mainHandler.post(() -> { parseAndAssignData(responseData, context, callback); }); } }); } // ====================== 数据处理私有方法 ====================== /** 解析JSON数据并更新到实体列表 */ private static void parseAndAssignData(String jsonData, Context context, LoadDataCallback callback) { try { // 解析顶层响应结构 Type responseType = new TypeToken<Information<AllDataResponse>>() {}.getType(); Information<AllDataResponse> info = gson.fromJson(jsonData, responseType); Log.d(TAG, "parseAndAssignData: "+jsonData); // 验证响应有效性 if (info == null || info.getData() == null || info.getStatus() != 200) { throw new IllegalStateException(“无效服务器响应”); } AllDataResponse allData = info.getData(); SafeLogger.d("data", "原始数据: " + gson.toJson(allData)); // 更新所有数据列表 updateAllLists(allData); automaticAssociation(); // 建立实体关联 setAllEntitiesState(SynchronizableEntity.SyncState.MODIFIED); // 设置状态 safeCallback(callback, true); // 成功回调 } catch (Exception e) { Log.e(TAG, "数据处理异常: " + e.getMessage()); safeCallback(callback, false); } finally { SynchronizableEntity.setSyncEnabled(true); // 重新启用同步 } } /** 批量更新所有实体列表 */ private static void updateAllLists(AllDataResponse allData) { updateList(bancais, allData.bancais); updateList(caizhis, allData.caizhis); updateList(mupis, allData.mupis); updateList(chanpins, allData.chanpins); updateList(chanpin_zujians, allData.chanpin_zujians); updateList(dingdans, allData.dingdans); updateList(dingdan_chanpins, allData.dingdan_chanpins); updateList(Dingdan_chanpin_zujians, allData.Dingdan_chanpin_zujians); updateList(kucuns, allData.kucuns); updateList(zujians, allData.zujians); updateList(users, allData.users); updateList(jinhuos, allData.jinhuos); } /** 安全更新单个列表(保留预置对象) */ private static <T extends SynchronizableEntity> void updateList( List<T> existingList, List<T> newList ) { if (newList == null) return; // 保留现有列表中的预置对象 List<T> preservedItems = existingList.stream() .filter(item -> item != null && item.isPreservedObject()) .collect(Collectors.toList()); // 清空后重新添加(预置对象 + 有效新数据) existingList.clear(); existingList.addAll(preservedItems); existingList.addAll(newList.stream() .filter(item -> item != null && item.getId() != null && item.getId() != -1) .collect(Collectors.toList()) ); } /** 确保每个列表都有预置对象(用于表示空值/默认值) */ private static void ensurePreservedObjects() { // 为每个实体类型检查并添加预置对象 addIfMissing(bancais, Bancai.class); addIfMissing(caizhis, Caizhi.class); addIfMissing(mupis, Mupi.class); addIfMissing(chanpins, Chanpin.class); addIfMissing(chanpin_zujians, Chanpin_Zujian.class); addIfMissing(dingdans, Dingdan.class); addIfMissing(kucuns, Kucun.class); addIfMissing(zujians, Zujian.class); addIfMissing(Dingdan_chanpin_zujians, Dingdan_chanpin_zujian.class); addIfMissing(dingdan_chanpins, Dingdan_Chanpin.class); addIfMissing(jinhuos, Jinhuo.class); addIfMissing(users, User.class); } private static <T extends SynchronizableEntity> void addIfMissing( List<T> list, Class<T> clazz ) { if (!containsPreservedObject(list)) { list.add(createInstance(clazz)); } } /** 检查列表是否包含预置对象 @param list 目标实体列表 @return 是否包含预置对象 / private static <T extends SynchronizableEntity> boolean containsPreservedObject(List<T> list) { return list.stream().anyMatch(item -> item != null && item.isPreservedObject() ); } /* 自动建立实体间关联关系(通过反射实现) */ private static void automaticAssociation() { for (Class<?> entityClass : dataCollectionMap.keySet()) { try { associateEntities(dataCollectionMap.get(entityClass)); } catch (Exception e) { Log.e(TAG, entityClass.getSimpleName() + " 关联失败", e); } } } private static <T extends SynchronizableEntity> void associateEntities( SynchronizedList<T> list ) throws IllegalAccessException, ClassNotFoundException { for (T entity : list) { if (entity == null) continue; for (Field field : entity.getClass().getDeclaredFields()) { field.setAccessible(true); Class<?> fieldType = field.getType(); // 处理实体引用字段 if (SynchronizableEntity.class.isAssignableFrom(fieldType)) { associateSingleReference(entity, field); } // 处理实体列表字段 else if (List.class.isAssignableFrom(fieldType)) { associateReferenceList(entity, field); } // 处理基础类型字段 else { setDefaultPrimitiveValue(entity, field); } } } } // ====================== 关联辅助方法 ====================== private static void associateSingleReference( SynchronizableEntity entity, Field field ) throws IllegalAccessException { SynchronizableEntity ref = (SynchronizableEntity) field.get(entity); Class<?> targetType = field.getType(); // 查找目标实体 SynchronizableEntity target = findTargetEntity(ref, targetType); field.set(entity, target); } private static void associateReferenceList( SynchronizableEntity entity, Field field ) throws IllegalAccessException, ClassNotFoundException { // 获取列表泛型类型 Type genericType = field.getGenericType(); if (!(genericType instanceof ParameterizedType)) return; Class<?> itemType = Class.forName( ((ParameterizedType) genericType).getActualTypeArguments()[0].getTypeName() ); // 只处理实体列表 if (!SynchronizableEntity.class.isAssignableFrom(itemType)) return; List<SynchronizableEntity> refList = (List<SynchronizableEntity>) field.get(entity); if (refList == null) { refList = new ArrayList<>(); field.set(entity, refList); } // 清理空值并重建引用 refList.removeAll(Collections.singleton(null)); for (int i = 0; i < refList.size(); i++) { refList.set(i, findTargetEntity(refList.get(i), itemType)); } } /** 查找关联实体(优先匹配ID,找不到则使用预置对象) */ private static SynchronizableEntity findTargetEntity( SynchronizableEntity ref, Class<?> targetType ) { SynchronizedList<SynchronizableEntity> targetList = dataCollectionMap.get(targetType); if (targetList == null) return null; // 无效引用时返回预置对象 if (ref == null || ref.getId() == null || ref.getId() < 0) { return targetList.stream() .filter(SynchronizableEntity::isPreservedObject) .findFirst().orElse(null); } // 按ID查找目标实体 return targetList.stream() .filter(e -> ref.getId().equals(e.getId())) .findFirst() .orElseGet(() -> targetList.stream() // 找不到时回退到预置对象 .filter(SynchronizableEntity::isPreservedObject) .findFirst().orElse(null) ); } // ====================== 工具方法 ====================== /** 创建带默认值的实体实例(用作预置对象) */ public static <T> T createInstance(Class<T> clazz) { try { T instance = clazz.getDeclaredConstructor().newInstance(); // 设置基础字段默认值 for (Field field : clazz.getDeclaredFields()) { field.setAccessible(true); setDefaultFieldValue(instance, field); } // 设置特殊字段 clazz.getMethod("setId", Integer.class).invoke(instance, -1); clazz.getMethod("setState", SynchronizableEntity.SyncState.class) .invoke(instance, SynchronizableEntity.SyncState.PRESERVED); return instance; } catch (Exception e) { Log.e(“Data”, "创建实例失败: " + clazz.getName(), e); try { return clazz.newInstance(); // 回退创建 } catch (Exception ex) { throw new RuntimeException(“无法创建实例”, ex); } } } private static <T> void setDefaultFieldValue(T instance, Field field) throws IllegalAccessException { Class<?> type = field.getType(); if (type == String.class) field.set(instance, "无"); else if (type == Integer.class || type == int.class) field.set(instance, -1); else if (type == Double.class || type == double.class) field.set(instance, -1.0); else if (type == Boolean.class || type == boolean.class) field.set(instance, false); else if (type == Date.class) field.set(instance, new Date()); else if (SynchronizableEntity.class.isAssignableFrom(type)) { field.set(instance, getPreservedEntity((Class<?>) type)); } else if (List.class.isAssignableFrom(type)) { field.set(instance, new ArrayList<>()); } } private static SynchronizableEntity getPreservedEntity(Class<?> type) { return dataCollectionMap.get(type).stream() .filter(SynchronizableEntity::isPreservedObject) .findFirst().orElse(null); } private static void setDefaultPrimitiveValue( SynchronizableEntity entity, Field field ) throws IllegalAccessException { if (field.get(entity) != null) return; Class<?> type = field.getType(); if (type == String.class) field.set(entity, "无"); else if (type == Integer.class || type == int.class) field.set(entity, -1); else if (type == Double.class || type == double.class) field.set(entity, -1.0); else if (type == Boolean.class || type == boolean.class) field.set(entity, false); else if (type == Date.class) field.set(entity, new Date()); } /** 主线程安全回调 */ private static void safeCallback(LoadDataCallback callback, boolean success) { new Handler(Looper.getMainLooper()).post(() -> { if (callback == null) return; if (success) callback.onSuccess(); else callback.onFailure(); }); } /** 设置所有实体同步状态 */ private static void setAllEntitiesState(SynchronizableEntity.SyncState state) { dataCollectionMap.values().forEach(list -> list.forEach(entity -> { if (entity != null) entity.setState(state); }) ); } public static String exportToJson() { ExportData exportData = new ExportData(); exportData.bancais = new ArrayList<>(bancais); exportData.caizhis = new ArrayList<>(caizhis); // 初始化其他列表… Gson gson = new GsonBuilder() .setPrettyPrinting() .registerTypeAdapter(SynchronizableEntity.class, new EntitySerializer()) .create(); return gson.toJson(exportData); } public static void importFromJson(String json, Context context) { Gson gson = new GsonBuilder() .registerTypeAdapter(SynchronizableEntity.class, new EntityDeserializer()) .create(); Type exportType = new TypeToken<ExportData>(){}.getType(); ExportData importData = gson.fromJson(json, exportType); // 更新数据列表 updateList(bancais, importData.bancais); updateList(caizhis, importData.caizhis); // 更新其他列表... automaticAssociation(); setAllEntitiesState(SynchronizableEntity.SyncState.MODIFIED); // 保存到SharedPreferences saveToPreferences(context, json); } private static void saveToPreferences(Context context, String json) { SharedPreferences prefs = context.getSharedPreferences(“DataStore”, Context.MODE_PRIVATE); prefs.edit().putString(“jsonData”, json).apply(); } public static void loadFromPreferences(Context context) { SharedPreferences prefs = context.getSharedPreferences(“DataStore”, Context.MODE_PRIVATE); String json = prefs.getString(“jsonData”, null); if (json != null) { importFromJson(json, context); } } // ====================== 内部类/接口 ====================== public interface LoadDataCallback { void onSuccess(); void onFailure(); } /** JSON响应数据结构 */ public static class AllDataResponse { public List<Bancai> bancais; public List<Caizhi> caizhis; public List<Mupi> mupis; public List<Chanpin> chanpins; public List<Chanpin_Zujian> chanpin_zujians; public List<Dingdan> dingdans; public List<Dingdan_Chanpin> dingdan_chanpins; public List<Dingdan_chanpin_zujian> Dingdan_chanpin_zujians; public List<Kucun> kucuns; public List<Zujian> zujians; public List<User> users; public List<Jinhuo> jinhuos; } // 在Data.java中添加 public static class ExportData { public List<Bancai> bancais; public List<Caizhi> caizhis; public List<Mupi> mupis; public List<Chanpin> chanpins; public List<Chanpin_Zujian> chanpin_zujians; public List<Dingdan> dingdans; public List<Dingdan_Chanpin> dingdan_chanpins; public List<Dingdan_chanpin_zujian> Dingdan_chanpin_zujians; public List<Kucun> kucuns; public List<Zujian> zujians; public List<User> users; public List<Jinhuo> jinhuos; } private static class EntityDeserializer implements JsonDeserializer<SynchronizableEntity> { @Override public SynchronizableEntity deserialize(JsonElement json, Type typeOfT, JsonDeserializationContext context) throws JsonParseException { JsonObject obj = json.getAsJsonObject(); String entityType = obj.get(“entityType”).getAsString(); Integer id = obj.get(“id”).getAsInt(); // 创建临时实体(只包含ID) try { Class<?> clazz = Class.forName("com.example.kucun2.entity." + entityType); SynchronizableEntity entity = (SynchronizableEntity) clazz.newInstance(); entity.setId(id); return entity; } catch (Exception e) { return null; } } } private static class EntitySerializer implements JsonSerializer<SynchronizableEntity> { @Override public JsonElement serialize(SynchronizableEntity src, Type typeOfSrc, JsonSerializationContext context) { JsonObject obj = new JsonObject(); obj.addProperty(“id”, src.getId()); obj.addProperty(“entityType”, src.getClass().getSimpleName()); return obj; } } }
最新发布
06-17
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值