yashsingh1/xdaforums huggingface dataset:
[Android General] tweakradje:
Did some testing with this. It is a mix of force-device-scale-factor and user-agent.

Some sites check your UA and some your screen size (scale).

--force-device-scale-factor=x.x

< 1.5 always loads pages like PC

> 1.6 always loads pages like Mobile

>2 uses no tabs, like phone (can combine with --enable-accessibility-tab-switcher)

<2 always tabs, like tablet

Playing with the scale sometimes need you to adjust font scale in Accessibility settings

Content of the chrome-command-line (1280x1920):

chrome --user-agent="Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.167 Safari/537.36" --force-device-scale-factor=1.5 --top-controls-hide-threshold=0.5 --top-controls-show-threshold=0.5 --no-referrers --disable-notifications --enable-async-dns --enable-vulkan

For NON Rooted devices:

adb push chrome-command-line /data/local/tmp

adb shell chmod 755 /data/local/tmp/chrome-command-line

type this in chrome: chrome://flags#enable-command-line-on-non-rooted-devices and enable

(you get a warning that it is activated!)

For Root devices:

adb push chrome-command-line /data/local/tmp

adb shell

su

mv /data/local/tmp/chrome-command-line /data/local/

chmod 755 /data/local/chrome-command-line

Command line options from Chrome Browser java code:

enable-crash-reporter-for-testing
enable-idle-tracing
renderer-wait-for-java-debugger
trace-startup
enable-test-intents
force-show-update-menu-badge
disable-fullscreen
top-controls-hide-threshold
top-controls-show-threshold
open-custom-tabs-in-new-task
no-touch-mode
enable-vr-shell-dev
disable-contextual-search
enable-contextual-search
webview-sandboxed-renderer
enable-incognito-custom-tabs
allow-incognito-custom-tabs-from-third-party
enable-accessibility-tab-switcher
enable-dom-distiller
disable-reader-mode-bottom-bar
webview-disable-safebrowsing-support
enable-spdy-proxy-auth
disable-external-intent-requests
force-dump-upload
disable-fre	First Run Experience
force-first-run-flow-complete
enable-data-reduction-promo-infobar
enable-data-reduction-proxy-savings-promo
type
strict-mode
disable-domain-reliability
always-extract-webapk-dex-on-startup
survey_override_site_id
force-enable-chrome-survey
disable-instant
ignore-background-tasks
use-mobile-user-agent
force-device-scale-factor=	<1.56 loads PC style pages, with tabs, set text to 150%! >2 uses no tabs like phone
webview-safebrowsing-block-all-resources
wallet-service-use-sandbox
enable_partner_search_engine_promo
enable_existing_user_search_engine_promo
webview-sandboxed-renderer
default-country-code
enable-low-end-device-mode
disable-low-end-device-mode
log-native-library-residency
dont-crash-on-view-main-intents
no-restore-state
enable-incognito-snapshots-in-android-recents
enable-test-intents
disable-digital-asset-link-verification-for-url
custom-tabs-log-service-requests
partner-homepage-for-testing
disable-tab-merging
check-for-web-manifest-update-on-startup

Command line options from Chrome Browser lib file:

https://peter.sh/experiments/chromium-command-line-switches/

Have fun
[Android General] pop4xda:
Thanks for sharing your tweak. It's great.

I'm using it now on my Nvidia Shield TV. I can browse Chrome with visible multiple tabs for switching back and forth easily.
[Android General] jxlee0215:
i keep getting error - cannot stat 'chrome-command-line': no such file or directory.
[Android General] yoga-user:
Thanks a lot! Works great on my Lenovo YB1-X90F with Android 7.1.1. Used UA-String: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.99 Safari/537.36 OPR/50.3.2426.136976
[Android General] McFrey72:
Besten Dank für Ihre Arbeit. Hat funktioniert auf meinem Tablet Samsung NotePro12.2 mit LionageOS 15.1
[Android General] JinBridge:
Is there any way to load full desktop websites with the USB debug mode off?:confused::confused:

