universal-android-debloater icon indicating copy to clipboard operation
universal-android-debloater copied to clipboard

pkg: add Honor and Huawei packages

Open AnonymousWP opened this issue 2 years ago • 18 comments

Fixes #520. Fixes #518. Fixes #624.

AnonymousWP avatar Jan 23 '23 22:01 AnonymousWP

Maybe better to continue our discussion here, @VistHJ and @kyoforkshomebrews. Context: https://github.com/0x192/universal-android-debloater/issues/518#issuecomment-1410291963

AnonymousWP avatar Jan 31 '23 12:01 AnonymousWP

I've got some information:

  • com.huawei.android.internal.app

Component of Huawei sharing. I read someone saying "Do not remove or you won't be able to send files to apps".\nCan someone test it ? \n Myth busted, here's proof: https://youtu.be/RDEnyPl78XI

  • com.huawei.android.hwaps

This is a part of the PowerGenie, the task killer app. If you want to remove it, uninstall com.huawei.powergenie along the way

v1s7 avatar Feb 04 '23 19:02 v1s7

Is it still possible to use the share menu though? Because i think that's what com.huawei.android.internal.app does? The video only shows the file selector.

kyoforkshomebrews avatar Feb 05 '23 00:02 kyoforkshomebrews

I've got some information:

  • com.huawei.android.internal.app

Component of Huawei sharing. I read someone saying "Do not remove or you won't be able to send files to apps".\nCan someone test it ? \n Myth busted, here's proof: https://youtu.be/RDEnyPl78XI

  • com.huawei.android.hwaps

This is a part of the PowerGenie, the task killer app. If you want to remove it, uninstall com.huawei.powergenie along the way

Done, please check.

AnonymousWP avatar Feb 05 '23 01:02 AnonymousWP

On my phone many of the packages under com.huawei.*** have been renamed com.hihonor.*** . Apart from that they are the same package. Including both would simply require duplicating the existing entries, the following python script worked for me:

import json, sys

def make_honor(app):
    # dont want to change the previos one:
    app = app.copy()
    app['id'] = app['id'].replace("com.huawei.","com.hihonor.")
    if app['dependencies'] is not None:
        app['dependencies'] = [name.replace("com.huawei.","com.hihonor.") for name in app['dependencies']]
    if app['neededBy'] is not None:
        app['neededBy'] = [name.replace("com.huawei.","com.hihonor.") for name in app['neededBy']]
    return app

with open(sys.argv[1]) as fp:
    apps = json.load(fp)
    
apps = [*apps,
        *(make_honor(app) for app in apps if app['id'].startswith('com.huawei.'))]

with open(sys.argv[2],"w") as fp:
    json.dump(apps,fp,indent=4)

I'm happy to make a pull request as soon as this one has been merged.

jorants avatar Feb 15 '23 11:02 jorants

I want to also add following info:

com.huawei.hwdockbar

List: Oem Removal: Advanced

Huawei Multi-Window dock. Probably fine to remove if you're not using Huawei Multi-Window features.

com.huawei.filemanager

List: Oem Removal: Advanced

Huawei file manager. Probably fine to remove as long as you have another file manager.

com.huawei.hms5gkit.agentservice

List: Oem Removal: Advanced

Something to do with 5G? For some reason this is also installed on a non-5G device. Can be uninstalled from phone settings so should be safe if you don't have 5G.

kyoforkshomebrews avatar Feb 16 '23 21:02 kyoforkshomebrews

I want to also add following info:

com.huawei.hwdockbar

List: Oem Removal: Advanced

Huawei Multi-Window dock. Probably fine to remove if you're not using Huawei Multi-Window features.

com.huawei.filemanager

List: Oem Removal: Advanced

Huawei file manager. Probably fine to remove as long as you have another file manager.

com.huawei.hms5gkit.agentservice

List: Oem Removal: Advanced

Something to do with 5G? For some reason this is also installed on a non-5G device. Can be uninstalled from phone settings so should be safe if you don't have 5G.

Thanks, done (see commit).

AnonymousWP avatar Feb 17 '23 10:02 AnonymousWP

The package com.huawei.android.dsdscardmanager also exists as com.huawei.dsdscardmanager

kyoforkshomebrews avatar Feb 28 '23 16:02 kyoforkshomebrews

com.huawei.permissioncontroller

List: Oem Removal: Recommended

Can be disabled via Settings.

https://forum.xda-developers.com/t/guide-remove-huawei-bloatware-without-root-access-using-adb-usb-debugging.4014937/page-19#post-86890689 According to this source the following have been added in EMUI 12 and can be removed. I also tried disabling them on my phone and it seems that it's fine:

com.huawei.android.airsharing
com.huawei.contentsensor
com.huawei.devicemanager
com.huawei.hms5gkit.agentservice
com.huawei.hwdiagnosis
com.huawei.ohos.hiwindow
com.huawei.onehopsvcclient
com.huawei.onehopsvchost
com.huawei.profile
com.huawei.trustedthingsauth

com.huawei.meetime

List: Oem Removal: Recommended

Meetime video calling app. Can be removed via settings.

com.huawei.mediacontroller

List: Oem Removal: Advanced

Can be disabled via Settings. Will disable the media controls in quick settings. Won't remove them however.

kyoforkshomebrews avatar Feb 28 '23 18:02 kyoforkshomebrews

The package com.huawei.android.dsdscardmanager also exists as com.huawei.dsdscardmanager

So, same package, different package name and same purpose (including list, description and removal)?

https://forum.xda-developers.com/t/guide-remove-huawei-bloatware-without-root-access-using-adb-usb-debugging.4014937/page-19#post-86890689 According to this source the following have been added in EMUI 12 and can be removed. I also tried disabling them on my phone and it seems that it's fine:

com.huawei.android.airsharing
com.huawei.contentsensor
com.huawei.devicemanager
com.huawei.hms5gkit.agentservice
com.huawei.hwdiagnosis
com.huawei.ohos.hiwindow
com.huawei.onehopsvcclient
com.huawei.onehopsvchost
com.huawei.profile
com.huawei.trustedthingsauth

Would you be able to find out the description, removal and list that's required for this project? I have added the ones you listed.

com.huawei.meetime List: Oem Removal: Recommended

Meetime video calling app. Can be removed via settings.

This one was already added.

AnonymousWP avatar Mar 01 '23 14:03 AnonymousWP

I suppose so. Is there any way to try the updated uad-list out? I want to check what's still missing.

kyoforkshomebrews avatar Mar 14 '23 06:03 kyoforkshomebrews

I suppose so. Is there any way to try the updated uad-list out? I want to check what's still missing.

No, unless you compile it with the new list. You can view my updated list here: https://github.com/AnonymousWP/universal-android-debloater/blob/520-Honor-unlisted-packages/resources/assets/uad_lists.json

AnonymousWP avatar Mar 14 '23 19:03 AnonymousWP

How do I do that? I compiled it after replacing /resources/assets/uad_lists.json but it seems that didn't work.

kyoforkshomebrews avatar Apr 29 '23 18:04 kyoforkshomebrews

How do I do that? I compiled it after replacing /resources/assets/uad_lists.json but it seems that didn't work.

Hmm, not sure. Have you followed https://github.com/0x192/universal-android-debloater/wiki#build ?

AnonymousWP avatar May 02 '23 09:05 AnonymousWP

How do I do that? I compiled it after replacing /resources/assets/uad_lists.json but it seems that didn't work.

Hmm, not sure. Have you followed https://github.com/0x192/universal-android-debloater/wiki#build ?

Yes, I tried running my compiled version without internet access but it still doesn't change the data shown.

kyoforkshomebrews avatar Jun 01 '23 14:06 kyoforkshomebrews

How do I do that? I compiled it after replacing /resources/assets/uad_lists.json but it seems that didn't work.

Hmm, not sure. Have you followed https://github.com/0x192/universal-android-debloater/wiki#build ?

Yes, I tried running my compiled version without internet access but it still doesn't change the data shown.

I don't really know then. Haven't tried it myself. Did you find a solution by now?

AnonymousWP avatar Jun 04 '23 11:06 AnonymousWP

Yes. I had to also delete ~/.cache/uad/uad_lists.json

Anyways I think this can be merged. @AnonymousWP

kyoforkshomebrews avatar Dec 03 '23 18:12 kyoforkshomebrews

This repo is dead, so that's why we revived it, see https://github.com/Universal-Debloater-Alliance/universal-android-debloater. I think the commits in this PR should be in that repo, I just compared.

AnonymousWP avatar Dec 03 '23 18:12 AnonymousWP