frameworks: use new api

Change-Id: I0dd442f464c25a95fae5f4144c4b793ba8b353e1