i9500: optimize charging init script