yashsingh1/xdaforums huggingface dataset:
[Samsung Gear S3] tids2k:
I treid to mount the storage but getting write protection error. Trying to compile TWRP and test but unable to do so. [MENTION=2242705]cipherswitch[/MENTION] [MENTION=6403355]DevALT[/MENTION]. Some screenshots
[Samsung Gear S3] adfree:
I could create rootfs.img with su inside...

su file I would take from combination file...

COMBINATION-FTMA_R760XXU1APK3.tar.md5

rootfs.img I have at the moment only from this Firmware:

R760XXU1APK7_R760OXA1APK7.zip

And I have NO Gear Watch to test self.

So I "need" tester with balls and SM-R760 who is able to flash with Odin...

OWN risk!

I could do it and upload...

But to prevent waste my time...

I will try to "explain" first...

Before I was able to root my SM-Z130H...

I have used rooted GT-I9300 to create my modified rootfs.img... :D

Extracting files from rootfs.img under Windows was easy with Windows Tools...

But creation of valid rootfs.img is better to do with Linux...

Need few minutes to upload extracted su file... and to post few Commands for SDB... or ADB ...

Best Regards

Edit 1.

su added...

Taken from Combination Firmware...

MD5

B784CC4DBBC86EFCC308D239D1235CE0

Now this file "must" inject into folder bin in rootfs.img :D

Edit 2.

Here is example how I would do it with my rooted Tizen SM-Z130H... with Batch file... few Commands for SDB:

sdb root on
sdb push su /opt/usr/media/Others
sdb shell mount -t ext4 -o loop,rw /opt/usr/media/Others/rootfs.img /opt/usr/media/Others/2
sdb shell cp /opt/usr/media/Others/su /opt/usr/media/Others/2/bin
sdb shell cd /opt/usr/media/Others/2
sdb shell sync
pause
sdb shell cd /
sdb shell umount /opt/usr/media/Others/2

rootfs.img I would copy manually to folder Others...

For rooted Android device... replace sdb with adb... and few path changes...
[Samsung Gear S3] adfree:
http://opensource.samsung.com/reception/receptionSub.do?method=sub&sub=F&searchValue=SM-R760

For Kernel related study... Source Code is available...

I was only to lazy to download...

But in theory also here in repos...

1 RPM is inside with su... ;)

Will check after Download... "soon"...

Best Regards
[Samsung Gear S3] adfree:
Downloaded...

SM-R765_Opensource.zip

Extracted:

SM-R765_repos.tar.gz

Unpack:

coreutils-6.9.rpm

Bingo... su Binary is inside.

But still problem...

I don't know how to install RPM without ROOT access. :D :rolleyes:

I can only install RPM if allready device is rooted...

So I only know this way to inject su into rootfs.img and create then valid TAR file to use with Odin...

Simple Copy and Paste solution.

Best Regards
[Samsung Gear S3] DevALT:
gonna try that but i'll compile myself, not that I don't trust you but if it breaks my gear s3 i want to be the one who brick it

and also for weird reason sdb root on dosen't want to work on windows (will try on Linux tomorrow, work till very late :'( )

simple curiosity did you use RPM based distro to create your rootfs.img, if not witch distro are you using?

as i said upthere sdb root on command won't work on my windows and your solution seems to be the one will try everything tomorrow on my Linux pc will give an update right after :)
[Samsung Gear S3] adfree:
sdb root on

This is only possible, if you have allready su in bin folder:

/bin/su

For better understanding you could install Tizen Studio for instance...

https://developer.tizen.org/development/tizen-studio/download

It is possible to use SDB with Emulator...

Also Wearable Image available...

So you don't need to buy Tizen Mobile or other real device to test...

Simple study Image in Emulator...

You can delete su from Image and then play again with command:

sdb root on

I am Windows Fan Boy...

So first time... before my SM-Z130H was rooted. I've created rootfs.img with GT-I9300 (Android handset)...

Since my SM-Z130H is rooted... I am using this device.

I've never tried to create rootfs.img with Computer... with handset it was easier for me.

