On Sat, Aug 14, 2021 at 09:20:10AM +0800, Yifei Zhan wrote: I've tested apktool 2.5.0 with this patch. Decompiling works, however re-compiling from the decompiled files do not work. Below are the logs of me decompiling and attempting to recompile an apk:
Decompiling: roger ~/Downloads: apktool d tapmod9.apk I: Using Apktool 2.5.0 on tapmod9.apk I: Loading resource table... I: Decoding AndroidManifest.xml with resources... I: Loading resource table from file: /home/roger/.local/share/apktool/framework/1.apk I: Regular manifest package... I: Decoding file-resources... I: Decoding values */* XMLs... I: Baksmaling classes.dex... I: Baksmaling classes2.dex... I: Copying assets and libs... I: Copying unknown files... I: Copying original files... Recompiling: roger ~/Downloads: apktool b tapmod9/ I: Using Apktool 2.5.0 I: Checking whether sources has changed... I: Smaling smali folder into classes.dex... I: Checking whether sources has changed... I: Smaling smali_classes2 folder into classes2.dex... I: Checking whether resources has changed... I: Building resources... W: aapt: brut.common.BrutException: brut.common.BrutException: Could not identify platform: openbsd (defaulting to $PATH binary) brut.androlib.AndrolibException: brut.common.BrutException: could not exec: [aapt, p, --forced-package-id, 127, --min-sdk-version, 21, --target-sdk-version, 29, --version-code, 194, --version-name, 8.28.0, --no-version-vectors, -F, /tmp/APKTOOL4673878745084487143.tmp, -e, /tmp/APKTOOL3570099396226771262.tmp, -0, arsc, -I, /home/roger/.local/share/apktool/framework/1.apk, -S, /home/roger/Downloads/tapmod9/res, -M, /home/roger/Downloads/tapmod9/AndroidManifest.xml] > ping > > On 21/08/03 01:12PM, Yifei Zhan wrote: > > Hi, > > > > The following patchset update devel/apktool from 2.4.0 to 2.5.0. Tested > > on amd64 with a few different apk files, works fine. > > > > This update adds support for Android 11 along with some small buxfixes. > > > > P.S.: There is a line in the changelog saying[1]: > > > > Deprecate 32 bit operating systems. > > > > ... but I don't have any 32bit machine to test if this affect OpenBSD, > > so I didn't add a NOT_FOR_ARCHS line. > > > > [1]: > > https://github.com/iBotPeaches/Apktool/issues/2053#issuecomment-735302628 > > > > changelog: > > https://connortumbleson.com/2020/12/02/apktool-v2-5-0-released/ > > > > Index: Makefile > > =================================================================== > > RCS file: /cvs/ports/devel/apktool/Makefile,v > > retrieving revision 1.22 > > diff -u -p -u -r1.22 Makefile > > --- Makefile 19 May 2021 01:50:29 -0000 1.22 > > +++ Makefile 3 Aug 2021 12:06:58 -0000 > > @@ -2,8 +2,7 @@ > > > > COMMENT = tool for reverse engineering Android apk files > > > > -DISTNAME = apktool_2.4.0 > > -REVISION = 2 > > +DISTNAME = apktool_2.5.0 > > PKGNAME = ${DISTNAME:S/_/-/} > > > > CATEGORIES = devel security java > > Index: distinfo > > =================================================================== > > RCS file: /cvs/ports/devel/apktool/distinfo,v > > retrieving revision 1.15 > > diff -u -p -u -r1.15 distinfo > > --- distinfo 15 Mar 2019 10:49:42 -0000 1.15 > > +++ distinfo 3 Aug 2021 12:06:58 -0000 > > @@ -1,2 +1,2 @@ > > -SHA256 (apktool_2.4.0.jar) = oPEW6JFtbyEWDhVZhHu4uMMu5xkA8yHK/q2+N7h+vME= > > -SIZE (apktool_2.4.0.jar) = 16314178 > > +SHA256 (apktool_2.5.0.jar) = s5LXy5m1kunFrMPAbxsPGA7d6WxmuGs9aTK3wMQHn+Q= > > +SIZE (apktool_2.5.0.jar) = 19300357 > > >