Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android 12: OAT version 199 does not find DEX files #709

Open
enovella opened this issue May 30, 2022 · 0 comments
Open

Android 12: OAT version 199 does not find DEX files #709

enovella opened this issue May 30, 2022 · 0 comments

Comments

@enovella
Copy link

Is your feature request related to a problem? Please describe.
The OAT file version 199 does not detect DEX files inside the ELF file

Additional context

https://transfer.sh/wcqO6o/boot.img

[18:50 edu@xps boot] >  ipython3
Python 3.8.13 (default, Apr 19 2022, 00:53:22) 
Type 'copyright', 'credits' or 'license' for more information
IPython 8.1.1 -- An enhanced Interactive Python. Type '?' for help.

In [1]: import lief

In [2]: oat = lief.parse("boot.oat")

In [3]: oat.header
Out[3]: <lief.OAT.Header at 0x7f145a215170>

In [4]: oat.header.nb_dex_files
Out[4]: 0

In [5]: for s in oat.dynamic_symbols:
   ...:   print(s)
   ...: 
                              NOTYPE    LOCAL     0         0         
oatdata                       OBJECT    GLOBAL    1000      aa000     
oatexec                       OBJECT    GLOBAL    ab000     0         
oatlastword                   OBJECT    GLOBAL    409d94    4         
oatbss                        OBJECT    GLOBAL    40a000    190       
oatbssmethods                 OBJECT    GLOBAL    40a000    190       
oatbssroots                   OBJECT    GLOBAL    40a190    348       
oatbsslastword                OBJECT    GLOBAL    40a4d4    4         
oatdex                        OBJECT    GLOBAL    40b000    0         
oatdexlastword                OBJECT    GLOBAL    4168e8    4         

In [6]: 

Didn't spend too much time on that, sorry

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant