From ae39555e3c752713ebc05a33a7b682c308dc018d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ryszard=20Wi=C5=9Bniewski?= Date: Thu, 2 May 2013 23:47:26 +0200 Subject: [PATCH] Fixed "b -d" if there are .parameter directives with defined names (e.g.: .parameter "foo") --- .../src/main/java/brut/androlib/src/DebugInjector.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/brut.apktool/apktool-lib/src/main/java/brut/androlib/src/DebugInjector.java b/brut.apktool/apktool-lib/src/main/java/brut/androlib/src/DebugInjector.java index e93ad740..bf17730c 100644 --- a/brut.apktool/apktool-lib/src/main/java/brut/androlib/src/DebugInjector.java +++ b/brut.apktool/apktool-lib/src/main/java/brut/androlib/src/DebugInjector.java @@ -182,6 +182,11 @@ public class DebugInjector { mOut.append(".parameter \"p").append(currParam++).append("\"\n"); return false; } + if (line2.startsWith("parameter")) { + mOut.append(line).append("\n"); + currParam++; + return false; + } append(line); if (line2.equals("end method")) {