Press the tofu for at least 10 minutes, then tear it into rough bite-size chunks. Torn edges crisp better than clean cubes.
Toss the tofu with cornstarch and a pinch of salt until every piece is coated and dry to the touch.
Pan fry in oil over medium-high heat, undisturbed 3 to 4 minutes per side, until deeply golden. Work in two batches.
Cook the edamame per the packet and set aside.
Lower the heat, push the tofu aside, and fry the garlic 30 seconds. Add sambal and kecap manis, toss everything to coat, then kill the heat and add the lime juice.
Build bowls: rice, tofu, edamame, cucumber, fried shallots.