yashsingh1/xdaforums huggingface dataset:
[Samsung Gear S3] Sash999:
Hi Adfree,

that looks like a major step forward :). I have a similar setup - R760 with german CSC code operated in Malaysia where Spay is working on my Galaxy S8 but not for my Gear S3. Did you instruction help yourself to get the Spay app 1) on the gear s3 or 2) on the samsung phone via gear manager app?

The step 1 of the combination firmware is done to delete any CSC information on the gear s3 and allow you once step 2 is done (flashing of CSC.img only) to use the dial shortcut (*#272*719434266344#) to manually configure the gear s3 to the CSC of USA ?

Do you have any further details on which steps I would need to take to change the CSC to Malaysia ?

I am happy to try the CSC change as you shared if it has any positive impact on samsung pay for yourself. Also could you please confirm it actually changed your CSC settings to the US version once you performed all 5 steps ?

thanks & gruesse aus Asien, Sascha
[Samsung Gear S3] Minotaur:
Does changing the CSC in this manner get around SPay region as well? I have an HK S3 and SPay registers to Hong Kong. I'd rather it register to Australia, if the correct CSC would actually change this.
[Samsung Gear S3] adfree:
Sales Code/CSC is also Samsung Pay related...

BUT... Samsung Pay is part of Security concept from Samsung... Knox crap...

Sales Code of Gear S3 is only 1 part of puzzle/riddle... and it could be dangerous to play with...

You have also to watch CSC/Sales Code on your handset... because this is Master/Slave stuff...

Samsung Pay on Gear is Client app... NO standalone...

You could click around in this Thread... maybe it helps you to understand more:

https://xdaforums.com/showpost.php?p=74397637&postcount=13

It is really better and safe... to identify FIRST your exact settings on deviceS... Gear AND Phone:

https://xdaforums.com/showpost.php?p=74397637&postcount=13

This should be also possible without ROOT...

Depend on your skills...

But there are many possible ways to check CSC/Sales Code on Phone AND Gear without Root or trigger Knox crap...

No guarantee...

Own risk!

Best Regards
[Samsung Gear S3] Sash999:
Guys,

here are my CSCs and I would like to achieve the same - getting samsung pay running on the Gear S3:

Gear S3:

- AP R760XXU2BQC5

- CSC R760OXA2BQC5

country of origin = Germany

Galaxy S8+

- CSC G955FOXM1AQH3

country of origin = Malaysia

country of operation = Malaysia (including SIM)

So really my question would be - how to set the CSC code to other countries (Malaysia / Australia) based on the instruction shared above.
[Samsung Gear S3] Minotaur:
My phone (S7 Edge) is already rooted and the Knox counter is tripped. Currently using XSA CSC code on the phone
[Samsung Gear S3] adfree:
XSA is also in Gear S3 CSC...

Australia seems also official supported...see here:

https://xdaforums.com/showpost.php?p=74419875&postcount=14

Questions.

A.

Your S7 Edge work with Spay?

Or disabled due Knox ?

Handset part seems the more important part...

B.

Are you able to check with SDB Tool or other way which CSC on your Gear?

Example from my DBT Germany device:

sh-3.2$ [B]vconftool get -t string db/csc/salescode[/B]
db/csc/salescode, value = DBT (string)

Best Regards
[Samsung Gear S3] Minotaur:
SPay doesn't work on my S7 Edge due to root/knox.

CSC on the Gear is Hong Kong. When I activate SPay it registers to HK.

CSC on the phone is Australia (XSA) however for some reason it was UK (BTU) when I got the phone. I used a CSC changer zip to change it in the phone after installing a custom ROM.

When I got the Gear, SPay didn't work - I assume because it wasn't supported on HK Gears at the time, however it activated itself about 6 weeks ago. SPay works fine on the Gear (with Magisk Hide cloaking root from the Gear app) but registers to HK, and the vouchers/offers are for HK.

I have never heard of vconftool, not sure how to install it
[Samsung Gear S3] adfree:
I am using on my GT-I9300 APK called:

Phone INFO

And during my experiments... it seems CSC is more then 1 time stored... App shows:

Original CSC-Code
Firmware CSC-Code
Active...
...

And in theory I am able to set every text string different...

Maybe "CSC mix" is inside your S7 Edge?

:confused:

SDB is something like ADB Tool... but only for Tizen...

And the Command is:

vconftool get -t string db/csc/salescode

In theory Copy and Paste "Power"...

Best Regards
[Samsung Gear S3] adfree:
SDB 2.2.60

Old, but in my eyes best SDB Version... because easy handling with right Mouse Button to mark, copy & paste.

I have added for few OSes.. with WiFi Instruction...

Maybe helpfull.

Btw.

I have used this Version also with Tizen 3 and Tizen 4...

For me most main features work. :good:

Like:

sdb root on
sdb shell
sdb pull
sdb push

Best Regards

Edit 1.

Nice Video for enable Debugging Option... to enable SDB communication... mandatory:

https://www.youtube.com/watch?v=T_m3wsF7Ozs

Edit 2.

Added Video... how to find:

Debugging
IP address

Edit 3.

Added Video... as example.

How to connect SDB with device...

Here example how to connect to remote device in RTL service... ;)

