ale5000-git / tingle

Tingle - Android patcher
http://forum.xda-developers.com/showthread.php?t=3438764
GNU General Public License v3.0
160 stars 11 forks source link

framework.jar is tiny #36

Closed JonnyTech closed 7 years ago

JonnyTech commented 7 years ago

My new ROM contains a very small framework.jar file:

user@computer:/mnt/img/framework$ find . -ls |grep framework
      826   4344 -rw-r--r--   1 root     root      4448256 Dec 31  2008 ./arm/boot-framework.art
      827  36716 -rw-r--r--   1 root     root     37595032 Dec 31  2008 ./arm/boot-framework.oat
      832     28 -rw-r--r--   1 root     root        28672 Dec 31  2008 ./arm/boot-mediatek-framework.art
      833    276 -rw-r--r--   1 root     root       280812 Dec 31  2008 ./arm/boot-mediatek-framework.oat
      859   6560 -rw-r--r--   1 root     root      6717440 Dec 31  2008 ./arm64/boot-framework.art
      860  42756 -rw-r--r--   1 root     root     43778800 Dec 31  2008 ./arm64/boot-framework.oat
      865     36 -rw-r--r--   1 root     root        36864 Dec 31  2008 ./arm64/boot-mediatek-framework.art
      866    288 -rw-r--r--   1 root     root       293280 Dec 31  2008 ./arm64/boot-mediatek-framework.oat
      896  19668 -rw-r--r--   1 root     root     20137075 Dec 31  2008 ./framework-res.apk
      897      4 -rw-r--r--   1 root     root          126 Dec 31  2008 ./framework.jar
      905      4 -rw-r--r--   1 root     root          310 Dec 31  2008 ./mediatek-framework.jar

Running tingle:

user@computer:/tmp/tingle-master$ ./main.py 
MENU

    1 - Patch file from a device (adb)
    2 - Patch file from the input folder

> 1

 *** OS: Linux 4.11.0-1-amd64 (linux)
 *** Python: 2.7.13 (64 bit)
 *** Mode: 1
 *** Working dir: /tmp/Tingle-_lXrCz
 *** Selected device: CE7P8LKRZHAAYLCI
 *** Pulling framework from device...
      DEBUG: [100%] /system/framework/framework.jar
 *** Device SDK: 24
 *** Decompressing framework...
      DEBUG: Decompressing framework.jar
 *** Disassembling classes...

ERROR: No dex file(s) found, probably the ROM is odexed.

ERROR CODE: 86
user@computer:/tmp/tingle-master$ 

There are no .odex files. What am I doing wrong?

ale5000-git commented 7 years ago

I really have to write a wiki about this :)

The .odex files are no longer used for the odexed ROM, so looking for them is pointless. It is safer to look in the opposite way, extract framework.jar and if you do not find a dex file then the ROM is odexed and you have to deodex it.

JonnyTech commented 7 years ago

Thanks, can you recommend a tool for deodexing? I cannot find any that work with Linux for Nougat.

ale5000-git commented 7 years ago

Look at here: #10.

JonnyTech commented 7 years ago

Thanks, but that is a Windows tool :(

ale5000-git commented 7 years ago

Unfortunately I don't know and I don't have an odexed ROM to test, but in the future (no ETA yet) I will write a tool to deodex.

JonnyTech commented 7 years ago

Thanks again, I shall try something else then. To clarify, what is the difference or benefits of odexed vs deodexed?

ale5000-git commented 7 years ago

For me there is mostly no benefit at all.

On first run:

On second run and others run:

So just for taking less time on first run we incur in a lot of additional problems.

ale5000-git commented 6 years ago

Duplicate of #2.