PermissionError: [WinError 32] The process cannot access the file because it is being used by another process:

See original GitHub issue

After issue #37 was fixed, I cloned the repo and tried testing it again.

Here’s the command I entered: python .\apkleaks.py -f <path-to-apk>\app-armeabi-v7a-release.apk

Here’s the output:

     _    ____  _  ___               _
    / \  |  _ \| |/ / |    ___  __ _| | _____
   / _ \ | |_) | ' /| |   / _ \/ _` | |/ / __|
  / ___ \|  __/| . \| |__|  __/ (_| |   <\__ \
 /_/   \_\_|   |_|\_\_____\___|\__,_|_|\_\___/
 v2.3.0
 --
 Scanning APK file for URIs, endpoints & secrets
 (c) 2020-2021, dwisiswant0

** Decompiling APK...
The filename, directory name, or volume label syntax is incorrect.

** Scanning against 'com.<package-name>'
Traceback (most recent call last):
  File ".\apkleaks.py", line 5, in <module>
    main()
  File "C:\Users\username\Documents\apkleaks\apkleaks\cli.py", line 38, in main
    init.cleanup()
  File "C:\Users\username\Documents\apkleaks\apkleaks\apkleaks.py", line 144, in cleanup
    os.remove(self.output)
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'C:\\Users\\username\\AppData\\Local\\Temp\\apkleaks-fimv9xye.txt'

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:21 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
Ch3nYecommented, Mar 29, 2021

try update comm = "%s" % (" ".join(quote(arg) for arg in args)) to comm = "%s" % (" ".join(arg for arg in args)) in apkleaks/apkleaks.py line 96. It works on windows. this error may cause by command error.

0reactions
dwisiswant0commented, Jun 27, 2021

Hi, everyone! Please check the latest version (v2.5.2) for this workaround.

Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

[WinError 32] The process cannot access the file because it is ...
PermissionError : [WinError 32] The process cannot access the file because it is being used by another process · Subscribe to RSS.
Read more >
PermissionError: [WinError 32] The process cannot ... - GitHub
Describe the bug. I get the error PermissionError: [WinError 32] The process cannot access the file because it is being used by another...
Read more >
[WinError 32] The process cannot access the file because it is ...
Help with PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'newids.txt'.
Read more >
[winerror 32] the process cannot access the file because it is ...
PermissionError : [WinError 32] The process cannot access the file because it is being used by another process python python-3.x file-handling 110,020 Solution...
Read more >
[WinError 32] The process cannot access the file because it is ...
PermissionError : [WinError 32] The process cannot access the file because it is being used by another process · i run debugger with...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found