To local device "similar"...

Edit 4.

The most important part to connect SDB with device over WiFi is described inside here:

[B][SIZE="3"][COLOR="Green"]Guidelines_on_Connecting_GearS2_device_using_WiFi.pdf
Guidelines_on_Connecting_GearS2_device_using_WiFi_151222.pdf[/COLOR][/SIZE][/B]

Please read FIRST! ;)
[Samsung Gear S3] Arawac:
Hi Guys,

Great to see some progress, been awhile since I took a look.

My phone is bought in Singapore aswell as the SIM, SPAY working no issues

I got the sdb-shell up and running, and got you the output of the command:

vconftool get -t string db/csc/salescode

db/csc/salescode, value = KOO (string)

Bought from a Korean seller (very comon here) obviously SPAY not working on gear.

What would you like me to check next ?

Cheers,
[Samsung Gear S3] adfree:
[MENTION=3775891]Arawac[/MENTION]

Maybe we could move to this Thread:

https://xdaforums.com/gear-s3/help/samsung-pay-available-s3-vietnam-t3652008

Click little bit around... few infos and Videos inside this Thread...

Checklist.

A.

Your Phone not show Samsung Pay Plugin?

In Samsung Gear Manager app?

B.

So in theory KOO is enabled for Spay in Gear S3... because it is the Korean Sales Code...

But you can not hold back key to open Spay on Gear S3?

C.

In theory Singapore Sales Code/CSC is IMHO:

XSP

Can you check this please...

D.

https://xdaforums.com/showpost.php?p=74335919&postcount=9

Here is how to force Spay to start on Gear S3...

OWN risk!

Second Warning!

Not tested on Tizen 3...

So if you allready updated to Tizen 3...

I have no idea if this app is still working...

Best Regards
[Samsung Gear S3] xenu8:
Post:

https://xdaforums.com/showpost.php?p=74563047&postcount=321

Holly cow, it is working!!! Just set SER region(Russia) and install R760OXA2BQH1.

Woohoo, spay is working!

Thank you very much!!!
[Samsung Gear S3] Mad_Teo:
Excuse me, so if I have well understood, these are the steps:

1 - ERASE THE FIRMWARE AND SET THE SAFETY MODE:

2 - SET FIRMWARE ONLY FOR CSC

3 - CONFIG CSC : first insert the code than choose the csc - in my case ITV

4 - SET FIRMWARE FOR AP AND BL

Is it correct? Thank you in advance!
[Samsung Gear S3] adfree:
[MENTION=8737154]Mad_Teo[/MENTION]

Your stepps look good it.

Maybe additional hint..

Combination Firmware BQC2 is 1 single package... so you can select it in netOdin in :

AP

If you want you can try ITV...

ITV have CQK3 Firmware...

No idea why Hong Kong takes much longer for Tizen 3.

Best Regards
[Samsung Gear S3] Mad_Teo:
Thank you! I want to change CSC to ITV also because I want to use Samsung Pay

when in Italy will be released
[Samsung Gear S3] adfree:
Few users from different countries reported success with Samsung Pay... if you set to:

XAR

The US Sales Code/CSC...

Only as hint... maybe you are brave enough to try. :angel:

Best Regards
[Samsung Gear S3] Mad_Teo:
In effect I could use XAR code to get tizen 3.0 waiting hopefully the release of Samsung Pay in Italy and if it will not work properly, than I can change again the CSC to ITV... correct?

TY
[Samsung Gear S3] adfree:
Yes.

At the moment we can "jump" between Tizen 2.3 and Tizen 3 and switching CSC if we want.

So at the moment we have more then 1 attempt.

You can also set back to TGY... if you want.

Best Regards
[Samsung Gear S3] wisefreakz:
Do you think 760 and 765 are somehow different in hw specs?

I do have the 765 and wanting to do the trick thing to change my sales code but there is no combination firmware for it. What do you believe it could happen if flash 760 firmware?
[Samsung Gear S3] adfree:
[MENTION=3218463]wisefreakz[/MENTION]

WARNING!

SM-R765 family/group is at the moment tooo lethal/deadly for experiments... as we have no chance to get Firmware for reapir attempts.

This means, plase NO experients with:

SM-R765(S)
SM-R765A
SM-R765V
SM-R765T
SM-R765N
SM-R765F

Examples...

Unsolved... :crying:

No chance yet to get Full Firmware for repair. :eek:

https://xdaforums.com/gear-s3/help/sm-r765f-teardown-t3659431

https://xdaforums.com/gear-s3/help/please-help-bricked-gear-s3-sm-r765s-t3665558

:(

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

Samsung released SM-R600 Source. :good:

So some Tizen 3 source for study:

http://opensource.samsung.com/reception/receptionSub.do?method=sub&sub=F&searchValue=SM-R600

Best Regards
[Samsung Gear S3] Surge1223:
Alright I just picked one of these up, time to experiment.
[Samsung Gear S3] primod808:
Has any of the developers tried porting or using biktor_gj custom AW Rom he used for the gear S? I have the gear s and have used his port of AW which was a port of the zenwatch AW on my gear S and it was a great start. Just throwing out some ideas and hoping someone can port AW to our gear s3.
[Samsung Gear S3] adfree:
But we still have Security problems.... :(

To do root... or any other modification to Stock Firmware...

RSA 2048 ... Signature check...:rolleyes:

Anyway.

Need for study:

COMBINATION-FT30_R760XXU2CQK2.tar.md5

AP_R760XXU2CQK3_usr.tar.md5
BL_R760XXU2CQK3_usr.tar.md5
CSC_OXA_R760OXA2CQK3_usr.tar.md5

Please, maybe someone is willing to share. :angel:

Thanx in advance.

Best Regards
[Samsung Gear S3] adfree:
Attached is why I was able to compile last year Kernel for my SM-Z130H...

Also SM-Z300H successfully compiled with these helpfull Docs...

I need something like this to perform similar stuff with my SM-R732... SM-R760... (SM-R600).

Maybe someone with bigger brain and more expirience can compile Kernel and inform us...

Maybe with additional infos...

Like yes...

Easy thing

1 click done...

Or again Samsung only deliver parts... and we have to find all missing parts...

Thanx in advance. :angel:

taken from Lecture3.pdf... For Gear Sx series maybe wrong or maybe similar...

I don't know. :o

#!/bin/bash
export CROSS_COMPILE=arm-linux-gnueabi-
make ARCH=arm tizen_tm1_defconfig
make ARCH=arm zImage –j2
make ARCH=arm dtbs
./dtbtool –o ./arch/arm/boot/merged-dtb –p scripts/dtc/ -v ./arch/arm/boot/dts/
./mkdzimage –o ./arch/arm/boot/dzImage –k ./arch/arm/boot/zImage –d ./arch/arm/boot/merged-dtb
tar –cvf ./tizen-recovery.tar ./arch/arm/boot/dzImage

Maybe someone could create similar Shell script for me... to compile SM-R760 and SM-R600 Kernel?

Thanx in advance.

Best Regards
[Samsung Gear S3] Surge1223:
Yeah I can write the script, I'm looking at this and I think we're vulnerable to 3 cves. I'm looking at the Linux PoC's I've found

---------- Post added at 07:41 AM ---------- Previous post was at 07:39 AM ----------

Where are you failing at with compile?
[Samsung Gear S3] tids2k:
Guys I am back. I will not be able to contribute much. But whenever I can, I will try to help.

Surge can you post CVE numbers > [MENTION=1030585]adfree[/MENTION] Odia and I were looking into the kernel part but as you said there are a lot of missing files.

I will look into compiling the kernel for you.

---------- Post added at 12:13 PM ---------- Previous post was at 11:54 AM ----------

What I am reading right now --> http://www.fredericb.info/2016/10/a...not-so.html#amlogic-s905-soc-bypassing-not-so
[Samsung Gear S3] adfree:
With step 1...

Trying. :o

I have not started to try self... before somebody else confirmed...

Yes, Samsung offered all mandatory files... you need only to click 1 Button...

I am Windows Fanboy... so every step with Linux is hard for my tiny little brain...

We searching since months... Somebody who is more skilled...

To "simple" compile Samsung Source...

https://xdaforums.com/android-wear/help/qa-please-help-build-custom-kernel-t3616704

Before we can any 1 Byte modification... we need confirmation Samsung offered all files and all Commands + Tool to compile Example Kernel...

It makes no sense for me...

To waste my time... and my head explode to find out... it is again only 50 % Source... and all mandatory stuff is only for Samsung Partner... or friends of Samsung R&D...

IMHO I spend enough time... and sharing my findings, ideas and sometimes I can offer full solution in Tizen World.

Best Regards
[Samsung Gear S3] adfree:
[MENTION=1722345]tids2k[/MENTION]

Please.

We need Firmware. :o

AP_R760XXU2CQK3_usr.tar.md5
BL_R760XXU2CQK3_usr.tar.md5
CSC_OXA_R760OXA2CQK3_usr.tar.md5

Maybe in Tizen 3 few "holes"... to bypass Security...

COMBINATION-[B]FT30[/B]_R760XXU2[B]CQK2[/B].tar.md5

Thanx in advance.

Best Regards
[Samsung Gear S3] adfree:
Steps for noobs... ehm newbies ehm new ... users :D

Kernel related...

Short looked into Source of Gear S3 and SM-R600...

For Linux Kernel we need only this folder:

[B]linux-3.18-exynos7270[/B]

Config files are here:

linux-3.18-exynos7270/arch/arm64/configs

Red marked files are only in SM-R600 source... btw. both have same Linux Kernel Version and Exynos 7270:

defconfig
smdk7270_defconfig
smdk7570_defconfig
[COLOR="Red"][B]tizen_pop_defconfig[/B][/COLOR]-SM-R600???
tizen_solis_defconfig------------------SM-R760???SM-R770???
tizen_solis_lte_defconfig
tizen_solis_lte_eur_defconfig
tizen_solis_lte_kor_defconfig------SM-R765S SKC???
tizen_solis_lte_na_att_defconfig--SM-R765A ATT???
tizen_solis_lte_na_tmo_defconfig-SM-R765T TMO???
tizen_solis_lte_na_vzw_defconfig-SM-R765V VZW???
[COLOR="Red"]tizen_solis_lte_sea_tnz_defconfig[/COLOR]-SM-R765N TNZ???
tizen_solis_lte_sea_xsp_defconfig-SM-R765F XSP???
universal7270_4g4g_defconfig
universal7270_defconfig
[COLOR="Red"]universal7560_defconfig[/COLOR]
universal7570_defconfig

Only guess... not yet tested nor confirmed...

If something wrong... correct me.

Later more...

Best Regards

Edit 1.

:mad:

In Samsung Source again these important files missing...

[COLOR="Red"]mkdzimage
dtbtool[/COLOR]

They are for instance inside these RPMs:

system-tools-0.0.1-1.1.i586.rpm

This Version is taken from SM-Z300H example... which created also valid SM-Z130H Kernel...

Will check if I find newer Version... otherwise I will upload this 12 KB RPM...

Edit 2.

Added for Computer...

system-tools-0.0.1-1.1.i586.rpm

Unpack with 7Zip for instance... then these 2 files inside:

mkdzimage and dtbtool...
[Samsung Gear S3] adfree:
Memo to me.

Seems my old Notebook with Ubuntu is only 32 bit system...

Usefully commands to identify Ubuntu version:

lsb_release -a

or

cat /etc/lsb-release

I have old 14.04 (LTS)...

To identify if 32 or 64 bit:

uname -m

My Notebook spitted out...

I686

64 bit system shows something like:

x86_64

Hmmmmmmmmmmmmmmm...

No idea if I can compile 64 bit Kernel with 32 bit Ubuntu...

:confused: :confused: :o :confused: :confused:

[MENTION=4939386]Surge1223[/MENTION]

Any progress with compiling Kernel for Gear S3?

Best Regards
[Samsung Gear S3] tids2k:
[MENTION=1030585]adfree[/MENTION] for you :) good luck

COMBINATION-FT30_R760XXU2CQK2 :good:
[Samsung Gear S3] tids2k:
This is the normal firmware R760XXU2CQK3..

If you get stuck install this to go back to CQK3

https://www.mediafire.com/file/19i457dc9n6lur8/BL_R760XXU2CQK3_usr.tar.zip

https://www.mediafire.com/file/s69cvryeu9d46y7/CSC_OXA_R760OXA2CQK3_usr.tar.zip

https://www.mediafire.com/file/lasco272rmicv2i/AP_R760XXU2CQK3_usr.tar.zip

Enjoy :-0
[Samsung Gear S3] rexxar_tc:
Thanks guys for the USB pinouts, I was able to unbrick my S3.

I'd like to point out that if (like me) you are worried about shoving 5V up the wrong pin by mistake, it is not required to connect Vcc! Technically it isn't even required to connect ground, but it's always a good idea. The D+/- signals are differential, so are not referenced to Vcc, but to each other.

If people are interested in such a thing, I can knock up a little breakout pcb so you don't have to solder wires to your gear. Since the pogo pins are on the board, it's super easy. I used to be a hardware engineer, but now I do C# software :P
[Samsung Gear S3] adfree:
[MENTION=6911471]rexxar_tc[/MENTION]

Thanx for feedback.

I am paranoid so I am ever trying to attach all wires... :D

And in my case... Charging is usefull over USB... as I am using it over weeks... months... For playing around.

For short flashing... maybe not required... not tested...

Kernel Compile "Adventure"...

Seems I have more then 100 GB partition free and not used on my Samsung Notebook R60 Plus...

https://www.ubuntu.com/download/desktop

Hmmm...

I think I will try with this... for 64 bit:

Ubuntu 16.04.3 LTS (Apr 2016 – Jul 2021)

Need some time...

Have to backup first my 80 GB Windows Vista partition...

Then fight with Installation to keep my Vista alive... :D

Then fight with Ubuntu to set up all stuff for Compiling...

Then fight with Samsung Source... :D :D :D :D

As Windows Fan Boy it is ever an hard fight for me...

My brain is low... :o

Best Regards

Edit 1.

ubuntu-16.04.3-desktop-amd64.iso

1500 MB downloaded... will burn DVD...

Edit 2.

DVD burned... now installing...

Puh... I will see in few hours result... Hope not again destroyed partitions... :D :o
[Samsung Gear S3] tids2k:
You should have just run it int virtual machine. :)

btw any good kernel moders please look at this : https://android.googlesource.com/kernel/exynos/+/android-exynos-koi-3.18-nougat-mr1-wear-release

we can use this as a base to scratch start building android for our devices.
[Samsung Gear S3] DrBrunkov:
As far as I understand, there's no zImage on Aarch64 (S3 is 64bit, right?). I have compiled kernel with the tizen_solis config to an Image that should be (according to kernel.org/doc/Documentation/arm64/booting.txt be somewhat loaded by the bootloader. There's a couple of dts as well.

Link: https://mega.nz/#!zIMHwDDZ!djvfzl55fKyceYBtBWwYlubgMTLobF-HhgCG-KcBnI0

Command to compile yourself (assuming you are in kernel directory, and gcc-aarch64-linux-gnu is installed)

drbrunkov@pc-ubuntu:~/source/linux-3.18-exynos7270$ make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- distclean tizen_solis_defconfig
drbrunkov@pc-ubuntu:~/source/linux-3.18-exynos7270$ make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu-

Feel free to ask if you need anything else:)
[Samsung Gear S3] adfree:
[MENTION=8499435]DrBrunkov[/MENTION]

Thank you very much for trying and upload result. :good: :cool:

If I short compare with BQC5 or better APK7 Kernel from leaked Firmware... 2048 Byte from start/header "missing"...

:confused: :confused:

Best Regards
[Samsung Gear S3] DrBrunkov:
Hmm... that's a lot. Is everything else equal?
[Samsung Gear S3] adfree:
Only short looked... need more time...

But generally it looks good. :good:

It is only important IMHO to check before "we" try to flash to device... to prevent Knox dripping or KO...

I have no USB cable connection yet... :o

So I need more time to perpare me myself and my SM-R760 for experiments with custom Kernel. :D :o

Best Regards
[Samsung Gear S3] adfree:
Tiny progress in set up Ubuntu for compiling Kernel...

Noob Version :D ...for me...

HOW_TO_BUILD.txt from Open Source Center looks "similar" to this:

https://source.tizen.org/documentat...ng-started-guide/installing-development-tools

As Windows Fanboy I have heavy problems with:

sudo [COLOR="Red"][B]vi[/B][/COLOR] /etc/apt/sources.list

No idea how it work... :confused: :o

So I found this:

sudo gedit /etc/apt/sources.list

I see few Warnings or Errors.. but I have ignored... :D

I need some time for copy... unpack Kernel Source etc... and fire up Build Command...

Best Regards
[Samsung Gear S3] adfree:
ubuntu64@ubuntu64:~/Dokumente/source/linux-3.18-exynos7270$ make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- distclean tizen_solis_config
CLEAN scripts/basic
HOSTCC scripts/basic/fixdep
make[2]: *** Keine Regel, um „tizen_solis_config“ zu erstellen. Schluss.
Makefile:547: die Regel für Ziel „tizen_solis_config“ scheiterte
make[1]: *** [tizen_solis_config] Fehler 2
Makefile:526: die Regel für Ziel „__build_one_by_one“ scheiterte
make: *** [__build_one_by_one] Fehler 2
ubuntu64@ubuntu64:~/Dokumente/source/linux-3.18-exynos7270$ make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu-
HOSTCC scripts/kconfig/conf.o
SHIPPED scripts/kconfig/zconf.tab.c
SHIPPED scripts/kconfig/zconf.lex.c
SHIPPED scripts/kconfig/zconf.hash.c
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
scripts/kconfig/conf --silentoldconfig Kconfig
drivers/motor/Kconfig:1:warning: config symbol defined without type
***
*** Configuration file ".config" not found!
***
*** Please run some configurator (e.g. "make oldconfig" or
*** "make menuconfig" or "make xconfig").
***
scripts/kconfig/Makefile:36: die Regel für Ziel „silentoldconfig“ scheiterte
make[2]: *** [silentoldconfig] Fehler 1
Makefile:547: die Regel für Ziel „silentoldconfig“ scheiterte
make[1]: *** [silentoldconfig] Fehler 2
make: *** Keine Regel vorhanden, um das Ziel „include/config/auto.conf“,
benötigt von „include/config/kernel.release“, zu erstellen. Schluss.

Hmmmmmmmmm...

Noob result for today... :o

Best Regards
[Samsung Gear S3] DrBrunkov:
Have you installed gcc-aarch64-linux-gnu?

sudo apt-get install gcc-aarch64-linux-gnu
[Samsung Gear S3] adfree:
sudo apt-get install gcc-aarch64-linux-gnu

In theory yes... maybe I made mistake or something else wrong... :o

I saw here something about Linaro Toolchain...

https://wiki.tizen.org/Tizen_3.0_Porting_Guide#Kernel_Build

For now my head explode... out of order...

Will check later what I made wrong or have forgotten... :o

Best Regards
[Samsung Gear S3] DrBrunkov:
Actually my bad. It should be

ubuntu@ubuntu linux3.blahblah$ make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- distclean tizen_solis_defconfig

Thanks and sorry for misleading you, I've already edited the original post