My device isn't root.:)
[Android General] arddy1:
Thank you, it works great. I hate google amp, so i have to change the user agent to firefox mobile. No more ugly amped page
[Android General] AndimistriX:
Ups missclick
[Android General] Mainscreenturnon:
This got my desktop style tabs back! I am so happy now, thank you so much! Think I can get it to work on Kiwi browser?

edit: It did work with kiwi browser just had to set it as the debug app

com.kiwibrowser.browser

I couldn't get the desktop style tabs to work with the bottom tool bar setting unfortunately
[Android General] andris155:
Works perfectly with Android 9 Pie. Thanks!
[Android General] pop4xda:
How do you make Chrome showing desktop style tabs?
[Android General] Mainscreenturnon:
By following number 5 but setting the scale factor lower. I can't remember the number I used but its fairly easy to just experiment with different values. Id start low.
[Android General] xmr73:
Thanks, it was very useful.

I used another configuration with the current last user agent and a scale factor of 1.

I share my experience in case it's useful for someone:

First the code I used for the "chrome-command-line" file:

chrome --user-agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.88 Safari/537.36" --force-device-scale-factor=1

Then I placed the file on "data/local/tmp" with the app "Root Essentials" (and then I gave the 0755 permission). With the app "Root Browser" I could edit that file, trying different scale factors.

And finally, on a PC with a terminal and the following code I gave chrome beta the debug permission.

adb shell am set-debug-app --persistent com.chrome.beta

This setup gives me full view of the pages, and then I zoom wherever I want. For "mobile mode" I need factor>=1.85, but the zoom given is the same as without desktop mode for me.
[Android General] Zaiaku:
was wondering why it didn't work for me, then I relised never did part 2, finally real bowsng!!! thank you
[Android General] snake218:
Could this work with edge browser? Changing the name, package name and command?
[Android General] JayBTV:
Does this work in Android 11?

Trying to get it working today and after putting the TXT in /data/tmp w/ the proper permissions, and setting debugging mode, it's still not defaulting to desktop view.

Thanks for any suggestions, or confirmation that this is currently not working on Android 11.
[Android General] Kotetsukun:
Download doesn’t work!
[Android General] andris155:
This methods works perfectly on Android 11: https://xdaforums.com/showpost.php?p=78875887&postcount=20
[Android General] _MU:
I've been using Brave Browser (which is based on Chrome) and it has a built in option to ask for desktop version of websites automatically in Settings > Advanced > Site Settings > Desktop mode > Prefer desktop version of websites. Before I was using Chrome with the method provider by OP and it had been great, but unfortunately at some point it stop working for me, so I found this alternative and I recommend testing it.
[Android General] galaxys:
Brave browser sounds like a good idea! Cheers
[Android General] satand:
the how to works still perfectly with android 11. but recently amazon music and amazon photo stopped working because both apps are complaining that I'm using an old version of google chrome and an update is required. I'm using the latest chrome version, so the problem seems to occur because of the modified user agent.

what user agent setting do you currently recommend?
[Moto G5 Questions & Answers] xlipe:
Hey everyone. I'm new here. Before registering i did read a lot of threads but none of them could help me.

So i will give details of what happened.

I wanted really bad to root my phone, cause i hate the blob emoji. Did it with ease, i installed TWRP and it all went fine.

Then Motorola started asking for an update, and i couldn't do it. It started to p!ss me off, then i decided to remove the root. After trying a lot of things, i did it. I removed it and the phone started normally. But, when i restarted it, it went dead.

Now i only have the LED blinking when i plug the phone on any energy source.

Consulting a couple friends, they told me i could "overwrite" Android all over again on my phone, but my PC can't recognize it. On the device manager, it appears in portuguese the following message: "Unknown USB Device (fail on requesting device descriptor), something like that. Printscreen below.

