A method for setting a brightness of a screen of a terminal, comprising steps of: acquiring from a light sensor of the terminal a first brightness of ambient light in an environment where the terminal is located; detecting whether the light sensor faces away from a light source in the environment; calculating a first backlight brightness level according to the first brightness of the ambient light if the light sensor faces away from the light source, wherein the first backlight brightness level is higher than a second backlight brightness level, and the second backlight brightness level is calculated according to the first brightness of the ambient light when the light sensor faces towards the light source; and setting a backlight brightness of the screen of the terminal to the first backlight brightness level, wherein the step of detecting whether the light sensor faces away from a light source comprises steps of: determining a measurement plane where the light sensor is located; detecting via a gravity sensor whether the measurement plane faces towards a direction of the light source, wherein the direction of the light source is a default direction or a direction inputted by the user; determining that the light sensor faces towards the light source if the measurement plane faces towards the direction of the light source; determining that the light sensor faces away from the light source if the measurement plane does not face towards the direction of the light source. acquiring from a light sensor of the terminal a first brightness of ambient light in an environment where the terminal is located; detecting whether the light sensor faces away from a light source in the environment; calculating a first backlight brightness level according to the first brightness of the ambient light if the light sensor faces away from the light source, wherein the first backlight brightness level is higher than a second backlight brightness level, and the second backlight brightness level is calculated according to the first brightness of the ambient light when the light sensor faces towards the light source; and setting a backlight brightness of the screen of the terminal to the first backlight brightness level, wherein the step of detecting whether the light sensor faces away from a light source comprises steps of: determining a measurement plane where the light sensor is located; detecting via a gravity sensor whether the measurement plane faces towards a direction of the light source, wherein the direction of the light source is a default direction or a direction inputted by the user; determining that the light sensor faces towards the light source if the measurement plane faces towards the direction of the light source; determining that the light sensor faces away from the light source if the measurement plane does not face towards the direction of the light source. determining a measurement plane where the light sensor is located; detecting via a gravity sensor whether the measurement plane faces towards a direction of the light source, wherein the direction of the light source is a default direction or a direction inputted by the user; determining that the light sensor faces towards the light source if the measurement plane faces towards the direction of the light source; determining that the light sensor faces away from the light source if the measurement plane does not face towards the direction of the light source. <EOS>