profile
viewpoint

brutall/brut.apktool 334

A tool for reverse engineering Android apk files

brutall/checkstyle 0

Checkstyle is a development tool to help programmers write Java code that adheres to a coding standard. By default it supports the Sun Code Conventions, but is highly configurable. It can be invoked with an ANT task and a command line program.

brutall/gse-sound-output-device-chooser 0

Gnome Shell Extension to show a simple chooser to select Input & Output device based on gnome control center

brutall/iOS-Ingress 0

Fully playable iOS port of Google's AR Game Ingress

brutall/underscore 0

JavaScript's utility _ belt

pull request commentiBotPeaches/Apktool

fix: NullPointerException (OS.rmdir)

Something like

This works, but this code does not look like it is not modern. Personally, I use what I suggested in my projects.

MrIkso

comment created time in 2 hours

issue openediBotPeaches/Apktool

apktool: can't find apktool.jar

Information

  1. Apktool Version (apktool -version) - 2.4.1
  2. Operating System (Mac, Linux, Windows) - Linux
  3. APK From? (Playstore, ROM, Other) -

Stacktrace/Logcat

Include stacktrace here

Steps to Reproduce

  1. apktool

Frameworks

If this APK is from an OEM ROM (Samsung, HTC, LG). Please attach framework files (.apks that live in /system/framework or /system/priv-app)

APK

If this APK can be freely shared, please upload/attach a link to it.

Questions to ask before submission

  1. Have you tried apktool d, apktool b without changing anything?
  2. If you are trying to install a modified apk, did you resign it?
  3. Are you using the latest apktool version?

yes. there is no problem with the apk no im using 2.4.1 but i cant even upgrade it i did apt remove apktool; apt install apktool but it didnt change anything. when i did apt remove apktool i checked it again to see if apktool is remved or not and typed apktool and it gave me the same error 'apktool: can't find apktool.jar' please help me

created time in 3 hours

PR opened iBotPeaches/Apktool

master

Fix bug #2455

+24 -22

0 comment

1 changed file

pr created time in 7 hours

IssuesEvent

issue commentiBotPeaches/Apktool

[BUG v2.5.0] - NullPointerException (OS.rmdir) and AndrolibException (ARSCDecoder)

Re-opening for 2nd error and removing 1st

enovella

comment created time in 9 hours

issue commentiBotPeaches/Apktool

[BUG v2.5.0] - NullPointerException (OS.rmdir) and AndrolibException (ARSCDecoder)

Thanks for the report. The first issue is an issue we are tracking here: https://github.com/iBotPeaches/Apktool/issues/1719 for those multiple duplicate res types.

The 2nd issue looks caused by first.

enovella

comment created time in 10 hours

issue closediBotPeaches/Apktool

[BUG v2.5.0] - NullPointerException (OS.rmdir) and AndrolibException (ARSCDecoder)

Information

  1. Apktool Version (apktool -version) - v2.5.0
  2. Operating System (Mac, Linux, Windows) - Linux Ubu18.04
  3. APK From? (Playstore, ROM, Other) - https://play.google.com/store/apps/details?id=com.bt.btsport&hl=en&gl=US

Stacktrace/Logcat

