Build stubs against SDK and clear local variables

The stubs need to be built against the current SDK where possible and
not the internal modules.

Bug: 30188076
Test: delete stub files and remake targets
Change-Id: Id724c16e56d1e8fe7f61cfafe7f11ea27e01e659
2 files changed