yashsingh1/xdaforums huggingface dataset:
[ASUS ZenFone 8] bnsmb:
Hi

I don't have a Samsung phone and as far as I know Samsung uses other tools then other vendors for accessing the phone ...

Anyway, these are the instructions to do this on an ASUS Zenfone 8 (using fastboot and adb):

To enter the safe mode just press the power button; wait until the dialog with restart, power-off, etc occurs. Klick on the restart button in that dialog without releasing the power button of the phone. A new dialog to confirm the Save mode should appear.

To boot the ASUS Zenfone 8 from the recovery image boot the phone into the bootloader

adb reboot bootloader

and then issue on the PC

sudo fastboot boot <recovery_image>

<recovery_image> can either be the TWRP image for the phone or the recovery image for the LineageOS (or any other recovery with enabled access via adb).

adb is enabled by default in the TWRP image; in the LineageOS access via adb must be enabled via a menu entry after booting from the image.

AFAIK the stock recovery from Android does not support access via adb.

The phone can also be booted from the recovery installed on the phone via

adb reboot recovery

if the installed recovery supports access via adb.

And, for the records:

In most cases where the OS is loaded after booting the phone but seems to hang, access via adb will already work.

The Magisk Modules are stored in sub directories the directory /data/adb/modules/ , e.g.:

ASUS_I006D:/ # ls -l /data/adb/modules/
total 21
drwxr-xr-x 3 root root 3452 1970-01-29 22:32 MiXplorer
drwxr-xr-x 4 root root 3452 1970-01-29 22:32 PlayStore_for_MicroG
drwxr-xr-x 5 root root 3452 1970-01-29 22:32 addbin
drwxr-xr-x 3 root root 3452 1970-01-29 22:32 bootctl-binary
drwxr-xr-x 5 root root 3452 1970-02-01 14:10 btop++
drwxrwxrwx 3 root root 3452 1970-01-29 22:32 nano-ndk
drwxr-xr-x 3 root root 3452 1970-01-29 22:32 ssh
ASUS_I006D:/ #

To disable a Magisk module after the next reboot create the file

/data/adb/modules/<modulename>/disable

To force Magisk to remove a Magisk module after the next reboot create the file

/data/adb/modules/<modulename>/remove

(see also here: https://xdaforums.com/t/some-hints-for-using-magisk-on-android-phones.4471857/)

Note that Magisk will disable all Magisk modules automatically if the phone is booted into Safe mode.

regards

Bernd
[ASUS ZenFone 8] bearllm:
mount -o bind /data/adb/init.rc /system/etc/init/hw/init.rc

I replaced the file "/system/etc/init/hw/init.rc" using this method but it doesn't work

After the system starts, I can see the new files, it seems that the init.rc file is run before Magisk starts

Does anyone know how to replace the /system/etc/init/hw/init.rc file in mt6789? It is not in the ramdisk of boot.img
[ASUS ZenFone 8] bnsmb:
.rc files can not be replaced using this method -- these files are processed before Magisk replaces the files. So replacing them with Magisk works but is meaning less.

But you can add additional rc files to the boot partition with Magisk

What do you want to achieve here?
[ASUS ZenFone 8] bearllm:
yes, i succeeded

Create a file

on charger
setprop ro.bootmode "normal"
setprop sys.powerctl "reboot"

magiskboot unpack boot.img

magiskboot cpio ramdisk.cpio "mkdir 0700 overlay.d" "add 0700 overlay.d/init.custom.rc init.custom.rc"

magiskboot repack boot.img boot_patched_autoboot.img

flash the modified boot image

then,power off the phone, connect the USB charger, and wait, phone will boot automatic

thank you so much
[Tilt, TyTN II, MDA Vario III Windows Mobile ROM De] acubens:
New rom Emulator with wm 6.1.4 with explorer 6.0

http://www.microsoft.com/downloads/...52-F89E-4354-84CE-5D19C204498A&displaylang=en

Cheers :)
[Tilt, TyTN II, MDA Vario III Windows Mobile ROM De] mbarvian:
thank you very much for sharing the link to us :)

I'm going to give it a whirl in the kitchen

thanks again
[Tilt, TyTN II, MDA Vario III Windows Mobile ROM De] acubens:
Let us know if you manage to run iexplorer 6 on kaiser seems that you need a strong CPU/GPU for the new browser, but it looks good... flash is build in and some other futures.

good luck.

Cheers :)
[Google Pixel 6 Pro] Azerox:
Hi there,

I cant find the perfect solution on the web.

What is the best way/app to cast my phone-screen (game) to my LG C7 TV?

It seems (and ive read) Pixel cant work with Miracast cause of Google's greedyness.

Hope some one can give me a good sollution.

Thanks!
[Google Pixel 6 Pro] murphyjasonc:
I've used an app called Screen share for LG: smart screen mirroring. It has been awhile since I have used it though. When I did use it I mainly cast videos, pictures etc. Its not perfect but it does work. I have since bought a Nvidia Shield that supports chromecast.
[Google Pixel 6 Pro] MrBelter:
LGs own ThinQ app.
[ASUS ZenFone 8] bnsmb:
How to run a script at every boot using Magisk

Note:

I tested the instructions below with Magisk 24.3 . They may or may not work with other versions of Magisk

Another very useful feature from Magisk that can also be used without creating a Magisk Module is the ability to start scripts after booting the phone:

To execute scripts after rebooting the phone just copy them to one of the directories

/data/adb/post-fs-data.d

/data/adb/service.d

on the phone, make the script executable (chmod +x scriptname) and reboot the phone.

