Skip to content

Instantly share code, notes, and snippets.

View edgard116's full-sized avatar
💭
I may be slow to respond.

EDGARD MARTÍNEZ edgard116

💭
I may be slow to respond.
View GitHub Profile
@guid-empty
guid-empty / main.dart
Last active December 1, 2023 11:04
Checking authorization data hash for Telegram Login widget or Redirecting by LoginUrl from inline button keyboard
/// see more details here
/// https://core.telegram.org/widgets/login#checking-authorization
import 'package:crypto/crypto.dart'; //. https://pub.dev/packages/crypto
static const String botToken =
'XXXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX';
bool checkTelegramRegistrationData({
required final String id,
This file has been truncated, but you can view the full file.
03-14 18:18:20.819 1352 1352 E ThermalHalWrapper: Thermal HAL 1.1 service not connected.
03-14 18:18:20.820 1352 1352 I ThermalHalWrapper: Thermal HAL 1.0 service connected, no thermal call back will be called due to legacy API.
03-14 18:18:20.821 1619 1619 W android.hardware.wifi@1.0-service-lazy: No active wlan interfaces in use! Using default
03-14 18:18:20.821 1619 1619 E android.hardware.wifi@1.0-service-lazy: Unknown iface name: wlan0
03-14 18:18:20.821 1619 1619 E android.hardware.wifi@1.0-service-lazy: Unknown iface name: wlan0
03-14 18:18:20.839 1352 1352 D SystemServerTiming: OnBootPhase_550_com.android.server.power.hint.HintManagerService
03-14 18:18:20.839 1352 1352 D SystemServerTiming: OnBootPhase_550_com.android.server.recoverysystem.RecoverySystemService$Lifecycle
03-14 18:18:20.839 1352 1352 D SystemServerTiming: OnBootPhase_550_com.android.server.lights.LightsService
03-14 18:18:20.839 1352 1352 D SystemServerTiming: OnBootPhase_550_com.android.server.display.DisplayManager
@X1ting
X1ting / telegram_check_auth.rb
Created February 26, 2023 23:49
Check telegram auth token
data = {
auth_date: DATE,
first_name: "NAME",
hash: "HASH",
id: ID,
last_name: "SURNAME",
photo_url: "PHOTO",
username: "USERNAME"
}
@90K2
90K2 / TelegramVerifier.kt
Created July 13, 2022 10:49
Kotlin implementation of telegram verification flow
@JsonIgnoreProperties(ignoreUnknown = true)
data class TelegramAuthRequestDTO(
@JsonProperty("auth_date")
val authDate: Long,
@JsonProperty("first_name")
val firstName: String?,
@JsonProperty("last_name")
val lastName: String?,
@FacuM
FacuM / android_extract.sh
Last active April 28, 2022 07:36
This is an alternative to both Migrate Flasher normal and emergency flash if they hang on your backup file. Just drop this file on the root of your /sdcard then run a shell on your device and execute "bash /sdcard/android_extract.sh <full_path_to_migrate_zip>" i.e.: "bash /sdcard/android_extract.sh /sdcard/Migrate/Full_Backup_XYZ.zip", wait for …
#!/system/xbin/bash
# This is an alternative to both Migrate Flasher normal and emergency flash if
# they hang on your backup file.
#
# Just drop this file on the root of your /sdcard then run a shell on your
# device and execute the following command:
#
# bash /sdcard/android_extract.sh <full_path_to_migrate_zip>
#
<?php
define('BOT_TOKEN', 'XXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXX'); // place bot token of your bot here
function checkTelegramAuthorization($auth_data) {
$check_hash = $auth_data['hash'];
unset($auth_data['hash']);
$data_check_arr = [];
foreach ($auth_data as $key => $value) {
$data_check_arr[] = $key . '=' . $value;
--------- beginning of system
05-07 13:19:33.569 1345 1345 I PackageManager: /system/priv-app/qcrilmsgtunnel changed; collecting certs
05-07 13:19:33.572 1345 1345 E PackageManager: Adding duplicate shared id: 1001 name=com.qualcomm.qcrilmsgtunnel
05-07 13:19:33.573 1345 1345 W PackageManager: Failed to parse /system/priv-app/OneTimeInitializer: Not a coreApp: /system/priv-app/OneTimeInitializer
05-07 13:19:33.586 1345 1345 I PackageManager: /system/priv-app/CNEService changed; collecting certs
05-07 13:19:33.603 1345 1345 E PackageManager: Adding duplicate shared id: 1000 name=com.quicinc.cne.CNEService
05-07 13:19:33.605 1345 1345 I PackageManager: /system/priv-app/InputDevices changed; collecting certs
05-07 13:19:33.608 1345 1345 E PackageManager: Adding duplicate shared id: 1000 name=com.android.inputdevices
05-07 13:19:33.609 1345 1345 I PackageManager: /system/priv-app/PackageInstaller changed; collecting certs
05-07 13:19:33.614 1345 1382 W PackageParser: Ignoring duplicate uses-perm
<?php
define('BOT_TOKEN', 'XXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXX'); // place bot token of your bot here
function checkTelegramAuthorization($auth_data) {
$check_hash = $auth_data['hash'];
unset($auth_data['hash']);
$data_check_arr = [];
foreach ($auth_data as $key => $value) {
$data_check_arr[] = $key . '=' . $value;
<?php
define('BOT_TOKEN', 'XXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXX'); // place bot token of your bot here
function checkTelegramAuthorization($auth_data) {
$check_hash = $auth_data['hash'];
unset($auth_data['hash']);
$data_check_arr = [];
foreach ($auth_data as $key => $value) {
$data_check_arr[] = $key . '=' . $value;
@devunwired
devunwired / GifDecoder.java
Last active January 26, 2024 21:14
An optimized implementation of GifDecoder for Android devices.
/**
* Copyright (c) 2013 Xcellent Creations, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distribute, sublicense, and/or sell copies of the Software, and to
* permit persons to whom the Software is furnished to do so, subject to
* the following conditions: