The Flying Ace is a (public domain) 1926 silent film about a black man who returns from WWI to a job as a railroad detective. He investigates a theft, and an employee who has gone missing.
There aren't many surviving films from the silent era that feature a mostly black cast.
I'm glad this one is currently streaming for free (ad supported), but I hope I can get a copy uploaded to archive.org soon enough.