OBJECTIVE

Read a deliberately simple local handler and identify defensive improvements.

TIME PLAN

Prepare 20m · Build 110m · Verify 30m · Document 20m

Working boundary

Work only inside the folder created by Smartphone-Academy.py prepare local-code-review. Use the supplied samples or systems you personally administer.

Prepare the Termux workspace

Open Termux in the Academy root and prepare this lab with the local companion. It creates safe samples, notes and evidence files under your Termux account.

Android + Termuxpython Smartphone-Academy.py prepare local-code-reviewNo root. Use the supplied files and keep the workspace under $HOME.

Practical mission

  1. Trace data from input to storage or output
  2. Find one missing validation and one unsafe error path
  3. Apply the smallest clear correction
  4. Write tests that fail before and pass after the fix
EVIDENCE TO PRODUCE

A code-review note with evidence, impact, fix and verification for each issue.

Quality gate

The deliverable states a clear scope and date for Review a Local Web Handler.
A second learner can reproduce the commands and paths.
Original samples remain unchanged and verifiable.
Limitations are recorded beside the conclusions.

Analyst reflection

Which result from “Write tests that fail before and pass after the fix” would need more evidence before it could support an operational decision?

Complete in Termux

After checking the evidence, run python Smartphone-Academy.py complete local-code-review. Progress is stored locally in the Termux home directory.

13 · Web & Secure Coding

Continue learning

Back to Smartphone Academy