Unity device movement

I’m trying to move a game object when i raise/lower (Shake) my phone but I don’t know how get the device’s movement. I already know about Input.acceleration but that just gives me the devices rotation …