D-A02, a protocol droid specializing in repair, was part of Matton Dasol's freighter [crew] during the Jedi Civil War era. In the months leading up to the war's conclusion, D-A02's unfortunate owners made a stop on the planet of Kashyyyk for supplies. While Matton, the crew's mechanic, was contracted by the merchant Eli Gand to repair his vessel, Eli deceived the remaining crew members, leading them into the perilous Shadowlands. In his final moments, D-A02 documented the merchant's ambush and subsequent murder of the crew with blaster fire, before sustaining critical damage himself.
Months later, Revan and the crew of the Ebon Hawk stumbled upon the barely functioning remnants of the droid while searching the Shadowlands for the elusive Star Map. Upon inspecting the disassembled droid for usable parts, Revan discovered that D-A02's motivator retained an audio recording of the droid and its crew's final moments. An attempt by Revan to salvage D-A02's components for scrap triggered a short circuit, destroying the droid's remaining systems and causing a minor injury to Revan. Despite the damage, the head was still identifiable, allowing Revan and his associates to expose Eli's treachery, liberate Matton from his forced labor, and allow him to seize control of the fleeing merchant's assets.