[2/3] native: Change density on the fly

Change-Id: Ia7ebb04194cc5a34e9927c062977969c319ad7c6
(cherry picked from commit 314a8a068210bed779decfd50882ef4012d938ea)