(See also https://github.com/topjohnwu/Magisk/blob/master/docs/guides.md#boot-scripts)

Because the mapping will be done while booting the phone it will also survive updating the OS on the phone to a new version as long as the user data is not deleted and Magisk is installed.

To remove the script just delete the script and reboot the phone.

In case the phone does not boot anymore after adding the script just boot the phone from a recovery with adb support, for example from the TWRP:

# boot the phone into the bootloader and then do

sudo fastboot boot /data/backup/ASUS_ZENFONE8/twrp/twrp-3.6.1_12-1-I006D.img

Then connect via "adb shell" to the phone and delete the script .

I used this method to correct the SELinux context for the NFC device in the first version of AospExtended 9.0 for the ASUS Zenfone 8 (the device tree is recreated from scratch each time the phone boots so the change must be done after every reboot):

cat /data/adb/service.d/correct_dev_pn553.sh
#!/system/bin/sh

NFC_DEVICE="/dev/pn553"

echo ""
echo "The SELinux context for \"${NFC_DEVICE}\" is now:"
ls -lZ ${NFC_DEVICE}
echo ""
echo "Correcting the SELinux context for the NFC device \"${NFC_DEVICE}\" ..."
chcon -v u:object_r:nfc_device:s0 /dev/pn553
echo ""
echo "The SELinux context for \"${NFC_DEVICE}\" is now:"
ls -lZ ${NFC_DEVICE}

Again, if the script is tested and working you should create a Magisk module for it.

Update 06.06.2022 20:27

Corrected a minor typo

Update 18.06.2022

Corrected a typo : chmod -x must be chmod +x.

(Thanks to oldman20 for the hint)

​

Update 26.06.2022​

Fixed minor typos in the title of the post

Update 18.01.2023

See How to change any file or directory using Magisk for how to use this method change files on read-only mounted filesystems.
[ASUS ZenFone 8] oldman20:
Correctly is chmod +x scriptname, right?
[ASUS ZenFone 8] bnsmb:
Yes, thanks for the hint . I corrected the post
[ASUS ZenFone 8] tenghc:
Hi bro, I would like to ask on how to run script using Magisk every night: eg. From 2200 - 0700? Is it possible to do so?
[ASUS ZenFone 8] bnsmb:
For this functionality Magisk is not required . This can be done using a cron daemon.

AFAIK there is no cron daemon in the Android OS but there are existing apps that implement a cron daemon for Android- - just search for "Android cron" in your favorite search engine

regards

Bernd
[ASUS ZenFone 8] tenghc:
Thanks for the clarification bro, regards.
[ASUS ZenFone 8] johnnyfg2:
While trying to use above tips to start crond/crontab using Magisk, I had to like this:

crond -c /data/crontab &

with the file root in the crontab file specifying what to do when.

Without the & it just died so no use of that then!
[ASUS ZenFone 8] bnsmb:
Hi

the crond should switch to the background if not called with the parameter -n . How does the crond behave if you call it in an adb session? (I don' t have a crond binary for ARM to test that)

Anyway, I assume it works now or?

regards

Bernd
[ASUS ZenFone 8] johnnyfg2:
Its working as wanted with Magisk (/data/adb/service.d/copy-colornote.sh)

I could start it manually in a adb shell and that worked too, but that would not survive a reboot. crond and crontab are part of the "busybox"-package.
[ASUS ZenFone 8] bnsmb:
Hi

yes, of course . I just want to know if the crond keeps running in the background after the session is closed if started in a an adb shell

regards

Bernd
[ASUS ZenFone 8] johnnyfg2:
Both with & or without, the crond is still active after I exit the adb shell and then return to it. While there is no Magisk-starting a crond during these tests.

After a reboot, there is no crond active, with above setup.
[ASUS ZenFone 8] bnsmb:
Hi

I justed tested it in OmniROM 13:

ASUS_I006D:/ # cat /data/adb/post-fs-data.d/start_crond.sh
exec 1>/data/adb/crond_start.log 2>&1
echo "Starting crond at $( date )..."

set -x
/data/adb/modules/busybox-ndk/system/xbin/crond -c /data/adb/crontabs
echo "... done at $( date )"

ASUS_I006D:/ # ls -l /data/adb/crontabs
total 4
-rw-r--r-- 1 root root 106 2023-10-15 09:06 root
ASUS_I006D:/ #

ASUS_I006D:/ # ps -ef | grep cron
root 823 1 0 12:19:14 ? 00:00:00 crond -c /data/adb/crontabs
root 7946 5063 5 14:03:44 3OwAfYM/.magisk/pts/0 00:00:00 grep cron
ASUS_I006D:/ #

-> The crond keep on running if started via Magisk

(The "exec ..." and "set -x" commands are only to write STDERR and STDOUT of the script to a file)

regards

Bernd
[Google Pixel 4 XL Questions & Answers] rrobyrroby:
Pixel 4XL, bought refurbished from Amazon

Android 12 updated to 5 May 2022

Camera Version 8.4.600.440402475.27

Camera (main/rear, not selfie) works fine for pictures and video at 1X.

If I zoom it goes out of focus/blurry.

Common issue (software?) or defective phone?

View attachment 5631559View attachment 5631561

View attachment 5631575View attachment 5631577

video

New video by Roberto Biraghi

photos.app.goo.gl

New video by Roberto Biraghi

photos.app.goo.gl
[Google Pixel 4 XL Questions & Answers] rrobyrroby:
Update.

I uninstalled the update and went down to version 8.3.252.391156422.17.

Nothing has changed, I still have the same "out of focus" problem... :-(
[Xiaomi Mi Note 10 Lite Questions & Answers] HTrang:
Hi everyone, my Xiaomi note 10 lite freezes at the Mi logo after I restart it.

Medical history of this phone

It has died suddenly, for 3-4 days after the device runs out of battery, it will restart to use normally.

The other day I used Messenger to take pictures, but the device said that there was another software using the camera, I turned on the camera of the device and couldn't take a picture, so I decided to reboot the device, it just showed the Mi logo and was no longer usable ( I let it run out of battery but then restarted it but it didn't come back).

I tried everything on the internet to fix it myself but it still doesn't work (haven't been to the repair center yet). Has anyone in the group encountered this error, can anyone give me some advice.

Thanks guys so much!
[Xiaomi Mi Note 10 Lite Questions & Answers] Steve1809:
Hey,

I have more or less the same problem, do you fix it?
[Xiaomi Mi Note 10 Lite Questions & Answers] GustavoLV21:
did you?
[HTC Vox] hatefulsandwich:
Recently my S710 developed an annoying habit of having its screen randomly go black. It's not that the screen actually goes off, since there is still a back light and you can still see very faint image of what should be on screen if you look at it from a certain angle, but not enough for it to be useable.

It started happening after I flashed my rom to Gonzo's Mona Lisa, but I think that's more coincidence than anything else, since it happens with all the ROMs I've tried.

It's not a constant thing, either. It doesn't happen when I do anything in particular. I have noticed, weirdly, that when it does happen while I'm trying to write a text message, turning on caps makes the screen visible. As soon as I press anything else, it goes blank again. I usually just have to wait for it to return by itself. This is, as you can imagine, pretty annoying when you're trying to write messages.

I hate to think this, but reckon it's a hardware problem? I am really loathe to send it in for repair, I'm sure it will cost a fortune.
[HTC Vox] LiquidAx:
Hi i got the same trouble,

it became too anoying to use the phone

but the only solution is to bring it back to repair center because they have to change the mainboard and then you get an new IMEI number too.

hope you still have a warranty of the cellphone on it because it's almost the price of the phone if you wanna to be fixed the problem.

LiquidAx
[HTC Vox] networkguy:
Have you installed Mesh?

I have noticed that this only happens when the Mesh client is running.
[HTC Vox] LiquidAx:
No dont know even "Mesh" so i m sure it was because the hardware, so decided after 2 month of having the problem to bring it back to the store and there they send it to a repair services after 4 weeks i got it back with a new front cover and new lcd module but the problem was still there and i had to wait another 4 weeks to get it back from the repair service and then like i said in my first post i got a new mainboard with a fresh new IMEI :D Now i m back with a new phone but i waited 8 weeks :D

so i dont think it's because a software :). Because i tested 2 month before sending it to fix the problem (with warranty )

LiquidAx :cool:
[HTC Vox] hatefulsandwich:
Hm, How long is warranty? A year? In that case, I do have a warranty. Sounds like this is gonna be a rollercoaster ride, especially considering how reluctant people in my country are to do anything without trying to make it seem like it was your fault.
[HTC Vox] frauhottelmann:
If you want to take advantage of the warranty, you will have to flash back the original ROM of course.
[HTC Vox] LiquidAx:
Yes you have to restaure the original flash, and the warranty is 2 year because mine it had 1 year and 3 month old when i to it to the repair service :p

for the problem they can not fix it in another way :) i m sure of that so i guess it's not your fault at all :D or you have to ask a new one

