yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy A40 Guides, News, & Discussion] Charlie Cooper:
Instructions

A big thanks to joaofl for getting this list together for us!!!

Here's some info that might help others...

- This article has info (it's further down in the page) on how to use the script (you copy and paste it into Windows command promt/cmd as admin and after installing ADB... link in the article below).

https://piunikaweb.com/2019/03/25/samsung-galaxy-s10-remove-bundled-bloatwares-without-root/

- There's a typo in the script... Lines 84 onwards on the code has a typo where it says 'pm' rather than 'adb'. Changing that before you paste it into cmd fixes it.
[Samsung Galaxy A40 Guides, News, & Discussion] joaofl:
Indeed, there were some errors there. I updated the script now, and it should work better now.

and NO, you dont need to be root to run it.

I prefer to remove stuff instead of disabling it, as it free up some space. Worst case, you need to restore the phone.
[Samsung Galaxy A40 Guides, News, & Discussion] ZJule:
Yesterday I disabled a lot of unnecessary apps on my Galaxy A40. At a certain point the device was locked an a message said something about "not authorised removal of billing/paying apps". I had to do a hard recovery because I could not enable any of the apps. In fact I could do nothing with the phone ;)

I mention this because on all the lists I found on the internet the billing/paying apps are listed as bloatware/unnecessary which was not true in my case. My A40 is customised by hutchison (drei) maybe this has something to do with it.

edit: the package name which is locking the phone is

com.samsung.android.kgclient

HTH and have a nice day!
[Samsung Galaxy A40 Guides, News, & Discussion] Makishima:
Does anyone know if a factory reset from Settings will restore all the apps removed via this process?

EDIT: It does.
[Samsung Galaxy A40 Guides, News, & Discussion] Weasler:
Can you say which apps cannot be removed OR disabled?
[Samsung Galaxy A40 Guides, News, & Discussion] Tony il Capo:
Do not remove Samsung Payment Services (using root), if you do you will get a locked/unusable device, it will show 'Device locked because Payment services was uninstalled without authorization' and reflash will be needed.
[Samsung Galaxy A40 Guides, News, & Discussion] Weasler:
Thanks, I'll just stick to disabling apps until I get to know this phone a bit better! The battery monitor doesn't say I have anything chewing up CPU and I'm only losing a few % overnight on idle (even with LED notification fix) so I must have optimized a good bit already.
[Samsung Galaxy A40 Guides, News, & Discussion] fredapied:
hello,

good idea !!

i have done the same with luckypatcher (need root)

i forgot this way.... easy with adb

thank you.
[Samsung Galaxy A40 Guides, News, & Discussion] c69k:
Hi, just uninstalled apps using ADB and the script from Page 1. All is fine, even though I forgot to install G-board beforehands, I just sent it from laptop to install on A 40 afterwards.

Amazing job. phone feels lighter and smooth now.

Thank you !!! [MENTION=8387271]joaofl[/MENTION] [MENTION=4122877]curiousrom[/MENTION] and [MENTION=5471194]costa11[/MENTION]
[Samsung Galaxy A40 Guides, News, & Discussion] ruloes:
I want remove all samsung on my new galaxy A40, but:

I need to be root.???

I can backup first my original firmware??? And then if there are problems restore this backup??

I need simple use to consume los battery.

Thanks
[Samsung Galaxy A40 Guides, News, & Discussion] fredapied:
Adb doesn't need to be Rooted to be used

Just activate USB debugging(see tutorial about développer mode), and use cmd from your PC (and have adb.exe in a directory for sure)

Pay attention that the phone will Ask you to confirm the authentication as soon as you set "adb start-server"

For the backup, you have already asked it in another thread in which i answered you.

Envoyé de mon SM-A405FN en utilisant Tapatalk
[Samsung Galaxy A40 Guides, News, & Discussion] ruloes:
I don’t understand the backup thread, where?

