agentleFS
hacf-frhacf-fr/renault-api/.claude/skills/apk-analysis/SKILL.md

apk-analysis

Skill210 starsChanged 2 months agoMITView on GitHub

Verify and decompile the MyRenault Android app (com.renault.myrenault.one.fr) to check API endpoints, headers, OIDC settings or featureId semantics against the official app. Use when reviewing docs or PRs that cite the APK, or when asked what the app does for a given endpoint or featureId.

  • Installs packages

2 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions2 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 2

    1. samalyxx/appunpack★ 4same name
    2. mabhub/skills★ 1same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repositoryOne other file it gives its agents.

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 0 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Ask the user to download the XAPK (e.g.

    line 13
  2. Very specific:

    Always run sha256sum and compare with any hash quoted in the docs or the PR.

    line 15
  3. Very specific:

    Run it in the background; it takes about 30 minutes for ~37k files.

    line 33
  4. Very specific:

    Version drift: Before calling something a change between versions, decompile both and compare (e.g.

    line 65

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

MyRenault APK analysis

Everything lives in .apk_analysis/ at the repo root (git-ignored). Never commit APKs or decompiled sources.

1. Get the XAPK

Ask the user to download the XAPK (e.g. from APKCombo) into .apk_analysis/.

Always run sha256sum and compare with any hash quoted in the docs or the PR. A mismatch means you are not looking at the same build.

2. Decompile

Extract the XAPK, then run jadx on the main com.renault.myrenault.one.fr.apk (the config.*.apk splits hold only native libs and resources).

  • Install Java if missing: sudo apt-get install -y openjdk-21-jre-headless.
  • jadx is expected at .apk_analysis/jadx/bin/jadx; if missing, unzip a release from https://github.com/skylot/jadx/releases there.
  • Limit memory, or the run dies on WSL or small containers:
JAVA_OPTS="-Xmx5g" .apk_analysis/jadx/bin/jadx -j 4 --no-res --show-bad-code \
  -d .apk_analysis/src-$V .apk_analysis/v$V/com.renault.myrenault.one.fr.apk

Run it in the background; it takes about 30 minutes for ~37k files. The run ends with ERROR - finished with errors, count: ~620 and exit code 3. That is normal: some methods don't decompile cleanly.

For string-only checks (no decompilation), strings on the classes*.dex files is enough, e.g. OIDC scopes or remote-config keys.

3. Where things are

  • App code: com/accenture/myrenault/, com/renault/ (e.g. com/renault/zepass for Plug & Charge) and the obfuscated defpackage/. Search all three.
  • featureId to feature flags: com.renault.core.utils.ServiceMappingConfig. Obfuscated into defpackage/; find it with grep -rl 'ServiceMappingConfig' defpackage. In 6.13.4 jadx keeps the field names. In 6.14.2 they are obfuscated, but the original names are in the class's @Metadata(d2 = {...}), in field order.
  • POST /state request: GetSohBatteryWithMileageUseCase.
  • Map layers: MapSelectionUiMapper builds CarMapUiModel.
  • Remote-config defaults: res/xml/remote_config_defaults.xml (binary XML). Many flags, e.g. SOH_UID_list, are server-only.

4. Pitfalls

  • Inlined constants. jadx shows some integer literals as unrelated library constants of the same value: 202/204 as OneTrust OTUIDisplayReasonCode.UIShownCode.PC_SHOWN_*, and 344/364/952/953/955/973 as Contentsquare Currencies.*. Before saying an id is unused, look for public static final int X = <id>; and search for .X too.
  • @Metadata noise. Kotlin metadata strings match almost any grep; filter out @Metadata lines.
  • Partial searches. Say "not found in <packages searched>", never just "not found", and check com/renault/ before concluding.
  • Version drift. Before calling something a change between versions, decompile both and compare (e.g. the ServiceMappingConfig id lists).

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.