[CDM][Refactoring 8/N] Make maxId global

Bug: 26987375

Test: CTS
Change-Id: I7dd390ad043da9961fc1d010023e36b8b5e383a9
4 files changed