AyuGram4A: Modified Telegram client with privacy features
Fork of exteraGram with message history preservation, ghost mode, and privacy-focused features.
Learn more about AyuGram4A
AyuGram4A is a modified Android Telegram client based on exteraGram with additional privacy and message management features. The application saves message history persistently rather than just caching it, allowing users to retain deleted or edited messages even after cache clearing. It implements a ghost mode system that hides online status from other users and includes message filtering capabilities. The client integrates with AyuSync, a synchronization service for syncing read states and message history across devices.
Persistent Message History
Saves deleted and edited messages permanently to local storage rather than temporary cache. Messages remain accessible even after cache clearing or app reinstallation.
Full Ghost Mode
Hides online status and read receipts from other users while maintaining normal messaging functionality. Provides granular control over visibility settings.
AyuSync Integration
Synchronizes message history and read states across multiple devices through a dedicated backend service. Supports both official servers and self-hosted instances.
public class AyuMessageUtils {
private static final String TAG = "AyuMessageUtils";
private SQLiteDatabase database;
public AyuMessageUtils(Context context) {
AyuDatabaseHelper helper = new AyuDatabaseHelper(context);
this.database = helper.getWritableDatabase();
}
public void saveDeletedMessage(TLRPC.Message message, long chatId) {
ContentValues values = new ContentValues();
values.put("message_id", message.id);
values.put("chat_id", chatId);
values.put("message_text", message.message);
values.put("date", message.date);
values.put("from_id", message.from_id != null ? message.from_id.user_id : 0);
values.put("deleted_date", System.currentTimeMillis() / 1000);
database.insert("deleted_messages", null, values);
if (BuildVars.LOGS_ENABLED) {
FileLog.d(TAG + ": Saved deleted message " + message.id + " from chat " + chatId);
}
}
public ArrayList<TLRPC.Message> getDeletedMessages(long chatId) {
ArrayList<TLRPC.Message> messages = new ArrayList<>();
Cursor cursor = database.query("deleted_messages", null, "chat_id = ?",
new String[]{String.valueOf(chatId)}, null, null, "date DESC");
while (cursor.moveToNext()) {
TLRPC.Message message = new TLRPC.TL_message();
message.id = cursor.getInt(cursor.getColumnIndex("message_id"));
message.message = cursor.getString(cursor.getColumnIndex("message_text"));
message.date = cursor.getInt(cursor.getColumnIndex("date"));
messages.add(message);
}
cursor.close();
return messages;
}
}Top in Mobile & Desktop
Related Repositories
Discover similar tools and frameworks used by developers
src.next
Archived Chromium fork for Android with extension support.
RustDesk
Cross-platform remote desktop in Rust with self-hosted capabilities, alternative to TeamViewer.
ViMusic
Android YouTube Music client with Jetpack Compose, background playback, and offline caching.
Signal Android
Open-source Android messaging app with end-to-end encryption for texts, voice, and video calls.
React Native SVG
Native SVG rendering for React Native applications.
Related Reading
Guides and comparisons from the Greptile content library
What is agentic coding? Benefits, risks, and best tools to consider
What engineering leaders need to know about agentic coding: how it differs from AI coding and vibe coding, how it works, the benefits and risks, and the tools worth evaluating.
What is Shift Left Testing? Everything Engineering Leaders Need to Know
The five types of shift-left testing, the benefits and limitations of each, and how the approach changes when agents write and review a growing share of your code.
Best CodeRabbit Alternatives for Smarter AI Code Reviews in 2026
7 powerful CodeRabbit alternatives ranked by real dev teams. Feature comparison, pricing analysis, and honest reviews to find your perfect AI code reviewer.
27 Code Quality Tools that Catch Bugs [2026 Review]
The best code quality tools that catch bugs, security vulnerabilities, and runtime errors, sorted by language, with type, noise level, cost, and who each one is for.