Jump to content
Poweramp
flyingdutchman

Huawei fails to install skins

Recommended Posts

There have been reports from Huawei users that the new skins for Poweramp V3 do not install. However there have also been reports that some skins do install.

I have looked into this and have found the following:

the stacktrace when installing shows that a piece of code ShortcutInfo fails with a null ponter exception. On the developers website it states

Requires API level 25 (Android 7.1.1, Nougat)

so this should in fact mean that installs fail for Huawei devices with less than android 7.1.1 and should be successfull for 7.1.1 and above

One of my skin users reported that it installs fine on a Huawei android V8.

Can those forum users who have this Huawei problem perhaps enter their Huawei model and android version? This may confirm my theory

 

 

 

 

Share this post


Link to post
Share on other sites

Now that I hve access to a Huwaei avd I can see the stacktrace when install fails.

It appears to be looking for some Resource ID #0x80060054 which does not exist in my app. It appears to be when it is trying to launch the activity, even before onCreate() in the activity

In the manifest I have:

<meta-data android:name="com.maxmpz.Powerampkins"
    android:resource="@xml/skins"
    />
<activity android:name=".launch_activity">
    <intent-filter>
        <action android:name="android.intent.action.MAIN" />
        <category android:name="android.intent.category.LAUNCHER" />
    </intent-filter>
</activity>

where the meta data is passed to the parent, in this case Poweramp i guess.

   Process: skins.v3.Poweramp.yaps, PID: 3928
    java.lang.RuntimeException: Unable to start activity ComponentInfo{skins.v3.Poweramp.yaps/skins.v3.Poweramp.yaps.activity}: android.content.res.Resources$NotFoundException: Resource ID #0x80060054
        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2793)
        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2864)
        at android.app.ActivityThread.-wrap12(ActivityThread.java)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1567)
        at android.os.Handler.dispatchMessage(Handler.java:105)
        at android.os.Looper.loop(Looper.java:156)
        at android.app.ActivityThread.main(ActivityThread.java:6523)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:941)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:831)
     Caused by: android.content.res.Resources$NotFoundException: Resource ID #0x80060054
        at android.content.res.ResourcesImpl.getValue(ResourcesImpl.java:255)
        at android.content.res.Resources.getValue(Resources.java:1353)
        at androidx.appcompat.widget.AppCompatDrawableManager.createDrawableIfNeeded(AppCompatDrawableManager.java:235)
        at androidx.appcompat.widget.AppCompatDrawableManager.getDrawable(AppCompatDrawableManager.java:200)
        at androidx.appcompat.widget.AppCompatDrawableManager.getDrawable(AppCompatDrawableManager.java:191)
        at androidx.appcompat.widget.AppCompatDrawableManager.checkVectorDrawableSetup(AppCompatDrawableManager.java:753)
        at androidx.appcompat.widget.AppCompatDrawableManager.getDrawable(AppCompatDrawableManager.java:196)
        at androidx.appcompat.widget.TintTypedArray.getDrawableIfKnown(TintTypedArray.java:86)
        at androidx.appcompat.app.AppCompatDelegateImpl.<init>(AppCompatDelegateImpl.java:260)
        at androidx.appcompat.app.AppCompatDelegate.create(AppCompatDelegate.java:182)
        at androidx.appcompat.app.AppCompatActivity.getDelegate(AppCompatActivity.java:520)
        at androidx.appcompat.app.AppCompatActivity.onCreate(AppCompatActivity.java:71)
        at android.app.Activity.performCreate(Activity.java:6910)
        at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1123)
        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2746)
        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2864) 
        at android.app.ActivityThread.-wrap12(ActivityThread.java) 
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1567) 
        at android.os.Handler.dispatchMessage(Handler.java:105) 
        at android.os.Looper.loop(Looper.java:156) 
        at android.app.ActivityThread.main(ActivityThread.java:6523) 
        at java.lang.reflect.Method.invoke(Native Method) 
        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:941) 
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:831) 
 

Anyone with any thoughts?

Share this post


Link to post
Share on other sites

@maxmp  I create a new package with only minimal changes. Added he <metadata> tag in Manifest.xml. and 

aaptOptions {
    additionalParameters "--package-id", "0x80", "-I", "F:\\Android\\Android\\APK\\Poweramp\\Poweramp-v3-build-820-uni.apk"
}

into build.gradule (Module)

 

Reason why the skins do not install on Huawei Android 7 is because of the aapt options.

With the options, install fails as shown in the post above

Remove the option and install is successful.

 

AAPT1.PNG

AAPT2.PNG

Share this post


Link to post
Share on other sites
3 hours ago, flyingdutchman said:

@maxmp  I create a new package with only minimal changes. Added he <metadata> tag in Manifest.xml. and 


aaptOptions {
    additionalParameters "--package-id", "0x80", "-I", "F:\\Android\\Android\\APK\\Poweramp\\Poweramp-v3-build-820-uni.apk"
}

into build.gradule (Module)

 

Reason why the skins do not install on Huawei Android 7 is because of the aapt options.

With the options, install fails as shown in the post above

Remove the option and install is successful.

 

AAPT1.PNG

AAPT2.PNG

Hi, the problem has been resolved

Share this post


Link to post
Share on other sites

No, not resolved, only identified.

I was hoping max could give his view on this. In the meantime i can experiment with the aapt options

Share this post


Link to post
Share on other sites
25 minutes ago, flyingdutchman said:

No, not resolved, only identified.

I was hoping max could give his view on this. In the meantime i can experiment with the aapt options

It's great that you find the program's problem. Hopefully this problem will finally be solved. thank you

Share this post


Link to post
Share on other sites

It appears that @maxmp has significantly reduced his engagement with the forum. It was great to have his active involvement. I hope he can find the time to get involved again.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×