Home Ask Login Register

Developers Planet

Your answer is one click away!

Simone Aonzo 2 weeks ago

What is the path of OAT file in Android 7?

There is a similar question: What is the path of OAT file in Android 5.0

But Android 7, in the same path:

/data/dalvik-cache/<ARCH>/

I can't find the user-installed app, but only the system ones.

Where can I find the oat file generated by the normal installation of an app?

Answers


Simone Aonzo 2 weeks ago

I found the oat file generated by the normal installation of an app in:

/data/app/<PACKAGE_NAME>/oat/<ARCH>/base.odex

And I verified that is an oat file running (on my machine, not in Android) the command:

$ readelf -e base.odex 
ELF Header:
  Magic:   7f 45 4c 46 01 01 01 03 00 00 00 00 00 00 00 00 
  Class:                             ELF32
  Data:                              2's complement, little endian
  Version:                           1 (current)
  OS/ABI:                            UNIX - GNU
  ABI Version:                       0
  Type:                              DYN (Shared object file)
  Machine:                           ARM
  Version:                           0x1
  Entry point address:               0x0
  Start of program headers:          52 (bytes into file)
  Start of section headers:          3928128 (bytes into file)
  Flags:                             0x5000000, Version5 EABI
  Size of this header:               52 (bytes)
  Size of program headers:           32 (bytes)
  Number of program headers:         7
  Size of section headers:           40 (bytes)
  Number of section headers:         9
  Section header string table index: 8

Section Headers:
  [Nr] Name              Type            Addr     Off    Size   ES Flg Lk Inf Al
  [ 0]                   NULL            00000000 000000 000000 00      0   0  0
  [ 1] .rodata           PROGBITS        00001000 001000 34f000 00   A  0   0 4096
  [ 2] .text             PROGBITS        00350000 350000 06c3f4 00  AX  0   0 4096
  [ 3] .bss              NOBITS          003bd000 000000 034604 00   A  0   0 4096
  [ 4] .dynstr           STRTAB          003f2000 3bd000 00003d 00   A  0   0 4096
  [ 5] .dynsym           DYNSYM          003f2040 3bd040 000060 10   A  4   0  4
  [ 6] .hash             HASH            003f20a0 3bd0a0 000024 04   A  5   0  4
  [ 7] .dynamic          DYNAMIC         003f3000 3be000 000038 08   A  4   0 4096
  [ 8] 

Post Status

Asked in 2 weeks ago
Viewed 3,170 times
Voted 12
Answered 1 times

Search




Leave an answer


Quote of the day: live life