From 2ac33fd5e7385dae9d966417b3d5bc89da500ac1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ryszard=20Wi=C5=9Bniewski?= Date: Tue, 3 May 2011 13:12:28 +0200 Subject: [PATCH] Sort framework ids before storing them in apktool.yml . aapt command requires your to include frameworks in order. --- apktool-lib/src/main/java/brut/androlib/ApkDecoder.java | 1 + 1 file changed, 1 insertion(+) diff --git a/apktool-lib/src/main/java/brut/androlib/ApkDecoder.java b/apktool-lib/src/main/java/brut/androlib/ApkDecoder.java index 4c4587c5..8d74e5cb 100644 --- a/apktool-lib/src/main/java/brut/androlib/ApkDecoder.java +++ b/apktool-lib/src/main/java/brut/androlib/ApkDecoder.java @@ -208,6 +208,7 @@ public class ApkDecoder { for (ResPackage pkg : pkgs) { ids[i++] = pkg.getId(); } + Arrays.sort(ids); Map uses = new LinkedHashMap(); uses.put("ids", ids);