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

No resource identifier found for attribute 'requestLegacyExternalStorage' in package 'android' whatsapp recompilation #2167

Closed
ale82to opened this issue Sep 10, 2019 · 7 comments

Comments

@ale82to
Copy link

ale82to commented Sep 10, 2019

I use apktool 2.4.1 on Linux, today I tried to decompile and recompile whatsapp latest beta from apk mirror, and recompilation fails with manifest error No resource identifier found for attribute 'requestLegacyExternalStorage' in package 'android'
it maybe related to android q.

@aveao
Copy link

aveao commented Oct 5, 2019

Relevant information: https://developer.android.com/training/data-storage/files/external-scoped#opt-out-of-scoped-storage

This is related to Android 10.

@iBotPeaches
Copy link
Owner

Looks like new attribute, will investigate.

@aveao
Copy link

aveao commented Dec 13, 2019

Any updates?

@aimardcr
Copy link

I fixed the problem by installing android 10 framework-res.apk from my devices.
this is how i did it:

  1. Connect your device through adb connection using usb
  2. First you need to know where your framework-res.apk is, my OnePlus7Pro framework apk is located in /system/framework-res.apk
  3. Grab the apk by typing
    adb pull /system/framework-res.apk <path_to_your_computer>
  4. then install the framework in apktool by typing
apktool_2.4.1.jar if <path_to_grabbed_framework>
  1. Try to compile

Most devices has their framework apk path differents, so you can search by your own. and yes this grabbing framework apk requires no root as long as you know the framework apk location, /system/framework itself can be accessed without root so you know research your own!

But though that some framework actually located in root-needed directory.

@AndnixSH
Copy link

Here is the framework-res.apk file from Android 10 emulator in case if you want it :)

https://drive.google.com/file/d/1NVYCc-29C39XSoDOTYBjivuSQzAQhD3A/view

@K-Kiko
Copy link

K-Kiko commented Nov 24, 2020

remove AndroidManifest android:requestLegacyExternalStorage="true"

@iBotPeaches
Copy link
Owner

This was fixed during #2399

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

6 participants