I researched a little and learned about the blankflash, but as i told you, the PC can't even recognize my device. When i try the Motorola Device Manager, it tells me that my driver is "N/A".

I hope you can understand everything i said so far. I'm ready to bury it, but i want to at least try to fix it. Thank you guys so much for reading.
[Moto G5 Questions & Answers] Yukyud:
Its call Hardbrick,

currently has no files that will save your Moto G5, what you can do now is to change the card that would cost around $ 200 or repair via jtag that ranges between 50 to 40 $, I hope I have helped
[Moto G5 Questions & Answers] xlipe:
Thanks, but that is totally not worthy, cause it's almost the price of a new device here in Brazil

anyways i'll look for some technical support that can repair via jtag
[Moto G5 Questions & Answers] TheFixItMan:
How did you "remove the root"

Simply click unroot in an app may unroot you by removing the su binary but the system will still remain modified

To flash an ota you need a totally unmoderated system kernel & recovery

This requires flashing the stock firmware via fastboot & to make extra sure locking the bootloader (the bootloader will only lock if everything is unmodified)

If you can no longer access the bootloader the only option for this phone at time of posting is either a motherboard replacement or re-imaging with a j-tag at a repair shop
[Moto G5 Questions & Answers] xlipe:
i followed instructions on Youtube, used fastboot and a stock room. But you know, certainly that alone wouldn't be enough. That's why i got bricked lol. Everything just because of the motherf*** blob emoji, i don't even like custom ROMs :( I will look for local support and find someone who has a Jtag so maybe it's not so dead. Thank you. Really tried everything i could, i even tried to access it on Linux. It was listed on the device list as a Qualcomm device once i prompted lsusb, but still couldn't have access to it (stuck on 'waiting for device')
[Moto G5 Questions & Answers] oxxo.andatti:
blakflash is the solution

running the blakflash file is the solution, the problem is that it has not yet been filtered from motorola ami the same happened to me for testing rom, now my cell phone is a footprint
[Moto G5 Questions & Answers] xlipe:
if you don't mind, we can't keep in touch to follow updates on this, i use Telegram or whatever :D

i don't want to spend much money on a Android anymore. but in order to buy another phone i'll have to wait till June and it kills me :/

but i want to fix my Moto G5 anyways
[Moto G5 Questions & Answers] xlipe:
Just out of curiosity

Here's what happens when i try to run blankflash

[ 0.000] Opening device: \\.\COM3

[ 0.000] Detecting device

[ 4.007] ERROR: sahara_greet_device()->change_mode()->do_hello()->IO error

[ 4.007] Check qboot_log.txt for more details

[ 4.008] Total time: 4.008s

[ 4.008]

[ 4.008] qboot version 3.40

[ 4.009]

[ 4.009] DEVICE {

[ 4.009] name = "\\.\COM3",

[ 4.009] flags = "0x64",

[ 4.009] addr = "0x61FE5C",

[ 4.009] api.bnr = "0x2FA2B70",

[ 4.009] }

[ 4.009]

[ 4.009]

[ 4.009] Backup & Restore {

[ 4.009] num_entries = 0,

[ 4.009] restoring = "false",

[ 4.009] backup_error = "not started",

[ 4.009] restore_error = "not started",

[ 4.009] }

[ 4.009]
[Moto G5 Questions & Answers] oxxo.andatti:
it is not the file for moto g5 cedric

this happens because the blankflash that you are trying to execute is not compatible moto g5 cedric

esto pasa por que el blankflash que estas intentando ejecutar no es compatible moto g5 cedric

---------- Post added at 02:37 PM ---------- Previous post was at 02:33 PM ----------

I am currently testing many methods, if I find the solution I will upload it. How about we create a group of whatssap to revive bike g5 cedric. Pass me your numbers to add them

