This phase I/II trial is studying the side effects and best dose of entinostat when given together with imatinib mesylate and to see how well it works in treating patients with relapsed or refractory Philadelphia chromosome-positive acute lymphoblastic leukemia. Entinostat and imatinib mesylate may stop the growth of cancer cells by blocking some of the enzymes needed for cell growth