androidbinary
androidbinary copied to clipboard
support adaptive icon
It seems that pkg.Icon(nil) fails if apk uses adaptive icon format
@fisherWang2017 I just found some random apk and got icon error. Is this a same case? File: file.apk.zip
this code fixed my same problem
icon, err := pkg.Icon(&androidbinary.ResTableConfig{
Density: 720,
})
Adaptive Icon is available from SDK Version 26.
So, adding SDKVersion: 25 may be a workaround.
icon, err := pkg.Icon(&androidbinary.ResTableConfig{
SDKVersion: 25,
})