Skip to content

Instantly share code, notes, and snippets.

View timschneeb's full-sized avatar

Tim Schneeberger timschneeb

  • Heidelberg, Germany
  • 05:43 (UTC +02:00)
View GitHub Profile
admin-lbs: GPS Testing
aul_test: Launch apps
com.samsung.gearstore-fit
com.samsung.tsp-trace-test
vconftool: Edit settings
memory/testmode/factorymode
change-booting-mode.sh: Launch update mode
@timschneeb
timschneeb / rotateScreen.sh
Created November 25, 2022 00:30
rotate-screen.sh (keyboard hotkey for MSI Modern 15)
#!/bin/bash
kscreen-doctor -j 1 | grep 'rotation' | grep '4' &> /dev/null
if [ $? == 0 ]; then
kscreen-doctor output.1.rotation.normal
else
kscreen-doctor output.1.rotation.inverted
fi
@timschneeb
timschneeb / gearfit2_factorycodes.md
Last active November 24, 2022 20:02
Samsung Gear Fit 2 Pro - Secret factory codes

Accessing a service menu:

  1. Go to 'Settings > Gear info > About device'
  2. Tap five on 'Serial number'
  3. Enter a code of your choice
Secret code Description
*#0*# Test mode
*#0228# Battery info
*#0283# Speaker loopback config
@timschneeb
timschneeb / budsplus_fwupdate.py
Created March 6, 2021 23:54
Galaxy Buds+ Custom firmware injector (frida.re)
import frida, sys, argparse
parser = argparse.ArgumentParser(description='Inject custom firmware updates into Samsung\'s official Wearable app (Buds Plus only)')
parser.add_argument('path', metavar='path', type=str, nargs=1,
help='Path to firmware archive (on the Android device: ex. \'/sdcard/FOTA_R175XXU0ATF2.bin\')')
args = parser.parse_args()
jscode = '''
setTimeout(function() {{
Java.perform(function(){{

Keybase proof

I hereby claim:

  • I am thepbone on github.
  • I am thepbone (https://keybase.io/thepbone) on keybase.
  • I have a public key ASDMfdDCw5nRbtZ48_uFAPQ5jtKhPsV0fPthAvAtqQh-qgo

To claim this, I am signing this object:

@timschneeb
timschneeb / qt5.15-openssl-static-build.md
Created June 14, 2020 21:07
Build commands for Qt5.15-Static with OpenSSL
configure.bat -release -static -no-pch -optimize-size -opengl desktop -platform win32-msvc -prefix "C:\Qt\5.15.0-static" -skip webengine -nomake tools -nomake tests -nomake examples -openssl-linked -openssl -ssl -I "C:\OpenSSL-Win64\include" -L "C:\OpenSSL-Win64\lib\VC\static" OPENSSL_LIBS="-llibcrypto64MT -llibssl64MT"
time /t >> time.txt & jom -j8 & time /t >> time.txt
jom -j8 install
@timschneeb
timschneeb / galaxy-buds-rfcomm-crc16-ccitt.c
Created June 1, 2020 21:24
Galaxy Buds - Payload Checksum Calculator
/******************************************************************************
Samsung Galaxy Buds RFComm Transmission CRC16 (CCITT) Algorithm
*******************************************************************************/
#include <stdio.h>
int
main ()
1:  #include <iostream>
2:  using namespace std;
3:  int main (void){
4:    int i = 1, j = 2;
5:    if (i > j && j > i) //if: i is bigger than j AND j is bigger than i ....
6:       i++;     //...then increment i by one. BUT this condition can never be true!
7:    
8:    if (i > j || j > i) //if: i is bigger than j OR j is bigger than i ....
9: j++; //...then increment j by one
@timschneeb
timschneeb / mtv-api-reverse-engineering.md
Last active October 18, 2021 20:36
MTV API Unofficial Documentation (Reverse Engineering)

API Reverse Engineering (MTV/South Park)

Base URL

Production Server:

https://api.mtvnn.com/v2/

Staging Server: