androidbinary icon indicating copy to clipboard operation
androidbinary copied to clipboard

support adaptive icon

Open fisherWang2017 opened this issue 5 years ago • 3 comments

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

fisherWang2017 avatar May 17 '20 00:05 fisherWang2017

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

AlexanderMatveev avatar Apr 22 '21 07:04 AlexanderMatveev

this code fixed my same problem

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

iineva avatar May 29 '21 14:05 iineva

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

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

shogo82148 avatar May 29 '21 16:05 shogo82148