A method for identifying an access point, AP, and a hotspot, the method being executed by a processor of a mobile terminal, the method comprising: pre-storing a preset Wi-Fi list in the mobile terminal; obtaining an internet protocol, IP, address of a gateway in a process of connecting to an AP or a hotspot, wherein the IP address of the gateway is contained in an Offer message and an acknowledge message transmitted from a dynamic host configuration protocol, DHCP, server to the mobile terminal; detecting whether the IP address is in the preset Wi-Fi list; characterized in that the method further comprises: determining that the mobile terminal is connected to a hotspot in response to detecting that the IP address is in the preset Wi-Fi list, wherein the hotspot is created by another mobile terminal; determining that the mobile terminal is connected to an AP in response to detecting that the IP address is not in the preset Wi-Fi list, wherein the AP is created by a router; and after determining that the mobile terminal is connected to the hotspot: estimating total traffic required by at least one application to be upgraded; sending, to the hotspot, an upgrade request carrying the total traffic; and upgrading the at least one application to be upgraded when a confirmation message transmitted in response to the upgrade request is received from the hotspot. pre-storing a preset Wi-Fi list in the mobile terminal; obtaining an internet protocol, IP, address of a gateway in a process of connecting to an AP or a hotspot, wherein the IP address of the gateway is contained in an Offer message and an acknowledge message transmitted from a dynamic host configuration protocol, DHCP, server to the mobile terminal; detecting whether the IP address is in the preset Wi-Fi list; characterized in that the method further comprises: determining that the mobile terminal is connected to a hotspot in response to detecting that the IP address is in the preset Wi-Fi list, wherein the hotspot is created by another mobile terminal; determining that the mobile terminal is connected to an AP in response to detecting that the IP address is not in the preset Wi-Fi list, wherein the AP is created by a router; and after determining that the mobile terminal is connected to the hotspot: estimating total traffic required by at least one application to be upgraded; sending, to the hotspot, an upgrade request carrying the total traffic; and upgrading the at least one application to be upgraded when a confirmation message transmitted in response to the upgrade request is received from the hotspot. determining that the mobile terminal is connected to a hotspot in response to detecting that the IP address is in the preset Wi-Fi list, wherein the hotspot is created by another mobile terminal; determining that the mobile terminal is connected to an AP in response to detecting that the IP address is not in the preset Wi-Fi list, wherein the AP is created by a router; and after determining that the mobile terminal is connected to the hotspot: estimating total traffic required by at least one application to be upgraded; sending, to the hotspot, an upgrade request carrying the total traffic; and upgrading the at least one application to be upgraded when a confirmation message transmitted in response to the upgrade request is received from the hotspot. estimating total traffic required by at least one application to be upgraded; sending, to the hotspot, an upgrade request carrying the total traffic; and upgrading the at least one application to be upgraded when a confirmation message transmitted in response to the upgrade request is received from the hotspot.