Maybe I find my old post with GT-I9300... to check my ADB Commands... because path could be different...

Best Regards

Edit 1.

2 years ago... I found "inspiration" by Gear Watch Thread...

https://xdaforums.com/showpost.php?p=59457357&postcount=95

Then I did something like this:

https://xdaforums.com/showpost.php?p=59478150&postcount=97

Important is for Odin... TAR file...

I can remember not all Windows TAR Packer were valid...

So I am using since over 2 years only IZArc Tool.

Also important... use only rootfs.img from Firmware which is on your device...

Not mix Firmware parts from different versions... to prevent funny sideeffects.

Best Regards
[Samsung Gear S3] DevALT:
sorry for late update i couldn't test anything today no free time for me until wednesday but sure will I test everything there :l
[Samsung Gear S3] adfree:
No panic.

For few things I have spend many months... years.

And I understand Gear S3 is at the moment very expensive "test" device...

I can wait. :angel:

Maybe someone have halfdead Gear S3... with brroken display or Water Damage or something similar...

Best Regards
[Samsung Gear S3] tids2k:
I will try the procedure today and see if it will work.
[Samsung Gear S3] adfree:
I have now time... :angel:

I could create rootfs.img with su inside for Firmware:

R760XXU1APK7

Maybe 1 or 2 hours... because I need to upload result...

Best Regards

Edit 1.

Ready:

ROOT_R760_rootfsOnly_APK7_v1.tar

Now only compress to ZIP for smaller Upload size...

Edit 2.

Compress to ZIP done...

460 MB for Upload...
[Samsung Gear S3] adfree:
As example/template:

Link only via PM

Own risk!

su Binary taken from Combination package...

1.

Unpack Zip...

Be sure you have 1200 MB TAR file:

ROOT_R760_rootfsOnly_APK7_v1.[B]tar[/B]

2.

Better you have experience with Odin and allready APK7 Firmware is on device...

To prevent "funny" sideffects, if other Firmware is on Gear S3...

3.

not tested yet... so be carefully ;)

Best Regards
[Samsung Gear S3] tids2k:
Tried the rootfs you provided. No success. gear is going into bootloops will need to wait for the battery to die so that i can manually enter recovery.
[Samsung Gear S3] adfree:
:o

There is no way to enter Download Mode to flash again with Odin?

Because empty battery is not really first choice for flash safety..

Thanx for trying.

Really sorry for no success. :o :o :o

I hope you can fix this problem.

Best Regards
[Samsung Gear S3] adfree:
Sorry I can not try self, as I have no device...

You have really no chance to get into "Download Mode"?

I found this:

https://xdaforums.com/showpost.php?p=70041908&postcount=1

Maybe at this state other Key Combinations... :confused:

You have not soooo many Hardware Keys...

Maybe try few combinations like hold 1 key... or hold both for 10 seconds or more...

Maybe Gear S3 jumps into some kind of emergency Mode... :o :o :o

Good Luck.

Will search in Gear S2 or other Gear Threads... maybe some emergency instructions available...

best Regards

---------- Post added at 05:44 PM ---------- Previous post was at 05:24 PM ----------

https://xdaforums.com/gear-s2/help/update-bricked-gear-s2-classic-t3418988

Can you see also something like Download?

Then try if Odin find your Gear... :o

Maybe IP is important to know... no idea if same like you ever used...

I will try to find instructions... :o :o

Best Regards
[Samsung Gear S3] tids2k:
Unable to enter download mode. Geaar S3 goes into a reboot loop. It seems to me that only flaashing the rootfs wont wwork. We will need the PIT aand other CSC FILE together in Odin. I would however suggest not to go this path as you can brick your device.

[MENTION=1030585]adfree[/MENTION] in saying rhat why dont we continue to use the firmware which waas provided by [MENTION=357387]se47[/MENTION] aas it already contains the su fille.
[Samsung Gear S3] tids2k:
also taking the combination file as a base will help to develop recovery quicker.
[Samsung Gear S3] adfree:
Please, don't kill me, but... :o

Can we try to collect all infos, to understand what exactly happens?

1.

