yashsingh1/xdaforums huggingface dataset:
[General Questions and Answers] CedarWaxwing:
I want to block safe mode and factory reset on Android so that if I install 3rd party software that prevents me from viewing pornography, I can’t easily remove it or disable it.

When I tried Android in the past, one night I accidentally discovered safe mode and that allowed me to disable and delete the software that guards against porn. Because I was not able to fix it, I bought an iPhone and I am more satisfied with its settings and restrictions. However I like a number of aspects of Android better than iPhone, which leads me to ask about this.

I have been told that enterprise or mobile device management software can fix this, but I also was told that I would not be able to use the volume buttons because MDM software disables the volume or power buttons. I might not be as concerned with factory reset since you lose all your data, but safe mode is a very quick way to circumvent the content protection software. I think I remember that it might have been accessed with the volume down button when restarting the phone but I don’t remember very well, as I stopped using the phone I think more than two years ago and gave it to Goodwill. It was an LG Stylo 4 smartphone.

Being a music lover, I don’t want to disable the volume buttons, and disabling the power button makes it difficult to restart the phone if something goes wrong with an app.

Is there any other way to disable safemode on Android without using MDM software? Like can you setup a child account on the device to block it? Or I read advice that encrypting the phone would block safemode, but the problem is when I checked, the phone was already encrypted.

I also want advice about which Android phone is the best to buy for blocking safe mode and factory reset. I have been told that phones with Samsung Knox security settings are the only phones that allow MDM software to block factory reset even in the recovery menu that can be entered by pushing certain keys when you restart the phone. I’m not sure how this works with blocking safe mode.
[General Questions and Answers] CedarWaxwing:
Okay I looked up online that holding the power button is how you enter safe mode and so I think you would have to disable the power button with MDM software which I don't really want to do in case I need to restart the Android phone.
[General Questions and Answers] wilsonhlacerda:
To permanently disable safe mode there is a way, using some terminal / adb commands. Must be done just after reset, before setting any (Google) accounts or enabling additional users / profiles.

After a year looking for that without success I found it as a comment in the middle of random thread, I'm almost sure it was on Reddit, but can be on Xda. Besides the user instructions it linked to a Github with detailed instructions. This was written within last month.

The problem: I've not saved it! Yes, I'm dumb. I'm now trying to find it again and that is why I found this thread here.

I'll try a bit more and if can find I'll come back here. if you manage to find it, but please let me know!
[General Questions and Answers] wilsonhlacerda:
Found it. The magic is done by turning an app (that implements the safe mode block and other functionalities, like avoid reset and tons others) a device owner.

For instance those 3:

Sentry (for data protection)

https://github.com/x13a/Sentry

Test DPC (by Google itself, as a test foundation to developers, to try Android MDM)

GitHub - googlesamples/android-testdpc: Test DPC is a sample device policy controller for use with Android Enterprise. It gives developers the ability to see how their app will behave in a managed context such as device owner or within a managed prof

Test DPC is a sample device policy controller for use with Android Enterprise. It gives developers the ability to see how their app will behave in a managed context such as device owner or within a...

github.com

Andoff (CLOSED source, like Test DPC on steroids)

Andoff - Apps on Google Play

An app for advanced locking of apps and device features.

play.google.com

What is most important is that have to install the app on a device with NO accounts and NO additional user/work profiles, then give the ADB dpm command (or on terminal with root). After that ok to set accounts/profiles
[General Questions and Answers] CedarWaxwing:
Thanks for the information.
[General Questions and Answers] CedarWaxwing:
I read the information you posted and it seems to be over my head, since I do not have a really extensive understanding of smartphones. I would not say I have developer level skills. Do you have to download the file from the Github link and install it on the Android phone? I didn't see info about blocking safe mode on the Github link that you posted. I did see info about blocking safe mode on the Andoff link but does Andoff work by disabling the power button so that you can't enter safe mode?
[General Questions and Answers] Nords99:
I came across this thread also looking for a way to block safe mode myself. After going through a similar situation, I also found safe mode as a workaround for some things, including 3rd party software, even as a device administrator.

