A method for processing n application installation packages in an apparatus, where n is a positive integer, the method comprising: acquiring a processing attribute of the application installation packages when it is monitored that an operating system is being upgraded with a plurality of application installation packages, the processing attribute being an upgrade compilation attribute or an idle compilation attribute, wherein the upgrade compilation attribute refers to an attribute in which the application installation package needs to be compiled during upgrade and wherein the idle compilation attribute refers to an attribute in which the application installation package needs not to be compiled during upgrade; during upgrade of the operating system, compiling the application installation packages whose processing attribute is the upgrade compilation attribute; detecting whether an application installation package is an application installation package which is not compiled and the processing attribute of which is the idle compilation attribute; and if the application installation package is an application installation package which is not compiled and the processing attribute of which is the idle compilation attribute, compiling the application installation package, and, after the upgrade ends, starting to install the application installation package if a current operation state of the apparatus satisfies an idle compilation condition, wherein the idle compilation condition comprises at least one of the following conditions: a current time instant falls within an idle time period; a current battery power exceeds a preset threshold; a current state is a battery charging state; and no operating signal is received in a most recent time period. acquiring a processing attribute of the application installation packages when it is monitored that an operating system is being upgraded with a plurality of application installation packages, the processing attribute being an upgrade compilation attribute or an idle compilation attribute, wherein the upgrade compilation attribute refers to an attribute in which the application installation package needs to be compiled during upgrade and wherein the idle compilation attribute refers to an attribute in which the application installation package needs not to be compiled during upgrade; during upgrade of the operating system, compiling the application installation packages whose processing attribute is the upgrade compilation attribute; detecting whether an application installation package is an application installation package which is not compiled and the processing attribute of which is the idle compilation attribute; and if the application installation package is an application installation package which is not compiled and the processing attribute of which is the idle compilation attribute, compiling the application installation package, and, after the upgrade ends, starting to install the application installation package if a current operation state of the apparatus satisfies an idle compilation condition, wherein the idle compilation condition comprises at least one of the following conditions: a current time instant falls within an idle time period; a current battery power exceeds a preset threshold; a current state is a battery charging state; and no operating signal is received in a most recent time period. a current time instant falls within an idle time period; a current battery power exceeds a preset threshold; a current state is a battery charging state; and no operating signal is received in a most recent time period.