You made Screenshots or copied text from Odin as you flashed?

Flash success, or any kind of Errors...

1.1

Did you made any kind of selection in Odin?

2.

Your Odin Version?

Thanx in advance.

Reason...

PIT is not necessary... it is more dangerous...

in theory you not want to change Partition on eMMC...

I need little bit time to reseach... how Odin Wifi Looks like ... :o

Best Regards

Edit 1.

For my Research I will use this Odin as "Reference"... taken from here:

https://xdaforums.com/showpost.php?p=70041908&postcount=1

Edit 2.

In Screenshot you can see my "idea"...

1.

Open Odin

NO Re-Partition nor any other option select...

2.

Only select TAR file...

3.

Start

Here is example for Log:

Sometimes this text is very usefull, as it gives additional infos... what Odin/Bootloader do during Flashing...

I will try to find Video or Log from successfull Gear Flashing... as Reference...

------------------------

I will check my rootfs.img... maybe I did mistake or any kind of Error happens... :o
[Samsung Gear S3] adfree:
Autsch...

I found this Picture...

https://xdaforums.com/showpost.php?p=70267189&postcount=10

1.

System Status Custom

I think here should be also "Official"...

2.

Secure Download enabled

Hmmm. I have something similar on my SM-Z130H...

No idea if Security is on SM-R760 "stronger"...

Will try to analyze my created rootfs.img... to check for mistake(s)

Best Regards
[Samsung Gear S3] tids2k:
Sent samsung gear s3 fo repairs no way to go back to download mode. I think when odin flash it is flashing on the srong partition. You can be right if we untick re-partition. Also it could be the watch goes into reboot loop because of the write protection. I remembered it happened in the s4 forums where sometimes rooting device would result in endless loop. Just two cents .. when i get my watch i will open and try to see if i csn find a diag port on it and try to make a modified usb cable to connect. All this only when my watch comes back.
[Samsung Gear S3] adfree:
:o

My English is very limited.. only to be sure.

You have tick re-partition or added PIT file or any other Settings and/or file?

:confused: :o

Background info...

PIT file is written to eMMC...

It is possible to dump PIT file from device...

Bootloader sboot.bin interact with Odin...

It is possible to sniff/catch PIT file during Flash...

For instance easier with Tool Called Heimdall...

If device is okay... then PIT can be used from device...

sboot.bin use PIT from device and spread files... NOT Odin...

Odin deliver only files... Bootloader (sboot.bin) on device manage Flash process..

Re-Partition means ERASE eMMC... like FORMAT C:... :cyclops: :eek:

Then you are right, then all files required/mandatory, otherwise Boot fail as eMMC is "empty" or important files are missing...

I thought meanwhile nearly all Odin instructions warn you, to play with Partition PIT... Re-Partition setting... :o

If not mandatory for repair attempt...

Sorry to confuse you... :o

And sorry first attempt ends so deadly... :o :o :o :o :o

Best Regards
[Samsung Gear S3] adfree:
Interesting...

Found about Gear S2 something about solder wires...

http://www.gsmforum.ru/threads/252543-Samsung-gear-s2-(R720)-Reactivation-lock

In few "days"... hours Pics from FCC are online... interenal and external about SM-R760...

Best Regards
[Samsung Gear S3] adfree:
Meanwhile the FCC Docs are public now. :good:

[A3LSMR760] External Part1	External Photos	09/06/2016	pdf	02/28/2017
[A3LSMR760] External Part2	External Photos	09/06/2016	pdf	02/28/2017

[A3LSMR760] Internal Part1	Internal Photos	09/06/2016	pdf	02/28/2017
[A3LSMR760] Internal Part2	Internal Photos	09/06/2016	pdf	02/28/2017

:cool:

Maybe if someone find internal Service Manual or any Repair Docs about SM-R760...

Please share. :angel:

Thanx in advance.

Best Regards
[Samsung Gear S3] adfree:
Taken from Gear S2 Thread... but looks interesting:

https://xdaforums.com/showpost.php?p=70836447&postcount=110

https://xdaforums.com/showpost.php?p=71187503&postcount=111

