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

support adaptive icon #41

Open
fisherWang2017 opened this issue May 17, 2020 · 3 comments
Open

support adaptive icon #41

fisherWang2017 opened this issue May 17, 2020 · 3 comments

Comments

@fisherWang2017
Copy link

fisherWang2017 commented May 17, 2020

It seems that pkg.Icon(nil) fails if apk uses adaptive icon format

@AlexanderMatveev
Copy link

@fisherWang2017 I just found some random apk and got icon error. Is this a same case? File: file.apk.zip

@iineva
Copy link

iineva commented May 29, 2021

this code fixed my same problem

icon, err := pkg.Icon(&androidbinary.ResTableConfig{
    Density: 720,
})

@shogo82148
Copy link
Owner

Adaptive Icon is available from SDK Version 26.
So, adding SDKVersion: 25 may be a workaround.

icon, err := pkg.Icon(&androidbinary.ResTableConfig{
    SDKVersion: 25,
})

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

4 participants