>  apktool d /home/edu/apks/skyuk/com.bt.btsport.apk 
I: Using Apktool 2.5.0 on com.bt.btsport.apk
I: Loading resource table...
Exception in thread "main" brut.androlib.AndrolibException: unsupported res type name for bags. Found: style2
	at brut.androlib.res.data.value.ResValueFactory.bagFactory(ResValueFactory.java:118)
	at brut.androlib.res.decoder.ARSCDecoder.readComplexEntry(ARSCDecoder.java:350)
	at brut.androlib.res.decoder.ARSCDecoder.readEntryData(ARSCDecoder.java:276)
	at brut.androlib.res.decoder.ARSCDecoder.readTableType(ARSCDecoder.java:252)
	at brut.androlib.res.decoder.ARSCDecoder.readTableTypeSpec(ARSCDecoder.java:175)
	at brut.androlib.res.decoder.ARSCDecoder.readTablePackage(ARSCDecoder.java:131)
	at brut.androlib.res.decoder.ARSCDecoder.readTableHeader(ARSCDecoder.java:82)
	at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:48)
	at brut.androlib.res.AndrolibResources.getResPackagesFromApk(AndrolibResources.java:790)
	at brut.androlib.res.AndrolibResources.loadMainPkg(AndrolibResources.java:67)
	at brut.androlib.res.AndrolibResources.getResTable(AndrolibResources.java:59)
	at brut.androlib.Androlib.getResTable(Androlib.java:66)
	at brut.androlib.ApkDecoder.setTargetSdkVersion(ApkDecoder.java:236)
	at brut.androlib.ApkDecoder.decode(ApkDecoder.java:118)
	at brut.apktool.Main.cmdDecode(Main.java:179)
	at brut.apktool.Main.main(Main.java:82)
>  apktool d -f --no-src -o /tmp/ /home/edu/apks/skyuk/com.bt.btsport.apk
Exception in thread "main" java.lang.NullPointerException
	at brut.util.OS.rmdir(OS.java:41)
	at brut.util.OS.rmdir(OS.java:44)
	at brut.androlib.ApkDecoder.decode(ApkDecoder.java:95)
	at brut.apktool.Main.cmdDecode(Main.java:179)
	at brut.apktool.Main.main(Main.java:82)

closed time in 10 hours

enovella

issue openediBotPeaches/Apktool

[BUG v2.5.0] - NullPointerException (OS.rmdir) and AndrolibException (ARSCDecoder)

Information

  1. Apktool Version (apktool -version) - v2.5.0
  2. Operating System (Mac, Linux, Windows) - Linux Ubu18.04
  3. APK From? (Playstore, ROM, Other) - https://play.google.com/store/apps/details?id=com.bt.btsport&hl=en&gl=US

Stacktrace/Logcat

>  apktool d /home/edu/apks/skyuk/com.bt.btsport.apk 
I: Using Apktool 2.5.0 on com.bt.btsport.apk
I: Loading resource table...
Exception in thread "main" brut.androlib.AndrolibException: unsupported res type name for bags. Found: style2
	at brut.androlib.res.data.value.ResValueFactory.bagFactory(ResValueFactory.java:118)
	at brut.androlib.res.decoder.ARSCDecoder.readComplexEntry(ARSCDecoder.java:350)
	at brut.androlib.res.decoder.ARSCDecoder.readEntryData(ARSCDecoder.java:276)
	at brut.androlib.res.decoder.ARSCDecoder.readTableType(ARSCDecoder.java:252)
	at brut.androlib.res.decoder.ARSCDecoder.readTableTypeSpec(ARSCDecoder.java:175)
	at brut.androlib.res.decoder.ARSCDecoder.readTablePackage(ARSCDecoder.java:131)
	at brut.androlib.res.decoder.ARSCDecoder.readTableHeader(ARSCDecoder.java:82)
	at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:48)
	at brut.androlib.res.AndrolibResources.getResPackagesFromApk(AndrolibResources.java:790)
	at brut.androlib.res.AndrolibResources.loadMainPkg(AndrolibResources.java:67)
	at brut.androlib.res.AndrolibResources.getResTable(AndrolibResources.java:59)
	at brut.androlib.Androlib.getResTable(Androlib.java:66)
	at brut.androlib.ApkDecoder.setTargetSdkVersion(ApkDecoder.java:236)
	at brut.androlib.ApkDecoder.decode(ApkDecoder.java:118)
	at brut.apktool.Main.cmdDecode(Main.java:179)
	at brut.apktool.Main.main(Main.java:82)