Maybe something similar with SM-R760 possible...

Best Regards
[Samsung Gear S3] tids2k:
gear s3 internals
[Samsung Gear S3] adfree:
It is really really hard to find something about R760... :o

http://ir-file.com/?p=Servic_Manual_Schematic/schematic/samsung/sm-r732

SM-R732_Service_Schematics_150911.pdf

This is what I have seen for Gear S2

Maybe we can find something for R760... this year...

Best Regards
[Samsung Gear S3] NeoXTC:
Hopefully with more development someone would be able to force flash specific firmware CSC for our device to be able to use samsung pay. I bought this for spay but got this from overseas. Didn't think about this region locking bs from samsung :(

Feel like I've wassted my money *sigh*
[Samsung Gear S3] adfree:
In theory it would be helpfull... to be more specific...

Samsung Pay is inside which CSC versions?

:confused:

Maybe no CSC change needed... maybe this is simple app inside CSC... which is preinstalled...

Maybe it is as installable TPK "available"... inside CSC file...

Best Regards

Edit 1.

Short looked at Sammobile...

S Pay seems not in all countries and no idea idea if for Gear series available...

I am not using such features,,,

I have no money. :D :o

Edit 2.

Google Research...

http://www.samsung.com/us/support/answer/ANS00061420/

Okidoki, seems official for Gear S3 available...

Money transfer stuff exceeds my Modifying "attempts"... this is toooooo scary for me.

