Status at a glance
This table exists so a future update can change just the relevant row without rewriting the rest of the page. The first ten rows are resolved as originally framed. One of them (established-account reconnect block) grew a narrower follow-on question of its own, whether reconnect still worked after a security fix swapped part of theta blob for empty placeholders, and that follow-on is now also resolved (confirmed working against the shipped code, August 2026; since the 1.0.370 follow-up the iOS ta fills those fields again, static-analysis-only); the caveat below is kept for the record. The rows after the first ten come from the 1.0.364 pass; the open ones are detailed in Open questions. If a future finding reopens or closes an item, update its row and status here rather than adding a separate list.
Full coverage analysis (1.0.364)
In October 2026, eleven analysis agents went through the whole 1.0.364 APK with one rule: every unit gets accounted for. All of it is static analysis; a fact counts as live only where a line says so.Method
- A ledger of units. A script enumerated every unit of the APK into six ledgers: Lua modules, data tables, C# assemblies, Java packages, native libraries, and other files (resources, asset containers, manifests). That’s 22,401 units. Each agent claimed its units by group, and a checker verified that every unit was claimed. The final check reported
covered 22401/22401with no problems. Its 11 “large group” flags are templated families (generatedMessageclasses, Android resource directories, thelw_monstersplit tables), listed for review, not failures. - Four levels of coverage. Every unit reached the first two:
- Decompiled or parsed into readable source or structured data: all 18,733 Lua modules (patched unluac), all 1,291 data tables (decompiled and executed into JSON), all 118 C# assemblies (ILSpy), the base APK’s Java (jadx; one method body failed), and all 8,059 bundled UnityFS bundles. The native libraries were not decompiled: they got a symbol and string survey plus targeted arm64 disassemblies.
- Mechanically indexed: a script wrote a row for the unit into an index without anyone reading it, for example one row per command with its request params and SFS2X types, per C# type, per data table, and per bundle.
- Summarized at group level (
summarized): the unit is covered by its group’s write-up, which came from the index plus a read of the group’s key files. That’s 17,574 units, typically views, list cells, templatedMessageclasses, vendor and platform libraries, resources, and art. - Read line by line (
read): 4,827 units, the logic layers: protocol, state managers, controllers, and bootstrap.
“Covered” doesn’t mean “read”. The main caveats: no native library was read, only surveyed; 3,022 of the 3,104
Message classes were parsed by script, and hand-checked samples matched on request params in 84 of 84 cases and on response fields in 77 of 84; and inside Assembly-CSharp, 130 types (about 11,500 lines) were read line by line while the other 3,539 were summarized from the type index and key methods. Anti-cheat and anti-fraud code (Tencent ACE, ShuMei, psh, the init.add challenge, login.ext, the probe template, and client-computed mini-game validation) was inventoried as a surface only, never analysed. psh’s iOS formula was later recovered from the iOS binary, see Identity, login & session.
Headline results
- The command surface, fully indexed. 3,115
MsgDefinescommands, each with its request params and SFS2X types, the response fields its handler reads, and every one of its 4,561 send sites with the guards around them. 54 more commands exist only in C#, and the chat table adds 133 wire names. See Command reference. - 159 game systems mapped, each with its managers,
initfields, pushes, commands, timers, and resets. - 21 corrections to these docs, now applied. The largest:
- The C# runtime is FM_Mono (Mono 6.13.0), not HybridCLR.
- The world map does stream a viewport, through C#-owned block pulls, and season maps are 3000×3000.
hotUpdateMsgisname,version,size,crc32, andresVersion’s tail is local state.- The native chat transport behind
CalcChatSignis unreachable, and the tworeadygo.techcleartext endpoints are dead. free.building.upgrade.finishandqueue.finishare free collects, not paid instant finishes.- About 20 commands, not one, report client-computed battle results.
- The alliance chat room id is deterministic, and
Scene/LWHummerSceneis the Armed Truck reward’s own 3D scene. - The SFS2X library in use is SmartFox2X 1.7.8 plus the game’s own
BaseUtilstransport;Smartfox2xLwis dead code.
- New protocol facts, added to the pages they belong on: the server-day boundary and reset events, the reward payload shape, error conventions, the XAssetPro container, the table CDN and split-table layout, the WebSocket preamble, the chat transport, the mini-game PvP transport, and the C#/Lua dispatch order.
- A claim catalogue: 558 claim-like requests, each with its parameters and the guard at its first send site, hand-traced for 55 of them. Most aren’t in these docs; Command reference summarizes the conventions they share.
- A never-automate inventory: rewarded ads (the Android build ships no ad SDK at all), rating and survey rewards, account and role deletion, payments and diamond spends, irreversible moves, and client-reported results. Several share a wire name with a free claim and differ by one parameter, so they’re catalogued to keep them out of automation by accident.
- Two live checks. Check-version returns
table_versionandlocaleonly fortable_env=table_online, and the live table set 39516 differs from the APK’s 39432 in rows only, not in schema (both confirmed live on 2026-10-05).
Resolved in the 1.0.364 pass
Does the shipped client send a: Resolved no. In 1.0.364,Handshake?NetConnectionhandles onlya=1(Login) anda=29(ping-pong) as system actions, and the connect path runs TCP connect, ana=29probe, thenLogin(static-analysis-only). The 2026-10-04 capture of the real iOS app shows noa=0on any socket. The server still answers aHandshakeif one is sent. See SFS2X wire protocol.Why an own-device: Resolved the AndroidLogingetsE005Loginsent an emptyta.goclientfilledtaonly for iOS. C485 found from real Android captures that an AndroidLoginwith{}getsE005and one with the platform markers filled in doesn’t (discussion #22). On 2026-10-13 one build sent the 2026-10-04 own-device token twice, changing onlyta:{}gotec=28,ep=[E005], and the filled blob (#os=Android,#bundle_id=com.fun.lastwar.gp,lw_platform=market_global, plus the build and zone keys) logged in (confirmed live). ThedeviceIdshape doesn’t block it, and neither does device trust nine days after binding, since neither changed between the two runs. A guestLoginis accepted with eitherta. See Identity, login & session.What: Resolved as far as the client goes. The 1.0.364 C# maps it toE005meansERROR_MAINTENANCEand shows a maintenance dialog without touching credentials. Live, the server also returned it for a token presented under the wrong platform identity, so the label is the client’s UI bucket, not the server’s reason. See Identity, login & session.Tactical Center, Armament Institute, and Truck Station I-IV: Resolved they aren’t production lines. They returned602026on all 342 scheduled runs and neverstatus=1(confirmed live), and none is in the 1.0.364 Lua’sProductLineBuilds. A602026response therefore doesn’t confirm a command pairing. See City & building.The: Resolved it isn’t a cooldown. The free donate path holds regenerating charges (120471per-donation cooldownuseNumofmaxNum, refilled everyrefreshTimeBlock), and120471means none is left (static-analysis-only). See Alliance, chat & mail.What the mail claim’s: Resolved for the real client: an internal mail group id sent as a UtfString.typeholdsgoclientsends the raw mail type as an Int, and the server accepts it (confirmed live). Which value the server reads stays open. See Alliance, chat & mail.Where: Resolved they’re local state. The C# builds the tail fromresVersion’s last two parts come fromCURRENT_TABLE_VERSIONandLOCALE_VERSION, the newest table and locale on the device, built-in or downloaded (static-analysis-only). Check-version does returntable_versionandlocale, but only fortable_env=table_online, whichgoclientdoesn’t send (confirmed live on 2026-10-05); that request returned 39516 and 23570, the iOS app’s tail. See Startup, version-check & hot-update.What the forward header’s id means: Resolved statically: it’s the zone number,ParseSid("APS783") = 783inBaseUtils, which matches the0x030Fin the 2026-10-04 capture. A second capture on another zone would confirm it live.Which id the Alliance Duel detail read takes: Resolved theinitentry’sactivityid, not itsid. The duel’s entry is{id: 55000, activityid: "70000"}, andActivityInfoDataletsactivityidoverrideid(static-analysis-only). Asked for"55000", the server answers a bare{success=true}; asked for"70000", it returns the fulleventList(both confirmed live on 2026-10-06). The live entries carry their day window asst/et. See Alliance Duel.Whether an items-only speed-up touches diamonds: Resolved forbuild.ccd.m.new. With onlyitemIDs, the reply’sremainGoldequaled the starting balance anditemCostArrlisted every item spent (confirmed live on 2026-10-06).queue.ccd.m.newandbuilding.camp.accelhaven’t been sent live yet. See Live validation against production.Whether: Resolved an issue time. A GSLat.timeis an issue time or an expiryopt=loginresponse on 2026-10-04 carriedat.timeandrt.timeequal to the moment of issue, in unix seconds (confirmed live), consistent with the 1.0.364 client’s 30-day refresh rule. Whether the server also expires tokens on its own, and so what caused the 2026-10-02 rotation, stays open. See Live validation against production.
Open questions
These came out of the 1.0.364 static analysis and the October 2026 live work. Static analysis can’t settle any of them; each needs a live observation.- Minimal
tacontent. Reconnect works withta’s device sub-fields blank (confirmed live), and an AndroidLogininto an established account needs it filled (confirmed live, see the resolvedE005item above). Which keys the server reads hasn’t been isolated: the A/B tests compared{}with the whole blob, and the platform markers (#os,#bundle_id,lw_platform) are only the likely ones. dataConfigMd5persistence. The real client sends a server-issued value; in the 2026-10-04 capture it equaledinit.add.afrom the same session. Comparinginit.add.aacross two captures of the same app build would show whether the client persists it or the server echoes back whatever arrives. This is an integrity surface, so the question is about understanding the protocol, not about sending the value.- Does
opt=refreshrotatert? The real client stores whatever non-emptyrtarrives. If a refresh rotatesrt, a token pair shared between the real app and a Go client keeps working only for whichever side refreshes first. On 2026-10-13, eight days after issue, three refreshes of the own device’s pair each returned the currentatwith its originalat.timeand nort(confirmed live). A third party reports the same for an iOS own-device pair, a few minutes after issue (discussion #56). What a refresh returns onceatis 30 days old is still open. See Identity, login & session. - Can two devices hold working sessions for one account? This decides whether a Go client with its own device identity could keep its own tokens alongside the real app’s. The 1.0.364 role-switch flow (email verification,
loginKey, GSLopt=login) is how a device gets its own pair. GSL issued one to a newly bound Go-generated device on 2026-10-04, and that device’sLoginwas accepted on 2026-10-13 (both confirmed live). The same night a second Go device was bound and logged in, and the first device’s config still logged in afterwards, so their tokens coexist (confirmed live). EachLogintakes the role’s one live connection. On 2026-10-13 the scheduled 03:00 PDT run, which uses a token captured from the real iOS app, still logged in after own devices had logged in nine times (confirmed live, one run; see Identity, login & session). What hasn’t been seen is whether the real app’s 30-day refresh invalidates an own device’s pair. - Which command collects the Tactical Chip Factory? The 1.0.364 Lua reads both ways:
BuildBubbleManagersendsbuilding.camp.collect {uuid}for chip buildings, and the factory’s own UI sendschip.collect {}. One read of the factory’sbuilding_newentry in a capturedinit, then one capture of the real collect tap, would settle it. See City & building. - Does the live
initcarryreal_timezone_offset? The C# applies it only when present, and the Lua falls back to UTC without it, which would move its day boundary from 02:00 to 00:00 UTC whiletomorrowstays at 02:00. The 2026-10-04 capture shows the key in theLoginresponse; listing the top-level keys of a capturedinitwould settle it. See Identity, login & session. - Does the server check
platformonopt=refresh? The real iOS client sendsplatform=iOS.goclientsendsplatform=iOSunder-cs-iosandAndroidotherwise. A refresh token is scarce, so whether the server checks that field hasn’t been tested. A third party reports a refresh of an iOS own-device pair working (discussion #56).goclientsends that refresh withplatform=iOSunderiosMode, the platform the pair was issued under, so a mismatch is still untested. status=0frombuilding.production.collect. The Lua treats only a missing or-1status as failure; every live success has carriedstatus=1.- When does each Alliance Duel action book its points? Radar tasks book at the claim (confirmed live, 2026-10-07): each
receive.detect.event.rewardwas followed bypush.act.score.obtainwithaddScore, anddetect.event.help.endproduced none. Still open for UR secret tasks, power gains, and troop training: start, finish, or claim.goclientnow logs everypush.act.score.obtainwith the request sent before it, which answers this per action from ordinary runs. See Alliance Duel. - Are unclaimed duel chests mailed at the day’s end? A mail template for it exists in the locale; no live observation yet.
- Is an empty or over-count
itemIDscharged in diamonds? An emptyitemIDsonqueue.ccd.m.newis the client’s own diamond instant finish (ArmyManager.lua:204-210), and for a running research inside the free research time (init effect 30100) the client’s free finish (UIScienceView.lua:648-654). What the server does with more items than are owned is unknown.goclientnever sends an over-count or an emptyitemIDs, so this stays a static reading.
Resolved by live testing
See Live validation against production for full methodology.Does a finished radar task survive its: Resolved yes (confirmed live, 2026-10-06). Nine tasks finished but left unclaimed were still listed byendTime?get.detect.infoin state1, 46 minutes after theirendTime. The unclaimed rescue task among them was kept too. Only unstarted tasks expire.Enum numeric values (: Resolved the authoritativeBuildingTypes, …)BuildingTypestable lives inGlobal_EnumType.lua, giving every building’s internal codename and numeric ID directly. See the Game entity ID reference for the full extraction across buildings/monsters/units/heroes/resources/items.Whether the server enforces ShuMei/ACE anti-cheat data on login: Resolved no ShuMei-specific block exists, as far as live testing shows. Reconnecting to an account with real history first looked ShuMei-gated, but that block turned out to be a token-identity mismatch (see the reconnect bullet below). On 2026-10-04 a captured iOS session reconnected into the established account withshumeiBoxIdsent empty (confirmed live), and new-guest-account creation never needed it. Full test matrix in Live validation against production.The missing post-login: Resolved none of the three previously-identified leads were the cause. The real bug:initpushpacket.go’sReadPacketalready correctly detected the server’s Zstandard-compressed packets (header bits0x20compressed +0x10useLZ4-repurposed-as-Zstd) but decompression itself was never implemented, it just returned an error, which every read loop indistinguishably treated as “connection closed.” Fixed by adding a real Zstd decoder (github.com/klauspost/compress/zstd, a shared lazily-initializedzstd.Decoder) in that same branch. The post-login init push turned out to be ~313KB of Zstd-compressedSFSObjectdata on the wire; decoding it surfaced two further binary-codec bugs insfsobject.go:LONG_ARRAY/FLOAT_ARRAY/DOUBLE_ARRAY/BOOL_ARRAY/SHORT_ARRAY(tags 9, 11, 13, 14, 15) were simply unimplemented, andBYTE_ARRAY(tag 10) was decoded with the wrong length-prefix width (i16 instead of the real i32), silently corrupting decode of any packet containing one, see the corrected wire-format table in SFS2X wire protocol. Once both were fixed, the init push arrived cleanly on the very first attempt: no reconnect loop, no extended timeout needed, and the active-pulllogin.initfallback never had to fire. Of the two mechanisms built earlier to chase this symptom, only the three-attempt reconnect-on-timeout loop was unnecessary and has been removed (max login attempts back to 1); the halfway active-pulllogin.initsend insidewaitForInitPushwas kept in place, unconditionally, as a real, still-exercised fallback for a genuinely silent server, not reverted, see Live validation against production for the full mechanism split.The established-account reconnect block: Resolved not anti-fraud, not device fingerprinting, not session locking. Captured live traffic from the real iOS/Mac-Catalyst app (/Applications/Last War.app) viatcpdumpagainst the same account, decoded the Login packet field by field (the SFS2X game socket is plain TCP, no TLS), and confirmed by a byte-for-byte raw replay that the same access token works cleanly across repeated connections, it is not single-use, and there is no rate-limit or already-connected mechanism. The actual gate: a token is bound to the exactpackageName/platform/appVersion/versionCodeidentity it was issued under, andgoclienthardcoded an Android identity unconditionally even when replaying an iOS-issued token. Fixed inidentity.go(BuildLoginParamsgained anIOSModeswitch coveringpackageName,packageSign, confirmed stillSHA1(packageName)on iOS too,platform,pf,appVersion,versionCode, the iOS-onlyidfa/idfv/phone_native_screenfields, removal of Android-only fields, and, at the time, populatingtawith real captured content instead of an empty placeholder), pluscrossserver.goand new-cs-ios/-cs-atflags inmain.go. A real reconnect through the Go client’s own from-scratch SFS2X implementation then succeeded cleanly: Login OK, followed immediately by a correctly Zstd-decoded init push showing the account’s 162 real buildings. Caveat: the exact minimal required content oftawasn’t isolated, only that the full real captured blob worked, at the time of that capture. A later security fix replacedta’sLwDeviceID/LwShumeiID/LwAirKeysub-fields with empty-string placeholders (they were leaking the same live device secrets in cleartext inside an opaque JSON string); reconnect is now re-confirmed working with those placeholders against the shipped code, an unattended cron running this client reconnected and collected real resources over multiple days (August 2026), re-verified after a live zone-server migration, so the server does not requireta’s real device sub-fields (August 2026; since the 1.0.370 follow-up the iOStafillslw_device_id/lw_airKeyfrom theLoginandlw_shumei_idfrom the cachedshumeiId, or replays a capturedta; a live config-copy test is pending before the cron uses it: a copy without ashumeiIdtakes two runs, the first run’sLoginsendinglw_shumei_idempty and saving the pushedshumeiIdand the second sending it, while a copy that already has one, such as a recapture withpcap -session-out, sends it from its first run; see Client 1.0.370). What’s left is even narrower: the minimal requiredtacontent still isn’t isolated (a different token needs its own freshtaregardless, since session-specific fields live inside it). An Android from-scratch login is live-confirmed;-cs-iosnow sends the iOS identity from the first GSL call, and that path hasn’t been tried live, see Live validation against production.
Resolved by a dedicated research pass
Full findings, with file:line citations into the client source, follow below.March “recall home” encoding: Resolved not a coordinate sentinel, it’s the literal enum constantMarchTargetType.BACK_HOME = 3(Global_EnumType.lua:3945), sent in the ordinarytargetfield ofworld.march.change(the same command used to redirect a march anywhere), withpathset back to the player’s home-city tile. Full call chain traced from the UI button through to the wire request.: Resolved the “no confirmed call site” framing was outdated:WorldPointInfo.proto’s actual transportworld.get.newandworld.get.block’s response fieldpoints(an array of raw byte blobs) is decoded viaWorldPointInfo.Parser.ParseFrominWorldPointManager.ParseWorldGetBlock, feeding the ~30 concrete point-type classes that render the world map. A second, nested call site decodes march destination points the same way.Four unrecoverable proto schemas: Resolved all four (ScoreProgressInfo,WorldCityRankMail,LwScoutReport,ShieldInfo) were fully recoverable, and not where prior analysis stopped looking, see the callout below.: Resolved the “no call site” claim was a tooling false-negative (this environment’slibxlua.so’sCalcChatSign/AES/MD5 helpersgrepisugrep, which silently skips binary files without-a). The real call site was already sitting in report 06 (ChatNetManager:InitWebSocketInst, an alternate native-transport branch). That branch turned out to be unreachable in 1.0.364: only the armeabi-v7alibxluaregistersrg_websocket, arm64’sluaopen_nativedoesn’t, andLuaEntry:__InitCModule(), the only code that would expose the native socket, is never called, so chat always uses the C#ChatService(static-analysis-only). The formula finding stands. Direct ARM64 disassembly of the native function (it ships unstripped, with symbols) confirms it’s exactlyMD5(MD5(appId+uid) + timestamp), plain, unkeyed, textbook MD5, byte-identical to the already-known C# formula. Proprietary-crypto risk downgraded from “unknown” to confirmed none.: Resolved not a hash or local computation, it’s a single server-pushed integer,PlayerInfo:GetABTestTableNamemonopoly_ab, delivered in the post-loginInitpayload’suserobject. Each value (1, 2, 3, 5, 6, 7, 8, 9, 10, 13, 16, 18 in this build) is a reserved slot for one named A/B test; the function’sIs<TestName>B()checks compare against it directly. A reimplementation cannot derive this offline, it must be read from a real login response.Season vs. Activity domain boundary: Resolved (accuracy-measured, not just re-asserted): a genuine random sample of 100 commands (50 Season, 50 Activity) checked against actual handler code came back 97% label-defensible. The 3 confirmed misclassifications aren’t random noise, they’re all cases where a single feature’s sibling commands got torn across both domains because the classifier operates per-command/per-folder rather than per-DataCenter-manager (e.g. the Desert Storm fishing minigame’s 8 commands split ~50/50 because one cmd string happened to contain"fish.pond", a substring the classifier’s ordered rule list catches before the generic"season"fallback).
Bonus finding: 18 proto schemas recovered, not just 4. The “unrecoverable” verdict on the four proto schemas stopped at “not in the Lua bundle” without checking two other places they actually live. Three of the four (
ScoreProgressInfo, ShieldInfo, LwScoutReport) turned out to have full Google.Protobuf-generated C# classes in Assembly-CSharp.decompiled.cs, each embedding its complete compiled FileDescriptorProto as a base64 blob. All four, WorldCityRankMail included, which has zero C# presence at all, are also physically shipped as Unity TextAssets inside a custom-packed AssetBundle blob (assets/AssetBundles/BundleFragment0.bytes, 525MB, indexed by a name→offset table also in the APK). Locating and extracting that bundle’s gameres_main_dir_proto entry recovered all 18 .proto.bytes files the client ships (not just the 4 originally sought) as serialized FileDescriptorSet binaries, decoded to human-readable .proto text and cross-validated field-for-field against the independently-recovered C# descriptors. Both the raw binaries and decoded schemas are saved at extracted/recovered_protos/*.proto / *.decoded.txt.