首页
社区
课程
招聘
[求助]有没有大神指导MemMapping结构体在哪里定义的
发表于: 2021-1-19 23:31 2271

[求助]有没有大神指导MemMapping结构体在哪里定义的

2021-1-19 23:31
2271

在用substrate hook libdvm中的函数,里面有个dvmDex 结构体,其他的结构体都找到了,就是memmapping结构体没看到在哪个文件里, Dalvik, 内核源码,ndk都翻了下。有没有大神知道的告诉下,多谢。

 

/*

  • Some additional VM data structures that are associated with the DEX file.
    /
    struct DvmDex {
    /
    pointer to the DexFile we're associated with /
    DexFile
    pDexFile;

    / clone of pDexFile->pHeader (it's used frequently enough) /
    const DexHeader* pHeader;

    / interned strings; parallel to "stringIds" /
    struct StringObject** pResStrings;

    / resolved classes; parallel to "typeIds" /
    struct ClassObject** pResClasses;

    / resolved methods; parallel to "methodIds" /
    struct Method** pResMethods;

    / resolved instance fields; parallel to "fieldIds" /
    / (this holds both InstField and StaticField) /
    struct Field** pResFields;

    / interface method lookup cache /
    struct AtomicCache* pInterfaceCache;

    / shared memory region with file contents /
    bool isMappedReadOnly;
    MemMapping memMap;

    jobject dex_object;

    / lock ensuring mutual exclusion during updates /
    pthread_mutex_t modLock;
    };

    图片描述


[课程]FART 脱壳王!加量不加价!FART作者讲授!

收藏
免费 0
支持
分享
最新回复 (3)
雪    币: 6581
活跃值: (2753)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
2
/bootable/recovery/minzip/SysUtil.h 
typedef struct MemMapping {
17    void*   addr;           /* start of data */
18    size_t  length;         /* length of data */
19
20    void*   baseAddr;       /* page-aligned base address */
21    size_t  baseLength;     /* length of mapping */
22} MemMapping;
2021-1-20 18:32
1
雪    币: 2153
活跃值: (5347)
能力值: ( LV8,RANK:146 )
在线值:
发帖
回帖
粉丝
3

https://cs.android.com/android/platform/superproject/+/android-4.4.4_r2:bootable/recovery/minzip/SysUtil.h

最后于 2021-1-20 19:44 被Simp1er编辑 ,原因:
2021-1-20 19:30
2
雪    币: 199
活跃值: (93)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
4
xianhuimin /bootable/recovery/minzip/SysUtil.h typedef struct MemMapping { 17 void* addr; /* ...

成功 ,多谢楼上二位




2021-1-20 22:04
0
游客
登录 | 注册 方可回帖
返回
//