Zap the frozen corn niblets in the microwave with some water just until they are all thawed and no cold spots are left. About 5 to 6 minutes should do it. Drain well.
Add to a large pot, along with all the other ingredients down to and including the chile flakes.
Bring to a boil, then lower to a simmer for 30 minutes.
Add liquid smoke to taste, if using.
Pack hot into quarter-litre (½ US pint) jars or half-litre (US pint) jars.
Leave 2 cm (½ inch) headspace.
Debubble, adjust headspace.
Wipe jar rims.
Put lids on.
Process in a water bath or steam canner.
Process either size jar for 15 minutes; increase time as needed for your altitude.