I did it with adb but now.... what else
[Samsung Galaxy A40 Guides, News, & Discussion] muppetz:
I just recover all my files from another Samsung Galaxy to new A40 with own Samsung account backup . There is also Google backup but it is not complete . Samsung backup satisfied me a lot . Just register , sign in Samsung account and from phone settings click on backup .

No need root , of course .

Regarding removing bloatware there are plenty of tutorials on this subject . Just look for it . It's all about adb shell cmd and activate debugging mode from phone . You need also an apk inspector from Google Play to know for sure name of apk you want to uninstall . Don't touch system apks , lists with bloatwares can be uninstalled you can find here on xda (galaxy phones) .

Personally I remarked besides their importance , apks like Calendar and Google Search eat a lot battery . I don't need these apks so I got rid of those and another and I can say battery was semnifically improved . I use also dark mode (from usb debugging) , native digital wellbeing for nights and all-in-one tools apk for some special android characteristics like boost , boot , clean etc

It's important to mention all apks uninstalled still remained in android backup image so they can be restored from phone factory reset .

Succes !
[Samsung Galaxy A40 Guides, News, & Discussion] mrmysterious:
I clean my A40 from the bloatware with the script and I lost the recents app screen of One UI.

Now my recent list is the stock of Android 9. Moreover I totally lost the recents screen when navbar is in gesture mode.

Someone can help me to understand which apk are related with my issue?

Script:

https://gist.github.com/joaofl/7671...33d9#file-clean-samsung-galaxy-a40-bloatwares

Thank you for the efforts. I am a new buyer of A40 and I hope the community grow up!
[Samsung Galaxy A40 Guides, News, & Discussion] muppetz:
I suggest factory reset then remove again certain bloatware . Don't touch system apks . Also try to backup your system to Samsung Cloud .
[Samsung Galaxy A40 Guides, News, & Discussion] mrmysterious:
I don't care about this, because I hope we will soon receive android 10 wíth one UI 2, I just would like to know if someone knows the apk related with this issue to fix or advice next people that will use the script.
[Samsung Galaxy A40 Guides, News, & Discussion] c69k:
LOL I quote myself here. Just updated to December 2019 OTA update a minute ago and, to my surprise, all removed applications did not get re-installed (LUL, I am new to Android) and phone is just faster, especially fingerprint unlock which had 1 second delay after previous OTA update works instantly now from screen off.

Overall, I am happy I bought this OLED phone, it supportts APTX and works great with BT Creative Oulier Golds.
[Samsung Galaxy A40 Guides, News, & Discussion] LamMinhThien:
Samsung Galaxy J8 Debloat 226 Packages - NO ROOT

github minhthienmap/j8y18lte_stable_packages

I note a lot of app that can remove safety

And Multi command. To reinstall neccessary apps

You can copy all and put directly in cmd
[Samsung Galaxy A40 Guides, News, & Discussion] xKalt:
For those who accidentally uninstalled an wanted app, here is how to install it back: android.stack<remove>exchange.com/a/215316

adb shell cmd package install-existing <package_name>

With removing "com.samsung.android.app.galaxyfinder" package I lost ability to search through my apps in the launcher.

Thanks for the script!
[Samsung Galaxy A40 Guides, News, & Discussion] retorquere:
Safe to uninstall Pay?

I see comments that it's not safe to uninstall Samsung Pay, but the scripts mentioned in this thread do uninstall them. So is it safe to do so?
[Samsung Galaxy A40 Guides, News, & Discussion] joaofl:
Ok
[Samsung Galaxy A40 Guides, News, & Discussion] joaofl:
Well spotted. I have just removed that line from the script and reinstalled it myself.
[Samsung Galaxy A40 Guides, News, & Discussion] dari-woka:
here you have my debloater
[Samsung Galaxy A40 Guides, News, & Discussion] Charlie Cooper:
#adb uninstall --user 0 com.sec.android.app.launcher

If you force this uninstall you'll remove your swipe up gesture navigation bar and your recent apps switcher screen... I learnt the hard way!
[Samsung Galaxy A40 Guides, News, & Discussion] mrmysterious:
Did you apply it on a fresh Android 10 install?
[Samsung Galaxy A40 Guides, News, & Discussion] sonof:
How to easily copy paste this script?

I have cmd and adb runnind but how can I copy paste everything at the same time?
[Samsung Galaxy A40 Guides, News, & Discussion] Charlie Cooper:
This script no longer works but there is another post that goes through disabling them first so you can then remove them as a workaound. UNLESS am I the only one who noticed this is broken on a more recent firmware revision of the A40?
[Samsung Galaxy A40 Guides, News, & Discussion] tigor.nsk:
Regarding space. I experimented with Galaxy A40. I run 'df' before removal then I removed several packages and run 'df' again. And I saw the 'Used' space increased! Like this:

Before: /dev/block/mmcblk0p32 53526016 2535136 50854688 5% /data

After: /dev/block/mmcblk0p32 53526016 2715948 50673876 6% /data

I checked what my phone reports also and it showed increased emory usage! I do not understand this :confused:. The whole point is to free the memory but it doesn't. Has anyone checked the memory usage before and after to support that removing packages does get more space?
[LG G7 ThinQ  Questions & Answers] you4s:
hi everybody i recently purchased this g710em and out of the box i found the pie update so i did install it right away but i am very disappointed coming from an xz2 which was very snappy like realy snappy compared to the g7 and i didn't try oreo yet my request for you guys eas if u any one can hzlo or share his experience:

_can i downgrade to oreo.

-(if yes) is oreo better than pie.

-what is the latest oreo firmware or the most accomplished one.

i really like the audio capabilities and the build quality of the g7 but i cant keep it withe this kind major problem wich lag in the very basic ui. thank you. very much in advance.
[LG G7 ThinQ  Questions & Answers] loonycgb2:
If it is rootable then proceed to root and use a non stock rom that is oreo based.

Unless someone has made a stock backup you can restore via twrp.
[LG G7 ThinQ  Questions & Answers] you4s:
i did downgraded with lgup to the g710em10s everything seem fine sim card speed no stuttering anymore even while installing 170 app from playstore ram management now i have 1.1 gb free ram while in pie i had only 400mb or 500 mb switching between apps via recent button seem snappier i let guys now about the sot battery.
[LG G7 ThinQ  Questions & Answers] ashu258:
Can you provide some more details about the procedure. I am complete newbie and couldnt figure out.
[LG G7 ThinQ  Questions & Answers] maydayind:
Not running pie makes u exposed to som nasty explots.

But a aosp shuld be faster even android 10

---------- Post added at 11:35 AM ---------- Previous post was at 11:34 AM ----------

Whye go thru the jobb with unlock and twrp when u can downgrade with lgup and a kdz
[LG G7 ThinQ  Questions & Answers] Heizi Blt:
yes u can do it with lg up ,nothing wrongs
[LG G7 ThinQ  Questions & Answers] 4imb0t:
Can anyone else confirm that downgrading from Android 9 Pie to Android 8.0/8.1. Oreo is safe?
[LG G7 ThinQ  Questions & Answers] maydayind:
No its not safe.. Your phone is easely exploited wintout security patches
[Samsung Galaxy A50 Questions & Answers] Xplorer4x4:
I have an A50(A505U through Sprint) with a locked bootloader. I've tried the 7 day trick to enable Oem Unlock in Developer Options but it doesn't work. I'm wondering what the chances of being able to to force oem unlock using adb is without bricking my device? I figure this is to easy of a solution but hoping someone is willing to try it!
[Samsung Galaxy A50 Questions & Answers] Stache1:
I also have the same Sprint A505U and I'm having the same problem. Hope we get a resolution for this.
[Samsung Galaxy A50 Questions & Answers] elliwigy:
im picking up a verizon A505U tomorrow.. out of curiosity, are you able to flash combo firmware?