Regarding the apps posted above to block safe mode or factory resets, I do not believe Andoff blocks the power button, but it also looks like the only way these 3 apps can be configured is after a factory reset anyways. Possible to do, but seems like it requires some technical knowhow and would be a pain in the butt to get everything set up again. Moreover, after looking at Andoff, it looks like it's a paid service, and I'm not sure if it would work if you're not subscribed. Though their payments are pretty affordable, it's another thing to consider.

The one method I found myself that seems to work alright (though note this only involves safe mode and not factory resetting my phone - no amount of temptation is going to get me to do that) is to uninstall the google app. Since safe mode automatically disables all non-system apps, the only apps on my phone were pretty much basic google ones and the calculator. Unless there's anything NSFW in your files (since Files by Google isn't disabled) or photos (since Google photos isn't disabled), the only app that could access something is the Google app itself.

If you do want to go through with uninstalling the Google app, you just need to run this adb command:

pm uninstall -k --user 0 com.google.android.googlequicksearchbox

Worth looking at the full tutorial here prior to running it.

I'm currently running Evolution X 7.9.2 on Oneplus 8. It's possible that uninstalling the Google app might mess up some stuff for other phones (namely, Pixels), but Evo X is based on Pixel OS anyways and hasn't caused any significant issues. Just note a few other things that are part of the Google app might not work, including the search box, Google news page, the at a glance widget, Google lens on the photos app, and sound search.

Good luck, I hope this is something that works for you! Keep on fighting my friend.
[General Questions and Answers] CedarWaxwing:
Thanks for the information. I have been told that using Andoff requires a Pluckeye subscription which I think is a browser that delays displaying images for a delay that you set such as 5 hours. You don't have to use Pluckeye though and can just use Andoff.

I have also been researching using Manage Engine Mobile Device Management software which can block factory reset and safe mode:

Android Mobile Device Management | Tech Lockdown

Enforce filtering and device settings by managing an Android device

www.techlockdown.com

I am researching Samsung Knox enrollment which can also block factory reset from the recovery menu. This article about Samsung Knox enrollment is confusing to me and goes over my head when I read it:

Samsung Knox Device Enrollment | ManageEngine Mobile Device Manager Plus

Samsung's Knox Mobile Enrollment provides a portal to deploy and manage Samsung devices in bulk using Mobile Device Manager Plus. Try free for 30 days!

www.manageengine.com
[General Questions and Answers] ceamorecash:
Physically locking the phone away and using a computer that one can guaranteed lock down was an option for me.

A temporary solution if anyone else doesn't have root but you have a device that is locked down and can connect using adb is to use adb automation to change to a password you don't know. This will lock the phone even in safe mode. And you can use adb to unlock the phone
[General Questions and Answers] ceamorecash:
With root you can make Android treat some apps as system app, so can still be enabled in safe mode.

Find the apk and copy it to /system/app in a new subfolder. Make sure to remount /system as -rw

________________

For factory reset prevention you could put an important file on the phone like crypto keys worth $100. If someone is willing to factory reset that, then they probably need professional help because for $100 they could buy a new phone.
[Walmart Onn Tablets General] payten4061:
Bad flash hard bricked the device, tablet will not even turn on or go into recovery mode. Help is needed.
[Walmart Onn Tablets General] b1zk1t.1337:
Sorry if I'm a year too late, but I recently managed to pull the recovery.img off my tablet using mtkclient. Here is a recovery file for it as well as a boot.img if you want to root.
[Samsung Galaxy S22 Ultra] Angelo Alex:
Hello have someone this firmware?

S908BXXS6CWF6/S908BOXM6CWF6/S908BXXS6CWF6/S908BXXS6CWF6

(SM-S908B/DS) Eux

My device is bricked just download mode available...
[Samsung Galaxy S22 Ultra] jejemc:
Samsung Firmware Download - Lastest official firmware update

Samsung Firmware Download ⭐ Official and fast update ⭐ Lastest and old version ⭐ Max speed and free download ⭐ Best Samsung Galaxy website

samfw.com
[Samsung Galaxy S22 Ultra] Angelo Alex:
I know this site the july patch is not posted yet.

the binary which break my phone are really up to date lol
[Samsung Galaxy S22 Ultra] dr.ketan:
Try with samsung switch
[Samsung Galaxy S22 Ultra] Angelo Alex:
The program say my device is not supported
[Samsung Galaxy S22 Ultra] nguyenlucky:
yep you seem out of luck. Wait for other CSCs (like SEK) to receive the update. They belong to the same OXM multiCSC so flashing SEK won't change your EUX CSC.

Samfirm reborn, frija are not able to fetch EUX and EUY firmwares at the moment.
[Samsung Galaxy S22 Ultra] Angelo Alex:
:oops:
[Samsung Galaxy S22 Ultra] nguyenlucky:
Don't worry, it's not a permanent brick. Check Samfw daily, download CWF6 from any CSC and flash it should solve your problem.
[Samsung Galaxy S22 Ultra] trinadhchinna7:
is CWF6 july update?
[Samsung Galaxy S22 Ultra] ivica.jauk@gmail.com:
Yes ....6CWF6
[Samsung Galaxy S22 Ultra] Angelo Alex:
https://samfrew.com/model/SM-S908B/ Its available to download now
[Samsung Galaxy Z Fold 4] 白い熊:
Something happened - I don't know what I did - but the brightness level on the phone only increases to cca 50% - I can pull the lever further, but it doesn't increase the brightness.

I thought my eyesight was going bad, now I'm sitting next to my older Note and it's super bright compared to this Fold 4.

I don't have adaptive brightness on. I can toggle maximum brightness on - but it has no effect on the actual brightness.

Thought some Xposed module might be messing with it - but disable all, and no effect.

Does anyone have an idea what could be causing this - lest I have to back up my millions of apps, reset, and re-set-up everything on the phone again...
[OnePlus 9] riva!:
i have a tmobile oneplus 9 (le2117). I have had the phone globally converted using this conversion (i cant sim unlock). so far all updates have worked, but the latest, LE2115_13.1.0.582(EX01) just keeps failing to install. Will this prevent me from getting OOS 14 in the future or will it skip this one on the next update release? If it prevents further updates, does anyone know where to find the update roadmap for the tmobile variant? thanks
[OnePlus 9] riva!:
NVM, i forgot the OxygenOS updater and the Local OTA apk exist
[Android Head-Units] modelman1968:
I've fitted a BT300 android 12 head unit to my Jeep Renegade. Everything works fine except for the parking assist overlay. When reversing if I turn the steering wheel to the left the assist lines on the camera turn to the right. I found the setting for mirroring the camera but that just mirror images the whole picture, I just need to mirror the overlayed assist lines.

Anyone have a solution?
[Realme C2] blackmask@01:
my device above mentioned is stuck on it logo. I have only access to its fastboot mode, when i try to reboot it again stuck in the yellow realme logo. i tried to flash twrp of android 9 version then i reboot it again in twrp mode but it does not reboot in the twrp mode, it reboots and stuck on the logo,

please someone help me , I tried on local repairing shop it denied me
[Realme C2] hoanglai:
I also had the same situation but I figured it out by myself and fixed it
[Realme C2] blackmask@01:
HOW DID YOU FIX THAT ?

ALSO, I AM CONFUSED AS THERE ARE MANY VERSIONS OF THE FIRMWARE AVAILABLE AND I DON'T KNOW THE EXACT FIRMWARE VERSION OF MY DEVICE
[Realme C2] PhoneRepairHUB:
Why All Caps?
[Asus Zenfone 9] treysky54:
I very excitedly was about to pull the trigger on a Zenfone 9, but unfortunately came across the mention that Asus pulled the plug on unlocking our bootloader? I'm to assume that the AsusTool doesn't connect to the server anymore to retrieve the key.

Was this the only way to unlock/root? I would hope for an unofficial method if this were in fact true. I wonder if contacting support would yield any results? I root all my phones and this would be a deal breaker.

So to the people who purchased a Zenfone in the last few months, are you really unable to unlock it? If so, then I guess I have to not purchase one. Dang.
[Asus Zenfone 9] AhmedRehan98:
It's dead for now. No unofficial way yet. I guess the smart ones already have their phones unlocked.

Asus rep said it'll be back by Q3 this year but who knows
[Asus Zenfone 9] treysky54:
Oh, that's mysteriously when the 10 is coming out in the US. Concerned if they do bring the unlock tool back, that it will be just for the 10. Hope that's wrong. But... I guess I won't be buying a Zenfone right now. No root, no sale ya know
[Asus Zenfone 9] c19932:
why did they decide to remove the unlock tool?
[Asus Zenfone 9] sunchau:
Seem update for zf10....
[Asus Zenfone 9] treysky54:
I think they thought they'd be cute and just do away with it, then realized that their entire demographic consists of power users and an unlocked bootloader is a requirement for their entire customer base. Smart move to bring it back if Asus still wants to sell phones.
[Asus Zenfone 9] Bofahad:
Same problem here no OEM option no unlock
[Asus Zenfone 9] c19932:
Right, if I didn't want to root I would have gotten a Samsung
[Redmi Note 10 Pro] Himanshu Gunjal:
So my left side speaker (top) sound quality is decreased recently. And my phone started to switch off randomly when i was watching videos or using Instagram reels. And today i install speaker cleaner app ( that has beep sound to clean water inside of speaker my phone is not water damaged or anything but i installed it just wanted to clear speaker) as soon as i click clear speaker i hear 1 sec of beep and my device turn off is there any way to fix this issue or i have to change the top speaker or the both phone is 13 month old it had 12month of warranty
[Redmi Note 10 Pro] troolie:
There's absolutely NO WAY a damaged speaker would make the phone reboot or shut down. Your crashes are unrelated to the dirty speaker.

Could be overheat, a faulty battery that cuts off, a buggy kernel/ROM/magisk module (if you're on custom ROM) or maybe your phone really is water damaged. Or simply even bad luck, some main component (RAM or SoC) is failing. I can't tell you what it is but I can tell you the speaker is a wrong diagnostic.
[Redmi Note 10 Pro] mvikrant97:
Its the battery at fault.
[Redmi Note 10 Pro] Elbanzai:
https://xdaforums.com/t/redmi-note-10-pro-on-miui-13-keeps-tripping-off.4422665/#post-88325529
[Redmi Note 10 Pro] Elbanzai:
are you sure? battery?
[Redmi Note 10 Pro] Sheist!:
Try calibrating the battery. Charge it for hours past 100% then reboot it.
[Redmi Note 10 Pro] Himanshu Gunjal:
How its battery fault im getting same hours off phone usage and the how can battery go bad in 1 year. many users having same issue after updating there phone to miui 13 could it be software related issue
[Redmi Note 10 Pro] that_android_htc_fan:
I don't think it's a MIUI Related software issue, i think it's a hardware one.
[Redmi Note 10 Pro] Himanshu Gunjal:
I not alone with this issue there is more then 10 people having same issue after updating there device or it could be that update broke the battery?
[Redmi Note 10 Pro] mvikrant97:
Although all the phones are manufactured the same but they are not all manufactured by same ODM also batteries are sourced from different suppliers as well so its quite possible that the battery your phone has its BMS circuit damaged not providing enough power to keep it running.
[Redmi Note 10 Pro] that_android_htc_fan:
perhaps you put a custom rom? if yes, it may be a bug so the custom rom detects the volume up button as a trigger to turning it off.
[Redmi Note 10 Pro] Himanshu Gunjal:
Im using official rom but after this issue in thinking about rolling back to miui 12 with fast boot
[Redmi Note 10 Pro] that_android_htc_fan:
okay... but if you roll back to MIUI12 your device can be bricked by flashing, so anyways

could be a software bug... and i know you're not alone with this so did you try calling support?
[Redmi Note 10 Pro] mvikrant97:
Also it seems like you're not the only one facing this problem. Seems like a software problem.

https://xdaforums.com/t/redmi-note-10-pro-on-miui-13-keeps-tripping-off.4422665/

Downgrading firmware using edl mode shall fix your problem.

Do you remember the MIUI version which didn't had this problem before?
[Redmi Note 10 Pro] Himanshu Gunjal:
Mobile won't brick if you use official roms.i did chat with support but they are not technical so they said bring it to the nearest store and they will let you know what is the issue. Before going i will try another miui version it may or may not work but worth a shot.
[Asus ROG Phone 6 / 6 Pro] Blackhawk46:
My virtual friends,

I Need help with my ROG phone 6 its stuck in recovery mode, Only the logo appears for 15 minutes and system asks me to select factory reset or try again loading boot options.

I choose both the cases and tries loading the boot in many possible ways but nothing helps It still loops back to the Factory Reset or Try again, I'm a newbie if there's something to do with Flashing ROMS or such things But ready to learn to do it for my own phone.

Also tried connecting my phone to the windows via USB, windows doesn't recognize my device at all, Please help me out friends.
[Asus ROG Phone 6 / 6 Pro] Andrologic:
Keep the device in bootloader mode, confirm that you can send fastboot commands to the device, then do a RAW rom flash that you can download from this forum. If the device has no hardware faults, that should get you back on track.
[Poco F5 Pro / Redmi K60 (China)] phanhung09123:
i just got my k60 unlocked and switched to global rom. when i try to update in setting like usual, it says i need to download OTA or TWRP to update, can anyone explain ?
[Poco F5 Pro / Redmi K60 (China)] NOSS8:
What rom (full name)?
[Poco F5 Pro / Redmi K60 (China)] phanhung09123:
i dont know the version, just got it from the seller and they claimed the rom to be "global". I installed it through fastboot
[Poco F5 Pro / Redmi K60 (China)] phanhung09123:
Miui by xiaomi.eu 14.0.22.0.TMNCNXM Stable
[Poco F5 Pro / Redmi K60 (China)] NOSS8:
If ota asks for TWRP it can only be a Xiaomi EU rom, install on a CN version, check the rom / settings / my phone / top left (MIUI by xiaomi Eu+full name)
[Poco F5 Pro / Redmi K60 (China)] phanhung09123:
oh no the seller gave me the wrong ROM :((

Btw can global ROM be installed by fastboot or i must go for TWRP

V14.0.4.0.TMNMIXM
[Poco F5 Pro / Redmi K60 (China)] NOSS8:
You have a XIaomi Eu rom not stock.

I advise you to stay on this rom because with a global stock rom you will have to root the phone and use Magisk modules to have the playstore certified so that the banking apps work or just like netflix for example.

What do you want to do?
[Poco F5 Pro / Redmi K60 (China)] phanhung09123:
i guess i will just stay in EU rom, thanks a lot
[Poco F5 Pro / Redmi K60 (China)] NOSS8:
To update a Xiaomi Eu rom(MONDRIAN).

2 possibilities:

1/With a PC:

Downloaded the rom, extracted the folder from the zip, Phone in fastboot mode, executed the update.bat file.

2/With TWRP

Downloaded and installed the TWRP

OTA,Twrp installed yes,search for update,

Once the rom is downloaded and after verification, the phone rebbot on the TWRP and installs the rom (sometimes, the installation must be done by selecting the zip).

Important always go through the OTA.
[Android Head-Units] CptnMustachio:
Hello, I'm trying to get my head unit to get out of the boot logo as title suggests. I've viewed multiple threads on this form and youtube videos hoping to self repair before having to post so I apologize if this is a a repeat of anything.

I've attached photos of the front and back of the head unit if that helps for identification, I can go back and take any other photos that may help.

I had to dig out the RST button because it was buried, but I've tried various guides to get that into a recovery mode to no avail.

Any help is appreciated!!
[Android Head-Units] CptnMustachio:
Attaching some older images from when it worked to see if it may help at all for identification!
[Android Head-Units] CptnMustachio:
https://www.amazon.com/gp/product/B09YN9GTKZ was the purchased product, but there is a lot that varies from what they show vs what was delivered
[General Questions and Answers] taimurkazmi:
My Google account was hacked. When I try to get security keys via my cell phone on the security tab, and I click on any option in the security tab, the system shows a message that says "Check your connection and try again." I also have a recovery email and phone number, but both options are not working.
[General Questions and Answers] tutibreaker:
complaint to google not here, xda is not google related
[General Questions and Answers] Oswald Boelcke:
Hello and good afternoon, @taimurkazmi Welcome to XDA! I hope you'll always get the support you require.

However, prior to your next posting please read the guidances that are stuck on top of every forum like

Note: Questions go in Q&A Forum

If you are posting a Question Thread post it in the Q&A forum. Technical discussion of Android development and hacking. No noobs, please. Device-specific releases should go under the appropriate device forum...

xdaforums.com

and the others. I've moved your thread to General Q&A.

Thanks for your cooperation!

Regards

Oswald Boelcke

Senior Moderator
[General Questions and Answers] Clark Joseph Kent:
This is not the forum or site to inquire about you Gmail account.

Seek assistance thru Google.