Revert "Fixed usages of deprecated platform API methods"

This reverts commit d3d63395b38a3863f5751db43b3e13beb38965d1.