also to add, you cant force oem unlock using adb.. you can probably set the oem unlock to on in adb but it doesnt actually change the unlock bit wherever its stored in the firmware so as soon as you reboot its back to 0.

If you can flash combo however you can enable oem unlock then flashing back to stock the oem unlock bit should remain on.

Either way, I will be playing with it all weekend lol.. i just hope its not like the A102U i purchased from tmo which doesmt let me flash anything
[Samsung Galaxy A50 Questions & Answers] xlegitimate:
let me know if you get anywhere ? good luck.
[Samsung Galaxy A50 Questions & Answers] Xplorer4x4:
Yes I have used Odin to flash a sprint firmware from samfrew and and found out it was sprint verzion firmware when poking around.

I suspect it is going to be the same. All U variants can't be unlocked from what I've been told.
[Samsung Galaxy A50 Questions & Answers] elliwigy:
yea, stock u firmware no problem but havent found a way to flash combo yet :-/
[Samsung Galaxy A50 Questions & Answers] Xplorer4x4:
To flash vzw/sprint combo firmware? I flashed it on a 505u from Sprint with Odion after an expirament resulted in a soft brick.
[Samsung Galaxy A50 Questions & Answers] elliwigy:
you dont get it saying factory approval needed for factory binary?
[Samsung Galaxy A50 Questions & Answers] lwang9:
I got one from Samsung Insight Program and there is no way to install 3rd party boot loader.
[Samsung Galaxy A50 Questions & Answers] Xplorer4x4:
Nope. I got in to download mode and flashed the sprint firmware from samfrew and it works fine. I discovered the firmware has some vzw apps included but not all of typical vzw bloat.
[Samsung Galaxy A50 Questions & Answers] elliwigy:
im confused lol..

i can install stock firmware fine whether its sprint or not..

what im wanting to flash that i cant so far is the A505U Factory Combination firmware, not the stock based firmware.

Factory combo firmware usually cant flash and will say it needs approval to flash factory binary..
[Samsung Galaxy A50 Questions & Answers] Synikaal:
I take it it's currently impossible to unlock the bootloader on the SM-A505U?

I haven't done much with Android since I had a spat of amnesia so I don't remember much, but is it possible to root this phone without unlocking the bootloader? I don't have any plans of installing a custom ROM, just want root privileges.
[Samsung Galaxy A50 Questions & Answers] MatRybnO:
Witam! I znalazł ktoś jakiś sposób na odblokowanie? Zależy mi bardzo na TWRP oraz Root.
[Samsung Galaxy A50 Questions & Answers] DyretheStrange:
Was anyone able to flash a combination AP file? I get a secure check fail for everything. I'm using Heimdall. Whichever packet is uploaded first, it will fail at that packet.

Edit: Just realized it's probably because of RMM state. Has anyone discovered a bypass? I guess I'll try waiting for 7 days with no sim card and see if that does it. Tried Chimera tool to RMM Unlock with no luck
[Samsung Galaxy A50 Questions & Answers] wilko64:
Straight Talk A505U (SM-S506DL)

Following along this thread. This is my first post ever. I have some experience with odin and Samsung. I would like to try out flashing and return with the results. Not afraid to soft brick. Could I possibly get a link to anything you have so far and I will share anything I find? Thank you.

Wilko Solutions
[Samsung Galaxy A50 Questions & Answers] Phonebricker:
So has anyone got combo firmware to load on this? Im also getting needs approval
[Samsung Galaxy A50 Questions & Answers] elliwigy:
nope
[Samsung Galaxy A50 Questions & Answers] elliwigy:
there was nothing to give...
[Samsung Galaxy A50 Questions & Answers] Phonebricker:
So basically there's no frp bypass working? Besides hardware like z3x?
[Samsung Galaxy A50 Questions & Answers] elliwigy:
you didnt ask about frp bypass and this thread is about bootloader unlocking at which isnt possible from what i can tell
[Samsung Galaxy A50 Questions & Answers] stellar0322:
I got FRP bypass off when I flashed this "https://support.halabtech.com/index.php?a=downloads&b=file&id=206734" it did fail at boot.img.lz4 gave me a secure check error everything else flashed fine, ended up having to go back to stock because it just kept boot looping. Tried flashing the stock kernel to no avail had to start fresh. Is the RMM state different than the FRP lock?
[Samsung Galaxy A50 Questions & Answers] elliwigy:
yea.. i imagine the boot.img is patched with root probably so it wont flash while ur bl is locked..

and yes.. rmm and frp r two different things..

Not sure exactly what rmm stands for but its more of a carrier type lock.. for example similar to kg lock.. if u dont pay the device off or something they can set it to prenormal or other status to prevent u from modifying/unlocking the bl..

frp well is simply something the user sets by logging into their google acct then when device is reset it will ask for the last users info that was logged on before the reset to avoid theft..

frp is disabled as long as oem unlock is toggled on.. so ppl with unlocked bls dont have frp enabled
[Samsung Galaxy A50 Questions & Answers] stellar0322:
Makes sense, so after I pay off this device do you think that it will be possible to unlock my BL? Or is this something that will take a bit of development to accomplish? The other route I wanted to try was changing CSC codes to see if we could change the device ID (needs root) to trick it into thinking it's a G or F model. Those variants have the exact same hardware minus NFC.
[Samsung Galaxy A50 Questions & Answers] elliwigy:
dont waste ur time lol.. it wont b unlockable even after u pay it off.. also changing csc does nothing for bl unlock either.. in fact the mdel/carrier id wont even change, only the csc will..

changing devid wont matter im afraid.. the devices are signed with a unique key which is burned into hardware.. basically no chance in converting it or using other firmware bcuz we would first need to unlock bl to do any of that lol
[Samsung Galaxy A50 Questions & Answers] stellar0322:
I will work exclusively on ASK1 BL if there is any chance it would be an exploit just like how I unlocked my SM-900V (Samsung Verizon S5.) When I find some time I will load up Android SDK 28 and start at least looking at the partition structure of this particular device. Wouldn't mind starting a new thread just working on the Sprint U models and it's American U1 variants. Of course, I would have to figure out how to get root access first before doing anything major. Has anyone done the Magisk only root successfully on these variants? (SM-A505U, OR SM-A505U1)
[Samsung Galaxy A50 Questions & Answers] mike80184:
im going to try on my a505ui so far no luck
[Samsung Galaxy A50 Questions & Answers] BK☑️:
nope it cannot be unlock since it's 'single' and not 'open'

SM-A505F (A50_SWA_OPEN.pit)

SM-A505FN (A50_SWA_OPEN.pit)

SM-A505GN (A50_SWA_OPEN.pit)

SM-A505G (A50_SWA_OPEN.pit)

SM-A505GT (A50_SWA_OPEN.pit)

SM-A505FM (A50_SWA_OPEN.pit)

SM-A505N (A50_KOR_SINGLE.pit)

SM-A505U (A50_USA_SINGLE.pit)

SM-A505U1 (A50_USA_SINGLE.pit)

SM-A505YN (A50_SWA_OPEN.pit)

SM-A505W (A50_CAN_SINGLE.pit)

SM-S506DL (A50_USA_TFN.pit)

