jakev / dtfmods-core

Core content for Android device testing
Apache License 2.0
6 stars 2 forks source link

`unframework` doesn't add all frameworks (ART only) #15

Closed jakev closed 9 years ago

jakev commented 9 years ago

Affected module(s): getframeworks, unframework, frameworkdb. frameworkdexdb

On Lollipop with ART, the directory "/system/framework/" is not a definitive list of frameworks. The "arm(64)?/" sub-directory has the "boot.oat" file, which will have the remaining frameworks.

As it is now, getframeworks will pull everything from "/system/framework/", and unframework is responsible for doing the extraction of the OAT files from "boot.oat", but it does this to the "unframework/" directory.

frameworkdb relies on the *.jar files in the "frameworks/" directory, but this isn't really a good approach, since things like "framework2" do not have a JAR for ART.

There needs to be a operation that actually makes changes to the "frameworks/" directory, much like sysappdb oatextract, or frameworkdb needs to have a better approach for generating it's listing.

jakev commented 9 years ago

Added: https://github.com/jakev/dtfmods-core/commit/82beaaefb5bec95d77b8b25f3d145b6b61332304