Who is responsible... if something goes wrong... and your money is gone... if you use NOT supported/authorized Software...
[Samsung Gear S3] tids2k:
My watch is back. Lets try a different approach to root.
[Samsung Gear S3] Honestly Annoying:
I have ordered the watch, coming in tomorrow. I rooted the LG G5 (granted it was with a userdebug kernel), but if Tizen's kernel is based off of Linux then we could possibly modify dirtycow to work with this device. Shoot me a PM or a message on Skype if you are interested in helped me, I'll keep posting updates here though!
[Samsung Gear S3] NeoXTC:
If you need tester or anything shoot me a message. I would love to get samsung pay to work on my watch :( got the UAE version which samsung pay is not enabled yet :(
[Android Q&A, Help & Troubleshooting] henno88:
Hi,

how can i Set Chrome User Agent to Desktop or chromebook on Android 7.x ?

Old User Agent Apps won't work on 7.x

I need to Set Chrome to Desktop view always on
[Android Q&A, Help & Troubleshooting] steamrollerpark:
Put a file in Data/Local called 'chrome-command-line', put this text in

chrome --user-agent="Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.117 Safari/537.36" -force-device-scale-factor=2

Permissions 644, you can change the scale-factor to suit.
[Android Q&A, Help & Troubleshooting] henno88:
Sorry but this is Not working anymore on 7.x
[Android Q&A, Help & Troubleshooting] henno88:
Nobody ?
[Android Q&A, Help & Troubleshooting] undrwater:
Just wanted to bump this as I'm also looking for a solution.
[Android Q&A, Help & Troubleshooting] dtchky:
This has been bugging me for for a few days, very frustrating, seems like Chrome doesn't read the command line files in Nougat no matter where they are located, what they are called, or how you invoke the application. So I did the next best thing...

I grabbed the latest Chromium source code and modified user_agent.cc so it spits out a desktop UA instead. Cross compiling was a bit of a lengthy process, around 4 hours, but it works perfectly. The code alteration was quite trivial, I know this doesn't really help anyone here with a quick fix, and I really can't see Google adding a permanent desktop mode any time ever.

To make the change, just edit the following and rebuild:

<path>/src/content/common/user_agent.cc

std::string BuildUserAgentFromOSAndProduct(const std::string& os_info,
const std::string& product) {
// Derived from Safari's UA string.
// This is done to expose our product name in a manner that is maximally
// compatible with Safari, we hope!!
std::string user_agent;
// base::StringAppendF(
// &user_agent,
// "Mozilla/5.0 (%s) AppleWebKit/%d.%d (KHTML, like Gecko) %s Safari/%d.%d",
// os_info.c_str(),
// WEBKIT_VERSION_MAJOR,
// WEBKIT_VERSION_MINOR,
// product.c_str(),
// WEBKIT_VERSION_MAJOR,
// WEBKIT_VERSION_MINOR);
// return user_agent;
return "<Insert desired user agent here>";
}
[Android Q&A, Help & Troubleshooting] Yuhfhrh:
Would it be possible for you to share the apk? This is frustrating me beyond belief after I moved to Nougat.
[Android Q&A, Help & Troubleshooting] Wootever:
Found a solution for this problem, it was caused by a SELinux context which blocked read access to the command line file.

Download this script and copy it on the SDCard.

Install Android Terminal Emulator, then enter:

su
sh /sdcard/chrome.sh
[Android Q&A, Help & Troubleshooting] jpeterson:
- Testing 7.x fix. https://play.google.com/store/apps/details?id=com.linuxjet.apps.ChromeUA
[Android Q&A, Help & Troubleshooting] cobram3:
Thank you. Is this working for anyone?
[Android Q&A, Help & Troubleshooting] jpeterson:
It is available on the play store. I can not guarantee this will work, but I have tested it on my 7.x devices and 8.x devices and it is working on them.
[Android Q&A, Help & Troubleshooting] ve6rah:
Does not work on my OnePlus 5T on Android 8.0 rooted with Magisk.

Neither does the script posted above.

Any other ideas? I'm sick of manually selecting "view non crippled site" every time I open any webpage.

"Mobile" sites need to die!

EDIT: I figured it out, I needed to set the /data/local directory to be readable by all. (The script above already got the file permissions right for the chrome-command-line file, just not the directory it lived in). After that the user agent string seems to be working as it should and I can actually view useful webpages again!
[Android Q&A, Help & Troubleshooting] ve6rah:
Well, so much for that.

I wiped my phone and started over, and the same steps I used last time have no effect this time. I'm stuck in mobile website hell.

Anyone with any idea how to fix this?

EDIT: This seems to be related to the file permissions issue still, but I'm not sure how to fix it. When I'm not root, I get permission denied when I do an ls on the /data/local directory, despite that directory, and all the ones above it, being set 755. So whatever is blocking me from being able to ls that directory is also likely blocking the ability for chrome to read that file and behave like a useful web browser instead of a completely crippled one.
[Android Q&A, Help & Troubleshooting] yuanqixun1:
You can create a "chrome desktop"widget with that app,only by this way,it seems to work.
[Android Q&A, Help & Troubleshooting] ve6rah:
Unfortunately that only works for opening the browser and does nothing for links clicked in our applications.

Why do developers of websites hate mobile users? This isn't 1998 anymore, people want to access websites from their phones! We shouldn't have to resort to such ridiculous lengths to enable such basic functionality as a working web browser!
[Android Q&A, Help & Troubleshooting] yuanqixun1:
https://xdaforums.com/showthread.php?t=1811101&page=13 #128
[Android Q&A, Help & Troubleshooting] ve6rah:
That helps quite a bit.

Now of course I've run in to another problem. AMP. google assistant and related products love to push AMP pages instead of websites, and chrome won't open them in desktop mode, only in mobile mode. I wonder if there's some way to convince Google assistant to behave and link to real webpages?

*sigh* it's amazing how far companies are willing to go to cripple their websites!

EDIT: Found it! DeAMPify in the play store translates all those external programs (like the google feed) to non amp versions before passing them to the browser.

With enough steps and work-arounds you too can have a functioning web-browser on your smartphone!
[Android Q&A, Help & Troubleshooting] Barkuti:
I'm here to confirm Wootever's script working on [ROM][8.1.0][STABLE][OFFICIAL][TREBLE] AospExtended ROM V5.4 [Z2 PRO]. I had already created the chrome-command-line file via file explorer and set permissions to 755, but it wasn't :confused: working. Customized the UA string to my liking, btw (X11; Linux Arm64). ;)

The way G00gl€ is developing Chrome is fLIck1ng annoying, this is basic functionality being set aside because fLIck you. Latest Android Chrome versions (63 to 66) are a piece of sh1t imho. :mad:

Cheers :cool:
[Android Q&A, Help & Troubleshooting] CerealKiiller:
Does anyone still have this file?
[Android Q&A, Help & Troubleshooting] strachan:
Reupload

Reupload ulozto.sk/file/R55e4UbG3ppA/chrome-sh
[Android Q&A, Help & Troubleshooting] g4klapo:
for android 7 and upper, try this :

copy chrome-command-line file which contain useragent string you want with or without device scale factor to /data/local and set chmod 0755.

then open chrome or chromium (i'm using version 101), setting desktop site is off, and goto chrome://flags

set "enabled" three features :

1. Full User-Agent request header

2. Global setting to request desktop site on Android.

3. Enable command line on non-rooted devices

restart browser.
[Huawei P9 Lite Questions & Answers] Deleted member 7793468:
Hi guys, i recently installed Android N beta bit when i screenshot something always appear lines in the picture

As here: http://m.imgur.com/a/JwKHJ

Please help me, is there anything i can do?
[Huawei P9 Lite Questions & Answers] XeLLaR*:
Flash back to stock and check if the artifacts still show up. If they do your phones gpu is dead. If not, the firmware you flashed was corrupted.
[Huawei P9 Lite Questions & Answers] Deleted member 7793468:
I don't think it's a gpu problem, because the display is normal, when i screenshot something in the picture those lines appear, in every picture and i don't know why. Look at the pictures in the link
[Huawei P9 Lite Questions & Answers] harisyks:
That's Huawei's new skin. lol
[Huawei P9 Lite Questions & Answers] Deleted member 7793468:
Lol why

Btw i don't know why but my phone says i'm running android 4.3 and emui 2.0 but when i click 5 times the android version the N appears lool
[Huawei P9 Lite Questions & Answers] nitroax:
Thats because its a beta fw. You're running b328, install the new b329.
[Huawei P9 Lite Questions & Answers] Deleted member 7793468:
I'm running B329

In fact data mobile works
[Honor 5C Questions & Answers] Meticulus:
Hello Honor 5c community,

As you may or may not know I have been developing CM13 for the Huawei P9-Lite, which is very similar to the Honor 5c. I think I can add support for NEMO with just a little information about each variant. Some Honor 5c owners have already flashed the ROM and they say it works well with the exception of the camera, which can be fixed if I can get this info.

I just need the model of each as written in this file:

/sys/firmware/devicetree/base/hisi,product_name

adb shell cat /sys/firmware/devicetree/base/hisi,product_name

and a dump of getprop that corresponds the the model:

adb shell getprop > /sdcard/prop.txt
adb pull /sdcard/prop.txt

Please reply with your model and the prop.txt here.:highfive:

Thanks ;)
[Honor 5C Questions & Answers] Yondalar:
adb shell cat /sys/firmware/devicetree/base/hisi,product_name

Gives

NEM-AL60

(it's the 32 / 3 GB Variant)

adb shell getprop > /sdcard/prop.txt
adb pull /sdcard/prop.txt

See attached file.

But I (maybe others as well) had to change the output path.

Also, Thank you very much for your effort :)
[Honor 5C Questions & Answers] Meticulus:
Thank your for your reply. Experimental support for NEM-AL60 will be included in my next build [Beta 2]. Its odd that the ro.product.model=NEM-AL10 and that the hisi,product_name is NEM-AL60 but... It should work.
[Honor 5C Questions & Answers] Liffeyman:
I have the NEM-UL10 but i have flashed the oeminfo for a p9 lite L31C432

The following gives me NEM-UL10

adb shell cat /sys/firmware/devicetree/base/hisi,product_name

Also had to change the output path
[Honor 5C Questions & Answers] Yondalar:
Yeah, I was confused about that as well. :confused:

Would be very happy if it worked anyways :)
[Honor 5C Questions & Answers] yog050:
Prop.txt file not found

C:\adb>adb shell getprop > /sdcard/prop.txt

The system cannot find the path specified.

MODEL:NEM-L22

:confused: