[Android-tools-devel] Bug#824925: apktool: runs `w` due to typo in Debian's fork of the wrapper script

Paul Wise pabs at debian.org
Sat May 21 12:24:23 UTC 2016


Package: apktool
Version: 2.1.1+dfsg-1
Severity: normal

It appears as if apktool runs `w` because of a typo in the script,
which was introduced in Debian's fork of the apktool script.

pabs at chianamo ~ $ apktool | head -n 5
 20:13:30 up 1 day, 18:23,  2 users,  load average: 0.35, 0.59, 0.72
USER     TTY      FROM             LOGIN@   IDLE   JCPU   PCPU WHAT
pabs     tty7     :1               Fri01   42:23m  2:10m  0.18s ...
pabs     pts/2    :1               Fri01   42:18m  1:24   1:23  ...
Apktool v2.1.1-dirty - a tool for reengineering Android apk files
pabs at chianamo ~ $ grep -C5 ^w$ /usr/bin/apktool 
javaOpts=""

# If you want DX to have more memory when executing, uncomment the following
# line and adjust the value accordingly. Use "java -X" for a list of options
# you can pass here.
w
#
javaOpts="-Xmx512M -Dfile.encoding=utf-8"

# Alternatively, this will extract any parameter "-Jxxx" from the command line
# and pass them to Java (instead of to dx). This makes it possible for you to
pabs at chianamo ~ $ GET https://github.com/iBotPeaches/Apktool/raw/master/scripts/linux/apktool | grep -C5 ^w$
pabs at chianamo ~ $ GET https://sources.debian.net/data/main/a/apktool/2.1.1+dfsg-1/scripts/linux/apktool | grep -C5 ^w$
pabs at chianamo ~ $ GET https://sources.debian.net/data/main/a/apktool/2.1.1+dfsg-1/debian/wrapper/apktool | grep -C5 ^w$
javaOpts=""

# If you want DX to have more memory when executing, uncomment the following
# line and adjust the value accordingly. Use "java -X" for a list of options
# you can pass here.
w
#
javaOpts="-Xmx512M -Dfile.encoding=utf-8"

# Alternatively, this will extract any parameter "-Jxxx" from the command line
# and pass them to Java (instead of to dx). This makes it possible for you to
pabs at chianamo ~ $ wget -qOupstream https://sources.debian.net/data/main/a/apktool/2.1.1+dfsg-1/scripts/linux/apktool 
pabs at chianamo ~ $ wget -qOdebian https://sources.debian.net/data/main/a/apktool/2.1.1+dfsg-1/debian/wrapper/apktool
pabs at chianamo ~ $ diff -u upstream debian | grep -C5 '^+w$'
 # If you want DX to have more memory when executing, uncomment the following
 # line and adjust the value accordingly. Use "java -X" for a list of options
 # you can pass here.
-# 
-javaOpts="-Xmx512M"
+w
+#
+javaOpts="-Xmx512M -Dfile.encoding=utf-8"
 
 # Alternatively, this will extract any parameter "-Jxxx" from the command line
 # and pass them to Java (instead of to dx). This makes it possible for you to

-- System Information:
Debian Release: stretch/sid
  APT prefers testing-debug
  APT policy: (900, 'testing-debug'), (900, 'testing'), (860, 'testing-
proposed-updates'), (800, 'unstable-debug'), (800, 'unstable'), (790,
'buildd-unstable'), (700, 'experimental-debug'), (700, 'experimental'),
(690, 'buildd-experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 4.6.0-trunk-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_AU.utf8, LC_CTYPE=en_AU.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages apktool depends on:
ii  aapt                                             1:6.0.1+r16-1+b1
ii  default-jre-headless [java7-runtime-headless]    2:1.8-57
ii  libantlr3-runtime-java                           3.5.2-4
ii  libcommons-cli-java                              1.3.1-3
ii  libcommons-io-java                               2.5-1
ii  libcommons-lang3-java                            3.4-1
ii  libguava-java                                    19.0-1
ii  libjsr305-java                                   0.1~+svn49-9
ii  libsmali-java                                    2.1.2-1
ii  libstringtemplate-java                           3.2.1-2
ii  libxmlunit-java                                  1.6-1
ii  libxpp3-java                                     1.1.4c-2
ii  libyaml-snake-java                               1.17-1
ii  openjdk-8-jre-headless [java7-runtime-headless]  8u91-b14-2

apktool recommends no packages.

apktool suggests no packages.

-- no debconf information

-- 
bye,
pabs

https://wiki.debian.org/PaulWise
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: This is a digitally signed message part
URL: <http://lists.alioth.debian.org/pipermail/android-tools-devel/attachments/20160521/09277c8b/attachment.sig>


More information about the Android-tools-devel mailing list