yashsingh1/xdaforums huggingface dataset:
[Windows Mobile Development and Hacking General] vidmabal:
Really not.

Application is designed to run without user intervention.

That’s why even all errors are silently ignored: no MessageBox for invalid keys or some other errors.

Even I don't see what GUI can be helpful. Except maybe for microphone gain changing. Volume normally has control keys on Bluetooth device itself.

Of course you can use it with Mortscript or some other scripting language and make some interface in here. Error codes returned (not present in attached document)

0 - No error (all OK)

128 (0x80) - Error redirecting audio (normally occurs if Bluetooth device is not connected)

129 (0x81) - BAG0: device not found

130 (0x82) - Invalid command line parameters
[Windows Mobile Development and Hacking General] achmed20:
since u coded this, ive got a small question. do u think there is any chance to disable a remote microphone and use the internal one instead?

im asking this because the mic from my car radio totaly fails its job (JVC KD-BT11) and the internal from my phone (x1) is far supirior to it.
[Windows Mobile Development and Hacking General] JeckyllHavok:
Nice work man, just find my bt headset behind the microwave oven (my girlfriend didn't know anything:rolleyes:)

I'm going to write a small mortscript to controll the commnd line.
[Windows Mobile Development and Hacking General] MrDSL:
I'll have to look into it more but I already have advanc config to run unsigned apps..
[Windows Mobile Development and Hacking General] vidmabal:
The application has nothing common with Bluetooth transport. Really it only send control codes to BAG service (Bluetooth Audio Gateway). This one is coded by Microsoft. I think other BT stack providers (for compatibility reasons) also supports such service.

According to documentation there is no such control code to enable only audio and leave microphone untouched. (Maybe there is, but undocumented, as M$ like to do).

Also it depends on BT profiles your device support. Maybe it has some "stereo headset" without mic?
[Windows Mobile Development and Hacking General] JeckyllHavok:
Here i made a mortscript gui for this tool:

just extract to \Program Files\BTAGC

all files are included

Now make a shortcut of config.mscr in your start menu
[Windows Mobile Development and Hacking General] achmed20:
The radio itself offers "Bluetooth Headset" and "freespeech".

i tried to disable the freespeech (bluetooth settings in winmo) but somehow my phone still uses the radio as microphone.

guess i have to get my soldering iron and make some hardware mods to my radio. looks like disabling a bluetooth mic isnt going to work.

PS: but thx :)
[Windows Mobile Development and Hacking General] Pytte:
old post i know, but do you know if there is a way to display the error msgs on screen somehow ? I think im getting errors.
[Windows Mobile Development and Hacking General] vidmabal:
Really there is no much error processing here. But you can try to start app from say Mortscript and examine return code. See message #8 for return codes.
[Windows Mobile Development and Hacking General] phnikola:
Thanks for your effort put into this.

Could you please confirm if/how is it possible to do

just one

thing:

1. Cyberon Voice Speed Dialer installed on phone.

2. BT button does not invoke it (audio route opened, and dialer screen opened, but no Speed Dialer. Reg Key exists)

3. Can this program help do it? (which mode resident/on fly, which extension to exe file and how to launch it (start-up or something else))

Many thanks in advance!
[Windows Mobile Development and Hacking General] cmsasr:
Thanks

Thanks a lot vidmabal, this is what I was looking for.

:D

Cheers
[Windows Mobile Development and Hacking General] dino_Donis:
Will this program work on an HD2 which i think uses a widcomm bluetooth stack??
[Windows Mobile Development and Hacking General] vidmabal:
Really I don't know.

I am operating with service "BAG0:" ("Bluetooth Audio Gateway") - you can check if it is present in your system.

1. Launch Fdsoft Task Manager

2. Go into "Services" page.

3. Check that you have started service BAG0:

Alternatively you can check it in registry:

HKEY_LOCAL_MACHINE\Services\BTAGSVC

(Service name can differ, but "Prefix" value must be "BAG" and "Index" must be 0, "IsEnabled" value must be 1)
[Windows Mobile Development and Hacking General] vidmabal:
You do not need this program to us Voice Speed Dialer.

In opposite - it is designed to disable Speed Dialer, when you are using other program that needs BAG0: services.

If you have problems with Speed Dialer check registry key:

HKEY_LOCAL_MACHINE\SOFTWARE\OEM\VoiceCommand

I Have 3 entries here:

LaunchAPEnable = 1

Path = "\WINDOWS\sddialer.exe"

VoiceCmdEnable = 0

