View smart_capture_processor.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'dart:async'; | |
import 'dart:convert'; | |
import 'dart:isolate'; | |
import 'dart:typed_data'; | |
import 'package:camera/camera.dart'; | |
import 'package:flutter/material.dart'; | |
import 'package:flutter/services.dart'; | |
import 'package:qundo/ffi/smart_capture.dart'; | |
import 'package:qundo/utilities/image_converter.dart'; |
View image_converter.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// imgLib -> Image package from https://pub.dartlang.org/packages/image | |
import 'package:image/image.dart' as imglib; | |
import 'package:camera/camera.dart'; | |
Future<List<int>> convertImagetoPng(CameraImage image) async { | |
try { | |
imglib.Image img; | |
if (image.format.group == ImageFormatGroup.yuv420) { | |
img = _convertYUV420(image); | |
} else if (image.format.group == ImageFormatGroup.bgra8888) { |
View PackageRemover.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.hfh.wellbe.smartwatch.utils.packageRemover | |
import android.content.Context | |
import com.hfh.wellbe.smartwatch.utils.isPackageInstalled | |
import com.hfh.wellbe.smartwatch.utils.launch | |
import com.hfh.wellbe.smartwatch.utils.tryTo | |
import com.hfh.wellbe.smartwatch.utils.uninstallPackage | |
object PackageRemover { |
View gist:56127823f1dade6c1c5486fc756be72b
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
import Flutter | |
import Firebase | |
import FirebaseMessaging | |
import MSAL | |
@UIApplicationMain | |
@objc class AppDelegate: FlutterAppDelegate { | |
var deviceToken = "" | |
var fcmToken = "" |
View KeyHashGenerator.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package global.raiser.plugins.utils; | |
import android.content.Context; | |
import android.content.pm.PackageInfo; | |
import android.content.pm.PackageManager; | |
import android.content.pm.Signature; | |
import android.net.Uri; | |
import android.util.Base64; | |
import java.security.MessageDigest; |
View AndroidManifest.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:tools="http://schemas.android.com/tools" | |
package="com.hfh.wellbe.smartwatch" | |
android:sharedUserId="android.uid.system"> | |
<uses-permission android:name="android.permission.BLUETOOTH" /> | |
<uses-permission android:name="android.permission.ACCESS_SUPERUSER" /> | |
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" /> | |
<uses-permission android:name="android.permission.DISABLE_KEYGUARD" /> |
View gist:fc9b91722fd156ad4d3fa59b98416136
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
eyJhbGciOiJSUzI1NiIsImtpZCI6IjE1MzRGMDZBNjE0MEY3RTRFQUE5QzE5RjFCMTRDQzBDMTE5OUFDQjEiLCJ0eXAiOiJKV1QiLCJ4NXQiOiJGVFR3YW1GQTktVHFxY0dmR3hUTURCR1pyTEUifQ.eyJuYmYiOjE2MTQ3NzM2MDUsImV4cCI6MTYzMDU4NDgwNSwiaXNzIjoiaHR0cDovL2F1dGgucmFpc2VyLXByZS5sb2NhbCIsImF1ZCI6WyJodHRwOi8vYXV0aC5yYWlzZXItcHJlLmxvY2FsL3Jlc291cmNlcyIsImFwaTMiXSwiY2xpZW50X2lkIjoibW9iaWxlYXBpMSIsInN1YiI6IjhiMDVlYmI4LThkNGMtNGNlNS04YmNmLTRlNDU5ODkwMmY2YSIsImF1dGhfdGltZSI6MTYxNDc3MzYwNSwiaWRwIjoibG9jYWwiLCJpZCI6IjhiMDVlYmI4LThkNGMtNGNlNS04YmNmLTRlNDU5ODkwMmY2YSIsInNjb3BlIjpbIm9wZW5pZCIsImFwaTMiLCJvZmZsaW5lX2FjY2VzcyJdLCJhbXIiOlsicGFzc3dvcmQiXX0.rXd73kfO3gD7EgWxWn6wkL7dR-BdG56Ey6OkbpAbd5k65KXSp88Vv9wPrkajG6gpiA7TWQnZgEUAyZ3GDcy-7MXzZ_IDg0py9hIDd1EaJk6o2gmuI-gAXTul5M0Ds4agJO-fxTU-4jKc-_KQzotyVKK9dxGllnWWVvw4rpif73OHGXKMfk0KfNzgWgunKBFqfKVL7PIACKtka62f5gfZOaO27qr70tQ5e-8qZD5JGiP2Bkf0hBPmPsXx_1vUVTCipugGN6qhhSCvwBhpWO72EUpKYbHsRJOAi4xyceBM3F9bkVppWnutQrW5yojcbdVea0waYD0h5klFCXUNV78USQ |
View gist:75a0cbcbcf2c5520986a583479a499ea
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl --location --request GET 'https://qa-api.handsfreecloud.net/api/v1/preferences/device' \ | |
--header 'Authorization: bearer c27AZeLw75kYrY4sbW4BsAe2tAegw5DwuXagu0iPDrjNu_u4izDhR5nNWdysUOP3dOL_DT9vL2tMtKeW8wehHv4P2-Y2-LlmBZpfTwV8UHCU2CshygNNvIDHxbDWRgw0lBXyKGqFTxawYzpPphPRiP61CjpGeOvxKagQ9YjZHfjdP0EW82dPeZ5qKbVYQT5MbmPkwNqFOIWKymIr7g27jH6Fn4nc0RkL3uXdwU_CEZqz7HgszsLklSAEbEMNt_rsyfQ6XvWuKkDsQHwRUhVPPMtd8TX2NVjwSzCH2enVbC4O2v5OlIhrgMJCurQByA5Ufw0zvSPs1nTroQ5MENAdiQ' \ | |
--header 'CallerIdentifier: 865299201656703' \ | |
--header 'DeviceTypeId: 4' \ | |
--header 'Content-Type: application/json' \ | |
--header 'Cookie: ARRAffinity=b9e95e3c3c931ad78153943313b68f27e3fa032b10fbb2314397e6ab822fa7f5; ARRAffinitySameSite=b9e95e3c3c931ad78153943313b68f27e3fa032b10fbb2314397e6ab822fa7f5' \ | |
--data-raw '' |
View AuthView.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.systech.core_v2.auth | |
import android.content.Context | |
import android.graphics.* | |
import android.graphics.ImageFormat.NV21 | |
import android.graphics.drawable.BitmapDrawable | |
import android.graphics.drawable.Drawable | |
import android.hardware.Sensor | |
import android.hardware.SensorManager | |
import android.hardware.SensorManager.SENSOR_DELAY_UI |
View CenterZoomLayoutManager.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.hfh.wellbe.smartwatch.utils | |
import android.content.Context | |
import androidx.recyclerview.widget.LinearLayoutManager | |
import androidx.recyclerview.widget.RecyclerView | |
import kotlin.math.abs | |
import kotlin.math.min | |
class CenterZoomLayoutManager : LinearLayoutManager { |