mirror of
https://github.com/morluto/rea
synced 2026-10-28 15:07:26 -04:00
7e8f7f6101
Extend static manifest declarations and retain precise source locations and historical unknowns. Share bounded selected component views across CLI and MCP with complete parent Evidence. Verified real ApiDemos, an AAPT2-built fixture, legacy Evidence, default-package metadata and relevant CLI/MCP contracts. Recorded whole-task token estimates, timing/resource limits and independent main-failure controls in the PR. Co-authored-by: Harsh <johiyaharsh@gmail.com>
16 lines
548 B
Java
16 lines
548 B
Java
import com.android.tools.smali.smali.Smali;
|
|
import com.android.tools.smali.smali.SmaliOptions;
|
|
import java.util.List;
|
|
|
|
/** Assemble the local fixture without Smali CLI's optional JCommander dependency. */
|
|
class BuildDex {
|
|
public static void main(String[] args) throws Exception {
|
|
SmaliOptions options = new SmaliOptions();
|
|
options.apiLevel = 30;
|
|
options.jobs = 1;
|
|
options.outputDexFile = args[1];
|
|
if (!Smali.assemble(options, List.of(args[0])))
|
|
throw new IllegalStateException("Manifest fixture assembly failed");
|
|
}
|
|
}
|