Posts Parcel源码分析
Post
Cancel

Parcel源码分析

Parcel.java

1
2
//frameworks/base/core/java/android/os/Parcel.java

1
2
3
4
5
6
7
8
9
//frameworks/base/core/jni/android_os_Parcel.cpp
static jobject android_os_Parcel_readStrongBinder(JNIEnv* env, jclass clazz, jlong nativePtr)
{
    Parcel* parcel = reinterpret_cast<Parcel*>(nativePtr);
    if (parcel != NULL) {
        return javaObjectForIBinder(env, parcel->readStrongBinder());
    }
    return NULL;
}
1
2
//frameworks/base/core/jni/android_os_Parcel.cpp

This post is licensed under CC BY 4.0 by the author.

获取ServiceManager

AMS分析

Comments powered by Disqus.