Skip to main content

flutter_chaoxing 0.1.2 copy "flutter_chaoxing: ^0.1.2" to clipboard
flutter_chaoxing: ^0.1.2 copied to clipboard

Typed Chaoxing (学习通) protocol clients, request signing, and classroom sign-in for Dart.

Changelog #

0.1.2 #

Live-verified against the production server (2026-09-23) with a real account.

  • Fix parseCourses: the production backclazzdata envelope is class-centric — channelList[].content is the class (id=classId, name, chatid, bbsid, cpi) and the course sits at content.course.data[] (id=courseId, name, teacherfactor, imageurl). The previous parser expected a course-centric content.clazz[] and returned zero courses. The legacy shape is kept as a fallback.
  • Add the classroom sign submit pptSign/stuSignajax (buildClassroomSignUri / submitClassroomSign / ChaoxingClassroomSignResult). This is the endpoint the H5 newsign/preSign page calls — the official Android client never invokes it natively (it drives the WebView), but it is a plain cookie-authenticated GET, so plain signs now work headlessly. Captured live: a 纯普通 sign returned success; an anti-cheat 防作弊(验证码) sign returned validate (needs a captcha.chaoxing.com token passed back via the validate parameter, plus the native CLIENT_DEVICE_FLAG deviceCode).
  • Add bbsid to ChaoxingCourse (the discussion-board id, present in the live payload and needed by ChaoxingApiService.fetchTopicList).
  • Confirm device registration end-to-end: a real login returned a 172-char clientId that resolveDeviceIdentity decrypted into a valid cxcid/sc pair, and the server issued it even though cdtype/cdid/mediaDrmId were omitted — so those three fields are optional for clientId issuance.

0.1.1 #

  • Add ChaoxingUserAgent, reproducing the official 7.0.2 User-Agent structure (p482ej/C30158f.java). Every constant is read from the decompiled source, not guessed: protocol tag 3 (C37365n.f144063a), screen code 264 (C32754f.f129562A via C32316b.m127070g), channel @Kalimdor (C32764p.mo127076e/mo127077f both false), package com.chaoxing.mobile. The native cryptUserAgent wrapper is not reversed, so the plaintext suffix is emitted (server-tolerated; see the class doc).
  • ChaoxingAuthService, ChaoxingSignService, and ChaoxingApiService now take an optional userAgent, defaulting to the previous value.
  • Confirm the device-registration public key: static RE shows getDeviceInfo (encrypt) and decryptDeviceInfo (decrypt) both use the SPKI key at libsecuritylib.so 0x52e19, which is the one already embedded. Document the getDeviceInfo JSON key order and that platform/os_name are "android" and mediaDrmId comes from Settings.Secure.getString.

0.1.0 #

  • Initial public preview extracted from the Luotopia app.
  • Byte-exact ports of the Chaoxing 7.0.2 request-signing primitives: the two inf_enc query-signing variants, the cxsign/signToken header scheme, and the webRequestSign RSA-SHA256 bridge used by CLIENT_FORM_SIGN.
  • Device registration helpers (CxDevice.getDeviceInfo / decryptDeviceInfo) with chunked RSA and jsoncpp FastWriter alignment.
  • Login and SSO cookie-harvest client (ChaoxingAuthService).
  • Classroom sign-in client (ChaoxingSignService), including the native Fanya usersign/addsign endpoint and the CLIENT_FORM_SIGN bridge implementation.
  • Student-facing API client (ChaoxingApiService): notices, grades, homework feed, live classes, course content, timetable, messages, and discussions.
  • Typed domain models mirroring the official StudentMission, Course, and Clazz schemas, plus the activeType dispatch table.
0
likes
0
points
483
downloads

Publisher

verified publisherwhu.sb

Weekly Downloads

Typed Chaoxing (学习通) protocol clients, request signing, and classroom sign-in for Dart.

Repository (GitHub)
View/report issues

Topics

#chaoxing #xuexitong #sign-in #education

License

unknown (license)

Dependencies

crypto, dio, pointycastle

More

Packages that depend on flutter_chaoxing