Skip to content

Commit

Permalink
core: disable androguard's debug log
Browse files Browse the repository at this point in the history
  • Loading branch information
evilpan committed Oct 21, 2024
1 parent 7a02176 commit 0412316
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ Before | After

## Binary Ninja

see [Binary Ninja](./binaryninja).
see [Binary Ninja](./binary_ninja).

Before | After
:----------:|:------------:
Expand Down
7 changes: 7 additions & 0 deletions extract_jni.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ def parse_so_sync(sofile: SoFile):


def parse_dex_proc(dex: DexFile):
supress_andro_log()
dexInfo = {}
count = 0
try:
Expand Down Expand Up @@ -306,6 +307,12 @@ def parse_apk(apkfile, workers, fn_match=None, outfile=None):
json.dump(output, f, indent=2, ensure_ascii=False)


def supress_andro_log():
import sys
from loguru import logger
logger.remove()
logger.add(sys.stderr, level="WARNING")

if __name__ == "__main__":
import argparse

Expand Down

0 comments on commit 0412316

Please sign in to comment.