---
title: "Sai Ram Kotha (@sairamkotha) | Hashnode"
description: "AI, Mobile. Read the latest articles by Sai Ram Kotha on Hashnode."
url: "https://hashnode.com/@sairamkotha"
---

@sairamkotha

# Sai Ram Kotha

@sairamkotha · Bengaluru, India · Joined October 2026

AI, Mobile

### [Bound the Work Before the Model Runs: Gating On-Device Inference in TikTok's Android Client](https://sairamkotha.hashnode.dev/bound-the-work-before-the-model-runs-gating-on-device-inference-in-tiktok-s-android-client?utm_source=hashnode&utm_medium=feed)

An 8% visibility gate, a 100 ms dwell timer, bounded vision input and an AICore-to-ByteNN fallback in TikTok's Android client.

10 min read · [sairamkotha.hashnode.dev](https://sairamkotha.hashnode.dev/bound-the-work-before-the-model-runs-gating-on-device-inference-in-tiktok-s-android-client?utm_source=hashnode&utm_medium=feed)

[15h ago](https://hashnode.com/posts/bound-the-work-before-the-model-runs-gating-on-device-inference-in-tiktok-s-android-client/6afe99b244b5a86d91fd652e)

### [From Sensor Events to a Bedtime Detector: Inside TikTok's enhance\_drowsy Code](https://sairamkotha.hashnode.dev/from-sensor-events-to-a-bedtime-detector-inside-tiktok-s-enhance-drowsy-code?utm_source=hashnode&utm_medium=feed)

Accelerometer and gyro samples to an activity classifier to a three-state bedtime detector. What TikTok's Android code says and what it doesn't.

9 min read · [sairamkotha.hashnode.dev](https://sairamkotha.hashnode.dev/from-sensor-events-to-a-bedtime-detector-inside-tiktok-s-enhance-drowsy-code?utm_source=hashnode&utm_medium=feed)

[15h ago](https://hashnode.com/posts/from-sensor-events-to-a-bedtime-detector-inside-tiktok-s-enhance-drowsy-code/6afe98e344a8ff4d08faa775)

### [How TikTok's Android Client Turns a Prediction Into a Buffering Decision](https://sairamkotha.hashnode.dev/how-tiktok-s-android-client-turns-a-prediction-into-a-buffering-decision?utm_source=hashnode&utm_medium=feed)

Skip momentum, buffer depth, early batch requests and prefetch policy in TikTok's Android client code. Client facts vs server inference.

9 min read · [sairamkotha.hashnode.dev](https://sairamkotha.hashnode.dev/how-tiktok-s-android-client-turns-a-prediction-into-a-buffering-decision?utm_source=hashnode&utm_medium=feed)

[15h ago](https://hashnode.com/posts/how-tiktok-s-android-client-turns-a-prediction-into-a-buffering-decision/6afe97edef491c22af727aa1)

### [The AI Code in TikTok's Android App Hides in Files Named .so](https://sairamkotha.hashnode.dev/the-ai-code-in-tiktok-s-android-app-hides-in-files-named-so?utm_source=hashnode&utm_medium=feed)

Of 298 .so files in TikTok's Android APK, 23 are ZIP archives of DEX. How to spot them, audit your own APK, and what the evidence does not show.

9 min read · [sairamkotha.hashnode.dev](https://sairamkotha.hashnode.dev/the-ai-code-in-tiktok-s-android-app-hides-in-files-named-so?utm_source=hashnode&utm_medium=feed)

[15h ago](https://hashnode.com/posts/the-ai-code-in-tiktok-s-android-app-hides-in-files-named-so/6afe965026b3a9fd631b26f4)

### [Your AI Agent Timed Out. Did It Still Do the Work?](https://sairamkotha.hashnode.dev/your-ai-agent-timed-out-did-it-still-do-the-work?utm_source=hashnode&utm_medium=feed)

A timeout is not a failure. Learn how to give AI agents an unknown state, stable action IDs and safe retries so they never repeat a refund.

9 min read · [sairamkotha.hashnode.dev](https://sairamkotha.hashnode.dev/your-ai-agent-timed-out-did-it-still-do-the-work?utm_source=hashnode&utm_medium=feed)

[5d ago](https://hashnode.com/posts/your-ai-agent-timed-out-did-it-still-do-the-work/6af853e49da7def49ac44336)