(Edit Path value to real location of sddialer.exe)
[Windows Mobile Development and Hacking General] varta:
hi, I've tried this on Samsung Omnia SGH-i900 , but it doesn't really work. With parameter /1 the sounds doesn't come from loudspeaker anymore, but it neither does from BT headset (even though it's connected).

Please, can anyone help me? BT Headset is Samsung HM3100.

Thanks
[Motorola Edge 40 Pro  / Moto X40 (China)] devils13:
Hi

I am enjoying my Moto X40. But I deleted the Moto's app store (aka Moto App Centre). Just wondering where I can get the APK file to reinstall it. Thanks
[Motorola Edge 40 Pro  / Moto X40 (China)] mxz55:
There is no such thing as a Motorola App Center or app store, you got me confused about what you mean, so the full package name can be useful. Either way, once you got the package name you should be able to restore it by entering this:

cmd package install-existing com.motorola.moto (you may actually be talking about this one, as it's a hub to various features/installed apps. Not to speak of that it's available in Google play store as easiest route)

For stock apps, that command will find the original package and redeploy it, useful in cases where someone runs a debloater or so, and would have done the equivalent e.g: pm uninstall --user 0 com.motorola.moto

If this doesn't work you still need to provide the exact package name, so others can try to help you by extracting and uploading it @devils13
[Motorola Edge 40 Pro  / Moto X40 (China)] mxz55:
Or, if you are Brazilian, maybe you mean "Motorola App Box" (com.motorola.brapps aka BRApps2) which is a pt-BR app store of sorts. For this thing, only the following is known and there's no activation or GUI outside of that region:

If that's what you mean, use cmd package install-existing com.motorola.brapps or just in case i will attach extracted APK file below.
[Motorola Edge 40 Pro  / Moto X40 (China)] Dayuser:
Chinese version Motorola has something called "app center"

Here is picture of Edge X30 Pro (taken from internet)
[Motorola Edge 40 Pro  / Moto X40 (China)] jody2k:
Could be useful in some cases but mind there are actually alot of useful apps you are deleting that are not actually bloatware.

Couple of examples are:

com.motorola.faceunlock

com.motorola.dolby.dolbyui

com.motorola.thermalservice

com.motorola.gamemode

com.motorola.carrierconfig

com.motorola.settings

com.motorola.aiservices
[Motorola Edge 40 Pro  / Moto X40 (China)] mxz55:
No, my definition of it is OEM apps that you don't really need, or can make your own arrangements for. The grand sum of all Motorola apps and fancy features together is what's perceived as bloat, and any selections like you are making are subjective - like with any debloats, if the person that uses it knows what they'd like to keep for their specific usecase, they can customize before running it.

Btw, some duplicates where Motorola was making Android features fancier (like for example, com.motorola.carrierconfig is a sauce for com.android.carrierconfig) where there is a working fallback on its Google implementation, were included
[Motorola Edge 40 Pro  / Moto X40 (China)] mxz55:
FYI, after this debloat, dynamic refresh rate that selects up to 120hz will continue working and is enabled by default.. but the option to select a fixed refresh rate (or 165) can't be found. I wasn't clear enough. So for most users it will be just fine, even before we identify what has to be exempted from the debloat. Most pressing issue is VPN one, it's the priority to identify the exemption to make.

Besides this, i didn't notice anything vital not working, you'll basically be on AOSP (but i still wouldn't trust any OEM not to have further hidden code or things that transmit your data. I wouldn't personally use anything but a custom ROM like LineageOS, to be fully transparent. So im just sharing debloat list for the sake of others that will stick to stock ROM)
[Motorola Edge 40 Pro  / Moto X40 (China)] Soketto:
Thanks for sharing how to debloat (and working on lineage!!)

Say if one's definition of 'bloatware' extends to google play services, play store etc, would you have have happened to try a full degoogle and microG replacement? I'll try once I get my device.
[Motorola Edge 40 Pro  / Moto X40 (China)] Soketto:
Just reporting on my successful de-bloat, I followed the steps above and did a few additional things:

- Installed Magisk and LSPosed

- Used universal android debloater to remove even more apps and google services (tool which has lists of junkware and uninstalls with ADB)

- Used De-Bloater (on F-Droid) with root to remove stubborn packages that can't be removed with ADB (e.g. PAKS, PAKS Notification, Dish related stuff)

- Installed MicroG and as many FOSS app replacements as I can :)

Note a couple of important things:

- If you want to use gesture navigation or/and the app switcher you need to have Motorola's launcher package (com.motorola.launcher3), even if you installed your own launcher.

