Fix deprecated methods in AppSetup.

Bug: b/170393486

Test: AppSetupTest.
Change-Id: Iabd7fad63d31912f2c0c9aec64dc525694f68bca
2 files changed