>  apktool d -f --no-src -o /tmp/ /home/edu/apks/skyuk/com.bt.btsport.apk
Exception in thread "main" java.lang.NullPointerException
	at brut.util.OS.rmdir(OS.java:41)
	at brut.util.OS.rmdir(OS.java:44)
	at brut.androlib.ApkDecoder.decode(ApkDecoder.java:95)
	at brut.apktool.Main.cmdDecode(Main.java:179)
	at brut.apktool.Main.main(Main.java:82)

created time in 10 hours

issue commentiBotPeaches/Apktool

NullPointerException on v2.4.1

apktool d -f --no-src -o /tmp/ /home/edu/apks/skyuk/com.bt.btsport.apk

FYI only, apktool 2.5.0 has this bug yet

enovella

comment created time in 10 hours

push eventiBotPeaches/Apktool

Connor Tumbleson

commit sha b83203e4690f5052a88f61d8764e465bccea8c8c

docs: add missing version information to changelog

view details

push time in 10 hours

release iBotPeaches/Apktool

v2.5.0

released time in 11 hours

push eventiBotPeaches/Apktool

Connor Tumbleson

commit sha 6f3924c568e300f6060f3e5e94704092d5bff073

feat: migration instructions for v2.5.0

view details

Connor Tumbleson

commit sha e6c5856a7b3ccf88610222c96b5820a1a66d416f

feat: upgrade to v2.5.0 docs

view details

push time in 11 hours

created tagiBotPeaches/Apktool

tagv2.5.0

A tool for reverse engineering Android apk files

created time in 11 hours

push eventiBotPeaches/Apktool

Connor Tumbleson

commit sha c83c733cbd86e0b8ff69c69e90aac0393fa9b26d

build: version bump (2.5.0)

view details

Connor Tumbleson

commit sha eec0f446e1be3d2ec6ff944eae152bd9ff42c1a2

build: start new dev cycle (2.5.1-SNAPSHOT)

view details

push time in 11 hours

push eventiBotPeaches/Apktool

Connor Tumbleson

commit sha d2ee82c02007461c1baa3e719ddbb7c44cfda102

build: add latest mac aapt|aapt2 binaries

view details

push time in 11 hours

pull request commentiBotPeaches/Apktool

fix: take the test CI Test (JDK, windows-latest)

I was curious why this was failing, but I was nervous with the failure.

If you make a malicious entry in a zip file of like C:/system/foo.bat - wouldn't this now pass? Maybe the root check I removed indeed has to be there, but I thought the canonical-ization would handle it.

pashamcr

comment created time in 11 hours

pull request commentiBotPeaches/Apktool

build: add latest linux/windows/mac aapt|aapt2 binaries

Hey @iBotPeaches, no problem! Here are the links to the new binaries: https://www.dropbox.com/s/niqk6okds5k69a1/aapt_64?dl=0 https://www.dropbox.com/s/dlb5cf1jmpog5rt/aapt2_64?dl=0

iBotPeaches

comment created time in 13 hours

issue commentiBotPeaches/Apktool

New AAPT2 builds

thank you!!!!! i had a problem with the gradle team. was pissed off and sort of abandoned the project for a year or so. now, with your builds, it's probably a good time to restart it. thanks again!!

Lanchon

comment created time in a day

issue commentiBotPeaches/Apktool

Better generation of public.xml file.

resources found in the code - you probably don't want to modify this.

IMHO this is impossible. obfuscators can replace constants with code that produces the desired IDs. so how would one go about this?

Probably why I closed it. The rewriting of resIds from dynamic code would for sure make this impossible.

iBotPeaches

comment created time in a day

issue commentiBotPeaches/Apktool

Better generation of public.xml file.

resources found in the code - you probably don't want to modify this.

IMHO this is impossible. obfuscators can replace constants with code that produces the desired IDs. so how would one go about this?

iBotPeaches

comment created time in a day

issue commentiBotPeaches/Apktool

brut.common.RootUnknownFileException: Absolute Unknown Files is not allowed

