Based on Nekogram. Key additions: - Rebrand to FoxiGram (app name, APK name, applicationId com.foxigram.app) - Embedded Xray (VLESS+Reality) proxy client via JNI libxray.so - Bundled hidden one-tap proxies (LTE + WiFi), read-only in UI - Auto-restore proxy on restart, rebind to active network (LTE/WiFi) - Server credentials externalized to git-ignored XrayServers.java (+ template) - libxray Go source included; compiled .so, keystore, google-services.json ignored
27 lines
661 B
C
27 lines
661 B
C
#ifndef log_h
|
|
#define log_h
|
|
|
|
#include <android/log.h>
|
|
#include <jni.h>
|
|
|
|
#define LOG_TAG "tmessages_native"
|
|
#ifndef LOG_DISABLED
|
|
#define LOGI(...) __android_log_print(ANDROID_LOG_INFO, LOG_TAG, __VA_ARGS__)
|
|
#define LOGD(...) __android_log_print(ANDROID_LOG_DEBUG, LOG_TAG, __VA_ARGS__)
|
|
#define LOGE(...) __android_log_print(ANDROID_LOG_ERROR, LOG_TAG, __VA_ARGS__)
|
|
#define LOGV(...) __android_log_print(ANDROID_LOG_VERBOSE, LOG_TAG, __VA_ARGS__)
|
|
#else
|
|
#define LOGI(...)
|
|
#define LOGD(...)
|
|
#define LOGE(...)
|
|
#define LOGV(...)
|
|
#endif
|
|
|
|
#ifndef MAX
|
|
#define MAX(x, y) ((x) > (y)) ? (x) : (y)
|
|
#endif
|
|
#ifndef MIN
|
|
#define MIN(x, y) ((x) < (y)) ? (x) : (y)
|
|
#endif
|
|
|
|
#endif
|