hope you will go ASAP to the repair service ;)

LiquidAx
[HTC Vox] hatefulsandwich:
Oh, I have flashed back to an original HTC rom just out of curiousity that it might fix it :). Thanks, I'm sure I'm on a pretty big mission here.
[Xiaomi Poco F3 / Xiaomi Mi 11X / Redmi K40] garrylpinto:
Hello All,

About 1 Month ago, I updated the phone to Miui 13.0.4 and ever since, the 120Hz mode on the phone is not working. Has anyone else encountered this as well? has anyone found a workaround for this?

TIA and regards.
[Xiaomi Poco F3 / Xiaomi Mi 11X / Redmi K40] blackhawk:
Rule #1, if a OS is fast, stable and fulfilling its mission, let it be! Updates, upgrades can and do break things.

Try a factory reset or a roll back if that fails.

Possible hardware failure.
[Xiaomi Poco F3 / Xiaomi Mi 11X / Redmi K40] garrylpinto:
Hello Blackhawk,

Thanks for the response. The phone has been working fine so far. just that the 120Hz mode won't come on and it is bothering me.

I took it to the service centre and they said since the software update broke it, a software update should fix it. but the 13.0.6 didn't but I guess it is because it was just a security patch. The bigger problem is that in the whole waiting ordeal, the device is past the warranty so if it is a hardware failure, I am screwed

Do you think there is a possibility that a hardware failure would cause the 120Hz mode to stop working but the screen will operate fine?
[Xiaomi Poco F3 / Xiaomi Mi 11X / Redmi K40] blackhawk:
It's possible but if it started with an update, that's likely the cause or an incompatible app or service.

Try in safe mode (a 3rd party app maybe the cause), try a hard reboot.

My N10+ is still running on Pie, no OTA updates in over 2.5 years. Current load is 2 yo, still fast and stable. 2 years, still malware free...

Security is not an issue on Pie or higher unless you do something stupid in actual use as far as I have observed. Android 9 or higher are patched for the worst of the rootkits. Security patches don't save dumb bunnies... most install the malware themselves.
[Xiaomi Poco F3 / Xiaomi Mi 11X / Redmi K40] garrylpinto:
Thanks for the reply Blackhawk.

I will probably just wait for the following bug fix update and if that doesn't help, factory reset or install a custom from while praying it is not a hardware issue.

I tried the safe mode and that didn't show an improvement,

I was familiar with the laughable stability of MIUI and unsure what possessed me that I decided to update.
[Xiaomi Poco F3 / Xiaomi Mi 11X / Redmi K40] blackhawk:
It's not just MIUI, it's across the board. Even Pixels get busted by them🤣

As do Samsung's😖
[Xiaomi Poco F3 / Xiaomi Mi 11X / Redmi K40] garrylpinto:
It is what it is I guess.

Thanks, Mate. It was nice talking to you.
[Xiaomi Poco F3 / Xiaomi Mi 11X / Redmi K40] Rstment ^m^:
Did you try going back to 60hz then activating 120hz?

Mods like clearing battery app cache / using setedit do lead to this after reboot - display is locked to 60hz but it fixes itself if you toggle it on/off
[Xiaomi Poco F3 / Xiaomi Mi 11X / Redmi K40] cyanGalaxy:
You should try this! @garrylpinto

I don't think it's a hardware failure. Not just like that. That'd be too ridiculous.

I'd say try clearing data of Battery & performance, and checking with the app "SetEdit", if "user_refresh_rate" has a value of "120".

@blackhawk Also, Samsung has the most reliable System updates. You can fight me on this.
[Xiaomi Poco F3 / Xiaomi Mi 11X / Redmi K40] garrylpinto:
I have tried toggling it and I was not using any sort of mod apps. Still, it happened though.
[Xiaomi Poco F3 / Xiaomi Mi 11X / Redmi K40] garrylpinto:
Hello Cyan,

I did try clearing the battery and performance data the user_refresh_rate is set to 120hz
[Xiaomi Poco F3 / Xiaomi Mi 11X / Redmi K40] blackhawk:
Lol, no need to fight. No updates, no problems.

In over 2 years of not updating the firmware malware infection rate has been zero.

No time lost to malware.

Samsung app updates have cost me over a dozen hours to fix in that time period. OTA firmware updates (especially if the bootloader) though can cause the most permanent damage on Samsungs.
[Xiaomi Poco F3 / Xiaomi Mi 11X / Redmi K40] blackhawk:
Try in safe mode... keep playing with it.

Android's wuv attention🤣
[Xiaomi Poco F3 / Xiaomi Mi 11X / Redmi K40] garrylpinto:
Sure, I'll give it a try.

One side note, Any idea how to change the customer region to India from Chine, I am trying to add my phone but it keeps showing 86 as the country code and won't let me change it and mi support is unhelpful is an understatement
[Xiaomi Poco F3 / Xiaomi Mi 11X / Redmi K40] Rstment ^m^:
Send pic of what you're talking about? Change it where?

Unlock bootloader procedure?
[Xiaomi Poco F3 / Xiaomi Mi 11X / Redmi K40] garrylpinto:
Yeah, I was trying to unlock bootloader and then it got stuck at the checking security settings and someone suggested adding the phone number to your account manually but here is the problem:

I got to recovery phone

View attachment 5633965

View attachment 5633967

the country code portion is grayed out and i cant change it. been trying to get mi support to give an solution or change it for the past 4 days and everyone is just clueless.
[Xiaomi Poco F3 / Xiaomi Mi 11X / Redmi K40] garrylpinto:
ALso, My account is set to china for no reason and I cant change it

View attachment 5633971

asked help with this and they are cluesless too
[Xiaomi Poco F3 / Xiaomi Mi 11X / Redmi K40] Rstment ^m^:
Just create a new account then?

Via PC or phone browser create new mi acc and link it to your phone number.

Only when you do that connect it to the phone and go through the unlock period...
[Xiaomi Poco F3 / Xiaomi Mi 11X / Redmi K40] ankurcshah:
Did you ever flash persist or something?
[Xiaomi Poco F3 / Xiaomi Mi 11X / Redmi K40] garrylpinto:
Well, If there is no other option and Mi support is that useless, I might as well. Just that I like to keep all my accounts under the same ID.
[Xiaomi Poco F3 / Xiaomi Mi 11X / Redmi K40] garrylpinto:
it was a 100% stock phone. no modification whatsoever.
[Xiaomi Poco F3 / Xiaomi Mi 11X / Redmi K40] ankurcshah:
Are u on telegram? If yes dm me
[Xiaomi Poco F3 / Xiaomi Mi 11X / Redmi K40] garrylpinto:
Update on this, I got the account number corrected.

within the settings of the phone, search mi account and from there the number can be changed and that's how I managed to do it.
[Xiaomi Poco F3 / Xiaomi Mi 11X / Redmi K40] garrylpinto:
same ID as your username?
[Xiaomi Poco F3 / Xiaomi Mi 11X / Redmi K40] ankurcshah:
Dm me here on xda
[Xiaomi Poco F3 / Xiaomi Mi 11X / Redmi K40] garrylpinto:
just giving closure here. a factory reset fixed the 120Hz issue.
[Xiaomi Poco F3 / Xiaomi Mi 11X / Redmi K40] garrylpinto:
@blackhawk @Rstment ^m^ @ankurcshah I have found the source of the problem. Having MIUI optimisations disabled causes this along with the other 2 bugs.

it all makes sense now. I disabled this option in 12 without any problems. When I upgraded to 13, having this option disabled broke things and when I reset the phone, the MIUI optimisation was re-enabled. A couple of days ago I turned it off and immediately noticed the problem coming back.
[Samsung Galaxy S22 Plus] JimmyL216:
I have a T-Mobile US variant of S22+ but I can't find the OEM unlock in the Developer Options. Is there a way to get this phone OEM unlocked?
[Samsung Galaxy S22 Plus] Village_Idiot:
By unlocked, do you mean unlocking the SIM from T-Mobile? If so, then you need to call T-Mobile and request it to be unlocked.
[Samsung Galaxy S22 Plus] JimmyL216:
No. OEM unlocking, for the bootloader. There's no OEM unlock switch
[Samsung Galaxy S22 Plus] dadmi:
You cannot oem unlock US devices
[Samsung Galaxy S22 Plus] ahhdp:
I know you can because I did it on my US Cellular bought Samsung Galaxy A52 5G, so that is a lie saying you can't
[Samsung Galaxy S22 Plus] juda iskariotsky:
LOL

try search next time https://xdaforums.com/t/can-i-get-the-bootloader-unlocked-of-sm-s906u.4507593/
[Samsung Galaxy S22 Plus] ahhdp:
I did, did you think that maybe no two phones are alike..