Modern Apps git

← Modern-Apps.git

communicate: add documentation

Commit
8ad8e7c893742bf97da4a17c4c427d2958faf538
Author
Vayun Mathur <[email protected]>
When
2026-08-12 18:25 UTC (3 months ago)
Parents
454da3a

Diff

communicate/voice-documentation.md
diff --git a/communicate/voice-documentation.md b/communicate/voice-documentation.mdnew file mode 100644index 0000000000..407d5b80fc--- /dev/null+++ b/communicate/voice-documentation.md@@ -0,0 +1,501 @@+# Google Voice HAR Endpoint Documentation++Generated from runtime browser traffic captured in `C:\Users\Vayun\Downloads\voice.google.com.har`. The capture contains one Google Voice web session loaded at `https://voice.google.com/`, including account/bootstrap requests, inbox/thread listing, contact lookup, realtime signaling setup, telephony websocket setup, and one observed SMS send request.++Analysis artifacts:++- Source HAR (capture 1, bootstrap + SMS): `C:\Users\Vayun\Downloads\voice.google.com.har`+- Source HAR (capture 2, calling + folders + thread actions): `C:\Users\Vayun\Downloads\2voice.google.com.har`+- Reference format: `C:\Users\Vayun\Documents\code\Modern-Apps\whatsapp-documentation.md`+- Generated documentation: `C:\Users\Vayun\Documents\code\Modern-Apps\voice-documentation.md`++Important caveats:++- This is HAR/runtime analysis only. No endpoint was replayed or tested outside the captured browser session.+- The HAR contains authenticated Google session traffic. This document intentionally does not preserve cookies, authorization-like headers, API key values, phone numbers, message body text, Gaia/account IDs, contact names, websocket keys, or opaque request tokens.+- Most Google Voice web APIs in this capture use `application/json+protobuf` with `alt=protojson`. Request and response bodies are positional arrays, so field names are only recoverable when implied by endpoint names, surrounding flow, or visible high-level shape.+- `Exact` below means the host, path, method, status, MIME type, and high-level body shape were observed in the HAR. It does not imply that the endpoint is public or callable without Google authentication/session state.+- Browser preflight `OPTIONS` requests are documented only when they explain a separate RPC surface. They are otherwise omitted from the main endpoint table.++## Capture Summary++| Metric | Observed value |+|---|---|+| HAR creator | `WebInspector 537.36` |+| Page URL | `https://voice.google.com/` |+| Capture start | `2026-08-12 00:54:05 UTC` |+| Total entries | 195 |+| Page count | 1 |+| Core Voice host | `clients6.google.com` |+| Voice ring-group host | `voice.clients6.google.com` |+| Realtime signaling host | `signaler-pa.clients6.google.com` |+| Web telephony host | `web.voice.telephony.goog` |++High-level flow observed in chronological order:++```text+voice.google.com root redirect+  -> voice.google.com/u/0/ web app shell and manifest+  -> Google support services: CSP, OneGoogle, analytics, WAA, People/PeopleStack+  -> Punctual signaling server selection and multi-watch channel setup+  -> Google Voice account, thread, threading-info, SIP, number-transfer, and port-info RPCs+  -> web.voice.telephony.goog websocket upgrade+  -> thread attribute update+  -> contact lookup+  -> api2thread/sendsms+```++## Reverse-Slice Summary++| Endpoint | HAR evidence | Input format | Output format | Purpose / notes |+|---|---|---|---|---|+| `GET https://voice.google.com/` | Observed once with status `302`. | No body. Browser navigation request. | Redirect / empty binary-like HAR content. | Entry point that redirects the browser to the account-scoped web app path. |+| `GET https://voice.google.com/u/0/` | Observed once with status `200`, `text/html`, response size about 155 KB. | No body. Requires browser session cookies. | HTML app shell containing Google Voice web bootstrap resources. | Main Google Voice web application load. |+| `GET https://voice.google.com/u/0/manifest.json` | Observed once with status `200`, `application/manifest+json`. | No body. | Manifest JSON with `name`, `short_name`, `background_color`, `display`, `start_url`, `scope`, `icons`, `theme_color`, `gcm_sender_id`, and `gcm_user_visible_only`. | Progressive web app manifest for Google Voice. |+| `GET https://voice.google.com/generate_204` | Observed three times with status `204`, `text/plain`, empty response. | No body. | Empty 204. | Connectivity/liveness probe used by the web app. |+| `POST https://clients6.google.com/voice/v1/voiceclient/account/get?alt=protojson&key=<redacted>` | Observed twice with status `200`, `application/json+protobuf`. | Positional protojson body shaped like `[null, {}]`; authenticated headers include Google browser/client metadata and session-bearing cookies omitted here. | Large positional protojson array. Sanitized response includes the Google Voice number, account/device/settings structures, forwarding or linked-number records, locale/country-like strings, and nested capability/config arrays. | Account bootstrap. This is the heaviest Voice-specific response in the capture and appears to seed the logged-in Voice account state. |+| `POST https://clients6.google.com/voice/v1/voiceclient/api2thread/list?alt=protojson&key=<redacted>` | Observed six times with status `200`, `application/json+protobuf`. | Positional protojson body. Largest observed request shape: `[{}, {}, {}, null, null, [null, <number>, <number>, <number>]]`. | Positional protojson array containing thread records. Sanitized records include thread IDs, timestamps/state numbers, message arrays, participant phone-number slots, contact/display slots, and a pagination-like object with `Length`. | Lists inbox/thread data. Multiple calls likely cover initial load, pagination, or category refreshes. |+| `POST https://clients6.google.com/voice/v1/voiceclient/api2thread/search?alt=protojson&key=<redacted>` | Observed twice with status `200`, `application/json+protobuf`. | Positional protojson body shaped like `[{ Length: <number> }, {}, null, null, null, [null, <number>, <number>, <number>]]`; the query value is intentionally not retained. | Positional protojson array of matching thread records with the same general record shape as `api2thread/list`. | Searches conversation threads. The HAR captures the search result shape but not a named schema. |+| `POST https://clients6.google.com/voice/v1/voiceclient/api2thread/sendsms?alt=protojson&key=<redacted>` | Observed once with status `200`, `application/json+protobuf`, shortly after contact lookup activity. | Positional protojson body. Sanitized shape: `[null, null, null, null, { Length: <number> }, { Length: <number> }, ...]`; the recipient, message text, thread/account IDs, and opaque tokens are intentionally not retained. | Positional protojson response shaped like `[null, { Length: <number> }, { Length: <number> }, {}, [<number>, <number>]]`. | Sends an SMS from the web app. This is the clearest captured write/action endpoint. |+| `POST https://clients6.google.com/voice/v1/voiceclient/threadinginfo/get?alt=protojson&key=<redacted>` | Observed five times with status `200`, `application/json+protobuf`. | Empty/null protojson body. | Positional protojson array of repeated triplets shaped like `[<number>, null, <number>]`. | Fetches per-thread or mailbox threading metadata. The exact field names are not recoverable from the HAR alone. |+| `POST https://clients6.google.com/voice/v1/voiceclient/thread/markallread?alt=protojson&key=<redacted>` | Observed once with status `200`, `application/json+protobuf`. | Empty object `{}`. | `null` / empty protojson response. | Marks visible thread set or mailbox as read. No message IDs were preserved in this document. |+| `POST https://clients6.google.com/voice/v1/voiceclient/thread/batchupdateattributes?alt=protojson&key=<redacted>` | Observed once with status `200`, `application/json+protobuf`. | Positional protojson body shaped like `[[<thread-id-like string>, null, null, <number>], [null, null, null, <number>], <number>]`. | Positional protojson response shaped like `[<thread-id-like string>, <number>, <number>, <number>, [<number>, <number>], <number>, ...]`. | Updates thread attributes, likely read/archive/star/category-style metadata. The endpoint name is the strongest evidence; exact attribute enum names are unresolved. |+| `POST https://clients6.google.com/voice/v1/voiceclient/sipregisterinfo/get?alt=protojson&key=<redacted>` | Observed once with status `200`, `application/json+protobuf`. | Positional protojson body shaped like `[{}, { Length: <number> }]`. | Positional protojson response shaped like `[[<phone-number>, <number>], null, null, [<string:56>, <string:24>]]` after sanitization. | Fetches SIP registration information used by the Voice web telephony/calling stack. The long strings are likely opaque SIP/registration credentials or tokens and are not retained. |+| `POST https://clients6.google.com/voice/v1/voiceclient/numbertransfer/list?alt=protojson&key=<redacted>` | Observed once with status `200`, `application/json+protobuf`. | Empty/null protojson body. | Empty/null protojson response. | Checks number transfer state. The account in this capture returned no visible transfer payload. |+| `POST https://clients6.google.com/voice/v1/voiceclient/getnumberportinfo?alt=protojson&key=<redacted>` | Observed once with status `200`, `application/json+protobuf`. | Empty/null protojson body. | Empty/null protojson response. | Checks number porting information. The account in this capture returned no visible porting payload. |+| `POST https://voice.clients6.google.com/$rpc/google.voice.ringgroups.v1.RingGroupsService/ListRingGroups` | Observed once with status `200`, `application/json+protobuf`; matching `OPTIONS` preflight also observed. | Positional protojson body shaped like `[<number>, {}]`; request headers include `x-goog-api-key`, `x-goog-authuser`, and browser metadata. | Empty/null protojson response. | Lists Voice ring groups. No ring groups were returned in this captured session. |+| `POST https://signaler-pa.clients6.google.com/punctual/v1/chooseServer?key=<redacted>` | Observed once with status `200`, `application/json+protobuf`; matching `OPTIONS` preflight also observed. | Positional protojson body with client/session capability arrays, sanitized as `[[null, null, null, [<number>, <number>], null, [null, [null, <number>], ...]], null, null, {}, {}]`. | Positional protojson response with several opaque `Length` objects. | Chooses or initializes a Google Punctual/WebChannel signaling server for realtime updates. |+| `POST https://signaler-pa.clients6.google.com/punctual/multi-watch/channel?...` | Observed once with status `200`, `application/x-www-form-urlencoded`, response `text/plain`; two `OPTIONS` preflights also observed. | Form fields include `count`, `ofs`, and `req0___data__` through `req5___data__`; query parameters include WebChannel-style values such as `CVER`, `VER`, `RID`, `gsessionid`, `t`, `zx`, and redacted `key`. | Short text response, not JSON. Response headers include `x-client-wire-protocol`. | Long-poll/WebChannel subscription for realtime multi-watch updates. Session IDs and channel payloads are intentionally not retained. |+| `GET https://web.voice.telephony.goog/websocket` | Observed once with status `101` websocket upgrade. | WebSocket upgrade headers include `Sec-WebSocket-Key`, `Sec-WebSocket-Protocol`, and `Origin: https://voice.google.com`; values are intentionally not retained. | WebSocket upgrade response with `Sec-WebSocket-Accept` and selected protocol. | Browser telephony websocket used by the Voice calling stack. The HAR does not contain decoded websocket frames. |+| `GET https://clients6.google.com/static/proxy.html?jsh=...&usegapi=...` | Observed once with status `200`, `text/html`. | No body; query parameters `jsh`, `usegapi`. | Small HTML proxy page. | Google API/gapi iframe proxy support used by the web app. |+| `POST https://peoplestack-pa.clients6.google.com/$rpc/peoplestack.PeopleStackAutocompleteService/Autocomplete` | Observed once with status `200`, `application/json+protobuf`; matching `OPTIONS` preflight observed. | Positional protojson body shaped like `[{}]`; search/contact values are not retained. | Large `application/json+protobuf` response, about 85 KB in the HAR. | PeopleStack autocomplete for contact/recipient selection. The payload likely includes contact suggestions and metadata, but names/emails/phone numbers are redacted from this document. |+| `POST https://peoplestack-pa.clients6.google.com/$rpc/peoplestack.PeopleStackAutocompleteService/Lookup` | Observed three times with status `200`, `application/json+protobuf`; matching `OPTIONS` preflights observed. | Positional protojson bodies shaped like `[{}]`, with observed request sizes around 30, 57, and 238 bytes. | Positional protojson responses shaped like `[[[null]]]` after sanitization. | Resolves selected contacts/recipients. Occurs before the captured `sendsms` request. |+| `POST https://peoplestack-pa.clients6.google.com/$rpc/peoplestack.PeopleStackAutocompleteService/Warmup` | Observed once with status `200`, `application/json+protobuf`; matching `OPTIONS` preflight observed. | Positional protojson body shaped like `[{}]`. | Empty/null protojson response. | Warms contact autocomplete data. |+| `POST https://people-pa.clients6.google.com/$rpc/google.internal.people.v2.InternalPeopleService/ListContactGroups` | Observed once with status `200`, `application/json+protobuf`; matching `OPTIONS` preflight observed. | Positional protojson body shaped like `[null]`. | Positional protojson response shaped like `[[[null]]]` after sanitization. | Loads People contact group metadata used by the account/contact picker integration. |+| `POST https://people-pa.clients6.google.com/$rpc/google.internal.people.v2.InternalPeopleService/GetContactGroups` | Observed once with status `200`, `application/json+protobuf`; matching `OPTIONS` preflight observed. | Positional protojson body shaped like `[[<string>]]`; group identifiers are not retained. | Positional protojson response shaped like `[[null]]` after sanitization. | Fetches specific People contact group data. |+| `POST https://waa-pa.clients6.google.com/$rpc/google.internal.waa.v1.Waa/Create` | Observed three times with status `200`, `application/json+protobuf`; matching `OPTIONS` preflights observed. | Protojson body sanitized as `{ Length: <number> }`. | Protojson response shaped like `[<string>]`; response sizes around 26 KB and 32 KB. | Google WAA web app activity/attribution support traffic, not Voice domain data. |+| `POST https://waa-pa.clients6.google.com/$rpc/google.internal.waa.v1.Waa/Ping` | Observed once with status `200`, `application/json+protobuf`; matching `OPTIONS` preflight observed. | Protojson body shaped like `[{ Length: <number> }]`. | Empty/null protojson response. | WAA heartbeat/ping. |+| `POST https://ogads-pa.clients6.google.com/$rpc/google.internal.onegoogle.asyncdata.v1.AsyncDataService/GetAsyncData` | Observed once with status `200`, `application/json+protobuf`; matching `OPTIONS` preflight observed. | Positional protojson body shaped like `[{}]`. | Protojson response shaped like `[null]`. | OneGoogle account/widget async data support traffic. |+| `POST https://csp.withgoogle.com/csp/proto/1c1e2c4c2abc4dce549475d4ab588dbd` | Observed eleven times. | CSP/reporting protobuf-style POSTs. | Empty/small report acknowledgements. | Content security policy or client-side security reporting. Not Voice product API data. |+| `POST https://play.google.com/log` | Observed 28 POSTs plus 17 `OPTIONS` preflights. | Google client logging payloads; values omitted. | Logging acknowledgements. | Telemetry/logging support traffic generated by Google web libraries. |+| `POST https://www.google-analytics.com/g/collect` | Observed four times. | Google Analytics collection payloads. | Analytics collector responses. | Web analytics support traffic. |+| `GET/POST https://www.google.com/recaptcha/enterprise...` and `GET https://www.gstatic.com/recaptcha/...` | Enterprise reCAPTCHA script, anchor, reload, clear, webworker, CSS, and logo requests observed. | Browser script/form traffic. | JavaScript, CSS, image, and reCAPTCHA responses. | Anti-abuse support surface loaded by the Voice web app. |++## Exact Local JSON / Model Shapes Recovered++### Google Voice Web Manifest++`GET https://voice.google.com/u/0/manifest.json` returned a normal JSON manifest with this recovered key shape:++```json+{+  "name": "string",+  "short_name": "string",+  "background_color": "string",+  "display": "string",+  "start_url": "string",+  "scope": "string",+  "icons": [+    {+      "src": "string",+      "sizes": "string",+      "type": "string"+    }+  ],+  "theme_color": "string",+  "gcm_sender_id": "string",+  "gcm_user_visible_only": true+}+```++### Voice Account Bootstrap Shape++`POST https://clients6.google.com/voice/v1/voiceclient/account/get?alt=protojson&key=<redacted>` used `application/json+protobuf`. Sanitized shape excerpt:++```json+[+  "<google-voice-number>",+  null,+  "<account-and-forwarding-settings-array>",+  "<capability-and-locale-settings-array>",+  "<feature/config arrays>",+  "..."+]+```++Observed field categories, inferred from endpoint name and sanitized values:++| Category | Evidence in response |+|---|---|+| Primary Voice number | First array slot sanitized as a phone number. |+| Forwarding / linked numbers | Nested arrays containing phone-number slots and short labels. |+| Device or endpoint records | Repeated arrays with 64-character string slots, numeric type/status fields, and nested timestamp-like arrays. |+| Locale/country/config | Short strings such as two-letter and three-letter codes plus numeric setting arrays. |+| Feature/capability flags | Large nested numeric arrays and repeated config records. |++### Thread List / Search Shape++`api2thread/list` and `api2thread/search` both returned positional thread records. Sanitized representative thread shape:++```json+[+  "<thread-id-or-label>",+  "<numeric-state-or-timestamp>",+  [+    "<message-id-or-token>",+    "<numeric-message-type-or-timestamp>",+    "<phone-number>",+    "<participant/contact-array>",+    "<numeric-state>",+    "<numeric-state>",+    "..."+  ],+  null,+  ["<display-or-participant-slot>", "<display-or-participant-slot>", null, null, null, null, "..."],+  ["<timestamp-or-state-number>", "<timestamp-or-state-number>"],+  "..."+]+```++Observed request controls:++| Endpoint | Sanitized request controls |+|---|---|+| `api2thread/list` | Empty option objects plus a trailing numeric window/page-control array: `[null, <number>, <number>, <number>]`. |+| `api2thread/search` | A `Length` object in the first slot, likely holding the search term in protobuf/string wrapper form; the actual term is not retained. |++### SMS Send Shape++`POST https://clients6.google.com/voice/v1/voiceclient/api2thread/sendsms?alt=protojson&key=<redacted>` is the captured write endpoint. The exact message text and recipient values were removed. Sanitized shape:++```json+{+  "request": [+    null,+    null,+    null,+    null,+    { "Length": "<number>" },+    { "Length": "<number>" },+    "..."+  ],+  "response": [+    null,+    { "Length": "<number>" },+    { "Length": "<number>" },+    {},+    ["<number>", "<number>"]+  ]+}+```++Interpretation from flow context:++| Slot group | Likely meaning |+|---|---|+| Early `null` slots | Optional thread/account/context fields omitted or encoded elsewhere. |+| `Length` wrapper objects | Protojson representation of byte/string fields, likely recipient/message/token-like values. |+| Tail fields | Additional send options, client metadata, or request identifiers. |+| Response wrappers | Server-assigned message/thread identifiers or opaque send result objects. |+| Response numeric pair | Status/timestamp-like metadata. |++### Thread Metadata And Attribute Updates++Two thread state mutation/read surfaces were captured:++| Endpoint | Request shape | Response shape | Notes |+|---|---|---|---|+| `threadinginfo/get` | `null` | Repeated `[<number>, null, <number>]` triplets | Polls or refreshes thread counters/metadata. |+| `thread/markallread` | `{}` | `null` | Empty ack after marking read. |+| `thread/batchupdateattributes` | `[[<thread-id-like string>, null, null, <number>], [null, null, null, <number>], <number>]` | `[<thread-id-like string>, <number>, <number>, <number>, [<number>, <number>], <number>, ...]` | Updates thread attributes; exact enum values unresolved. |++### SIP / Telephony Bootstrap++The capture shows both an HTTP bootstrap and a websocket transport:++```text+sipregisterinfo/get+  -> returns phone-number slot plus opaque registration strings+  -> web.voice.telephony.goog/websocket HTTP 101 upgrade+```++Recovered surfaces:++| Surface | Evidence | Role |+|---|---|---|+| SIP registration info | `POST https://clients6.google.com/voice/v1/voiceclient/sipregisterinfo/get?alt=protojson&key=<redacted>` | Retrieves web telephony registration material. Long strings are treated as secrets and omitted. |+| Telephony websocket | `GET https://web.voice.telephony.goog/websocket`, status `101` | Upgrades to a websocket for web calling/signaling/media-control traffic. No frames were decoded in the HAR. |+| Ring groups | `POST https://voice.clients6.google.com/$rpc/google.voice.ringgroups.v1.RingGroupsService/ListRingGroups` | Checks account ring group configuration; empty in this capture. |++## Messaging And Contact Flow++The captured SMS send is preceded by contact and thread activity. Best-supported reconstruction:++```text+PeopleStack warmup/autocomplete/lookup+  -> Google Voice api2thread/search or recipient/thread resolution+  -> Google Voice api2thread/sendsms+  -> Google logging/analytics events+```++Contact services involved:++| Service | Endpoint | Role |+|---|---|---|+| PeopleStack autocomplete | `/$rpc/peoplestack.PeopleStackAutocompleteService/Autocomplete` | Produces recipient suggestions from contacts. |+| PeopleStack lookup | `/$rpc/peoplestack.PeopleStackAutocompleteService/Lookup` | Resolves selected recipient/contact records. |+| PeopleStack warmup | `/$rpc/peoplestack.PeopleStackAutocompleteService/Warmup` | Primes autocomplete service state. |+| People contact groups | `/$rpc/google.internal.people.v2.InternalPeopleService/ListContactGroups` and `GetContactGroups` | Loads Google People group metadata used by recipient/contact UI. |++The actual contact names, phone numbers, account identifiers, and message text are present in the HAR but intentionally excluded from this documentation.++## Authentication, Headers, And Request Conventions++The core Voice RPCs share a common browser/API pattern:++| Field | Observed pattern |+|---|---|+| Method | `POST` for RPCs; `GET` for app shell, manifest, probes, assets, and websocket upgrade. |+| Body MIME | `application/json+protobuf` for Google RPC/Voice calls. |+| Query parameters | Voice RPCs use `alt=protojson` and `key=<redacted>`. Punctual/WebChannel calls include session/channel parameters such as `RID`, `VER`, `CVER`, `gsessionid`, `t`, and `zx`. |+| Browser metadata headers | `x-client-data`, `x-client-version`, `x-clientdetails`, `x-browser-channel`, `x-browser-validation`, `x-browser-year`, `x-goog-authuser`, `x-requested-with`, `x-origin`, and `x-referer` appear on Voice RPCs. |+| Auth/session material | Cookies and opaque Google account/session values are required in the capture but are not reproduced here. |+| Response MIME | Mostly `application/json+protobuf` for RPCs; `text/html` for app shell/proxy/preflights; `text/plain` for WebChannel; `x-unknown` for websocket upgrade in HAR. |++## Public Web / Static Asset Surfaces++These are observed supporting resources rather than private Google Voice backend APIs.++| Endpoint / host | Input format | Output format | Purpose |+|---|---|---|---|+| `https://www.gstatic.com/_/voice/_/js/...` | GET static JS URL. | JavaScript bundle. | Google Voice web app code. |+| `https://www.gstatic.com/_/voice/_/ss/...` | GET static CSS URL. | CSS stylesheet. | Google Voice web app styling. |+| `https://www.gstatic.com/voice-fe/audio/*.mp3` | GET static audio file. | MP3 audio. | DTMF, call-ended, silent audio, and calling tone assets. |+| `https://www.gstatic.com/birdsong/tones/...` | GET static audio file. | MP3 audio. | Ringing and busy tones. |+| `https://www.gstatic.com/voice-fe/icons/...` and product logo paths | GET static image. | PNG/WebP-like image assets. | Voice favicon and app branding. |+| `https://fonts.googleapis.com/...` and `https://fonts.gstatic.com/...` | GET CSS/font files. | CSS and WOFF2. | Google font loading. |+| `https://apis.google.com/js/api.js` and related `apis.google.com/_/scs/...` URLs | GET JavaScript. | Google API JS. | gapi/client/proxy support. |+| `https://payments.google.com/payments/.../integrator.js` | GET JavaScript. | Payments integrator script. | Payments support script loaded by Google web shell; no Voice payment API call was observed. |+| `https://ogs.google.com/u/0/widget/app` | GET widget URL. | OneGoogle widget content. | Google app/account switcher support. |+| `https://lh3.google.com/...` and `https://lh3.googleusercontent.com/...` | GET image URLs. | Profile/contact images. | Account/contact avatars; exact URLs are not retained. |++## Second Capture: Calling, Folders, And Thread Actions++Capture 2 (`C:\Users\Vayun\Downloads\2voice.google.com.har`, 448 entries, started `2026-08-12 03:17:01 UTC`) exercised placing/receiving calls, navigating folders, searching, and running conversation actions. It confirms several endpoints and flows that capture 1 only showed as static code.++### Newly Confirmed At Runtime++| Endpoint / surface | Evidence in capture 2 | Notes |+|---|---|---|+| `wss://web.voice.telephony.goog/websocket` SIP frames | 48 websocket frames (26 send, 22 receive) | Full calling signaling; see the calling section below. Capture 1 only showed the `101` upgrade. |+| `voice/v1/voiceclient/inboundcallrule/list` | 1 POST, status `200` | Custom call forwarding rules were listed. Create/update/delete/move still not observed. |+| `signaler-pa.clients6.google.com/punctual/v1/refreshCreds` | 1 POST | Realtime signaling credential refresh, not seen in capture 1. |+| `voice/v1/voiceclient/thread/batchupdateattributes` | 8 POSTs (vs 1 in capture 1) | Confirms read/archive/spam/block toggles funnel through this one endpoint. |+| `voice/v1/voiceclient/api2thread/list` | 21 POSTs across folder enums 1โ€“5 | Confirms folder/tab navigation uses a folder integer in the first slot. |+| `voice/v1/voiceclient/api2thread/search` | 12 POSTs with incremental query strings | Confirms search-as-you-type. |++### Folder Navigation Shape (`api2thread/list`)++Observed sanitized request bodies:++```text+[1,20,15,null,null,[null,1,1,1]]+[2,20,15,null,null,[null,1,1,1]]+[3,20,15,null,null,[null,1,1,1]]+[4,20,15,null,null,[null,1,1,1]]+[5,20,15,null,null,[null,1,1,1]]+[2,100,50]+```++- Slot 0 is a folder/tab enum. Values `1`โ€“`5` were observed as the user moved between tabs (inbox/messages/calls/voicemail/spam-style folders). The exact enum-to-tab mapping is not proven from the wire alone.+- Slots 1โ€“2 are page size / window controls (for example `20,15` or `100,50`).+- The trailing `[null,1,1,1]` is a fixed request-options array.++This is strong evidence that voicemail, calls, spam, and archive lists are **not** separate endpoints; they are the same `api2thread/list` call with a different folder enum.++### Search Shape (`api2thread/search`)++Observed sanitized request bodies:++```text+["",200,null,null,null,[null,1,1,1]]+["g",200,...]+["gv",200,...]+["gv h",200,...]+["gv har",200,...]+["s",200,...]+["sp",200,...]+["spa",200,...]+["<phone-number>",200,...]+```++- Slot 0 is the raw query string, sent incrementally on each keystroke.+- Slot 1 (`200`) is a result limit.+- Searching by phone number is supported (value redacted here).++### Thread Action Shape (`thread/batchupdateattributes`)++Observed sanitized request bodies (IDs redacted):++```text+[[[["t.<phone-number>",null,0],[null,null,1],1]]]+[[[["t.<phone-number>",null,1],[null,null,1],1]]]+[[[["t.<phone-number>",null,null,1],[null,null,null,1],1]]]+[[[["t.<short-id>",null,null,1],[null,null,null,1],1]]]+[[[["c.<opaque-id>",null,null,1],[null,null,null,1],1]]]+```++- Each entry keys a thread by an ID with a type prefix: `t.` for a message/conversation thread and `c.` for a call-log entry.+- The differing boolean slot positions (a value toggled in slot index 2 vs 3, and in the second sub-array) correspond to different attribute mutations. This is how the client applies read/unread, archive/unarchive, and spam/block-style state changes through a single endpoint rather than dedicated `archive`/`spam`/`block` endpoints.+- Exact attribute-slot-to-action mapping is not fully proven, but the pattern confirms these actions share this endpoint.++## Voice Calling (SIP over WebSocket)++Capture 2 shows Google Voice web calling runs SIP over a secure WebSocket (`wss://web.voice.telephony.goog/websocket`) with WebRTC media. Outbound SIP requests are readable text frames; inbound frames from the server are binary (opcode 2) and were not decoded, but the client-side responses reveal the full exchange.++### Signaling Flow++SIP request methods sent by the web client:++| Method | Count | Role |+|---|---|---|+| `REGISTER` | 2 | Registers the web endpoint with `web.c.pbx.voice.sip.google.com`. |+| `INVITE` | 3 | Call setup (outbound call plus re-INVITEs). |+| `PRACK` | 2 | Provisional response acknowledgement (100rel). |+| `ACK` | 3 | Final response acknowledgement. |+| `BYE` | 2 | Call teardown / hangup. |++SIP response status lines emitted by the client (for inbound calls):++| Response | Count | Meaning |+|---|---|---|+| `100 Trying` | 3 | Received/processing. |+| `180 Ringing` | 3 | Inbound call ringing on web. |+| `183 Session Progress` | 3 | Early media / session progress. |+| `200 OK` | 2 | Call answered / request success. |+| `487 Request Terminated` | 1 | Inbound call canceled before answer. |+| `603 Decline` | 1 | Inbound call declined/rejected on web. |++Reconstructed call lifecycle:++```text+REGISTER -> 200 (web endpoint registered)+Outbound: INVITE -> 100/180/183 -> PRACK -> 200 OK -> ACK -> media -> BYE+Inbound:  INVITE(recv) -> 100 Trying -> 180 Ringing -> 183 Session Progress+            -> either 200 OK (answer) or 603 Decline (reject) or 487 (terminated)+```++### Media (WebRTC / SDP)++The SDP offer/answer in the SIP bodies (`Content-Type: application/sdp`) shows:++| Attribute | Observed value |+|---|---|+| Transport | `UDP/TLS/RTP/SAVPF` (SRTP over DTLS) and legacy `RTP/AVP` line |+| Audio codecs | `opus/48000/2` (payload 111, `minptime=10;useinbandfec=1`), `red/48000/2`, `PCMU/8000`, `PCMA/8000`, `G722/8000`, `CN/8000` |+| DTMF | `telephone-event` at 8000 and 48000 (RFC 4733), payloads 101/110/126 |+| ICE | `a=ice-options:trickle`, host/srflx candidates, `ice-ufrag`/`ice-pwd` |+| Security | `a=fingerprint:sha-256 ...` DTLS fingerprints |+| Direction | `sendrecv`, `recvonly`, `sendonly` observed across offers/answers |+| Feedback | `transport-cc`, `rrtr` RTCP feedback |+| Bundle | `a=group:BUNDLE` |++Notable SIP headers:++```text+Allow: INVITE,ACK,CANCEL,BYE,UPDATE,MESSAGE,OPTIONS,REFER,INFO,PRACK+Supported: timer,100rel,ice,replaces,outbound,record-aware+User-Agent: GoogleVoice <version-redacted>+```++Interpretation: web calling is standards-based SIP-over-WSS signaling to Google's PBX (`*.pbx.voice.sip.google.com`) with DTLS-SRTP-secured WebRTC audio, Opus-preferred, and in-band DTMF via `telephone-event`. DTMF keypad, mute (`sendonly`/`recvonly` transitions), answer, decline, and hangup (`BYE`) are all represented. Media payload bytes themselves are not in the HAR. Inbound server frames are binary and remain undecoded.+++The loaded Google Voice web bundle embedded in `C:\Users\Vayun\Downloads\voice.google.com.har` exposes additional RPC wrappers and route strings that were not exercised by the captured sessions. This section is static evidence from the loaded app code, not proof that every endpoint is enabled for this account or region. Endpoints later confirmed at runtime by capture 2 are noted inline and in the "Second Capture" section above; the remaining rows are still static-only.++### App Routes Present In Loaded JS++The bundle contains route literals for these product surfaces:++```text+/archive+/billing+/blocked+/callrule+/calls+/inbox+/managecallrules+/manageringroups+/messages+/porting+/portingprogress+/promo+/search+/settings+/spam+/transfer+/voicemail+```++### Voice RPCs Present In JS But Not Fully Exercised++All rows below are static-only except `inboundcallrule/list`, which was confirmed at runtime in capture 2.++| Endpoint | Inferred feature area | What was missing from the HAR |+|---|---|---|+| `voice/v1/voiceclient/api2thread/get` | Thread detail | Opening a single conversation deeply enough to fetch a specific thread by ID. |+| `voice/v1/voiceclient/thread/updateattributes` | Single-thread state updates | Per-thread archive/spam/block/read/star-like mutations outside the captured batch update. |+| `voice/v1/voiceclient/thread/batchdelete` | Conversation deletion | Deleting one or more whole conversations/threads. |+| `voice/v1/voiceclient/threaditem/batchdelete` | Message/item deletion | Deleting individual messages, calls, voicemails, or thread items. |+| `voice/v1/voiceclient/clearhistory` | History clearing | Clearing conversation or account history. |+| `voice/v1/voiceclient/rcs/sendmessage` | RCS / richer messaging | Sending an RCS-style message. The capture only exercised SMS send. |+| `voice/v1/voiceclient/account/update` | Account/settings writes | Changing settings such as forwarding, devices, caller ID, voicemail preferences, availability, or privacy options. |+| `voice/v1/voiceclient/clientaccesspermission/get` | Client access permissions | Permission/access state checks beyond the account bootstrap. |+| `voice/v1/voiceclient/idverification/get` | Identity verification | Identity verification flow state. |+| `voice/v1/voiceclient/phoneverification/startchallenge` | Phone verification | Starting linked-number or account phone verification. |+| `voice/v1/voiceclient/phoneverification/verify` | Phone verification | Completing phone verification challenge. |+| `voice/v1/voiceclient/emergencyaddress/verifyemergencyaddress` | Emergency calling | Emergency address verification. |+| `voice/v1/voiceclient/communication/startclicktocall` | Click-to-call | Starting a call through a linked phone/click-to-call flow instead of only initializing web SIP/websocket state. |+| `voice/v1/voiceclient/billing/transaction/list` | Billing / credits | Loading billing history or transactions. |+| `voice/v1/voiceclient/billing/encryptbuyflowparameters` | Billing / credits | Preparing encrypted parameters for a credit purchase or buy flow. |+| `voice/v1/voiceclient/billing/refundcall` | Billing / credits | Refunding or disputing a billed call. |+| `voice/v1/voiceclient/checkportineligibility` | Number porting | Checking whether a number can be ported in. |+| `voice/v1/voiceclient/cancelnumberportin` | Number porting | Canceling a port-in flow. |+| `voice/v1/voiceclient/updatenumberportin` | Number porting | Updating a pending port-in flow. |+| `voice/v1/voiceclient/purchasenumberportin` | Number porting | Purchasing or submitting port-in. |+| `voice/v1/voiceclient/purchasenumberportout` | Number porting | Purchasing or preparing port-out. |+| `voice/v1/voiceclient/numbertransfer/create` | Number transfer | Creating a number transfer. |+| `voice/v1/voiceclient/numbertransfer/execute` | Number transfer | Executing a number transfer. |+| `voice/v1/voiceclient/numbertransfer/cancel` | Number transfer | Canceling a number transfer. |+| `voice/v1/voiceclient/relocknumber` | Number retention / lock | Relocking or keeping a number. |+| `voice/v1/voiceclient/inboundcallrule/list` | Custom call forwarding | Now observed in capture 2. Listing works; create/update/delete/move still not exercised. |+| `voice/v1/voiceclient/inboundcallrule/create` | Custom call forwarding | Creating a custom rule for contacts, groups, or anonymous callers. |+| `voice/v1/voiceclient/inboundcallrule/update` | Custom call forwarding | Updating an existing custom call rule. |+| `voice/v1/voiceclient/inboundcallrule/delete` | Custom call forwarding | Deleting a custom call rule. |+| `voice/v1/voiceclient/inboundcallrule/move` | Custom call forwarding | Reordering custom call rules. |+| `/$rpc/google.voice.ringgroups.v1.RingGroupsService/UpdateUserRingGroupSettings` | Ring groups | Updating ring-group availability or user settings. The capture only called `ListRingGroups`, which returned empty. |++### Feature Strings Present But Under-Mapped++The same JS bundle includes UI strings and code paths for these features even when a distinct RPC was not recovered in this pass:++| Feature area | Static evidence | Likely missing behavior |+|---|---|---|+| Voicemail | Route `/voicemail`; strings for voicemail transcription, active greetings, rename, delete, and playback controls. | Playing voicemail, reading transcripts, managing greetings, setting active greeting, deleting/renaming greetings. |+| Archive / spam / block | Strings such as `Conversation archived`, `Voicemail restored`, `Block number`, `Unblock number`, `Mark as spam`, and `Unmark as spam`. | Archive/restore, spam/unspam, block/unblock across calls, conversations, and voicemails. |+| Calls | Confirmed in capture 2 via SIP-over-WSS (see the calling section): placing/receiving calls, ringing, decline, answer, hangup, DTMF, and mute-style direction changes. | Remaining unknowns: call-waiting/hold, transfer/REFER flows, media permission-denied path, and multi-party behavior. |+| Call forwarding / screening | Strings for `Forward calls`, `Send to voicemail`, `Call screening`, and custom rule creation. | Forwarding decisions, anonymous caller rules, group/contact rules, voicemail greeting selection, and call screening options. |+| Devices and linked numbers | Strings for `Ring these devices`, `Forward to these numbers`, linked number verification errors, and settings links. | Enabling/disabling device ringing, adding/removing/verifying linked numbers, forwarding to external numbers. |+| Billing / credits | Route `/billing`; strings for `Add credit`, `Change payment method`, `Current balance`, `Billing history`, `Auto-recharge`, and calling rates. | Loading balances, adding credit, changing payment method, viewing transactions, international calling rates. |+| Attachments / MMS | Strings for `MMS`, `SMS`, `Sent attachments`, `gv-send-attachment-list`, `Download attachment`, and `Delete message`. | Sending/receiving media attachments, attachment download, attachment removal, and MMS-specific send behavior. A standalone upload endpoint was not recovered from the simple string pass. |+| Promos / onboarding | Routes `/promo` and `/signup`; static assets such as onboarding GIFs and Voice Notes promo media. | Signup, onboarding, upgrade/promo flows, and feature education surfaces. |++## Remaining Boundaries++- Exact protobuf field names for Google Voice RPCs are not recoverable from this HAR alone. The capture exposes paths, methods, counts, status codes, MIME types, positional array shapes, and static endpoint strings, but not `.proto` descriptors.+- Static JS evidence can reveal uncalled endpoints and feature routes, but it cannot prove which flows are enabled for the captured account, region, Workspace/consumer account type, or current experiment flags.+- Websocket frames for `wss://web.voice.telephony.goog/websocket` are partially decoded in capture 2: outbound SIP text frames are readable, but inbound frames are binary (opcode 2) and were not decoded, and RTP/SRTP media payloads are not present in the HAR.+- The SMS send request body contains sensitive message and recipient material in the source HAR. This document records only the sanitized positional shape and endpoint role.+- Contact autocomplete and lookup responses likely contain names, emails, avatars, and phone numbers. They are represented here only as service roles and sanitized shapes.+- Punctual/WebChannel messages include session/channel identifiers and opaque data fields. This document records the setup pattern and parameter names but not channel payload values.+- Google support traffic such as CSP reports, Play logging, WAA, OneGoogle async data, Analytics, and reCAPTCHA is included for completeness but was not reverse-sliced into product schemas because it is generic Google web infrastructure rather than Voice-specific behavior.
communicate/whatsapp-documentation.md
diff --git a/communicate/whatsapp-documentation.md b/communicate/whatsapp-documentation.mdnew file mode 100644index 0000000000..1982639734--- /dev/null+++ b/communicate/whatsapp-documentation.md@@ -0,0 +1,388 @@+# WhatsApp APK Endpoint Documentation++Generated from static analysis of the WhatsApp APK pulled from the connected Android device. This pass goes beyond URL-string extraction: endpoint strings were traced back to DEX string xrefs, decompiled JADX output, config defaults, and visible model/parser code where possible.++Analysis artifacts:++- APK files: `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\apks`+- Main JADX output: `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-out-smallheap`+- Fallback/raw JADX output: `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-fallback-out`+- Raw dex URL strings: `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\dex_url_strings.txt`+- DEX string xrefs: `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\dex_string_xrefs.txt`+- Full generated inventory: `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\full_endpoint_inventory.csv`++Important caveats:++- This is static analysis only. No endpoint was called or tested.+- JADX `--deobf` was already used. No ProGuard/R8 mapping file was available, so original semantic names cannot be fully recovered.+- DEX xrefs are the most reliable call-site locator when JADX drops literals. Some xref class names collide with JADX filesystem names, so a few exact method bodies remain better represented by DEX owner signatures than by readable Java.+- `Exact` below means recovered from URL templates, DEX xrefs, decompiled request code, or decompiled model/parser code. It does not imply the endpoint is public or callable without WhatsApp auth/session state.++## Reverse-Slice Summary++| Endpoint | DEX owner / strongest local evidence | Input format | Output format | Purpose / notes |+|---|---|---|---|---|+| `https://static.whatsapp.net/wa/static/payments/upi/india_bill_pay_get_categories?unique_key=%s&is_dev=%s&version=%s` | DEX xref: `LX/F0R;->A02()V`, `classes8.dex`; see `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\dex_string_xrefs.txt:135-138`. | Exact GET template with `unique_key`, `is_dev`, `version`. | JSON category metadata. Recovered fields from docs/diffs and downstream code: popular/grouped categories, category IDs/names, rank/order, image URLs, last-updated timestamp. | India bill-pay category static metadata. JADX normal output has class-name collision for `F0R`, so request method body was not safely mapped to a Java file. |+| `https://static.whatsapp.net/wa/static/payments/upi/india_billers_by_category?should_fetch_biller_details=true&category_id=%s&unique_key=%s&is_dev=%s&version=%s` | DEX xref: `LX/F0R;->A02()V`, `classes8.dex`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\dex_string_xrefs.txt:139-142`. | Exact GET template with `should_fetch_biller_details=true`, `category_id`, `unique_key`, `is_dev`, `version`. | JSON by-category biller list. Recovered response example shape: `category_id`, `biller_list[]`, each biller with `biller_id`, `image_url`, `name`, `rank`. | India biller static metadata by category. Cache file pattern from trace context: `payments_india_billers_<category_id>.json`. |+| `https://static.whatsapp.net/wa/static/payments/upi/india_billpay_operators_and_circles?unique_key=%s&is_dev=%s&version=%s` | DEX xref: `LX/F0R;->A03()V`, `classes8.dex`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\dex_string_xrefs.txt:143-145`. Model evidence: `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-out-smallheap\sources\p000X\C33483ElW.java:7-38`, `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-out-smallheap\sources\p000X\C33639Eo3.java:5-49`. | Exact GET template with `unique_key`, `is_dev`, `version`. | JSON parsed into `RechargesInfo(operatorInfoList, circleInfoList)`. Operator model fields recovered exactly: `operatorId`, `operatorName`, `operatorImageUrl`, `mappedBillerId`, `rank`. Circle list is present as `circleInfoList`; individual circle model fields were only recovered by downstream use as circle reference/code and display name. | Static operator/circle metadata for India prepaid recharge bill payments. |+| `https://static.whatsapp.net/wa/static/payments/upi/bank_list?provider=%s` | DEX xref: `LX/FHi;->BZJ()V`, `classes8.dex`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\dex_string_xrefs.txt:147-150`. | Exact GET template with `provider`. | JSON bank list; exact model fields not recovered in this pass. | UPI provider bank list. Local JADX file with similar name maps to unrelated class because of deobfuscation/case collision, so parser model remains unresolved. |+| `https://static.whatsapp.net/wa/static/payments/remittance/get_partners/?sender_country=%s&receiver_country=%s` | DEX xref: `LX/Egk;->A00(Ljava/lang/String;Ljava/lang/String;)Ljava/util/ArrayList;`, `classes8.dex`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\dex_string_xrefs.txt:151-154`. | Exact GET template with `sender_country`, `receiver_country`. | Returns `ArrayList` of partner records per DEX method signature; exact partner fields not recovered. | Remittance partner lookup for sender/receiver country pair. |+| `https://static.whatsapp.net/wa/static/sticker?cat=sticker_search&terms=%s&country=%s` | DEX xref: `LX/5TP;->invokeSuspend(Ljava/lang/Object;)Ljava/lang/Object;`, `classes4.dex`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\dex_string_xrefs.txt:45-48`. Search dispatch evidence: `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-out-smallheap\sources\com\whatsapp\stickers\contextualsuggestion\StickerSearchManager$performSearch$2.java`. | Exact GET template with `cat=sticker_search`, `terms`, `country`. Local code maps a `searchKey` through `EmojiGroupMapper`, joins terms with a space, and applies config key `22573` as the result/request limit before dispatch. | JSON array of sticker records. Recovered fields include `mimetype`, `file-hash`, `enc-file-hash`, `direct-path`, `media-key`, `width`, `height`, `file-size`, `sticker-pack-id`, `animated`, `preview_webp_id`. Local model evidence is `C114864z2` and `C111014sR`. | Sticker search endpoint. Downstream local result model is `Sticker` with URL/direct-path, MIME, dimensions, file size, hashes, metadata, premium/lottie flags, and storage location. |+| `https://static.whatsapp.net/sticker?cat=all&lg=` | String evidence in `classes4.dex`; model evidence in `C112594vE`. | GET with `cat=all`, `lg=<locale>`. | Sticker pack catalog JSON. Local pack model fields include `id`, `name`, `publisher`, `description`, `size`, `trayImageId`, `trayImagePreviewId`, `previewImageIds`, `stickers`, `order`, `playLink`, `iOSLink`, animated/lottie/avatar flags. | Fetch all sticker packs/catalog for locale. Exact request method owner was not resolved beyond string/model evidence. |+| `https://static.whatsapp.net/sticker?cat=suggest_sticker_packs&lg=` | String evidence in `classes4.dex`; model evidence in `C112594vE`. | GET with `cat=suggest_sticker_packs`, `lg=<locale>`. | Same sticker pack model as above. | Suggested sticker-pack catalog. |+| `https://static.whatsapp.net/sticker?id=` | String evidence in `classes4.dex`; model evidence in `C112594vE` / `C114864z2`. | GET with `id=<sticker_or_pack_id>`. | Sticker pack or sticker metadata JSON; exact branch not resolved. | Fetch sticker/pack by ID. |+| `https://static.whatsapp.net/sticker?img=` | String evidence in `classes4.dex`; model evidence in `C114864z2`. | GET with `img=<image_id_or_token>`. | Image/sticker bytes or metadata; exact parser not resolved. | Sticker image fetch. |+| `https://api.giphy.com/v1/gifs/search` | DEX xref: `LX/40t;->A0V([Ljava/lang/Object;)Ljava/lang/Object;`, `classes4.dex`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\dex_string_xrefs.txt:74-77`. | Giphy API GET. Expected params are Giphy-standard `api_key`, `q`, `limit`, `offset`, `rating`, locale/lang; exact local query builder not mapped to Java file. | JSON Giphy response normalized into WhatsApp sticker/GIF models. Local provider evidence: `C114864z2.A03()` checks metadata publisher `Giphy` at `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-out-smallheap\sources\p000X\C114864z2.java:122-125`. | GIF search integration. |+| `https://api.giphy.com/v1/gifs/trending` | DEX xref: `LX/415;->A0V([Ljava/lang/Object;)Ljava/lang/Object;`, `classes4.dex`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\dex_string_xrefs.txt:78-81`. | Giphy API GET. Expected params include `api_key`, `limit`, `offset`, `rating`, locale/lang. | JSON Giphy response normalized into WhatsApp media/sticker models. | Trending GIF integration. |+| `https://api.giphy.com/v1/stickers/search` | DEX xref: `LX/4sd;->A02(Ljava/lang/CharSequence;Ljava/lang/String;)Ljava/lang/String;`, `classes4.dex`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\dex_string_xrefs.txt:82-85`. | Giphy sticker search GET. Method signature indicates inputs include a `CharSequence` search term and `String` context/value. | JSON Giphy response normalized into sticker model. | Animated sticker search via Giphy. |+| `https://api.giphy.com/v1/stickers/trending` | DEX xref: `LX/4sd;->A03(Ljava/lang/String;)Ljava/lang/String;`, `classes4.dex`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\dex_string_xrefs.txt:86-89`. | Giphy sticker trending GET. Method signature accepts one `String`. | JSON Giphy response normalized into sticker model. | Trending Giphy stickers. |+| `https://api.whatsapp.net/calendar/auth/approve/` | DEX xref: `LX/ASm;->invokeSuspend(Ljava/lang/Object;)Ljava/lang/Object;`, `classes6.dex`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\dex_string_xrefs.txt:115-118`. | Server-doc context: POST approve flow. Exact APK body not recovered from Java. | Creates/returns calendar auth approval state; docs indicate creation of `WAApiSession`, `CALENDAR_PLUGIN` feature ent, and ephemeral device-code record. | Calendar integration approval. |+| `https://api.whatsapp.net/calendar/integrations/` | DEX xref: `LX/5Tr;->invokeSuspend(Ljava/lang/Object;)Ljava/lang/Object;`, `classes4.dex`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\dex_string_xrefs.txt:90-93`. | Server-doc context: GET integrations list. Exact APK body not recovered. | JSON shape from server docs: `{ "integrations": [{ "app_id": "...", "app_name": "...", "connected_at": "..." }] }`; empty state `{ "integrations": [] }`. | Calendar integrations list. |+| `https://api.whatsapp.net/calendar/integrations/revocations/` | DEX xref: `LX/5Rw;->invokeSuspend(Ljava/lang/Object;)Ljava/lang/Object;`, `classes4.dex`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\dex_string_xrefs.txt:94-97`. | Server-doc context: POST revocation/disconnect. Exact APK body not recovered. | Status/empty result or error; docs mention `NOT_CONNECTED`/404-style condition when app is not connected. | Revoke a calendar integration. |+| `https://api.whatsapp.net/support/add_bug_attachment` | DEX xref: `Lcom/whatsapp/inappbugreporting/network/PostBugAttachmentUploader;->A00(LX/Hag;Ljava/lang/String;LX/0nc;)Ljava/lang/Object;`, `classes9.dex`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\dex_string_xrefs.txt:160-163`. Worker evidence: `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-out-smallheap\sources\com\whatsapp\inappbugreporting\worker\AsyncBugReportPostCreationAttachmentWorker.java:11-25`. | Upload method takes attachment object `LX/Hag`, a `String` likely bug/report id or auth/context, and coroutine continuation. Body likely multipart file upload, but exact fields were not recovered from Java. | Coroutine result object; likely attachment upload result/ID. Exact response model not recovered. | Adds attachment to an in-app bug report. |+| `https://flows.whatsapp.net/flows/cache_management/` | Config default: key `7125` in `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-out-smallheap\sources\p000X\C047207o.java:19844`; consumer: `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-out-smallheap\sources\p000X\C9P5.java:12-22`. | Config URL read via `A0b(7125)`, converted to `new URL(...)`. Paired config key `7126` is an integer enable/interval value. | Result is a `C211919Qh` cache-cleaner object using either no-op `C22936A1f` or `FGO(url)`. HTTP body/response parser hidden behind unresolved `FGO` implementation. | Flows web cache management/cleanup endpoint. |+| `https://flows.whatsapp.net/flows` | Config defaults: keys `7153` and `6060` in `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-out-smallheap\sources\p000X\C047207o.java:19845-19846`; consumers include `C31948Dw1`, `DR0` per reverse-slice report. | Config-backed URL string; exact HTTP request body not recovered. | Flow runtime responses; exact schema not recovered. | WhatsApp Flows runtime service. |+| `https://flows.whatsapp.net/flows-app/catalog` | Config default: key `16723` in `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-out-smallheap\sources\p000X\C047207o.java:19736`. | Config-backed URL string; exact HTTP request body not recovered. | Catalog/list of flows/apps; exact schema not recovered. | WhatsApp Flows app catalog. |+| `https://graph.whatsapp.com/graphql` | DEX xrefs: `LX/1c1;->invoke()` in `classes.dex` and `LX/IWe;->invoke()` in `classes9.dex`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\dex_string_xrefs.txt:16-18`, `168-170`. | GraphQL POST. Request envelope from related WAMO/ACS docs: JSON with `doc_id`, `variables` as JSON-encoded string, `access_token`, `credential`, `user_id`, `app_id`. Exact APK operation set not recovered. | JSON GraphQL response, schema determined by persisted `doc_id`/operation. | Main WhatsApp GraphQL endpoint. |+| `https://acs.whatsapp.com/graphql` | DEX xref: `Lcom/whatsapp/infra/acsohai/AcsOhaiFetcher;->A00(Lcom/whatsapp/infra/acsohai/AcsOhaiFetcher;Ljava/lang/String;LX/0nc;)Ljava/lang/Object;`, `classes9.dex`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\dex_string_xrefs.txt:172-175`. | ACS/OHAI GraphQL fetch. Method accepts `String` plus coroutine continuation; exact JSON body not recovered, likely GraphQL/OHAI envelope. | Coroutine result; likely JSON/typed ACS fetch result. | ACS GraphQL endpoint. |+| `https://acs.whatsapp.com/music/reporting` | DEX xref: `Lcom/whatsapp/snapl/client/SnaplOhaiHttpClient;->A00(Ljava/util/List;LX/0nc;)Ljava/lang/Object;`, `classes9.dex`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\dex_string_xrefs.txt:164-167`. | Exact high-level body from docs and xref: method takes `List` of events; upload is multipart POST with gzipped events file, one JSON object per line, max file size about 100 KiB. Visible fields include `media_id`, `country`, `is_copyright_muted`, `persistent_id`, and event types `requested_playing`, `started_playing`, `paused`, `heartbeat`. | Status/ack; server emits one `MediaPlaybackCompoundFalcoEvent` per uploaded JSON line. | Music consumption/reporting upload via SNAPL/OHAI. |+| `https://graph.whatsapp.net/wa_qpl_data` | DEX xref: `Lcom/whatsapp/infra/qpl/quicklog/QplUploadScheduler$QPLUploadWorker;->A0A()LX/H4u;`, `classes8.dex`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\dex_string_xrefs.txt:155-158`. | Multipart/upload request. Documented fields: `app_id`, `upload_time`, `batches[]`, `batch_info`, `access_token`, `userid`. Batch files contain JSON QPL entries; `batch_info` contains device/carrier/country/OS metadata. | Upload worker result `LX/H4u`; server ack/status. | QPL/performance telemetry upload. |+| `https://crashlogs.whatsapp.net/wa_fls_upload_check` | DEX xref: `LX/0A8;->A0D(Ljava/lang/String;Ljava/lang/String;Z)Ljava/lang/String;`, `classes.dex`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\dex_string_xrefs.txt:7-10`. | Exact method signature exposes inputs: two `String`s and a boolean. Documentation maps request params to `agent`, `from_jid`, `type`, `support_exception_only_upload`. | String response from method signature; likely upload-check decision/status payload. | Preflight check for crash/fastlog upload, including sampling/rate limiting. |+| `https://crashlogs.whatsapp.net/wa_clb_data` | DEX xrefs: `LX/0A8;->A0B(...,Ljava/util/Map;IZZZ)Z`, `LX/1EK;->A01(...,Ljava/io/File;Ljava/lang/Integer;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ZZ)Ljava/lang/String;`, plus `ExceptionsUploadService` and voice call upload xrefs; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\dex_string_xrefs.txt:11-14`, `119-124`. | Upload body includes a `File`, metadata strings, integer/type, `Map` metadata, and boolean flags per method signatures. Crash minidump packaging itself goes through Breakpad/native/shared code. | Boolean success in `LX/0A8.A0B`; string result in `LX/1EK.A01`; service result hidden by upload service. | Crash/log batch upload. |+| `https://crashlogs.whatsapp.net/wa_profilo_data` | DEX xref: `Lcom/whatsapp/infra/perf/profilo/ProfiloUploadService;->A0C(Landroid/content/Intent;)V`, `classes6.dex`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\dex_string_xrefs.txt:125-128`. | Android service receives `Intent`; payload is Profilo trace file/native trace data. Exact trace serialization hidden behind Profilo native/shared writer classes. | Service-side upload status; exact response not recovered. | Profilo performance trace upload. |+| `https://crashlogs.whatsapp.net/whatson_logs_upload` | DEX xref: `LX/9lI;->A05(...,Lcom/whatsapp/fieldstats/events/WamCall;Ljava/io/File;...;Ljava/lang/String;)Z`, `classes6.dex`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\dex_string_xrefs.txt:129-132`. | Upload method takes `WamCall`, `File`, boolean flags, and a `String`; docs/logs show zipped VoIP time-series log upload. | Boolean success. | WhatsOn/VoIP time-series log upload. |+| `https://mmg.whatsapp.net/proxygen/health` | Config default at `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-out-smallheap\sources\p000X\C047207o.java:19654`; switch accessor at `C049808q.java:3954`; DEX xrefs in `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\dex_string_xrefs.txt:20-23`. | Config URL string; likely GET/no body health probe. | Health/status response; exact body not recovered. | Proxygen/media health-check endpoint. |+| `https://mmg.whatsapp.net` | Config/default and media model usage. Business catalog logo code reads key `22436` in `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-out-smallheap\sources\com\whatsapp\catalog\product\biz\webview\CatalogWebMetaDataRepository.java:101-139`. | Media/CDN requests; exact paths vary. For catalog metadata, used as a base to build media URL from business logo direct path. | Media bytes or transformed media URL. | WhatsApp media/CDN host. |++## Exact Local JSON / Model Shapes Recovered++### Catalog Web Metadata JSON++`C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-out-smallheap\sources\com\whatsapp\catalog\product\biz\webview\CatalogWebMetaDataRepository.java:344-396` constructs a JSON-like object with these keys:++```json+{+  "biz_jid": "<raw user jid>",+  "wam_message_id": "<message id>",+  "qpl_message_id": "<qpl message id>",+  "wam_session_id": "<session id>",+  "qpl_session_id": "<wae-prefixed session id>",+  "business_name": "<business display name>",+  "biz_logo": "<base64 or media URL, optional>",+  "is_template": true,+  "hsm_tag": "<tag>",+  "biz_platform": 0,+  "entry_point_conversion_source": "<source>",+  "entry_point_conversion_app": "<app>",+  "entry_point_conversation_initiated": 0,+  "catalog_product_ids": ["<product id>"],+  "catalog_id": "<business user id>",+  "catalog_sections": ["<section objects>"],+  "catalog_session_id": "<session id>",+  "order_id": "<order id>",+  "catalog_entry_point": 0,+  "catalog_params": { }+}+```++Inputs are read from a `Bundle` at `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-out-smallheap\sources\com\whatsapp\catalog\product\biz\webview\CatalogWebMetaDataRepository.java:188-223`: `extra_message_id`, `extra_session_id`, `extra_order_id`, `extra_order_token`, `extra_product_ids`, and `extra_product_list_info`.++### Sticker Search Result / Sticker Model++Local model `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-out-smallheap\sources\p000X\C114864z2.java:314-340` exposes the normalized sticker fields:++```text+url+mimeType+height+width+metadata+saltedFileHash+fileSize+isLottie+premium+fileStorageLocation+```++Sticker metadata serialization in `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-out-smallheap\sources\p000X\C111014sR.java:93-178` emits:++```json+{+  "sticker-pack-id": "...",+  "sticker-pack-name": "...",+  "sticker-pack-publisher": "...",+  "accessibility-text": "...",+  "android-app-store-link": "...",+  "ios-app-store-link": "...",+  "emojis": ["..."],+  "is-first-party-sticker": 1,+  "is-from-sticker-maker": 1,+  "is-avatar-sticker": 1,+  "avatar-sticker-template-id": "...",+  "is-ai-sticker": 1,+  "premium": 1,+  "is-avatar-country-sticker": 1,+  "is-avatar-instant-sticker": 1,+  "sticker-maker-source-type": 1,+  "is-avatar-social-sticker": 1,+  "avatar-sticker-style": "...",+  "avatar-sticker-revision-id": "...",+  "is-from-user-created-pack": 1,+  "origin-pack-id": "...",+  "is-text-sticker": 1+}+```++Provider checks for `Giphy`, `Klipy`, and `Tenor` are in `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-out-smallheap\sources\p000X\C114864z2.java:122-144`.++### Sticker Pack Model++`C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-out-smallheap\sources\p000X\C112594vE.java:142-212` exposes pack fields:++```text+id+name+publisher+description+size+isDownloading+trayImageId+trayImagePreviewId+previewImageIds+stickers+order+isThirdParty+imageDataHash+downloadedSize+downloadedImageDataHash+downloadedTrayImageId+downloadedTrayImagePreviewId+isUnseen+isNew+avoidCaching+playLink+iOSLink+animatedPack+downloadedAnimatedPack+isAvatarStickerPack+trayIconAvatarStickerTemplateId+emptyFavoritesAvatarStickerTemplateId+emptyRecentsAvatarStickerTemplateId+avatarStickerPackDynamicIcon+lottieStickerPack+downloadedLottieStickerPack+isInInstalledStickerPacksDB+isStickerPackMessage+isCreatedByMe+```++### India Recharge Static Model++`C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-out-smallheap\sources\p000X\C33483ElW.java:32-38` names the wrapper as:++```text+RechargesInfo(operatorInfoList=<list>, circleInfoList=<list>)+```++`C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-out-smallheap\sources\p000X\C33639Eo3.java:36-48` names operator fields:++```text+IndiaBillPaymentsRechargeOperatorInfo(+  operatorId,+  operatorName,+  operatorImageUrl,+  mappedBillerId,+  rank+)+```++Downstream biller-account code references `MobileNumber`, `CircleRefID`, and `OperatorCode` in the static info flow.++## Public Web / Deep Links++These are observed URL templates, but they are user-facing web/deep-link surfaces rather than private backend APIs.++| Endpoint | Input format | Output format | Purpose |+|---|---|---|---|+| `https://api.whatsapp.com/send/?phone=` | GET/deep link with `phone`. | Web redirect/app intent or HTML. | Open chat with phone. |+| `http://api.whatsapp.com/send?phone=%s&text=%s` | GET/deep link with `phone`, `text`. | Web redirect/app intent or HTML. | Open chat with prefilled text. |+| `https://api.whatsapp.com/create/group` | GET/deep link. | Web redirect/app intent or HTML. | Group creation flow. |+| `https://api.whatsapp.com/message_yourself` | GET/deep link. | Web redirect/app intent or HTML. | Message-yourself flow. |+| `https://web.whatsapp.com` | Web app request. | HTML/JavaScript. | WhatsApp Web. |+| `https://chat.whatsapp.com/` | Invite URL, token appended at runtime. | Web redirect/app intent or HTML. | Group/community invite links. |+| `https://call.whatsapp.com/*` | URL pattern/allowlist. | Web redirect/app intent or HTML. | Call links. |+| `https://b.whatsapp.com/bizai/gdrive-picker` | Browser/OAuth-like flow. | HTML/JavaScript or redirect. | Business AI Google Drive picker. |++## Registration And Account Verification++Registration is centered on `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-out-smallheap\sources\com\whatsapp\registration\core\http\KotlinRegistrationBridge.java:76`, with the retrying HTTP boundary in `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-out-smallheap\sources\com\whatsapp\registration\core\http\retry\RetryingHttpClient.java:77`. The raw fallback HTTP client is `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-fallback-out\sources\p000X\C34064Ev8.java:125`, and registration request maps are built with `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-out-smallheap\sources\p000X\C34244EyE.java:12`.++Endpoint constants are decoded from obfuscated strings in `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-out-smallheap\sources\p000X\AbstractC33930Esr.java:26-32` and exposed by `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-out-smallheap\sources\p000X\AbstractC32697ETn.java:5-22`. The recovered registration endpoints include `/v2/code`, `/v2/register`, `/v2/security`, `/v2/exist`, `/v2/consent`, `/v2/challenge`, `/v2/autoconf`, `/v2/autoconf_verifier`, `/v2/device_logout_fetch`, `/v2/device_logout_send`, `/v2/client_log`, `/v2/pre_pn_client_log`, `/v2/passkey_auth`, `/v2/wfs`, `/v2/acverify`, `/v2/acverify_request`, and `/v2/reg_onboard_abprop`.++Common request fields:++| Helper | Fields |+|---|---|+| `KotlinRegistrationBridge.A01()` at `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-out-smallheap\sources\com\whatsapp\registration\core\http\KotlinRegistrationBridge.java:213-217` | `cc`, `in` |+| `KotlinRegistrationBridge.A0Q()` at `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-out-smallheap\sources\com\whatsapp\registration\core\http\KotlinRegistrationBridge.java:2786-2790` | `lg`, `lc`, `fdid`, `expid` |+| `KotlinRegistrationBridge.A0R()` at `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-out-smallheap\sources\com\whatsapp\registration\core\http\KotlinRegistrationBridge.java:2793-2799` | `access_session_id`, `id`, `backup_token` |+| `KotlinRegistrationBridge.A0P()` at `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-out-smallheap\sources\com\whatsapp\registration\core\http\KotlinRegistrationBridge.java:2778-2783` | `advertising_id`, `login`, `type` |++Major registration flows:++| Flow | Request fields | Response fields / status |+|---|---|---|+| Request code, `A06()` / `/v2/code`, `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-out-smallheap\sources\com\whatsapp\registration\core\http\KotlinRegistrationBridge.java:703-772` | `cc`, `in`, common fields, `token`, `method`, `context`, `clicked_education_link`, `manage_call_permission`, `call_log_permission`, optional `client_start_message` | statuses/reasons include `sent`, `ok`, `attached`, `too_many`, `too_recent`, `blocked`, `security_code`, `next_method`, `waiting_for_sms`, `too_many_all_methods`, `bad_token`, `invalid_skey`; parsed fields include `login`, `type`, `retry_after`, `length`, `code`, `new_jid`, `wipe_wait`, `email_otp_wait`, `fallback_methods`, `second_factor_methods`, `is_device_trusted` |+| Register/verify phone, `A05()` / `/v2/register`, `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-out-smallheap\sources\com\whatsapp\registration\core\http\KotlinRegistrationBridge.java:441-502` | `cc`, `in`, common fields, `code`, optional `auth_response`, `context`, `method`, `advertising_id`, `login`, `type`, E2E key bundle | statuses include `ok`, `sent`, `sms_required`, `format_wrong`, `incorrect`, `mismatch`, `security_code`, `second_code`, `missing`, `challenge`, `reset_too_soon`; parsed fields include `login`, `new_jid`, `server_time`, `secure_verifier`, `wa_ac_machine_id`, `passkey_credential`, `coex_products`, `ent_access_token` |+| Security code / 2FA, `A0B()` / `/v2/security`, `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-out-smallheap\sources\com\whatsapp\registration\core\http\KotlinRegistrationBridge.java:1576-1746` | `cc`, `in`, common fields, `code`, optional `reset`, optional `wipe_token`, `advertising_id`, E2E key bundle | `login`, `new_jid`, `guess_wait`, `server_time`, `reset_method`, `wipe_token`, `wipe_wait`, `security_code_set`, `pending`, `idv_token`, `wa_ac_machine_id`, `passkey_credential`, `lid` |+| Same-device / old-device check, `A07()` / `/v2/exist`, `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-out-smallheap\sources\com\whatsapp\registration\core\http\KotlinRegistrationBridge.java:1055-1229` | common fields, optional `foa_backup_token`, optional `client_capabilities`, ad/login/type fields, E2E keys | `sms_wait`, `voice_wait`, `wa_old_wait`, `email_otp_wait`, `silent_auth_wait`, `sms_length`, `voice_length`, `wa_old_length`, `passkey_auth_challenge`, `server_start_message`, `wa_old_eligible`, `wa_old_device_name`, `verify_pn_device` |+| Account-defence old-device fetch/send, `/v2/device_logout_fetch` and `/v2/device_logout_send`, `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-out-smallheap\sources\com\whatsapp\registration\core\http\KotlinRegistrationBridge.java:1788-1918` | `token`, `advertising_id` | device logout/account-defence state; UI reads `server_token` at `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-out-smallheap\sources\com\whatsapp\registration\app\accountdefence\p143ui\OldDeviceMoveAccountNoticeActivity.java:67-69` |+| Passkey, `A0K()` / `/v2/passkey_auth`, `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-out-smallheap\sources\com\whatsapp\registration\core\http\KotlinRegistrationBridge.java:2661-2721` | common fields, optional `access_session_id`, `context` | `credential_create`, `login`, `cred_token`, `reason`; Android passkey API is used by `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-out-smallheap\sources\com\whatsapp\registration\verification\passkey\PasskeyVerifier.java:71-76` and `:126-135` |++Registration crypto/key upload is attached through `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-fallback-out\sources\p000X\C34040Euf.java:25-75`. The recovered key-bundle fields are `authkey`, `e_ident`, `e_keytype`, `e_regid`, `e_skey_id`, `e_skey_val`, and `e_skey_sig`. Those values are pulled from `C1D8` / `C1DB`; `C1DB` persists crypto material in `SharedPreferences` named `keystore` and interacts with AndroidKeyStore migration/verification state at `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-fallback-out\sources\p000X\C1DB.java:73-147`.++The registration HTTP body is `application/x-www-form-urlencoded`, built from `C34244EyE.A00` entries, and sent in the `registration` category. Fallback `RetryingHttpClient` also shows encrypted body/query handling with AES/GCM-like helpers, an `ENC` parameter, and an `H`/HMAC-like parameter around `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-fallback-out\sources\com\whatsapp\registration\core\http\retry\RetryingHttpClient.java:236-407`.++## Message Send And Receive++The local Java representation of XMPP/protocol stanzas is `C0ZU` / `C0ZS`:++| Class | Evidence | Role |+|---|---|---|+| `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-out-smallheap\sources\p000X\C0ZU.java:18-44` | fields `A00`, `A01`, `A02`, `A03` | Protocol-tree node with tag, raw data bytes, child nodes, and attributes. It enforces either raw `data` or children, not both. |+| `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-out-smallheap\sources\p000X\C0ZS.java:9-57` | fields `A00`, `A01`, `A02`, `A03` | Attribute/key-value object, optionally JID-backed. |+| `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-out-smallheap\sources\com\whatsapp\infra\protocol\ProtocolJniHelper.java:13-113` | `createKeyValue`, `createNewJid`, `createProtocolTreeNode`, getters | JNI/native bridge for constructing and reading protocol tree nodes. |++Low-level send pipeline:++```text+Message model / encrypted protobuf bytes+  -> C0ZU protocol tree node+  -> Android Message wrapper+  -> C10830Yd message client+  -> InterfaceC29761Gp.CEG(...) active XMPP connection+  -> pre-ack / callback / retry tracking+```++Evidence for this boundary is `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-out-smallheap\sources\p000X\C10830Yd.java`. Key methods:++| Method | Role |+|---|---|+| `C10830Yd.A01(...)`, `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-out-smallheap\sources\p000X\C10830Yd.java:69-90` | Wraps `C0ZU` into Android `Message`, with type codes for IQ/callback/drop-if-offline behavior. |+| `C10830Yd.A05(...)`, `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-out-smallheap\sources\p000X\C10830Yd.java:157-217` | Core `sendXmpp` path; checks readiness, wakes/uses connection manager, sends through `InterfaceC29761Gp.CEG(...)`, and records processed/pre-ack state. |+| `C10830Yd.A0B(...)`, `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-out-smallheap\sources\p000X\C10830Yd.java:320-333` | Sends an ackable `ProtocolTreeNode` and records a future against the stanza key. |+| `C10830Yd.A0D(...)`, `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-out-smallheap\sources\p000X\C10830Yd.java:345-363` | Suspending IQ send wrapper with pending/in-flight queue handling. |+| `C10830Yd.A0O(...)`, `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-out-smallheap\sources\p000X\C10830Yd.java:504-585` | Ack/receipt logic for `receipt`, `notification`, `message`, `call`, and `status`. |++The receive path is now traced through the APK-visible obfuscated classes rather than just reconstructed from source-context names. The core inbound chain is:++```text+C17U.A04(Message, recvType)+  -> C17Y.handleMessage(...)+  -> recvType 0 / MESSAGE_FOR_ME+  -> C50456Mqy.A0W provider 6323+  -> C1Zv allocates X.1Fw+  -> C29581Fw.B7t(Message, 0)+  -> AL2 case 29 / MessageForMeXmppHandler/onMessageForMe+  -> C215869d0.A00(...)+  -> RunnableC23480AMk case 7+  -> C194848in.A08(...)+  -> AbstractC220419l8 / DecryptMessageRunnable+  -> C9RC.A00(...) decrypt dispatcher+  -> A4F / DecryptionCallbackV2+  -> C216729eT.A01(...) / SharedMessageProcessor+  -> C1G9 / C1Qu local message construction+  -> AbstractC169987f9.A0u(...)+  -> C39111ip.A01/A00(...)+  -> C279219e.A08/A09/A0D(...) / CoreMessageStore write coordinator+  -> C18G.A07(C1G9) / CoreMessageStore insertMessage helper+  -> C165527Tn / X.7Tn case 39+  -> C1AC.A0A(C1G9) MainMessageStore insert layer+```++Important case-collision detail: provider `6323` allocates obfuscated `X.1Fw`, whose real fallback JADX file is `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-fallback-out\sources\p000X\C29581Fw.java`, not unrelated uppercase `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-fallback-out\sources\p000X\C1Fw.java`. `C29581Fw.B7t(...)` unwraps `C210359Jk` into parsed-message metadata `C8YL` and stanza wrapper `C1YF`, then invokes `AL2` case `29`.++Concrete decryption dispatch is visible in `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-fallback-out\sources\p000X\C9RC.java`. Ciphertext type `0` calls `C12200bV.A0L(...)` and `C220209ki.A05(...)` for individual session decrypt; type `1` calls `C12200bV.A0M(...)` and `C220209ki.A04(...)` for prekey decrypt; type `2` calls `AbstractC218429hS.A00(...)` for group sender-key decrypt; type `4` is a bot/message-secret path. `C220209ki` contains SessionCipher-style ratchet, HMAC-SHA256 MAC verification, and AES/CBC or AES/CTR decrypt logic. `AbstractC218429hS` parses sender-key messages, checks counters/signing keys, decrypts with `AES/CBC/PKCS5Padding`, calls `InterfaceC23823AbO.B7c(byte[])`, and persists sender-key state. `C216259dd` is the decrypt result object with `A00` status and `A01` plaintext.++The storage boundary is also concrete. `AbstractC169987f9.A0u(...)` is a shim into `C39111ip.A01(C1G9, ADY, C8YL)`. `C39111ip.A00(...)` logs `IncomingMessageManager/notifyBeforeIncomingMessageStored`, runs `C1A5.ABg(...)` listener gates, processes decrypted-message processor set `7327` through `C41451mf`, calls into `C279219e` as the `CoreMessageStore/writeMessageToDatabase` coordinator, then notifies `IncomingMessageManager/notifyAfterIncomingMessageStored`. The concrete insert edge is now bytecode-backed: `C18G.A07(C1G9)` opens a DB transaction, constructs `C165527Tn` / `X.7Tn` with discriminator `39`, and `X.7Tn` case `39` gets `C1AC` from provider `C18J.A02` and calls `C1AC.A0A(C1G9)`. `C1AC.A0A(C1G9)` logs `MainMessageStore/insertMainMessage`, builds `ContentValues`, writes the `message` table through `INSERT_MESSAGE_MAIN_SQL` or `INSERT_MESSAGE_MAIN_WITH_ROW_ID_SQL`, and stores row/sort ids. `C1AC.A0B(C1G9, int, boolean)` remains the concrete main-message update path. Correction to an earlier caveat: `RunnableC23493AMx` / `X.AMx` case `48` is not the insert callback; it logs `CoreMessageStore/addmsg/outer transaction rollback`, cleans `C279219e.A0U`, and belongs to rollback/error cleanup after `C279219e.A0D(...)`.++Presence, chatstate, and receipts use adjacent but distinct paths:++| Feature | Concrete owner | Format / behavior |+|---|---|---|+| Peer message receipt recvType `221` | `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-fallback-out\sources\p000X\C1DY.java`, base `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-fallback-out\sources\p000X\C1DX.java` | `C1DY` registers `[221]`; `C1DX.B7t(...)` parses receipt stanza attrs through `AbstractC170307ff.A03(...)`, runs `AL0` case `13`, then `C1DY.A05(...)` schedules `RunnableC23488AMs` case `17`. That case logs `PeerMessageReceiptHandler/handleDeliveryReceipt`, resolves peer `DeviceJid` and message id, looks up the message through `C16220iv.A04(...)`, skips history-sync notification messages, updates placeholder retry timestamps when applicable, and marks the row via `C16220iv.A06(rowId)`. |+| Message-state receipt recvType `1` | Uppercase DEX class `LX/1EI;`; source file remains case-collided | `C17Y` labels recvType `1` as `MESSAGE_STATE_UPDATE_RECEIPT`. Bytecode shows `LX/1EI;.<init>()` registers `[1]` through `C1DX`, sets superclass receipt mode `2`, uses providers `2696`, `5854`, and `2704`, and maintains an in-flight `Set` of stanza keys. `A04(C170367fl)` logs `MessageStatusUpdateReceiptHandler/onMessageStatusUpdate receipt in queue; skipping stanzaKey:` and acks skipped duplicate queued receipts. `A05(C0ZU, C170367fl)` creates receipt metrics via `C0ZM.A00(..., 1, loggableStanzaId)`, parses receipt status/update payload through `C219789jx.A03(...)`, then schedules it via `C219099ie.A03(..., 5000)` and removes the stanza key from the in-flight set. Do not confuse uppercase `X.1EI` with lowercase `X.1Ei` / `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-fallback-out\sources\p000X\C29191Ei.java`, which is a different retry-receipt coordinator. |+| Inbound presence | `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-fallback-out\sources\p000X\C36721et.java` under `AbstractC36671eo` | `AbstractC36671eo.A03()` advertises tag `presence`. `A02(...)` parses `from`, group `count`, `type`, `name`, `presence`, and last-seen timestamp, then calls `C33861Yl.A13(...)`, `A12(...)`, `A0y(...)`, or `A0x(...)`. |+| Inbound chatstate | `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-fallback-out\sources\p000X\C36681ep.java` under `AbstractC36671eo` | `AbstractC36671eo.A03()` advertises tag `chatstate`. `A02(...)` parses `from`, `participant`, child `composing` or `paused`, and optional `media`, then calls `C33861Yl.A0w(...)` or `C33861Yl.A0v(...)`. |+| Connection-thread presence/chatstate sink | `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-fallback-out\sources\p000X\C33861Yl.java` | `A0v` emits paused compose message code `21`; `A0w` emits composing message code `20` with `media`; `A0x` emits available presence code `5`; `A0y` emits unavailable presence code `64` with `lastSeen` and `presence`. |+| Outbound composing | `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-fallback-out\sources\p000X\C175167nb.java:92-180` | Builds `chatstate` to `to`, child `composing`, optional `media="audio"`, sometimes nested `bot jid`, sends through `C10830Yd.A0S(C0ZU, 4)`, and logs `HandleMeComposing/sendComposing; toJid=`. |++## Encryption And Key Management++The APK contains Signal/libsignal surfaces, but many primary interfaces decompile as stubs. Exact interface files include:++| File | Role |+|---|---|+| `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-out-smallheap\sources\org\signal\libsignal\protocol\state\IdentityKeyStore.java:1-5` | Identity-key store API surface. |+| `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-out-smallheap\sources\org\signal\libsignal\protocol\state\PreKeyStore.java:1-5` | Pre-key store API surface. |+| `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-out-smallheap\sources\org\signal\libsignal\protocol\state\SessionStore.java:1-5` | Session store API surface. |+| `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-out-smallheap\sources\org\signal\libsignal\protocol\state\SignedPreKeyStore.java:1-5` | Signed pre-key store API surface. |+| `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-out-smallheap\sources\org\signal\libsignal\protocol\groups\state\SenderKeyStore.java:1-5` | Sender-key/group encryption store surface. |++Registration attaches an E2E key bundle using `C34040Euf.A00()` as described above. Separately, XMPP prekey upload begins in `C1D8`, which builds `iq` nodes containing `registration`, `identity`, prekey `list`, signed prekey `skey`, PQ prekeys, and type `{5}` at `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-out-smallheap\sources\p000X\C1D8.java:171-232`.++Other recovered crypto surfaces:++| Area | Evidence | Meaning |+|---|---|---|+| Curve25519 / KEM | `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-out-smallheap\sources\org\whispersystems\curve25519\NativeCurve25519Provider.java`, `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-out-smallheap\sources\org\whispersystems\libsignal\kem\KEMPublicKey.java` | APK includes Curve25519 and KEM surfaces, but concrete serialization/algorithm flow was not fully readable. |+| Companion pairing | `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-fallback-out\sources\com\whatsapp\companiondevice\devices\crsc\crscv3\CompanionRegOverSideChannelV3Manager.java:267-300` | Encrypted pairing request is decrypted by `p000X.C9AC.A00(...)`, parsed as protobuf `C8CH`, and used to generate companion pairing data via `p000X.C9AB.A00(...)`. |+| Linked-device inbox key exchange | `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-fallback-out\sources\com\whatsapp\companiondevice\tethered\crypto\TetheredInboxKeyExchanger.java:4-64` and `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-fallback-out\sources\com\whatsapp\companiondevice\tethered\crypto\TetheredInboxKeyRelayImpl.java:17-60` | Uses `SecureRandom`, relays four byte arrays, and delegates exact crypto/wire details to obfuscated helpers. |+| AndroidKeyStore auth-key path | `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\protocol_string_xrefs.txt:370-375` | String xrefs show AndroidKeyStore verifying-stage reads and wrong-key/read-failed handling. |+| Signed prekey lifecycle | `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-fallback-out\sources\com\whatsapp\messaging\signal\jobqueue\job\RotateSignedPreKeyJob.java` | Entry point exists; generation/upload behavior needs deeper tracing. |+| Media encryption | `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-fallback-out\sources\com\whatsapp\media\newdownload\engine\EncryptedDownloadEngine.java` | Strong next target; exact media key/HKDF/AES flow was not fully traced here. |++## Voice Calls And Video Calls++Calling has a clearer named surface than messaging, but the media engine itself is native. The main Java/native boundary is `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-out-smallheap\sources\p000X\C0WH.java:24-251`; it exposes accept/reject/end calls, group join/invite, call links, signaling HTTP ingest, callback registration, data channel, video capture/render, camera, proxy/network updates, and rekey. Native VoIP constants/callback registration are visible in `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-fallback-out\sources\com\whatsapp\calling\voipcalling\Voip.java:4-153`, with JNI helper dependencies in `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-fallback-out\sources\com\whatsapp\calling\voipcalling\JNIUtils.java:7-30`.++Signaling splits into XMPP call stanzas and HTTP/TEE signaling:++| Path | Evidence | Format |+|---|---|---|+| XMPP call signaling | `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-out-smallheap\sources\com\whatsapp\calling\infra\voipcalling\SignalingXmppCallback.java:7-9` | `sendCallStanza(Jid, String, VoipStanzaChildNode)` |+| HTTP/TEE signaling | `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-out-smallheap\sources\com\whatsapp\calling\infra\voipcalling\SignalingHttpCallback.java:6-11` | `sendMsg(String, byte[], int)`, where request type `0` is voice session and `1` is codec avatar |+| VoIP child-node model | `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-out-smallheap\sources\com\whatsapp\infra\protocol\VoipStanzaChildNode.java:14-263` | call-stanza node with `tag`, `attributes`, `children`, `data`, convertible to/from protocol tree nodes |++Outbound call-stanza encryption is visible in fallback `OutgoingSignalingHandler`: it rewrites `enc` nodes, rewrites `destination` children, detects encrypted `pkmsg` payloads, creates per-destination encrypted stanza children, and bulk-encrypts E2E keys for destination devices in `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-fallback-out\sources\com\whatsapp\calling\service\OutgoingSignalingHandler.java:79-254`.++Call state models:++| File | Recovered role |+|---|---|+| `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-out-smallheap\sources\com\whatsapp\calling\infra\voipcalling\CallInfo.java:27-144` | central call state: call ID, relay UUID, call-link fields, creator/peer/group JIDs, group-call flags, video flags, byte counts, EC mode, E2EE flag, phash, screen sharer info |+| `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-out-smallheap\sources\com\whatsapp\calling\infra\voipcalling\CallOfferInfo.java:8-61` | incoming offer fields: call ID, sender, group, video flag, joinable call, call-link token, audio chat, group phash, participant hash |+| `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-out-smallheap\sources\com\whatsapp\calling\infra\voipcalling\CallLogInfo.java:9-39` | call-log record: initial peer, result type, tx/rx bytes, device-switch termination, group-call logs |++Voice vs video differences are visible at the Java boundary. Voice uses the audio device factory at `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-out-smallheap\sources\com\whatsapp\calling\audio\VoipSystemAudioDeviceFactory.java:4-10` and audio sampling helpers in `JNIUtils`. Video adds `VideoPort`, camera, codec, foreground service type, and render/capture callbacks: `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-out-smallheap\sources\com\whatsapp\calling\infra\videoport\VideoPort.java:14-100`, `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-out-smallheap\sources\com\whatsapp\calling\camera\VoipPhysicalCamera.java:78-177`, and H.264/H.265/WebRTC feature gates in `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-fallback-out\sources\com\whatsapp\calling\voipcalling\JNIUtils.java:211-280`, `:335-340`, `:476-481`, `:1114-1117`, and `:1332-1340`.++Call crypto surfaces:++| Evidence | Meaning |+|---|---|+| `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-out-smallheap\sources\com\whatsapp\calling\infra\crypto\CryptoCallback.java:4-14` | native VoIP expects callbacks for E2E key generation, random bytes, secure SSRC, HKDF-SHA256, and HMAC-SHA256. |+| `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-fallback-out\sources\com\whatsapp\calling\voipcalling\Voip.java:8-15` | reject reason `enc`; rekey message ID `call_rekey`. |+| `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-out-smallheap\sources\p000X\C0WH.java:153-171` | registers crypto/data-channel/HTTP/XMPP callbacks; exposes rekey and resend-offer-on-decryption-failure boundaries. |+| `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-fallback-out\sources\com\whatsapp\calling\voipcalling\VoipEventCallback.java:149` | `rejectedDecryptionFailure(DeviceJid, String, byte[], int)` callback. |++Relay/proxy/TURN/STUN note: exact TURN/STUN hostnames were not found in the Java files read. Java exposes relay/proxy/network controls and callbacks: `relayCallUuid` in `CallInfo`, privacy relay checks in `JNIUtils`, proxy helpers, relay bind failure callback, multipath/network updates, and alternative socket/network methods. Actual RTP/WebRTC/TURN/STUN selection appears to be native or config-driven.++## Remaining Boundaries++- Exact GraphQL operation schemas require persisted query IDs / generated GraphQL models. The APK reveals endpoint owners but not a complete operation catalog in a clean form.+- Crash minidump, Profilo trace, and some telemetry payload packaging enter native/shared upload code. Java exposes service/method boundaries and some method signatures, but not full binary body schemas.+- Message receive-side mapping is mostly traced through obfuscated APK classes, including decrypt dispatch, plaintext protobuf parsing, local message construction, and the main-message database layer. The former case-collision seams for uppercase `X.1EI` and lowercase `X.AMx` are now bytecode-resolved; remaining gaps are provider-array decoding for sets `7247`, `7278`, and `7327`, plus deeper semantic mapping of helper providers such as `2696`, `5854`, and `2704` behind message-state receipts.+- Signal/session/prekey/sender-key storage interfaces are present, but concrete store schemas are obfuscated or native/shared.+- Call media transport and encryption internals are mostly behind `Voip`/JNI/native media engine boundaries; Java shows callbacks, key derivation hooks, and signaling wrappers, not the full RTP/SRTP implementation.+- Some DEX xref class names collide with JADX deobfuscated filesystem names. For those, the DEX owner signature is more reliable than the Java filename.+- The generated 805-candidate inventory at `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\full_endpoint_inventory.csv` includes many SDK docs/store URLs and allowlist hosts; this document focuses on network-relevant endpoints and protocol flows with reverse-slice evidence.
communicate/whatsapp-feature-coverage.md
diff --git a/communicate/whatsapp-feature-coverage.md b/communicate/whatsapp-feature-coverage.mdnew file mode 100644index 0000000000..d2c037a212--- /dev/null+++ b/communicate/whatsapp-feature-coverage.md@@ -0,0 +1,81 @@+# WhatsApp APK Feature Coverage Matrix++This file tracks how complete the reverse-engineering coverage is for the WhatsApp APK pulled from the connected Android device. It is intentionally a coverage matrix, not a polished spec: each row separates what was traced, what evidence exists, and what is still missing.++Artifacts used:++- Main documentation: `C:\Users\Vayun\Documents\code\Modern-Apps\whatsapp-documentation.md`+- Main JADX output: `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-out-smallheap`+- Fallback JADX output: `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-fallback-out`+- Endpoint DEX xrefs: `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\dex_string_xrefs.txt`+- Protocol DEX xrefs: `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\protocol_string_xrefs.txt`+- Package inventory: `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\package_feature_inventory.txt`+- Feature keyword scan: `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\feature_signal_scan.txt`++Status meanings:++| Status | Meaning |+|---|---|+| Traced | We have a coherent code-backed flow with concrete local file/line evidence. |+| Partially traced | We have important boundaries/models, but not the full end-to-end implementation. |+| Evidence only | We have package/string/model evidence but have not traced the flow. |+| Not traced | Not yet analyzed beyond general APK/package awareness. |++## Coverage Matrix++| Feature area | Status | What is documented now | Primary evidence | Main gaps |+|---|---|---|---|---|+| Endpoint inventory | Traced | Network-relevant endpoints, DEX owner methods, input/output where visible. | `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\dex_string_xrefs.txt`; `C:\Users\Vayun\Documents\code\Modern-Apps\whatsapp-documentation.md` | Full generated inventory still contains noisy SDK/store/allowlist URLs. |+| Registration / OTP / account verification | Traced | `/v2/code`, `/v2/register`, `/v2/security`, `/v2/exist`, passkey, account-defence, request/response fields, E2E key-bundle attachment. | `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-out-smallheap\sources\com\whatsapp\registration\core\http\KotlinRegistrationBridge.java`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-fallback-out\sources\com\whatsapp\registration\core\http\retry\RetryingHttpClient.java` | UI/state-manager callers and final account-state persistence are not fully traced. |+| Message send transport | Partially traced | XMPP protocol-tree nodes, JNI boundary, low-level `sendXmpp`, ackable stanza tracking, receipt/ack handling. | `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-out-smallheap\sources\p000X\C0ZU.java`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-out-smallheap\sources\p000X\C10830Yd.java`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-out-smallheap\sources\com\whatsapp\infra\protocol\ProtocolJniHelper.java` | High-level message composer, protobuf model, encryption call site, and store integration still need class mapping. |+| Message receive / decrypt / store | Partially traced | Low-level ingress/routing boundary is explicit: protocol-tree/XMPP ingress posts Android `Message` objects through `C17U.A04(...)` to `C17Y.handleMessage(...)`; recvType `0` is labelled `MESSAGE_FOR_ME`; legacy dispatch uses injected `InterfaceC11850av` handlers from DI set `7247` via `Af1()`/`B7t(Message, recvType)`, while the newer direct dispatch path maps recvType `0` to `C50456Mqy.A0W` provider id `6323`. Provider id `6323` resolves to obfuscated `X.1Fw`, whose real JADX file is `C29581Fw.java` (`renamed from: X.1Fw`), not unrelated uppercase `C1Fw.java` / `X.1FW`. `C29581Fw.B7t(Message, 0)` casts `message.obj` to `XmppRecvMessage.RecvMessageForMe` / `C210359Jk`, unwraps `C8YL` parsed-message metadata and `C1YF` stanza wrapper, then runs `AL2` case `29`. `AL2` logs `MessageForMeXmppHandler/onMessageForMe`, preprocesses through `C219459jM.A06(...)`, creates `ADY` / `MessageDecryptionValues`, duplicate-guards stanza attrs in `C215869d0.A08`, and schedules `C215869d0.A00(...)`. `C215869d0.A00(...)` submits `RunnableC23480AMk` discriminator `7`; case `7` calls `C194848in.A08(...)`, the `DecryptMessageRunnable` path in `AbstractC220419l8`. Concrete decrypt dispatch is now visible: `AbstractC220419l8` calls `C9RC.A00(...)`; ciphertext type `0` goes to `C12200bV.A0L(...)` individual session decrypt and `C220209ki.A05(...)`, type `1` goes to `C12200bV.A0M(...)` prekey decrypt and `C220209ki.A04(...)`, type `2` goes to `AbstractC218429hS.A00(...)` group sender-key decrypt, and type `4` goes to a bot/message-secret path. `C220209ki` contains SessionCipher-style ratchet, HMAC-SHA256 MAC verification, and AES/CBC or AES/CTR decrypt logic; `AbstractC218429hS` parses sender-key messages, checks counters and signing keys, decrypts with `AES/CBC/PKCS5Padding`, calls `InterfaceC23823AbO.B7c(byte[])`, and persists sender-key state. `C216259dd` is the decrypt result object (`A00` status, `A01` plaintext), with `AbstractC208169Aw` wrapping padding removal and status/error mapping. Plaintext flows into `A4F` / `DecryptionCallbackV2`, which strips Axolotl padding, parses `C186228Gt`, handles `DeviceSentMessage`, and calls `C216729eT.A01(...)` / `SharedMessageProcessor`. `C216729eT` builds `C1G9`/`C1Qu` message objects, enriches HSM/interactive/template context, calls `A58`, `C39321jB`, and `C219909kC`, then reaches `AbstractC169987f9.A0u(...)`, a shim into `C39111ip.A01(C1G9, ADY, C8YL)`. `C39111ip.A00(...)` is the incoming store lifecycle manager: it logs `IncomingMessageManager/notifyBeforeIncomingMessageStored`, runs `C1A5.ABg(...)` listener gates, processes `C41451mf` decrypted-message processor set `7327`, calls `C279219e.A07/A08/A09/A0D` as the `CoreMessageStore/writeMessageToDatabase` coordinator, and later notifies `IncomingMessageManager/notifyAfterIncomingMessageStored`. The concrete insert edge is bytecode-backed: `C18G.A07(C1G9)` opens a DB transaction, constructs `C165527Tn` / `X.7Tn` with discriminator `39`, and `X.7Tn` case `39` gets `C1AC` from provider `C18J.A02` and calls `C1AC.A0A(C1G9)`. `C1AC.A0A(C1G9)` logs `MainMessageStore/insertMainMessage`, builds `ContentValues`, writes the `message` table through `INSERT_MESSAGE_MAIN_SQL` or `INSERT_MESSAGE_MAIN_WITH_ROW_ID_SQL`, and stores row ids/sort ids; `C1AC.A0B(...)` handles main-message update/broadcast paths. `RunnableC23493AMx` / `X.AMx` case `48` is now resolved as rollback cleanup, not the insert callback: it logs `CoreMessageStore/addmsg/outer transaction rollback` and cleans `C279219e.A0U` after `C279219e.A0D(...)` failures. Receipt recvTypes are mapped: provider `4086` allocates `C1DY` for recvType `221` / `PEER_MESSAGE_RECEIPT`; provider `2673` allocates uppercase DEX class `LX/1EI;` for recvType `1` / `MESSAGE_STATE_UPDATE_RECEIPT`. Bytecode for `LX/1EI;` shows it registers `[1]`, superclass receipt mode `2`, providers `2696`/`5854`/`2704`, in-flight stanza-key de-duping, `MessageStatusUpdateReceiptHandler/onMessageStatusUpdate receipt in queue; skipping stanzaKey:` logging, receipt status parsing through `C219789jx.A03(...)`, and scheduling through `C219099ie.A03(..., 5000)`. Uppercase `X.1EI` must not be confused with lowercase `X.1Ei` / `C29191Ei.java`. | `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\protocol_string_xrefs.txt`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-out-smallheap\sources\p000X\C0ZU.java:55-410`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-out-smallheap\sources\p000X\C10830Yd.java:69-91`, `:504-586`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-fallback-out\sources\p000X\InterfaceC11850av.java:5-8`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-fallback-out\sources\p000X\C17U.java:91-96`, `:228-329`, `:622-823`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-fallback-out\sources\p000X\C17Y.java:19-215`, `:497-616`, `:843-844`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-fallback-out\sources\p000X\C50456Mqy.java:106-138`, `:262-264`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-fallback-out\sources\p000X\C29581Fw.java:3-60`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-fallback-out\sources\p000X\AL2.java:455-544`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-fallback-out\sources\p000X\C215869d0.java:51-80`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-fallback-out\sources\p000X\RunnableC23480AMk.java:96-153`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-fallback-out\sources\p000X\C194848in.java:80-164`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-fallback-out\sources\p000X\AbstractC220419l8.java:142-311`, `:980-1085`, `:1517-1668`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-fallback-out\sources\p000X\C9RC.java`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-fallback-out\sources\p000X\C12200bV.java`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-fallback-out\sources\p000X\C220209ki.java`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-fallback-out\sources\p000X\AbstractC218429hS.java`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-fallback-out\sources\p000X\C216259dd.java`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-fallback-out\sources\p000X\AbstractC208169Aw.java`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-fallback-out\sources\p000X\A4F.java:44-199`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-fallback-out\sources\p000X\C216729eT.java:90-165`, `:239-322`, `:650-743`, `:866-888`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-fallback-out\sources\p000X\AbstractC169987f9.java`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-fallback-out\sources\p000X\C39111ip.java`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-fallback-out\sources\p000X\C41451mf.java`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-fallback-out\sources\p000X\C279219e.java:2170-2460`, `:3400-3550`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-fallback-out\sources\p000X\C18G.java:620-675`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-fallback-out\sources\p000X\C165527Tn.java:318-355`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-fallback-out\sources\p000X\RunnableC23493AMx.java:447-469`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-fallback-out\sources\p000X\C1AC.java:579-1089`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\bytecode_target_methods.txt:2-117`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\bytecode_7Tn.txt` | Optional provider-array decoding for listener set `7278`, processor set `7327`, handler set `7247`, and message-state receipt helper providers `2696`, `5854`, `2704`. |+| E2EE / Signal keys | Partially traced | Signal store API surfaces, registration key bundle fields, prekey upload boundary, AndroidKeyStore evidence, linked-device pairing crypto boundaries. | `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-out-smallheap\sources\org\signal\libsignal\protocol\state`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-fallback-out\sources\p000X\C34040Euf.java`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-out-smallheap\sources\p000X\C1D8.java` | Concrete store schemas, message encryption/decryption internals, sender-key/group encryption, media-key derivation. |+| Voice calls | Partially traced | XMPP signaling, HTTP/TEE signaling, call models, native VoIP boundary, call crypto callbacks. | `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-out-smallheap\sources\p000X\C0WH.java`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-out-smallheap\sources\com\whatsapp\calling\infra\voipcalling`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-fallback-out\sources\com\whatsapp\calling\service\OutgoingSignalingHandler.java` | Native media engine, RTP/SRTP, relay/TURN/STUN resolution. |+| Video calls / screen share | Partially traced | VideoPort, camera, codec support gates, foreground service camera/media-projection behavior. | `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-out-smallheap\sources\com\whatsapp\calling\infra\videoport\VideoPort.java`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-out-smallheap\sources\com\whatsapp\calling\camera\VoipPhysicalCamera.java`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-fallback-out\sources\com\whatsapp\calling\voipcalling\JNIUtils.java` | Native encoder/media transport details and video-specific signaling body. |+| Crash/perf telemetry | Traced | QPL, crashlogs, Profilo, WhatsOn upload endpoints and method boundaries. | `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\dex_string_xrefs.txt`; `C:\Users\Vayun\Documents\code\Modern-Apps\whatsapp-documentation.md` | Native minidump/profilo binary schema. |+| Static stickers / Giphy | Partially traced | Sticker endpoints, Giphy endpoints, sticker/sticker-pack models, metadata JSON, and local WebP/animated sticker file creation. | `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-out-smallheap\sources\p000X\C114864z2.java`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-out-smallheap\sources\p000X\C111014sR.java`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-out-smallheap\sources\p000X\C112594vE.java`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-out-smallheap\sources\com\whatsapp\mediacomposer\sticker\StickerFileCreator.java:62-307` | Exact Giphy query-builder Java body, sticker-send path, and all sticker catalog parsers. |+| Payments static metadata and transactions | Partially traced | Static UPI/remittance/biller endpoints, payments GraphQL hosts, secure Facebook token endpoint, regional payment packages, Brazil PIX review/complete intent contracts, Brazil PIX passkey/app-switch precheck boundary, payment invite XMPP notification stanza, global order payment action model construction, and India UPI MPIN GraphQL mutation. `SendPaymentInviteSetupJob` sends a `notification` child `invite` with `type=account-set-up`, `service=FBPAY/NOVI/UPI`, and `invite-used`; India UPI change MPIN uses operation `SetUpiChangeMpin`, source `whatsapp-android-www`, input root `request` with `credential_fbid`, `device_id`, `new_mpin`, `old_mpin`, `seq_no`, `upi_bank_info`, `vpa`. Brazil PIX review hydrates `BrazilGetPixBankListViewModel` and `A0a(...)` goes through `PasskeyPaymentsEnabler` app-switch/passkey challenge precheck. Global order `C30452DRf.A0b(...)` maps payment methods to `payment_instruction`, `confirm`, `payment_link`, `pix`, `boleto`, `offsite_card_pay`, then `CDi`/`CTd` delegate send/persist to `InterfaceC36585Fx1`. | `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\dex_string_xrefs.txt`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\endpoint_candidates_curated.txt`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-fallback-out\sources\com\whatsapp\payments\productinfra\jobqueue\job\SendPaymentInviteSetupJob.java:91-170`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-fallback-out\sources\com\whatsapp\payments\indiaupi\common\graphql\IndiaUpiChangeMpinGraphqlManager$changeMpin$1.java:67-119`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-fallback-out\sources\com\whatsapp\payments\brazilpay\p126ui\BrazilCompleteTransactionActivity.java:106-260`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-fallback-out\sources\com\whatsapp\payments\brazilpay\p126ui\BrazilReviewPaymentActivity.java:71-285`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-fallback-out\sources\com\whatsapp\payments\brazilpay\p126ui\BrazilReviewPaymentBottomSheet.java:5-280`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-fallback-out\sources\com\whatsapp\payments\brazilpay\p126ui\viewmodel\BrazilGetPixBankListViewModel.java:151-260`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-fallback-out\sources\com\whatsapp\payments\globalorder\p129ui\GlobalPaymentOrderDetailsActivity.java:136-235`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-fallback-out\sources\p000X\C30452DRf.java:160-264`, `:427-444` | Deep payment transaction submit/auth flows, Brazil PIX network sender beyond `PasskeyPaymentsEnabler`/`RunnableC35253Fa6`/`AbstractC30410DPl`, UPI pay/collect/auth local APK classes, `InterfaceC36585Fx1` implementors, settlement, risk, and full server response models. |+| Catalog / business metadata | Partially traced | Catalog web metadata JSON, media-host use, business catalog UI, fallback catalog GraphQL services, Flows bridge helpers, and `FlowsCompleteCatalog` order creation mutation. `FlowsCompleteCatalog.A00(...)` builds GraphQL input `input.order` with `jid`, `products`, `direct_connection_encrypted_info`, `direct_connection_endpoint_version`, then calls operation `WAWebBizCreateOrderJobMutation` with source `whatsapp-android-www`. `C42355Ihm` helpers read cart through `C40886HwO.A0A(UserJid)`, parse forwarded product bridge data into `HYC.A00`, and fetch profile/contact display data. Catalog GraphQL service maps success/error/failure wrappers and retries direct connection on GraphQL error `421`, mapping direct-connection refresh failure to `422`. | `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-out-smallheap\sources\com\whatsapp\catalog\product\biz\webview\CatalogWebMetaDataRepository.java`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-fallback-out\sources\com\whatsapp\catalog\webview\bridge\factory\impl\FlowsCompleteCatalog.java:46-194`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-fallback-out\sources\p000X\C42355Ihm.java:553-602`, `:603-615`, `:1170-1189`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-fallback-out\sources\com\whatsapp\catalog\biz\network\graphql\service\impl\BaseCoroutineGraphQLRequestService.java:46-141`, `:552-795`, `:1273-1360` | Exact product/catalog/list operation names/doc IDs, get/set/clear cart full bridge bodies, quick replies, labels, ads, B2C messaging flows, and order response model mapping beyond wrapper `HPa`/`GkE`. |+| WhatsApp Flows | Partially traced | Config endpoints, cache cleaner initialization, commerce flow app IDs, catalog/cart bridge classes, order completion bridge mutation, and helper bodies for get-cart/forward-product/share-product/profile display. Some bridge classes are thin DI wrappers, while execution dispatch lives in `AbstractC40701Hs4` and helper coroutines such as `C42355Ihm`. | `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-out-smallheap\sources\p000X\C047207o.java`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-out-smallheap\sources\p000X\C9P5.java`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\dex_url_strings.txt:107`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-fallback-out\sources\com\whatsapp\catalog\webview\bridge\factory\impl\FlowsCompleteCatalog.java:46-194`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-fallback-out\sources\p000X\C42355Ihm.java:553-615`, `:1170-1189` | Runtime flow request/response schemas, generated bridge registry/superclass behavior, set/clear cart full implementations, and non-commerce flow execution protocol. |+| Media upload/download/encryption | Partially traced | Upload path traced through `SendMediaMessageManager` -> `MediaUploadCoordinatorImpl` -> plugin preprocessing -> `C5TT`/`C5Tq` -> `LMX` MediaUploadCore -> `C46441Kmn`. Upload-side media key and encryption preparation are visible: `C46667Krj.A03` media-key bytes feed `InterfaceC48422LpB.Ai8().AJy(...)` for derived keys and `InterfaceC48422LpB.Abf(...)` for stream encrypter; derived tuple maps to cipher key, MAC key, and IV. `AbstractC36311dw` implements HKDF-expand with `HmacSHA256`; `C46790Kuj` wraps plaintext and encrypted streams with SHA-256 digests; hash model distinguishes plaintext hash, encrypted hash, media-key result, and base64 plaintext SHA-256. DirectPath/url/resume fields are visible, fallback media host `https://mmg.whatsapp.net` appears in URL generation, and resume checks go through `KU1`/`KUn`/`C46319KkA`. Download side shows direct path/url/media key, hash verification, HTTP download, and output streaming. | `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-fallback-out\sources\com\whatsapp\media\SendMediaMessageManager.java:160-224`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-fallback-out\sources\com\whatsapp\media\upload\newinfra\coordinator\MediaUploadCoordinatorImpl.java:82-260`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-fallback-out\sources\p000X\LMX.java:27-98`, `:222-685`, `:531-552`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-fallback-out\sources\p000X\C46441Kmn.java:207-381`, `:552-697`, `:954-1208`, `:1413-1621`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-fallback-out\sources\p000X\InterfaceC48422LpB.java:5-8`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-fallback-out\sources\p000X\InterfaceC48340LnV.java:5-6`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-fallback-out\sources\p000X\InterfaceC48341LnW.java:5-6`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-fallback-out\sources\p000X\AbstractC36311dw.java:19-59`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-fallback-out\sources\p000X\C46790Kuj.java:102-116`, `:258-286`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-fallback-out\sources\p000X\C45848KaQ.java:91-121`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-fallback-out\sources\p000X\C45711KUn.java:46-108`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-fallback-out\sources\p000X\LWF.java:139-199`, `:259-267`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-fallback-out\sources\p000X\LLB.java:74-132` | Exact lower-level HTTP upload request body/headers/multipart boundary in missing or case-collided `X.Kam` path; concrete AES stream implementation behind `InterfaceC48341LnW.AN1(...)`; concrete `InterfaceC48422LpB` implementation/provider binding. |+| Status / stories | Partially traced | Status media upload plugin and status prefetch delegate traced; status composer/privacy/story lifecycle still incomplete. | `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-fallback-out\sources\com\whatsapp\media\upload\newinfra\plugin\status\StatusMediaUploadPlugin.java:32-155`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-out-smallheap\sources\com\whatsapp\status\dualupload\StatusPrefetchDelegateEngine.java:35-149` | Status composer/send model, privacy selection, view receipts, expiration/lifetime, and receive pipeline. |+| Groups | Partially traced | Community subgroup suggestion flow traced through `w:g2` IQ stanzas with `sub_group_suggestion`, selected subgroup list handling, and success/failure parsing. | `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-out-smallheap\sources\com\whatsapp\community\group\CreateSubGroupSuggestionProtocolHelper.java:71-145`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-fallback-out\sources\p000X\C31808DtK.java:52-70`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-fallback-out\sources\p000X\C31785Dsx.java:11-38` | Classic group lifecycle remains incomplete: create/update group, participant/admin changes, invite links, sender-key group crypto, group receipts. |+| Communities | Partially traced | Community subgroup fetch has both classic protocol helper and GraphQL/MEX paths; subgroup member count uses MEX query and local polling settings. | `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-out-smallheap\sources\com\whatsapp\community\group\GetSubgroupsManager.java:137-143`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-fallback-out\sources\com\whatsapp\community\mex\GetSubgroupsGraphQlHandler.java:56-72`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-fallback-out\sources\com\whatsapp\community\mex\GetSubgroupMemberCountGraphQlHandler.java:55-69`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-out-smallheap\sources\p000X\AnonymousClass321.java:9-70` | Community metadata/settings, announcements, permissions, migration, and full classic group management. |+| Channels / newsletters | Partially traced | Transport split is clear. Metadata/admin/followers/delete/update/reaction-senders and directory use MEX/Pando persisted GraphQL via `C21900sl`/`C21940sp`/`C22050t0`, source `whatsapp-android-mex`, with doc IDs loaded from local APK asset `whatsapp-android-mex_client_persist_ids.json`. Message/status retrieval and updates use legacy IQ/chatd through `C10830Yd`, `C31809DtL`, and `DIp.A15(...)`. Confirmed GraphQL operations include `NewsletterMetadata`, `NewsletterDelete`, `NewsletterAdminMetadataQuery`, `NewsletterFollowers`, `NewsletterReactionSendersList`, `NewsletterMetadataUpdate`, plus directory operations: `NewsletterDirectoryCategoryPreview` doc `27432651036395658`, `NewsletterDirectoryList` doc `27480627564903390`, and `NewsletterDirectorySearch` doc `27887355094203575`. Directory list inputs include `country_codes`, `categories`, `view`, `limit`, `start_cursor`, `filters`, optional `session_fields`, `use_personalization`, and fetch flags; search inputs include `search_text`, `limit`, `start_cursor`, `categories`, optional `session_fields`; category preview inputs include `categories`, `per_category_limit`, and `country_code`. Directory outputs converge on result lists, `page_info.endCursor`, vertical metadata, or category preview lists. IQ/chatd callback parser `C34805FIw` maps message updates, message my-add-ons, status updates, status lists, and status my-add-ons; status updates parse `status_updates/statuses`, statuses validate `result`/`id` and parse `statuses`, and status my-add-ons wraps response in `Dtf`. | `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-out-smallheap\resources\assets\whatsapp-android-mex_client_persist_ids.json`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-out\resources\assets\whatsapp-android-mex_client_persist_ids.json:778-801`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-out-smallheap\sources\com\whatsapp\newsletter\job\BaseMetadataNewsletterGraphqlJob.java:86-135`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-fallback-out\sources\com\whatsapp\newsletter\mex\DeleteNewsletterGraphqlJob.java:60-72`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-fallback-out\sources\com\whatsapp\newsletter\mex\GetNewsletterAdminMetadataJob.java:59-118`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-fallback-out\sources\com\whatsapp\newsletter\mex\NewsletterFollowersGraphqlJob.java:65-90`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-fallback-out\sources\com\whatsapp\newsletter\mex\NewsletterReactionSendersGraphqlJob.java:70-89`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-fallback-out\sources\com\whatsapp\newsletter\mex\UpdateNewsletterGraphqlJob.java:197-236`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-fallback-out\sources\com\whatsapp\newsletter\directory\job\NewsletterDirectoryV2ListGraphqlJob.java:184-194`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-fallback-out\sources\com\whatsapp\newsletter\directory\job\NewsletterDirectoryV2SearchGraphqlJob.java:92-103`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-fallback-out\sources\com\whatsapp\newsletter\directory\job\NewsletterDirectoryCategoriesPreviewGQLJob.java:156-168`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-fallback-out\sources\p000X\C47657LXd.java:779-788`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-fallback-out\sources\p000X\C47963Lfw.java:66-103`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-fallback-out\sources\p000X\JFU.java`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-fallback-out\sources\p000X\C43722JFa.java`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-fallback-out\sources\p000X\JFS.java`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-out-smallheap\sources\com\whatsapp\newsletter\messages\job\GetNewsletterMessagesJob.java:117-181`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-out-smallheap\sources\com\whatsapp\newsletter\messages\job\GetNewsletterMessagesUpdatesJob.java:70-123`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-out-smallheap\sources\com\whatsapp\newsletter\status\job\GetNewsletterStatusesJob.java:151-179`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-fallback-out\sources\p000X\C34805FIw.java:24-74`, `:891-1037`, `:1062-1142`, `:1195-1425` | Resolve case-collided `JFq` individual newsletter metadata parser, status cursor helpers, subscribe/send/read/admin/moderation bodies, and channel message/status models beyond callback envelopes. |+| Contacts / contact sync | Evidence only | Android contact permissions and sync adapter service are confirmed; actual usync/contact protocol implementation unresolved. | `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-out-smallheap\resources\AndroidManifest.xml:208-216`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-out-smallheap\sources\com\whatsapp\contact\p044ui\sync\ContactsSyncAdapterService.java:11-17` | Address book hashing/upload, contact discovery, sync deltas, injected sync adapter implementation. |+| Presence / typing / receipts | Partially traced | Receipts are traced at both job and inbound-handler levels. Receipt jobs persist key IDs, key remote chat JIDs, from-me flags, remote/recipient/participant device JIDs, status, timestamp, receipt privacy mode, deferral count, duration, and `useStatusInfra`; jobs build `ABa`/`ABZ`/`ABY` request objects and send via status-infra `C213779Yh.A00(...)` or regular `C219099ie.A02(...)`. Aggregated receipts explicitly build a stanza key with `cls="receipt"`. Low-level stanza key model `C170367fl` maps `remoteJid`, `cls`, `id`, `type`, `category`, `participant`, `recipient`, and `loggableStanzaId`; `AbstractC170307ff.A03(...)` parses receipt `category`, `recipient`, `edit`, `from`, `id`, `participant`, and defaults class/type to `receipt`/`delivery`. Inbound router maps recvType `1` to `MESSAGE_STATE_UPDATE_RECEIPT` and `221` to `PEER_MESSAGE_RECEIPT`. RecvType `1` is bytecode-resolved as uppercase DEX class `LX/1EI;`, allocated by provider `2673`, registering `[1]`, superclass receipt mode `2`, providers `2696`/`5854`/`2704`, in-flight stanza-key de-duping, receipt status/update parsing through `C219789jx.A03(...)`, and scheduling through `C219099ie.A03(..., 5000)`. RecvType `221` is concrete: provider `4086` allocates `C1DY`, `C1DY` extends `C1DX`, inherited `Af1()` returns `[221]`, `C1DX.B7t(...)` unwraps `C1YF.AoZ()`, parses `C170367fl`, runs `AL0` case `13`, and `C1DY.A05(...)` schedules `RunnableC23488AMs` / `X.AMs` case `17`. `AMs` case `17` logs `PeerMessageReceiptHandler/handleDeliveryReceipt`, resolves the peer `DeviceJid` and message id from `C170367fl`, looks up the message through `C1DZ.A01` / `C16220iv.A04(peerDevice, msgId)`, skips history-sync notification messages through `C16030ia.A0L(...)`, updates placeholder retry timestamps when needed, and marks the message row through `C16220iv.A06(rowId)`. Presence and chatstate are not `InterfaceC11850av` recvType handlers in this layer; they are generic stanza handlers under `AbstractC36671eo`. `C36721et` (`renamed from: X.1et`) owns inbound `presence`: `AbstractC36671eo.A03()` advertises tag `presence`, `A02(...)` parses `from`, group `count`, `type`, `name`, `presence`, and last-seen timestamp, then calls `C33861Yl.A13(...)` for group count, `A12(...)` for unavailable group presence, `A0y(...)` for unavailable contact presence, or `A0x(...)` for available contact presence. `C36681ep` (`renamed from: X.1ep`) owns inbound `chatstate`: `A03()` advertises tag `chatstate`, `A02(...)` parses `from`, `participant`, child `composing` or `paused`, and optional `media`, then calls `C33861Yl.A0w(...)` or `C33861Yl.A0v(...)`. `C33861Yl` / `X.1Yl` is the connection-thread request facade: `A0v` logs `ConnectionThreadRequestsImpl/compose/paused` and emits Android message code `21` with `jid`/`author`; `A0w` logs `ConnectionThreadRequestsImpl/compose/composing` and emits code `20` with `jid`/`author`/`media`; `A0x` logs `ConnectionThreadRequestsImpl/presence/available` and emits code `5` with `jid`/`pushName`; `A0y` logs `ConnectionThreadRequestsImpl/presence/unavailable` and emits code `64` with `jid`/`pushName`/`lastSeen`/`presence`. Outbound composing is concrete in `C175167nb.A01(...)`: it builds a `chatstate` stanza addressed with `to`, child `composing`, optional `media="audio"`, and sometimes a nested `bot jid`; it sends through `C10830Yd.A0S(C0ZU, 4)` and logs `HandleMeComposing/sendComposing; toJid=`. | `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-out-smallheap\sources\p000X\C10830Yd.java:504-585`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-fallback-out\sources\com\whatsapp\xmpp\jobqueue\job\ReceiptProcessingJob.java:21-70`, `:114-172`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-fallback-out\sources\com\whatsapp\xmpp\jobqueue\job\ReceiptMultiTargetProcessingJob.java:21-72`, `:123-177`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-fallback-out\sources\com\whatsapp\xmpp\jobqueue\job\ReceiptAggregatedByIdProcessingJob.java`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-out-smallheap\sources\p000X\C170367fl.java`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-fallback-out\sources\p000X\AbstractC170307ff.java:1-109`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-fallback-out\sources\p000X\C1DX.java:55-174`, `:176-220`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-fallback-out\sources\p000X\C1DY.java:1-42`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-fallback-out\sources\p000X\C1DZ.java:1-39`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-fallback-out\sources\p000X\AL0.java:120-180`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-fallback-out\sources\p000X\RunnableC23488AMs.java:1353-1419`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\bytecode_target_methods.txt:2-117`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-fallback-out\sources\p000X\AbstractC36671eo.java:266-337`, `:540-605`, `:648-760`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-fallback-out\sources\p000X\C36681ep.java:1-14`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-fallback-out\sources\p000X\C36721et.java:1-21`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-fallback-out\sources\p000X\C33861Yl.java:149-195`, `:720-795`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-fallback-out\sources\p000X\C175167nb.java:92-180`; `C:\Users\Vayun\Documents\code\Modern-Apps\apk-analysis\whatsapp\jadx-fallback-out\sources\p000X\C17Y.java:38-215` | Remaining unresolved: exact stanza serialization behind `ABa`/`ABZ`/`ABY`, semantic names for uppercase `X.1EI` helper providers `2696`/`5854`/`2704`, outbound paused/unavailable/available builders beyond the connection-thread message facade, privacy gates for last-seen/online, and provider registration details for the `AbstractC36671eo` stanza handler set. |+| Backups / restore | Partially traced | Google backup service, Android/Google backup 

Diff truncated.