The invention discloses a protective shell for an electronic device. The problem that when the electronic device is used outdoors, the
electricity storage capacity of a battery of the electronic device is insufficient is solved through
photovoltaic power generation, and the storage battery can serve as a charger, and store a certain quantity of
electricity for the electronic device; due to the facts that a charging and discharging controller is used for controlling a photovoltaic
cell panel to store
electric energy processed through photovoltaic conversion in the storage battery, and charging is carried out on the electronic device through the
electric energy in the storage battery, the problem that when the photovoltaic
cell panel is used for directly charging the electronic device, over charging or countercurrent possibly happens can be solved, charging can also be carried out on the electronic device when
sunlight irradiation does not exist, and the limitation of use is avoided; in addition, due to the fact that a switch
assembly is used for having control over the state of electric connection between an externally-connected data line port and a port of the electronic device and the state of electric connection between the protective shell for the electronic device and the port of the electronic device, when the switch
assembly is turned on, the charging and discharging controller is used for controlling the storage battery or the externally-connected data line port to charge the electronic device, switching between the
modes of charging of the electronic device on different occasions can be achieved, and a user can conveniently use the electronic device.