- Video playback in browser and other apps can break if Ready For is not installed (com.motorola.mobiledesktop and com.motorola.mobiledesktop.core). Without them it leads to a crash to lock screen then loop of screen on/off on lock screen. Only way to exit is to restart.

Anyhow hope I helped someone and good luck making your device truly your own. Can't wait for Lineage OS on this phone but this will tide me for now.
[Motorola Edge 40 Pro  / Moto X40 (China)] mxz55:
Thanks for the feedback @Soketto and yeah, it will do it for me until then as well.. i like how the debloat practically gives you AOSP. For some of the more advanced, privacy aware users however this isn't enough because despite the clean front-end you would never know what an OEM has running at a lower level, therefore waiting for an opensource ROM such as LineageOS (being worked on for this device), ideally when it's paired with opensource kernel too, gives you more assurances that as much code as possible is transparant & auditable.

Also, your additional steps may help to reduce the OEM's opportunities to process and transmit sensitive data, even further
[Motorola Edge 40 Pro  / Moto X40 (China)] jimmie32:
Thanks for the guide! I'm on a Boost edge+ (US) variant and trying to remove the Dish apps, but they seem exceptionally persistent. Even with root, I can't seem to perform any operations on these apps (disable-user also does not work)

rtwo:/system # whoami
root
rtwo:/system # pm uninstall --user 0 com.amazon.appmanager
Failure: package is non-disable
1|rtwo:/system # pm uninstall --user 0 com.dish.wireless.carrierapp
Failure: package is non-disable
1|rtwo:/system # pm uninstall --user 0 com.motorola.omadm.dish
Failure: package is non-disable

These apps seem deeply buried in /product/carrier/boost and possibly other places, even in the RETEU rom. Any guidance on removing these? Should I nuke them from /product/carrier/boost and maybe sweep through priv-app to ensure they're permanently gone? (Likely need to force mount /system as rw, modify the image, disable dm-verity and reflash the image. At this point I'm not sure if I'm compromising more of my system by getting rid of the whole verity verification vs. just keeping the boost spyware)

OK it turns out that Magisk modules can get this done! I just used a debloater module to get rid of them. No dirty tinkering with the images required. All set now :)

Thanks in advance!
[Motorola Edge 40 Pro  / Moto X40 (China)] hugolight:
Hello,

to Debloat must phone be rooted...unlock bootloader?

thanks
[Motorola Edge 40 Pro  / Moto X40 (China)] mxz55:
Not really, if you're not rooted/unlocked you can reach most packages in the list, but some may give you permission denied.

Of course, things that are extra protected are also the most suspicious ones, especially given that all core features continue work fine without them. Some of them are even more protected than that you'll need root for it, requiring additional steps like in Soketto's post up here.
[Motorola Edge 40 Pro  / Moto X40 (China)] jimmie32:
It's really annoying that the sketchy parts are so well protected, as I wasn't planning on rooting the phone. But the whole premise of debloat to me was to get rid of the persistent Dish stuff that seem to be constantly listening for the exact moment I plug in the Boost Mobile SIM and proceed to take over the device and install literally a dozen marketing apps and add a AppSelector notification that cannot be dismissed until I agree to install another dozen.

This is why I'm waiting for Lineage... Even a GSI (which I'm using now) without fingerprint support is more bearable than having to deal with the Moto bloatware.
[Motorola Edge 40 Pro  / Moto X40 (China)] hugolight:
HY

how can i install GSI Build? can you post a download link from GSI Build for edge 40pro?

Thanks
[Motorola Edge 40 Pro  / Moto X40 (China)] jimmie32:
Check the GSI subforum. The instructions (and the GSI) are the same for all the devices that are Treble-capable, which is basically any modern Android device.

Just have to go into user mode fastboot to flash the system partition, clear all user data, and flash vbmeta while disabling dm-verity.

Whatever you do never relock the bootloader and never fastboot erase all, or the phone will be unrecoverable
[Motorola Edge 40 Pro  / Moto X40 (China)] hugolight:
Thanks mr.

1. Unlock Bootloader

2. Boot in Fastboot erase user data..

3. fastboot flash system lineage....img

what should i do with vbmeta? were can i download this file?

work 5g mobile data with GSI image?

regards
[Motorola Edge 40 Pro  / Moto X40 (China)] shamanoid:
Thanks for the guide!

Where can I find FOSS replacements to the removed apps, to keep functionality? Stuff like faceunlock etc..