actualmente estoy probando muchos metos, en caso de encontrar la solucion la subire. que tal si creamos un grupo de whatssap para revivir moto g5 cedric. pasenme sus numeros para agregarlos
[Moto G5 Questions & Answers] xlipe:
That's an amazing idea! But i strongly recommend you to create the group on Telegram, so you can invite even more users because the privacy is kept and we don't need to share our numbers. Also, because Telegram works like a charm on its desktop version!

But, if it's crucial for you to create a group on Whatsapp, please let me know. But i really think you should try Telegarm - and i forgot to mention that, on Telegram, we can share ANY kind of file, up to 1,5 GB.

Please think and answer me as soon as you can.
[Moto G5 Questions & Answers] Exanneon:
If you already have adb drivers installed then perhaps manually assign adb device to the undetected "unknown device", then try flashing stock with cmd, and lock the bootloader if you want to update your phone.
[Moto G5 Questions & Answers] xlipe:
that goes beyond my knowledge :(
[Moto G5 Questions & Answers] Exanneon:
1. Go to device manager

2. Select your unknown device (your phone)

3. Right click it and select properties

4. Then go to the driver tab

5. Select update driver

6. Then select browse my computer for driver software

7. Select let me pick from a list of available drivers

8. Untick the compatible drivers checkbox

9. Select adb interface or something like that

10. Then wait for it to install

11. Open up cmd with admin permissions and flash stock, if you dont know how then look for tutorials online "how to flash moto g5 cedric stock firmware"
[Moto G5 Questions & Answers] xlipe:
did you try this before or just a hint?
[Moto G5 Questions & Answers] xlipe:
Guys, i found this:

https://www.techbmc.com/2017/04/How...FIL-Download-To-Unbrick-Qualcomm-devices.html

I'm trying to do it, but i accidentalyl deleted the Stock Rom so i'm downloading it again. But the servers are struggling to provide and my download speed is not good. Will report back with more news.
[Moto G5 Questions & Answers] TheFixItMan:
You do realise this person has no bootloader (hard brick)

You are just describing how to install an adb driver - he already has adb installed

---------- Post added at 01:23 AM ---------- Previous post was at 01:20 AM ----------

This looks interesting - good luck in trying it

I don't have this device at the moment but if it allows you to reflash the bootloader just using the stock firmware files when you can't access fastboot via the phone itself then it will save alot of devices
[Moto G5 Questions & Answers] xlipe:
thanks. still struggling with my sh!tty internet provider and MEGA download quota. lol
[Moto G5 Questions & Answers] oxxo.andatti:
help url downloader file

you can pass the threads of rawprogram xml files and prog_emmc_firehose mbn for xt1671
[Moto G5 Questions & Answers] Shooting Star Max:
You still need the device-specific FireHose files.
[Moto G5 Questions & Answers] TheFixItMan:
Would this be it?

I don't own this device anymore - just providing support
[Moto G5 Questions & Answers] Shooting Star Max:
Thanks for your assistance. A RawProgram file is needed, too. It seems that a common Fastboot ROM image won't work with this, but since I've long given up with this device (and got another), I am willing to test anything.
[Moto G5 Questions & Answers] TheFixItMan:
Have a go with the instructions on that site - since I don't have a dead device to try it on I can't really properly test anything
[Moto G5 Questions & Answers] xlipe:
unfortunately i couldn't procceed with it. couldn't find the files and get stuck on some sahara error.
[Moto G5 Questions & Answers] xlipe:
please let us know if you succeeded.
[Moto G5 Questions & Answers] TheFixItMan:
See my post in this thread on previous page

It's for the msm8937 which is the chipset this phone uses

---------- Post added at 06:56 PM ---------- Previous post was at 06:45 PM ----------

Iv read various things about that error with multiple potential solutions - you could try this version of the program instead

https://www.androidbrick.com/download/download-latest-qualcomm-flasher-qfil-qpst-2-7-460/#

Also make sure file paths are short & have no spaces - best to create a folder in root of c: eg c:/flash

But without trying things & doing it myself can't really help with errors
[Moto G5 Questions & Answers] xlipe:
thanks, i wil try it. but it requires some files that i kind of don't understand. would you mind giving me some hints of where are those patch/xml files?
[Moto G5 Questions & Answers] TheFixItMan:
Iv not looked at or used the program so I don't know what it requires - as I don't own this device anymore there's not much I can do to help
[Moto G5 Questions & Answers] xlipe:
RIP my phone :(
[Moto G5 Questions & Answers] oxxo.andatti:
RIP Moto G5 Cedric

[IMG="RIP Moto G5"]https://ibb.co/mYGHjx[/IMG]

The same thing happened to me, rip moto g5

me paso lo mismo con mi moto g5 cedir
[Moto G5 Questions & Answers] TheFixItMan:
Here is another method you guys can try

It requires someone with a working rooted moto g5 to install Busybox & terminal emulator on their device & run the following command from the terminal emulator

Type su

Grant superuser access then type

dd if=/dev/block/mmcblk0 of=/sdcard/Loader.img bs=1024 count=168960

You can then use the image file to boot off the sd card into the bootloader to flash firmware via fastboot

Guide I found

https://www.aryk.tech/2017/02/how-to-unbrick-debrick-qualcomm-android.html?m=1
[Moto G5 Questions & Answers] xlipe:
Thank you for sharing but there is no way i will find someone with a rooted device on the hell of a place that i live
[Moto G5 Questions & Answers] TheFixItMan:
Iv posted asking for someone with a rooted device to upload the image - hopefully someone can upload it - I'd do it if I still had this phone
[Moto G5 Questions & Answers] xlipe:
i hope so! ♥

everytime i open my drawer he is there dead staring at me, it's so sad! lol
[Moto G5 Questions & Answers] TheFixItMan:
Here you go - you can try this method now

Requirements

Freshly formatted microSD card

Card reader or working phone to write Loader.img to sdcard

Software/drivers from site below

Loader.img from link below

Follow instructions from

https://www.aryk.tech/2017/02/how-to-unbrick-debrick-qualcomm-android.html?m=1

The Loader.img can be downloaded from

https://cloud.wdata.de/index.php/s/JK2by8YBQCSrsof
[Moto G5 Questions & Answers] xlipe:
it's tellimg me to boot someone else's phone

lol
[Moto G5 Questions & Answers] TheFixItMan:
I don't understand what you mean

If the method works it should load the download mode ready to flash firmware via fastboot as it boots the bootloader image off the sdcard

Skip making a bootable backup - this is the Loader.img already done
[Moto G5 Questions & Answers] xlipe:
is this the right loader for the moto g5?
[Moto G5 Questions & Answers] TheFixItMan:
No it doesn't because the files were provided however the method currently doesn't work

Please read threads fully
[Nexus 6P Q&A, Help & Troubleshooting] xcha0tic:
Been using androids and iPhones for a while, used the pixels before. Currently have a iPhone SE, I have a friend who has a 6P and is changing the battery in it or getting it changed I should say with no other issues, Is it worth trading a iPhone se for? Love the way it looks. How’s performance wise vs a pixel? Or eve. The iPhone Se?
[Nexus 6P Q&A, Help & Troubleshooting] BrandonSingh:
The 6P is a lovely phone, hard to recommend it now to anyone after owning 3 that have all experienced either the dreaded bootloop or the battery degradation issue, without these faults I don't see why the 6P wouldn't be an excellent choice.

In terms of performance, my 6P felt a fair bit slower than the Pixel and the iPhone 6S (same SoC as the SE), if you can, try to grab yourself a Pixel.
[Google Pixel 2 Questions & Answers] sachin20us:
Hello, I have a google Pixel 2 from Verizon and i was able to update it to Android P. I want to downgrade it to Android O but i am unable to do so. Can you please help. My bootloader is locked. Please how can i downgrade it to Android O?
[Google Pixel 2 Questions & Answers] Keithn:
Pretty sure you are supposed to be able to leave the beta and then it sends a downgrade OTA. You could try sideloading 8.1 through adb, but I'm not sure if that would cause any issues. I've only used fastboot for this on my nexus/pixel devices so maybe someone else can help you more.
[Google Pixel 2 Questions & Answers] Rukbat:
P is March 18. You can't downgrade earlier than that, but the factory image is March 5th, so you'll have to wait for the April 5th factory image to convert back to O.
[Samsung Galaxy S8 Guides, News, & Discussion] afaneh92:
[YOUTUBE]RYnWxky0IhQ[/YOUTUBE]

Just want to share this small video with you. Dont PM me for testing or ETA.

Its almost in BETA stage and functional.

Thanks goes to [MENTION=4243514]Hashcode[/MENTION] initially started this project, TWRP team for the great recovery and [MENTION=1949695]jrkruse[/MENTION] for pointing me that S8 has permissive root. [MENTION=8360749]partcyborg[/MENTION] for getting root on S8.

In case video not working this is the link

Edit: list of devices booted safestrap recovery:

- Galaxy S8 SM-G950U (dreamqlte)

- Galaxy S8 SM-G955U (dream2qlte)

- Galaxy Note 8 SM-N950U (greatqlte)
[Samsung Galaxy S8 Guides, News, & Discussion] jrkruse:
This is great news
[Samsung Galaxy S8 Guides, News, & Discussion] partcyborg:
Very cool. I didn't think twrp would run under a stock kernel. Thjs will make flashing stuff much easier.

Just so it's clear exactly what is happening, thfis will have the ability run + multiple system roms and select one at boot time (which is HUGE! ) but technically this won't be "full" safetrap as the part that allows booting new kernels won't work here as none of the s8 kernels have kexec support and none can load modules, right? Not to take anything away from this incredible achievement though! I just wanted to make sure both myself and others understand what this means exactly and to be sure no one gets the wrong idea

So glad to have another dev putting stuff out there!
[Samsung Galaxy S8 Guides, News, & Discussion] TheMadScientist:
Nice to see this device didn't die before her time like many others before her.....I figured she would get cracked eventually
[Samsung Galaxy S8 Guides, News, & Discussion] afaneh92:
Technically slot rom works on S3, S4 and S5. As we only flash stock custom ROM's only.

On S8 its broken for now as stock init binary have selinux mount issue.

Any way will do more test and release it soon.
[Samsung Galaxy S8 Guides, News, & Discussion] TheMadScientist:
Were all here for ya :good: If you need any testers lol Im happy to brick:eek::eek::eek:
[Samsung Galaxy S8 Guides, News, & Discussion] VMCR:
Is this for the Snapdragon model?
[Samsung Galaxy S8 Guides, News, & Discussion] afaneh92:
Yes, I have the SM-G950U and tested on S8+ and expect to work on note 8 too.
[Samsung Galaxy S8 Guides, News, & Discussion] VMCR:
That sounds great! So it means we will be able to flash custom ROMS?
[Samsung Galaxy S8 Guides, News, & Discussion] t12icky0:
I'm skeptical since it was posted in April fools day. If this is true tho, this is fantastic.
[Samsung Galaxy S8 Guides, News, & Discussion] TheMadScientist:
Stock based as we still have a locked bootloader
[Samsung Galaxy S8 Guides, News, & Discussion] afaneh92:
if someone has Note 8 N950U can grab partition list

adb shell su -c "ls -al /dev/block/platform/soc/1da4000.ufshc/by-name"
[Samsung Galaxy S8 Guides, News, & Discussion] B@RR¥:
Not for exynos??
[Samsung Galaxy S8 Guides, News, & Discussion] afaneh92:
exynos variant already unlocked!
[Samsung Galaxy S8 Guides, News, & Discussion] B@RR¥:
I thought it was something like multirom like the nexus phones
[Samsung Galaxy S8 Guides, News, & Discussion] afaneh92:
Multirom is not a big deal any dev has the knowledge and the device can port it.