jakev / dtfmods-core

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

Oatdextract Input File Overwrite #2

Closed jakev closed 9 years ago

jakev commented 9 years ago

Affected Module(s): oatdextract

The oatdextract module will overwrite the input file if the input file is named the same as the output. By default, a framework called "com.my.framework.odex" will be overwritten if the tool is run as:

$ dtf oatdextract com.my.framework.odex

jakev commented 9 years ago
$ dtf oatdextract wm.odex
[Sat Jun 06 17:18:23 EDT 2015] oatdextract/E - The output file './wm.odex' already exists! Not saving!
[Sat Jun 06 17:18:23 EDT 2015] oatdextract/I - DEX carving aborted.

This prevents the module from actually overwriting the output file, but it's a bit annoying that you can't explicitly specify the output file name (just the 'base-name'). Regardless, marking as closed since the bug itself is fixed: https://github.com/jakev/dtfmods-core/commit/740be56d4870ca29b8d3a0f443ada137ea9bf6d0