if we could trick the device into flashing an open .pit file (like editing with PIT Magic) we could theorically unlock the bootloader for the locked variants. (also there is no need to play with Z3X tool it's not going to work!) since may/june samsung doesn't allow to flash combinations firmwares anymore (until a workaround is found).
[Samsung Galaxy A50 Questions & Answers] elliwigy:
do u have any documentation that the pit file has this capability? I'm curious to know.. Unfortunately also I dont think this will work since the pit is also signed hence why you cant flash other pits. This is same for SD devices which I have tried using other pits as well as modified pits which I can flash using EDL mode. When device reboots it goes to odin screen and throws a secure check fail for the pit file pn locked bootloaders.
[Samsung Galaxy A50 Questions & Answers] BK☑️:
well if that's what happened i don't know another way to exploit it, if only i had a locked bootloader device to test it
[Samsung Galaxy A50 Questions & Answers] elliwigy:
gotcha lol.
[Samsung Galaxy A50 Questions & Answers] strubedo:
I have a a505u1 we can test with
[Samsung Galaxy A50 Questions & Answers] elliwigy:
test what lol.. u got a locked bl
[Samsung Galaxy A50 Questions & Answers] strubedo:
You said you needed a locked bootloader to tezt
[Samsung Galaxy A50 Questions & Answers] elliwigy:
I didn't say that lol.
[Samsung Galaxy A50 Questions & Answers] AaronVey22:
Listen, anybody with a carrier unlocked a505u, try turning on OEM Unlocking (if available) then shutting down, then holding power, volume down, and volume up until a screen comes up, then volume up long press should unlock the bootloader (a505w has SINGLE pit file, yet can still be BL Unlocked)
[Samsung Galaxy A50 Questions & Answers] meegosgift:
what do you mean? the problem of a505u version is no oem unlock option even enable development mode
[Samsung Galaxy A50 Questions & Answers] AaronVey22:
Settings - About phone - Software Info - Repeatedly tap Build Number
[Samsung Galaxy A50 Questions & Answers] meegosgift:
Obviously you do not have an a505u version phone and you haven't read my post carefully. What you said to tap build number is the way to enable develop mode, but the problem of the u version is there is no 'oem unlock' button in the develop mode !
[Samsung Galaxy A50 Questions & Answers] AaronVey22:
well try the button combo anyways

see if it works:confused:
[Samsung Galaxy A50 Questions & Answers] elliwigy:
it doesnt work.. u can enable dev options but oem unlock is not available.. also going to dl mode and pressing/long pressing vol up just loads the normal odin/dl mode. We need to first figure out how to toggle the switch/allow the oem unlocking then the option should become available inodin screen..

However, are you ssying that the A505W allows oem unlocking?
[Samsung Galaxy A50 Questions & Answers] SP6RK:
Yeaaa im not shorting my phone

Im positive there is no other download mode and if you find a way to do a hardware bypass i would be happy to try it once you show proof that it works
[Samsung Galaxy A50 Questions & Answers] elliwigy:
you are incorrect.

exynos devices have a recovery mode which is known as exynos usb recovery mode.

when device is bricked or test points are used it is similar to edl mode.. screen is black looks like its off but on pc its listed as exynos usb device.

theres also repair files but its a bit different than edl.. frok what ive researched and been told you can take the sboot.bin amd use a hex editor to split it into parts which can then be flashed using a tool similar to odin.. its usually called usb multidownloader.

Also from what I hather, once in this mode with the correct repair files it will boot the device into dl mode at which you can flash any firmware. This means it can be used to bypass the need for factory token and allow combo to be flashed.

I have got a number of files from various exynos devices as well as some for my A50 but its real tricky getting the drivers installed correctly and getting the files right so i have not been successful yet on A505U.
[Samsung Galaxy A50 Questions & Answers] SP6RK:
Im not as experienced as you and i still have alot to learn

Do you have any more info on this?
[Samsung Galaxy A50 Questions & Answers] sketchscarz:
To get into ODIN MODE or DOWNLOAD MODE on the A505U, First with phone on Hold Vol -, & power UNTIL THE DEVICE TURNS OFF KEEP HOLDING Vol -, + Power for 5 seconds, then when the screen turns on, press the vol + holding all Vol +, Vol -, & power then release power button then press power again holding all until it boots into download mode.

View attachment 5086063