Tempted to close as no-fix. I attempted a PR, but it won't work because windows.

➜  2201 unzip -l com.schwab.mobile_2019-10-07.apk 
Archive:  com.schwab.mobile_2019-10-07.apk
  Length      Date    Time    Name
---------  ---------- -----   ----
      536  1969-12-31 19:00   /deviceinsight-collector-javascript-6.6.0-0.pom
    66648  1980-00-00 00:00   AndroidManifest.xml
     1456  1980-00-00 00:00   META-INF/CERT.RSA
   399994  1980-00-00 00:00   META-INF/CERT.SF

This is just a bad apk. It has a root reference.

Ac3n34d-X

comment created time in a day

issue commentiBotPeaches/Apktool

Unable to decode and rebuild PlayStation App

Thanks for considering this @iBotPeaches.

A bit more information: The stack trace is from a piece of Java code which can't seem to call an embedded assembly in the rebuilt apk.

I agree, the app is probably using some kind of anti-tamper logic. Might be interesting to look at sometime but it could well be lots of effort for little reward.

Gubbins

comment created time in a day

push eventiBotPeaches/Apktool

Connor Tumbleson

commit sha 3d92c2a95f241189cc0cf5c9edb1650e484a5460

build: add codeql

view details

Connor Tumbleson

commit sha a2356faf921be390bd19fabc94b703065a841d95

build: remove schedule for codeql

view details

Connor Tumbleson

commit sha b49bd95489c3b55f6282c0cdb2e874b1a2224c28

build: only run tests on java/gradle/resource changes (#2453) * build: only run tests on java/gradle/resource changes * fix: codeql only runs on java/resource changes

view details

Connor Tumbleson

commit sha 7f70e4d119c763546cc4223700780fb441f86d02

docs: add new templates (#2451) * docs: add new templates * docs: remove outdated issue template

view details

Connor Tumbleson

commit sha 2fa57817096e0b33543e62a715f25c4efff27032

fix: remove useless root entry check

view details

Connor Tumbleson

commit sha 1ee381eb0b7184004b4446a547fdba3c114c5a9f

fix: remove outdated RootUnknownFileException test

view details

Connor Tumbleson

commit sha ba7b6823f43ea12f6240ef71e220a3a52826a0f4

test: augment tests to handle multiple/single depth root entrys

view details

Connor Tumbleson

commit sha 4fbe6540c6e4298921963108e59bbd7c86e2fc18

fix: restore "final" on entry

view details

Connor Tumbleson

commit sha 9975c339d5024d776119cd87e0b0e81c25687870

fix: proper slashes for windows

view details

push time in a day

delete branch iBotPeaches/Apktool

delete branch : github-templates

delete time in a day

push eventiBotPeaches/Apktool

Connor Tumbleson

commit sha 7f70e4d119c763546cc4223700780fb441f86d02

docs: add new templates (#2451) * docs: add new templates * docs: remove outdated issue template

view details

push time in a day

push eventiBotPeaches/Apktool

Connor Tumbleson

commit sha b49bd95489c3b55f6282c0cdb2e874b1a2224c28

build: only run tests on java/gradle/resource changes (#2453) * build: only run tests on java/gradle/resource changes * fix: codeql only runs on java/resource changes

view details

Connor Tumbleson

commit sha 31af23274c76a95d671d4afa7ba481ab1a0d81d7

docs: add new templates

view details

Connor Tumbleson

commit sha 00197b61a28500629c94a4afa3e4693763831cdf

docs: remove outdated issue template

view details

push time in a day

push eventiBotPeaches/Apktool

Connor Tumbleson

commit sha b49bd95489c3b55f6282c0cdb2e874b1a2224c28

build: only run tests on java/gradle/resource changes (#2453) * build: only run tests on java/gradle/resource changes * fix: codeql only runs on java/resource changes

view details

push time in a day

delete branch iBotPeaches/Apktool

delete branch : speedy-builds

delete time in a day

more