Revert "Revert "Move idmap to frameworks/base [1/2]""

This reverts commit 2ae447fa9697cbb6c8a5ef4e91b5fbbdae13dcc1.