Yep, what Xenosaiga suggested. Keep in mind though that you will probably see duplicate tickets with the same console ID. This is a known bug in the program so don't get puzzled by it
Thanks! This was just what I needed.
Both ticket.dbs contain what I expected. The emuNAND db has the same titles as the original sysNAND db, plus all the CIAs I had ever installed since then, even from those games I had removed.
Injection of the original ticket.db into current emuNAND was successful. For the record, my sysNAND is on 9.0.0-20E and my emuNAND on 9.5.0-23E.
After injection, I see every CIA I had installed is gone: SaveDataFiler, legit CIAs, and CIAs from my own dumps all have empty slots in the Home Menu where their icons were. As expected, the files of these CIAs are still in the "Nintendo 3ds" folder on the SD card, but now they have no ticket on this system, so they are unavailable. They still appear in the Activity Log, though.
[offtopic]
I'd like to clear the Activity Log as well, but since the save is in the NAND I don't know how to do it.
My goal is to start from a clean slate on sysNAND with a9lh, but I don't want to lose my NNID and savegames. I have backups/dumps of everything, except the Mii Plaza and the rest of the games that come with the console - again, since the saves are in the NAND, I don't know how to back these up, other than dumping the whole NAND.
[/offtopic]