Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to build framework-res in v2.3.3 and later #1935

Closed
Magendanz opened this issue Nov 11, 2018 · 6 comments
Closed

Unable to build framework-res in v2.3.3 and later #1935

Magendanz opened this issue Nov 11, 2018 · 6 comments

Comments

@Magendanz
Copy link

Magendanz commented Nov 11, 2018

Information

  1. Apktool Version (apktool -version) - v2.3.3 and later
  2. Operating System (Mac, Linux, Windows) - Windows, Linux
  3. APK From? (Playstore, ROM, Other) - Amlogic SDK 7.1.2

Stacktrace/Logcat

apktool-2.3.3.log

Include stacktrace here

Steps to Reproduce

  1. apktool d -s .\framework-res.apk
  2. apktool b .\framework-res\

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)

framework-res.zip

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? YES
  2. If you are trying to install a modified apk, did you resign it? N/A
  3. Are you using the latest apktool version? tried both v2.3.3 and v2.3.4 (v2.3.2 works fine)
@iBotPeaches
Copy link
Owner

This is a known issue with no planned fix. It was attempted at one point and backfired. A limitation of Windows sadly.

What happens is the executed command exceeds the length allowed for Windows. Lots of details and explanations, if curious are here - #1272

Marking as duplicate of #1272

@Magendanz
Copy link
Author

I was actually running apktool from PowerShell. Would that have the same 8K limitation as cmd.exe?

@Magendanz
Copy link
Author

So, if this is a limitation of Windows, why is Apktool 2.3.2 still working fine?

@Magendanz
Copy link
Author

If this is due to a command line limit for Windows, I'm surprised that I'm seeing the same issue now in Ubuntu. Up until now, I've just been sticking with 2.3.2 to work around the problem, but with Pie I simply can't do that anymore.

Has anyone come up with a workaround?

@Magendanz
Copy link
Author

@iBotPeaches, are you sure this is a dupe of #1272? Isn't the command line limit in Linux 2,097,152? (At least, that's what I get from 'getconf ARG_MAX'.) And #1272 seems to predate changes introduced in v2.3.3.

@Magendanz
Copy link
Author

Magendanz commented Jul 4, 2019

Here's a Linux log from 2.4.0 running on framework-res.apk from the latest AOSP 9.0 GSI. Looks very similar, right?

apktool-2.4.0-Linux.log

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants