FoxiGram/TMessagesProj/jni/voip/webrtc/api
instant992 8e79f2ee9c FoxiGram: Telegram client with built-in Xray VLESS proxy
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
2026-06-08 16:41:07 +04:00
..
adaptation FoxiGram: Telegram client with built-in Xray VLESS proxy 2026-06-08 16:41:07 +04:00
audio FoxiGram: Telegram client with built-in Xray VLESS proxy 2026-06-08 16:41:07 +04:00
audio_codecs FoxiGram: Telegram client with built-in Xray VLESS proxy 2026-06-08 16:41:07 +04:00
call FoxiGram: Telegram client with built-in Xray VLESS proxy 2026-06-08 16:41:07 +04:00
crypto FoxiGram: Telegram client with built-in Xray VLESS proxy 2026-06-08 16:41:07 +04:00
environment FoxiGram: Telegram client with built-in Xray VLESS proxy 2026-06-08 16:41:07 +04:00
g3doc FoxiGram: Telegram client with built-in Xray VLESS proxy 2026-06-08 16:41:07 +04:00
metronome FoxiGram: Telegram client with built-in Xray VLESS proxy 2026-06-08 16:41:07 +04:00
neteq FoxiGram: Telegram client with built-in Xray VLESS proxy 2026-06-08 16:41:07 +04:00
numerics FoxiGram: Telegram client with built-in Xray VLESS proxy 2026-06-08 16:41:07 +04:00
rtc_event_log FoxiGram: Telegram client with built-in Xray VLESS proxy 2026-06-08 16:41:07 +04:00
stats FoxiGram: Telegram client with built-in Xray VLESS proxy 2026-06-08 16:41:07 +04:00
task_queue FoxiGram: Telegram client with built-in Xray VLESS proxy 2026-06-08 16:41:07 +04:00
test FoxiGram: Telegram client with built-in Xray VLESS proxy 2026-06-08 16:41:07 +04:00
transport FoxiGram: Telegram client with built-in Xray VLESS proxy 2026-06-08 16:41:07 +04:00
units FoxiGram: Telegram client with built-in Xray VLESS proxy 2026-06-08 16:41:07 +04:00
video FoxiGram: Telegram client with built-in Xray VLESS proxy 2026-06-08 16:41:07 +04:00
video_codecs FoxiGram: Telegram client with built-in Xray VLESS proxy 2026-06-08 16:41:07 +04:00
voip FoxiGram: Telegram client with built-in Xray VLESS proxy 2026-06-08 16:41:07 +04:00
array_view.h FoxiGram: Telegram client with built-in Xray VLESS proxy 2026-06-08 16:41:07 +04:00
array_view_unittest.cc FoxiGram: Telegram client with built-in Xray VLESS proxy 2026-06-08 16:41:07 +04:00
async_dns_resolver.h FoxiGram: Telegram client with built-in Xray VLESS proxy 2026-06-08 16:41:07 +04:00
audio_options.cc FoxiGram: Telegram client with built-in Xray VLESS proxy 2026-06-08 16:41:07 +04:00
audio_options.h FoxiGram: Telegram client with built-in Xray VLESS proxy 2026-06-08 16:41:07 +04:00
candidate.cc FoxiGram: Telegram client with built-in Xray VLESS proxy 2026-06-08 16:41:07 +04:00
candidate.h FoxiGram: Telegram client with built-in Xray VLESS proxy 2026-06-08 16:41:07 +04:00
candidate_unittest.cc FoxiGram: Telegram client with built-in Xray VLESS proxy 2026-06-08 16:41:07 +04:00
create_peerconnection_factory.cc FoxiGram: Telegram client with built-in Xray VLESS proxy 2026-06-08 16:41:07 +04:00
create_peerconnection_factory.h FoxiGram: Telegram client with built-in Xray VLESS proxy 2026-06-08 16:41:07 +04:00
data_channel_interface.cc FoxiGram: Telegram client with built-in Xray VLESS proxy 2026-06-08 16:41:07 +04:00
data_channel_interface.h FoxiGram: Telegram client with built-in Xray VLESS proxy 2026-06-08 16:41:07 +04:00
dtls_transport_interface.cc FoxiGram: Telegram client with built-in Xray VLESS proxy 2026-06-08 16:41:07 +04:00
dtls_transport_interface.h FoxiGram: Telegram client with built-in Xray VLESS proxy 2026-06-08 16:41:07 +04:00
dtmf_sender_interface.h FoxiGram: Telegram client with built-in Xray VLESS proxy 2026-06-08 16:41:07 +04:00
enable_media.cc FoxiGram: Telegram client with built-in Xray VLESS proxy 2026-06-08 16:41:07 +04:00
enable_media.h FoxiGram: Telegram client with built-in Xray VLESS proxy 2026-06-08 16:41:07 +04:00
enable_media_with_defaults.cc FoxiGram: Telegram client with built-in Xray VLESS proxy 2026-06-08 16:41:07 +04:00
enable_media_with_defaults.h FoxiGram: Telegram client with built-in Xray VLESS proxy 2026-06-08 16:41:07 +04:00
fec_controller.h FoxiGram: Telegram client with built-in Xray VLESS proxy 2026-06-08 16:41:07 +04:00
fec_controller_override.h FoxiGram: Telegram client with built-in Xray VLESS proxy 2026-06-08 16:41:07 +04:00
field_trials.cc FoxiGram: Telegram client with built-in Xray VLESS proxy 2026-06-08 16:41:07 +04:00
field_trials.h FoxiGram: Telegram client with built-in Xray VLESS proxy 2026-06-08 16:41:07 +04:00
field_trials_registry.cc FoxiGram: Telegram client with built-in Xray VLESS proxy 2026-06-08 16:41:07 +04:00
field_trials_registry.h FoxiGram: Telegram client with built-in Xray VLESS proxy 2026-06-08 16:41:07 +04:00
field_trials_unittest.cc FoxiGram: Telegram client with built-in Xray VLESS proxy 2026-06-08 16:41:07 +04:00
field_trials_view.h FoxiGram: Telegram client with built-in Xray VLESS proxy 2026-06-08 16:41:07 +04:00
frame_transformer_factory.cc FoxiGram: Telegram client with built-in Xray VLESS proxy 2026-06-08 16:41:07 +04:00
frame_transformer_factory.h FoxiGram: Telegram client with built-in Xray VLESS proxy 2026-06-08 16:41:07 +04:00
frame_transformer_interface.h FoxiGram: Telegram client with built-in Xray VLESS proxy 2026-06-08 16:41:07 +04:00
function_view.h FoxiGram: Telegram client with built-in Xray VLESS proxy 2026-06-08 16:41:07 +04:00
function_view_unittest.cc FoxiGram: Telegram client with built-in Xray VLESS proxy 2026-06-08 16:41:07 +04:00
ice_transport_factory.cc FoxiGram: Telegram client with built-in Xray VLESS proxy 2026-06-08 16:41:07 +04:00
ice_transport_factory.h FoxiGram: Telegram client with built-in Xray VLESS proxy 2026-06-08 16:41:07 +04:00
ice_transport_interface.h FoxiGram: Telegram client with built-in Xray VLESS proxy 2026-06-08 16:41:07 +04:00
jsep.cc FoxiGram: Telegram client with built-in Xray VLESS proxy 2026-06-08 16:41:07 +04:00
jsep.h FoxiGram: Telegram client with built-in Xray VLESS proxy 2026-06-08 16:41:07 +04:00
jsep_ice_candidate.cc FoxiGram: Telegram client with built-in Xray VLESS proxy 2026-06-08 16:41:07 +04:00
jsep_ice_candidate.h FoxiGram: Telegram client with built-in Xray VLESS proxy 2026-06-08 16:41:07 +04:00
jsep_session_description.h FoxiGram: Telegram client with built-in Xray VLESS proxy 2026-06-08 16:41:07 +04:00
legacy_stats_types.cc FoxiGram: Telegram client with built-in Xray VLESS proxy 2026-06-08 16:41:07 +04:00
legacy_stats_types.h FoxiGram: Telegram client with built-in Xray VLESS proxy 2026-06-08 16:41:07 +04:00
location.h FoxiGram: Telegram client with built-in Xray VLESS proxy 2026-06-08 16:41:07 +04:00
make_ref_counted.h FoxiGram: Telegram client with built-in Xray VLESS proxy 2026-06-08 16:41:07 +04:00
media_stream_interface.cc FoxiGram: Telegram client with built-in Xray VLESS proxy 2026-06-08 16:41:07 +04:00
media_stream_interface.h FoxiGram: Telegram client with built-in Xray VLESS proxy 2026-06-08 16:41:07 +04:00
media_stream_track.h FoxiGram: Telegram client with built-in Xray VLESS proxy 2026-06-08 16:41:07 +04:00
media_types.cc FoxiGram: Telegram client with built-in Xray VLESS proxy 2026-06-08 16:41:07 +04:00
media_types.h FoxiGram: Telegram client with built-in Xray VLESS proxy 2026-06-08 16:41:07 +04:00
network_state_predictor.h FoxiGram: Telegram client with built-in Xray VLESS proxy 2026-06-08 16:41:07 +04:00
notifier.h FoxiGram: Telegram client with built-in Xray VLESS proxy 2026-06-08 16:41:07 +04:00
OWNERS FoxiGram: Telegram client with built-in Xray VLESS proxy 2026-06-08 16:41:07 +04:00
packet_socket_factory.h FoxiGram: Telegram client with built-in Xray VLESS proxy 2026-06-08 16:41:07 +04:00
peer_connection_interface.cc FoxiGram: Telegram client with built-in Xray VLESS proxy 2026-06-08 16:41:07 +04:00
peer_connection_interface.h FoxiGram: Telegram client with built-in Xray VLESS proxy 2026-06-08 16:41:07 +04:00
priority.h FoxiGram: Telegram client with built-in Xray VLESS proxy 2026-06-08 16:41:07 +04:00
README.md FoxiGram: Telegram client with built-in Xray VLESS proxy 2026-06-08 16:41:07 +04:00
ref_count.h FoxiGram: Telegram client with built-in Xray VLESS proxy 2026-06-08 16:41:07 +04:00
ref_counted_base.h FoxiGram: Telegram client with built-in Xray VLESS proxy 2026-06-08 16:41:07 +04:00
rtc_error.cc FoxiGram: Telegram client with built-in Xray VLESS proxy 2026-06-08 16:41:07 +04:00
rtc_error.h FoxiGram: Telegram client with built-in Xray VLESS proxy 2026-06-08 16:41:07 +04:00
rtc_error_unittest.cc FoxiGram: Telegram client with built-in Xray VLESS proxy 2026-06-08 16:41:07 +04:00
rtc_event_log_output.h FoxiGram: Telegram client with built-in Xray VLESS proxy 2026-06-08 16:41:07 +04:00
rtc_event_log_output_file.cc FoxiGram: Telegram client with built-in Xray VLESS proxy 2026-06-08 16:41:07 +04:00
rtc_event_log_output_file.h FoxiGram: Telegram client with built-in Xray VLESS proxy 2026-06-08 16:41:07 +04:00
rtc_event_log_output_file_unittest.cc FoxiGram: Telegram client with built-in Xray VLESS proxy 2026-06-08 16:41:07 +04:00
rtp_headers.cc FoxiGram: Telegram client with built-in Xray VLESS proxy 2026-06-08 16:41:07 +04:00
rtp_headers.h FoxiGram: Telegram client with built-in Xray VLESS proxy 2026-06-08 16:41:07 +04:00
rtp_packet_info.cc FoxiGram: Telegram client with built-in Xray VLESS proxy 2026-06-08 16:41:07 +04:00
rtp_packet_info.h FoxiGram: Telegram client with built-in Xray VLESS proxy 2026-06-08 16:41:07 +04:00
rtp_packet_info_unittest.cc FoxiGram: Telegram client with built-in Xray VLESS proxy 2026-06-08 16:41:07 +04:00
rtp_packet_infos.h FoxiGram: Telegram client with built-in Xray VLESS proxy 2026-06-08 16:41:07 +04:00
rtp_packet_infos_unittest.cc FoxiGram: Telegram client with built-in Xray VLESS proxy 2026-06-08 16:41:07 +04:00
rtp_parameters.cc FoxiGram: Telegram client with built-in Xray VLESS proxy 2026-06-08 16:41:07 +04:00
rtp_parameters.h FoxiGram: Telegram client with built-in Xray VLESS proxy 2026-06-08 16:41:07 +04:00
rtp_parameters_unittest.cc FoxiGram: Telegram client with built-in Xray VLESS proxy 2026-06-08 16:41:07 +04:00
rtp_receiver_interface.cc FoxiGram: Telegram client with built-in Xray VLESS proxy 2026-06-08 16:41:07 +04:00
rtp_receiver_interface.h FoxiGram: Telegram client with built-in Xray VLESS proxy 2026-06-08 16:41:07 +04:00
rtp_sender_interface.cc FoxiGram: Telegram client with built-in Xray VLESS proxy 2026-06-08 16:41:07 +04:00
rtp_sender_interface.h FoxiGram: Telegram client with built-in Xray VLESS proxy 2026-06-08 16:41:07 +04:00
rtp_transceiver_direction.h FoxiGram: Telegram client with built-in Xray VLESS proxy 2026-06-08 16:41:07 +04:00
rtp_transceiver_interface.cc FoxiGram: Telegram client with built-in Xray VLESS proxy 2026-06-08 16:41:07 +04:00
rtp_transceiver_interface.h FoxiGram: Telegram client with built-in Xray VLESS proxy 2026-06-08 16:41:07 +04:00
scoped_refptr.h FoxiGram: Telegram client with built-in Xray VLESS proxy 2026-06-08 16:41:07 +04:00
scoped_refptr_unittest.cc FoxiGram: Telegram client with built-in Xray VLESS proxy 2026-06-08 16:41:07 +04:00
sctp_transport_interface.cc FoxiGram: Telegram client with built-in Xray VLESS proxy 2026-06-08 16:41:07 +04:00
sctp_transport_interface.h FoxiGram: Telegram client with built-in Xray VLESS proxy 2026-06-08 16:41:07 +04:00
sequence_checker.h FoxiGram: Telegram client with built-in Xray VLESS proxy 2026-06-08 16:41:07 +04:00
sequence_checker_unittest.cc FoxiGram: Telegram client with built-in Xray VLESS proxy 2026-06-08 16:41:07 +04:00
set_local_description_observer_interface.h FoxiGram: Telegram client with built-in Xray VLESS proxy 2026-06-08 16:41:07 +04:00
set_remote_description_observer_interface.h FoxiGram: Telegram client with built-in Xray VLESS proxy 2026-06-08 16:41:07 +04:00
turn_customizer.h FoxiGram: Telegram client with built-in Xray VLESS proxy 2026-06-08 16:41:07 +04:00
uma_metrics.h FoxiGram: Telegram client with built-in Xray VLESS proxy 2026-06-08 16:41:07 +04:00
video_track_source_constraints.h FoxiGram: Telegram client with built-in Xray VLESS proxy 2026-06-08 16:41:07 +04:00
video_track_source_proxy_factory.h FoxiGram: Telegram client with built-in Xray VLESS proxy 2026-06-08 16:41:07 +04:00
webrtc_key_value_config.h FoxiGram: Telegram client with built-in Xray VLESS proxy 2026-06-08 16:41:07 +04:00
wrapping_async_dns_resolver.cc FoxiGram: Telegram client with built-in Xray VLESS proxy 2026-06-08 16:41:07 +04:00

How to write code in the api/ directory

Mostly, just follow the regular style guide, but:

  • Note that api/ code is not exempt from the “.h and .cc files come in pairs” rule, so if you declare something in api/path/to/foo.h, it should be defined in api/path/to/foo.cc.
  • Headers in api/ should, if possible, not #include headers outside api/. Its not always possible to avoid this, but be aware that it adds to a small mountain of technical debt that were trying to shrink.
  • .cc files in api/, on the other hand, are free to #include headers outside api/.
  • Avoid structs in api, prefer classes.

The preferred way for api/ code to access non-api/ code is to call it from a .cc file, so that users of our API headers wont transitively #include non-public headers.

For headers in api/ that need to refer to non-public types, forward declarations are often a lesser evil than including non-public header files. The usual rules still apply, though.

.cc files in api/ should preferably be kept reasonably small. If a substantial implementation is needed, consider putting it with our non-public code, and just call it from the api/ .cc file.

Avoid defining api with structs as it makes harder for the api to evolve. Your struct may gain invariant, or change how it represents data. Evolving struct from the api is particular challenging as it is designed to be used in other code bases and thus needs to be updated independetly from its usage. Class with accessors and setters makes such migration safer. See Google C++ style guide for more.

If you need to evolve existent struct in api, prefer first to convert it into a class.