Or better just flash LOS?
[Motorola Edge 40 Pro  / Moto X40 (China)] mxz55:
LOS is a good idea, but if you wanna be this early to the party you should know how to switch to RETUS firmware beforehand (as it's the most stable you can get it for use with LOS, and avoids some issues that are still present in "UNOFFICIAL" release at this state). You can see one of the posts about it for more info.

About FOSS, you better wait for someone that's more into this subject, i don't really know. Maybe the post from Soketto up here will put you on the right track.
[Motorola Edge 40 Pro  / Moto X40 (China)] Soketto:
For most FOSS apps, F-droid is your best bet. Can get replacements for messages, calender, contacts etc. (I like "the Simple Apps" series).

As to face unlock, no replacement that I know of (however I don't use it, only fingerprint so could be wrong. Would assume it would require a bit more system integration though).

And yes using LOS is also the endgame for me with this device, so looking forward to flashing it soon!
[Motorola Edge 40 Pro  / Moto X40 (China)] thraddash:
Is TikTok removed by this?
[Motorola Edge 40 Pro  / Moto X40 (China)] mxz55:
I didn't find it pre-installed (at least on Edge 40 Pro, and the OTA version at the time of publication). There is no debloating what isn't present.

As said in the OP, this debloat list is only verified for Edge 40 Pro, a variant like X40 may have some more chinese apps (wouldn't be hard to imagine TikTok is in that category). If others that own X40 and Edge+ 2023 can supply their output of: `adb shell pm list packages` ONLY after a factory reset/when the device is clean and stock, it can help me to make tailored debloat list.
[Motorola Edge 40 Pro  / Moto X40 (China)] Tilde88:
if you want the option to get 165hz back, restore these :

com.android.phone.overlay.motcommon

com.motorola.actions.overlay

com.motorola.android.coresettingsext.overlay.rtwo

com.motorola.android.overlay.common

com.motorola.android.settings.overlay.fps.display

com.motorola.android.settings.overlay.global

com.motorola.carriersettingsext

com.motorola.comcast.settings.extensions

com.motorola.coresettingsext

thanks for this @mxz55 saved me a lot of time doing it myself. i left a tiny bit more on it than your full list, but it works great. thanks friend
[Motorola Edge 40 Pro  / Moto X40 (China)] mxz55:
Ok, are you sure that all of them are absolutely needed to get 165hz? Or was it a bunch you re-enabled at the same time after which it just worked.. it'll be appreciated if you pinpoint it exactly if you didn't already, because if I'm going to edit OP, i would rather add back the least amount of bloat

@Tilde88
[Motorola Edge 40 Pro  / Moto X40 (China)] tabaz:
Ok, if i just want to remove all stuff developed by motorola, i might use this list. But hold on - whats the concept of debloat ? Not to remove functionality in general but to remove stuff which simply blows things up.

Thanks for your effort - but could you please attach a column and note what these apps are for before the line is executed?

There is so much good stuff motorola implemented in the edge phones (like desktop mode, gaming overlay, 165hz, audio features, ...) why would someone want to get rid of this?
[Motorola Edge 40 Pro  / Moto X40 (China)] mxz55:
That's a tricky subject, debloats are also a privacy tool: to not give proprietary applications the benefit of doubt when it comes to hidden data collection/spying.

This is even more sought after by many users when it comes to chinese phone brands, as chinese companies can be subject to government orders for spying on consumers at any time. Motorola is no longer an all-American brand, it's been acquired by the chinese Lenovo.

I don't see someone transparently reverse engineering every last bit of stock apps & features to let it be known, as well as any updates pushed to them later on. That's just not adopted in the mobile scene yet.

Note that even the strictest debloat won't get rid of all proprietary things, it's not gonna do as much as a custom ROM like LineageOS in that regards, but it will enable users that stay on stock ROM to do as much as can be done, and potentially nab as many sources of performance bottlenecks and unknown/dangerous privacy practices as possible.

As I've mentioned before, users can select what to debloat by matching package names to any features they prefer to keep, the list is just a suggestion and is selected to remove as much while keeping core Android/AOSP-like functionality. Advanced users (often the ones that set out towards a debloat in the first place) may not need much when it comes to fancy features, and anything they like in particular is safer to handle on a whitelist basis, compare it to tidying up your living room but not knowing where to start & you can imagine a purpose for each object - it can be useful to have within reach at some point in the future - that keeps you from doing it; you continue to hoard a mess in the living room. The only way to tackle it is being able to see it, and say: instead of dwelling on being too picky, ill put all of it in storage, and if i ever need something in particular i will get it and it may even stay in the living room, but at least i got rid of 99 out of 100 items at once. It's just a knot to cut, you either do it integrally or never end up doing it & only dwell on it.

So, anyways, this debloat list is for the category of users that are like me, if they need or want to stay on stock ROM, and would rather just make the phone their own with personal apps & features (whether it be keeping/returning specific Moto stuff or arranging for 3rd party apps) following the debloat. If you aren't like that, of course you are free to make another topic with a debloating strategy that you find more suitable for your own demographic. It's not like you have to use my list when you want to debloat, but i can tell you I'm not going to change my perspective/entries on the list in this regard. Rather than not using it or making a new debloat, we can also collaborate: If you have the free time required to make a disclaimer line for what each package in my debloat list is, i would gladly add it without removing any entries, so that users will be able to better select what they like to keep or not. You could even group packages that are related features/depend on eachother.
[Motorola Edge 40 Pro  / Moto X40 (China)] tabaz:
Ok, i get your point - fair enough.

So than there is a request of mine:

Since you put quite an effort in identifying the packages, could you tell us (me) which one does what?

Thanks in advance.
[Motorola Edge 40 Pro  / Moto X40 (China)] JohnnyM97:
Hi guys, has anyone had problems with deleting "Ready for / Ready for engine" (problems like touch/lock screen going crazy, every time you open a video/live on an app like Twitch, Youtube, Google etc...)?
[Motorola Edge 40 Pro  / Moto X40 (China)] mxz55:
Thanks, is that X40 or Edge+ 2023?

@TheLostOne
[Motorola Edge 40 Pro  / Moto X40 (China)] TheLostOne:
It's an Edge+ 2023.
[Motorola Edge 40 Pro  / Moto X40 (China)] andrijark:
after disabling some applications I can't restore them now.

com.motorola.carierconfig for example but of all the rest. after selecting apk noting happend when click enable or restore.

debloat was perform in android 13. now running android 14.
[Motorola Edge 40 Pro  / Moto X40 (China)] fitrockx:
I know this is not a reply to your question, but why do you want to restore com.motorola.carierconfig? Some issue with that missing in A14? I am asking because I just got A14 and am thinking about using this debloat list.
[Motorola Edge 40 Pro  / Moto X40 (China)] andrijark:
I'm facing issues with sms and network on esim. Most probably it's due to A14 not with debloat, because it's start after update to A14.

Otherwise, if you want to keep gestures, quick actions and some other things you should kept some of the APKs. Or to look for 3th part APK.
[Motorola Edge 40 Pro  / Moto X40 (China)] mxz55:
@andrijark in the OP, please pay attention to the part about undoing any removals from debloat:

adb shell > cmd package install-existing [package name]
[Motorola Edge 40 Pro  / Moto X40 (China)] fitrockx:
Thank you for the insight!
[Motorola Edge 40 Pro  / Moto X40 (China)] srrhhmx:
Thank you for your list. It has helped me a lot, it has saved me time.

My final list, for my moto g32 is as follows. In alphabetical order for ease of locating apps.

I have made a change, I have eliminated "--user 0", because including this parameter does not eliminate the application, it only prevents user 0 from using it, in my case I wanted to delete everything.

Greetings.

Spoiler content hidden.
[Google Pixel 2 Questions & Answers] a_p2:
it is locked i try to set it up and it asks for the old acc to verify but i dont have it and a factory reset does not do anything im just locked out
[Google Pixel 2 Questions & Answers] Jan Skokan:
Hi, try this. 🤗
[Google Pixel 2 Questions & Answers] matthewbris:
https://flash.android.com/ this should help 😀
[Moto G5S  Questions & Answers] mcgradylu:
Does anyone keep this ZUI rom file for moto g5s?

I just see this old post in the telegram. But the download link is google drive link, and it's no longer there. Does someone still keep this copy and upload it again?

__________________________________________________

ZUI - From Lenovo Z6 (Print by https://t.me/montanalabtesters/642767?single)

- Changelogs:

• Security Patch: 2020-06-05

• Removed various apps and bloat (You can remove others bloat in /system/app/)

• Optimized system, Vulkan and OpenGL drivers located in /system/vendor/

• Thanks Erfan for Tool (ErfanGSIs)

* Have Magisk pre-installed

- Issues: Moto Actions (AOSP Keys issue, resign with ROM_resigner)

• Download

__________________________________________________

View attachment 5919861