Files
philips-tv-speicher-voll/patches/usb-freesize/SMALI-PATCH.md

983 B

USB DEX/smali integration boundary

Target the golden tvfw.jar SHA-256 A0061795D87CF76C9B739E32022AB3D8C29F47ED01DDC1EEE189DD815A8D11AD, classes.dex, method UsbVolumeListerImpl.getVolumes(String) at code_off=0x17b5e0 (registers=15). The stock property branch starts at PC 0x0133.

The rebuilt method must add a guarded android/os/StatFs construction, getTotalBytes, getAvailableBytes, 64-bit division by 0x100000, range checks and a RuntimeException handler. Extend register count and try ranges through an assembler; do not hand-overwrite code bytes or offsets. Preserve the output-unit contract (MiB), all non-size fields, enumeration order and volume filtering. Re-disassemble the output and verify branch/handler targets.

This JAR is a registered tvfw Java shared library, not bootclasspath. Test client class-loader contexts and regenerate/omit stock ODEX/VDEX through a controlled image build; never pair modified DEX with the golden preopt files.