WO2014180427A1 - Application program management method and device - Google Patents

Application program management method and device Download PDF

Info

Publication number
WO2014180427A1
WO2014180427A1 PCT/CN2014/079402 CN2014079402W WO2014180427A1 WO 2014180427 A1 WO2014180427 A1 WO 2014180427A1 CN 2014079402 W CN2014079402 W CN 2014079402W WO 2014180427 A1 WO2014180427 A1 WO 2014180427A1
Authority
WO
WIPO (PCT)
Prior art keywords
application
storage area
location
folder
user
Prior art date
Application number
PCT/CN2014/079402
Other languages
French (fr)
Chinese (zh)
Inventor
周凯
张海雄
刘小锐
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2014180427A1 publication Critical patent/WO2014180427A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation

Definitions

  • the present invention relates to the field of communications, and in particular to an application management method and apparatus.
  • BACKGROUND With the popularization of Android smart phones, the development of the upper-level APP supporting it is also developing rapidly, and a large number of APKs are available for downloading and installation at any time on the network.
  • the Android system when the Android system installs the application, it first reads the AndroidManifest.xml file in the application APK, and the file sets the location where the APK is allowed to be installed.
  • the InstallLocation attribute is 1, only the permission is allowed. Installed in the /data/app/ directory of the system, when the attribute is 2, it is allowed to be installed under the . andr 0 id_secure directory under the main storage path of the mnt mount partition. Due to the increasing demand for installing applications, the capacity requirements for the Data area are also increasing.
  • Preferred installation location the user can choose to install on the mobile phone side (DATA/APP side), or on the memory side (under the main storage area of the mnt mount partition. android_secure directory) .
  • the application When the application is installed, read the InstallLocation configuration information in the AndroidManifest.xml configuration file.
  • the configuration property InstallLocation in AndroidManifest.xml allows the APK to be installed in the .android_secure directory under the main storage path of the mnt mount partition, And when the user chooses to install on the memory side, the APK is installed on the memory side at this time.
  • the main drawback of this method is: After the user sets the installation mode uniformly, it is not always installed on the memory side when each APK is installed.
  • the application When the application is installed, it is installed by default in the DATA/APP directory.
  • the task management interface is provided in the task manager or other settings interface. On the application management interface, all installed APKs can be traversed. According to the AndroidManifest.xml attribute in the APK installation file, the allowed APK will be displayed separately for the user to move to the memory side.
  • the main disadvantages of this scheme are: When the APK in the DATA/APP directory is added to the main storage area of the mnt mount partition. The total capacity of the APK in the android_secure directory exceeds the total capacity of the DATA area, which will cause the current application to be backed up. After the package, it cannot be restored.
  • the dual Leica solution is basically the differentiation and customization of the sub-storage by each platform manufacturer.
  • the phone setting module that provides the dual T card function provides a choice of the storage path, and the user can select whether the default storage path is a built-in T card or an external T card.
  • the existing solution can only move the application to the setting in the main storage area of the mnt mounting partition on the storage side, which may cause doubts of the user, thereby reducing the user experience.
  • Embodiments of the present invention provide an application management method and apparatus to solve at least the above problems.
  • an application management method including: determining, in a case where a management location of an application is a storage area side, a storage area corresponding to a current default storage path of the system, where the storage area Including: built-in TFT card or external TFT card; store the application under the preset folder in the storage area; establish a link file between the system and the storage area under the system's predetermined folder to enable the system to directly access the application .
  • the method includes: reading configuration information set by the user for the management application, and acquiring the management location according to the configuration information.
  • storing the application in the preset folder of the storage area comprises: invoking an encryption interface of the system to encrypt the application, and storing the encrypted application in a preset folder of the storage area.
  • the management location comprises: a preferred installation location, or a quasi-mobile location, wherein the preferred installation location is a storage location selected by the user for the installation application, and the intended mobile location is a storage location selected by the user for the mobile application.
  • the method further includes: directly calling the installation application interface of the system, and installing the application.
  • the method further includes: determining whether the system partition is writable, and if the determination result is yes, starting the moving operation of the application, and if the determination result is no, prompting Insufficient user permissions prevent the application from moving.
  • the preset folder of the storage area comprises: .Android_secure folder; the predetermined folder of the system includes: mnt/asec folder.
  • an application management apparatus including: a determining module, configured to determine, when the management location of the application is the storage area side, the storage corresponding to the current default storage path of the system The area, where the storage area includes: a built-in TFT card or an external TFT card; a storage module, configured to store the application under a preset folder of the storage area; a setup module, configured to establish a system under a predetermined folder of the system A link file with the storage area to enable the system to directly access the application.
  • the device further includes: an obtaining module, configured to read configuration information set by the user for the management application, and obtain a management location according to the configuration information, where the management location includes: a preferred installation location, or a pseudo-moving location, a preferred installation location Is the storage location that the user selects for the installation application, and the intended mobile location is the storage location that the user selects for the mobile application.
  • the preset folder of the storage area comprises: .Android_secure folder; the predetermined folder of the system includes: mnt/asec folder.
  • the user does not need to pay attention to the distinction between the built-in T card and the external T card, so that the installation and movement of the application can be completely consistent with the configured storage path, and the application in the related technology is solved.
  • the program management only the problem that the data transfer between the main storage areas causes the use efficiency of the sub-storage area to be too low is considered, and the effect of effectively utilizing the space of the sub-storage area is achieved.
  • FIG. 2 is a structural block diagram of an application management apparatus according to an embodiment of the present invention
  • FIG. 3 is a preferred application according to an embodiment of the present invention.
  • FIG. 4 is a flowchart of application installation in a dual T card environment according to a preferred embodiment of the present invention;
  • FIG. 5 is an application movement in a dual T card environment according to a preferred embodiment 2 of the present invention
  • Flow chart FIG. 6 is a flow chart showing loading of installed application information during booting in a dual T card environment according to a preferred embodiment or preferred embodiment 2 of the present invention.
  • BEST MODE FOR CARRYING OUT THE INVENTION will be described in detail with reference to the accompanying drawings. It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict.
  • Embodiments of the present invention relate to an application management method in the field of Android smart phones, and in particular, to a method and system for moving and managing an application in a primary storage card and a secondary storage card in a dual T card environment.
  • the embodiment of the present invention proposes a double T card environment.
  • the application management method and system integrate the utilization rules and processes of the storage space of the mobile phone from the bottom layer, and transparently illuminate the user on the application layer and the display interface.
  • the embodiment of the invention provides an application management method. 1 is a flowchart of an application management method according to an embodiment of the present invention. As shown in FIG.
  • the method mainly includes the following steps (step S102 - step S106): Step S102, where the management location of the application is storage area side In this case, the storage area corresponding to the current default storage path of the system is determined, where the storage area includes: a built-in TFT card or an external TFT card; Step S104, storing the application in a preset folder of the storage area; Step S106, A link file between the system and the storage area is created under the system's predetermined folder to enable the system to directly access the application.
  • the user does not need to pay attention to the distinction between the built-in T card and the external T card, so that the installation and movement of the application can be completely consistent with the configured storage path.
  • step S102 the configuration information set by the user for the management application may be read first, and the management location may be acquired according to the configuration information.
  • step S104 can be implemented by first calling the encryption interface of the system to encrypt the application, and then storing the encrypted application in a preset folder of the storage area.
  • the management location may include: a preferred installation location, or a quasi-mobile location, wherein the preferred installation location is a storage location selected by the user for the installation application, and the intended mobile location is a storage location selected by the user for the mobile application.
  • the preferred installation location is the mobile terminal side (as opposed to the storage area side, from the perspective of the user, the non-storage area is displayed on the mobile terminal, and may also be called In the case of non-DATA side or APP side), the application installation interface of the system can be directly called to install the application.
  • the preset folder of the storage area may include: .Android_secure folder; the predetermined folder of the system includes: mnt/asec folder.
  • .Android_secure folder the predetermined folder of the system includes: mnt/asec folder.
  • FIG. 2 is a structural block diagram of an application management apparatus according to an embodiment of the present invention. As shown in FIG. 2, the apparatus mainly includes: a determining module 10, a storage module 20, and an establishing module 30.
  • the determining module 10 is configured to determine, in the case that the management location of the application is the storage area side, the storage area corresponding to the current default storage path of the system, where the storage area includes: a built-in TFT card or an external TFT card;
  • the module 20 is connected to the determining module 10, and is configured to store the application program under a preset folder of the storage area;
  • the establishing module 30 is connected to the storage module 20, and is configured to establish a system and a storage area under a predetermined folder of the system. Linked files to give the system direct access to the application.
  • 3 is a structural block diagram of a preferred application management apparatus according to an embodiment of the present invention. As shown in FIG.
  • the preferred application management apparatus further includes: an obtaining module 40, connected to the determining module 10, configured to read the user for management.
  • the configuration information set by the application is obtained according to the configuration information, where the management location includes: a preferred installation location, or a planned mobile location, a preferred installation location is a storage location selected by the user for the installation application, and the intended mobile location is the user is mobile
  • the preset folder of the storage area may include: .Android-secure folder; the predetermined folder of the system includes: mnt/asec folder.
  • the following preferred example 1 will introduce an application management method by using an application installed on a mobile phone as an example in a dual T-card scenario.
  • the following preferred embodiment 2 will be described in the dual T-card scenario.
  • the application management method is described by taking the mobile phone as an example.
  • the two preferred examples illustrate the implementation of the embodiment of the present invention by taking the two common management methods of the application installation or mobile as an example. In practical applications, the application can be managed more widely in other ways.
  • the implementation process of the two preferred embodiments is firstly introduced from the technical solution:
  • the user's configuration information is directly read, and the user's selection of the installation mode is viewed. If the user chooses to install in the non-DATA area (ie, the mobile terminal side) , directly read the storage path set by the user, and directly install the application in the storage path set by the user.
  • the moving process of the application provided in the following preferred embodiment 2 when the application needs to be moved to the memory side, it is first determined whether the SYSTEM partition has been mounted as writable, and if it is not writable, the user is prompted to SYSTEM. The application under the partition cannot be moved due to the permission restriction.
  • the APK file is removed from the mobile phone side and placed in the .Android-secure folder on the memory side.
  • the specific setting is set in the built-in T card or the external T card.
  • the storage path is determined.
  • the APK file in the source directory is directly moved, the APK is confusingly encrypted by the method provided by the Android system interface, copied to IJ.Android_secure, the original file in the source directory is deleted, and the space is released.
  • the linked application is linked in the mnt/ASEC path, so that the user can link to the corresponding APK to run when the original application icon is clicked.
  • the loaded application can be loaded.
  • the loading process mainly includes: During the boot process, VOLD The layer first obtains the storage path of the internal and external T-cards currently mounted by the system through the configuration file, and then the VOLD layer scans the .AndroicLsecure folder under the path, and mounts each file as a separate partition according to the application package name. The partitions create links under the mnt/ASEC folder to complete the application loading.
  • FIG. 4 is a flow chart of application installation in a dual T card environment according to a preferred embodiment of the present invention.
  • Step S401 the mobile phone is powered on; Step S402, the user starts the installation of the APK through the network or reading the storage area; Step S403, the mobile phone reads the configuration information of the user when the application is installed Determining the preferred installation location selected by the user; Step S404, if the user chooses to install on the mobile phone side, directly calling the installation APK interface of the system, the installation is completed; Step S405, when the user selects to install on the storage area side, the current system is read.
  • the default storage path is stored on which card in the dual T card; in step S406, the APK to be installed is used as an input parameter, and the encrypted interface of Android is called to copy the encrypted APK to the corresponding storage area.
  • FIG. 5 is a flowchart of performing application movement in a dual T card environment according to a preferred embodiment 2 of the present invention. As shown in FIG.
  • Step S501 The mobile phone is powered on;
  • Step S502 The user manages the portal through the application, and performs a mobile operation of the application;
  • step S503 the mobile phone reads the configuration information of the user when the application is installed, and determines the intended moving location selected by the user;
  • Step S504 determining the system authority, if the System partition is writable, directly starting the moving operation; if not writing, the user is required to be insufficiently authorized, and the application under the SYSTEM/APP cannot move;
  • Step S505 when the user selects the mobile When the storage area is located, the current default storage path of the system is read, which is stored in the dual T card;
  • Step S506 the APK to be moved is used as an input parameter, and the encrypted interface of the Android is called, and the encrypted interface is encrypted.
  • FIG. 6 is a flowchart of loading installed application information during booting in a dual T card environment according to a preferred embodiment or preferred embodiment of the present invention. As shown in FIG.
  • the process includes the following steps: S601, the mobile phone is powered on; in step S602, the storage mode and the mounting path of the memory are obtained through the system configuration file storagejist.xml; Step S603, scanning the application APK encrypted file in the Android_secure folder of the internal and external T card; Step S604 , each encrypted file is mounted as a separate partition; Step S605, calling the Android system interface to decrypt the encrypted APK; Step S606, establishing a link file between the system and the storage area in the mnt/asec folder, The system can directly access the APK application stored on the memory side; Step S607, the application starts the loading process to end.
  • each of the above modules can be implemented by hardware.
  • a processor including the above modules, or each of the above modules is located in one processor.
  • software is also provided for performing the technical solutions described in the above embodiments and preferred embodiments.
  • a storage medium is provided, the software being stored, including but not limited to: an optical disk, a floppy disk, a hard disk, a rewritable memory, and the like.
  • the embodiment of the present invention achieves the following technical effects: the user does not need to pay attention to the distinction between the internal and external T cards, whether in the process of installing the application or during the moving process of the application.
  • the internal and external T-cards are unified for the user, and the installation and movement of the application by the user is completely consistent with the storage path configured by the user, and by this method, the space of the secondary storage area can be Use it effectively.
  • the external ⁇ card is often used as a secondary storage area, with external
  • the T-card is faster and faster to read and write, and the storage space is getting larger and larger.
  • the external T-card is the main storage area of the mobile phone installation application.
  • the technical solution provided by the embodiment of the present invention can be fully adapted to Technological development under this trend.
  • those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general-purpose computing device, which can be concentrated on a single computing device or distributed over a network composed of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device, such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein.
  • an application management method and apparatus provided by an embodiment of the present invention have the following beneficial effects: Whether in the process of installing an application or during the movement of an application, the user does not need to pay attention to internal and external In terms of the service, the internal and external T-cards are unified for the user, and the installation and movement of the application by the user is completely consistent with the storage path configured by the user, and by this method, Effective use of the space in the secondary storage area.
  • the external T card to As the secondary storage area, as the read and write speed of the external ⁇ card is getting faster and faster, the storage space is getting larger and larger, and the external ⁇ card has begun to appear as the main storage area for mobile phone installation applications.
  • the technical solutions provided by the embodiments of the present invention can be fully adapted to the technical development under the trend.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

An application program management method and device. The method comprises: when an application program management position is a storage area side, confirming a storage area corresponding to a current default storage path of a system, wherein the storage area includes: a built-in TFT card or an external TFT card; storing the application program under a preset folder of the storage area; establishing, under a predefined folder of the system, a link file between the system and the storage area, in order to allow the system to directly access the application program. The present method and device allow for effectively utilizing secondary storage area space.

Description

应用程序管理方法及装置 技术领域 本发明涉及通信领域, 具体而言, 涉及一种应用程序管理方法及装置。 背景技术 随着 Android智能手机的普及, 与之配套的上层 APP开发也发展迅猛, 网络上随 时会提供海量的 APK进行下载和安装使用。 在现有技术下, Android系统安装应用程 序时, 会首先读取应用程序 APK中的 AndroidManifest.xml文件, 该文件中设定了该 APK允许被安装的位置,当 InstallLocation属性为 1时,只允许安装到系统的 /data/app/ 目录下,当属性为 2时,允许被安装到 mnt挂载分区的主存储区路径下的. andr0id_secure 目录下。 由于现在安装应用的需求越来越多, 对 Data区的容量需求也越来越大, 目前 主流的解决方案有两种: TECHNICAL FIELD The present invention relates to the field of communications, and in particular to an application management method and apparatus. BACKGROUND With the popularization of Android smart phones, the development of the upper-level APP supporting it is also developing rapidly, and a large number of APKs are available for downloading and installation at any time on the network. In the prior art, when the Android system installs the application, it first reads the AndroidManifest.xml file in the application APK, and the file sets the location where the APK is allowed to be installed. When the InstallLocation attribute is 1, only the permission is allowed. Installed in the /data/app/ directory of the system, when the attribute is 2, it is allowed to be installed under the . andr 0 id_secure directory under the main storage path of the mnt mount partition. Due to the increasing demand for installing applications, the capacity requirements for the Data area are also increasing. Currently, there are two mainstream solutions:
1、 在设置菜单中提供设置项: 首选安装位置, 用户可以选择安装在手机侧 ( DATA/APP 侧), 还是安装在存储器侧 (mnt 挂载分区的主存储区路径下 的. android_secure目录下)。 在应用程序安装时, 读取 AndroidManifest.xml配置文件中 的 InstallLocation配置信息, 当 AndroidManifest.xml中配置属性 InstallLocation允许将 该 APK安装在 mnt挂载分区的主存储区路径下的. android_secure目录下时, 并且用户 选择安装在存储器侧时, 此时将 APK安装在存储器侧。该方法的主要缺陷是: 用户统 一设置安装模式后,其实并不是每个 APK安装的时候都能成功安装在存储器侧, 需要 依赖 APK安装文件中的 AndroidManifest.xml属性 InstallLocation控制, 这样会导致用 户设置了安装在存储器侧, 由于 APK本身的限制, 导致无法成功安装在存储器侧, 导 致用户体验欠佳。 1. Provide setting items in the setup menu: Preferred installation location, the user can choose to install on the mobile phone side (DATA/APP side), or on the memory side (under the main storage area of the mnt mount partition. android_secure directory) . When the application is installed, read the InstallLocation configuration information in the AndroidManifest.xml configuration file. When the configuration property InstallLocation in AndroidManifest.xml allows the APK to be installed in the .android_secure directory under the main storage path of the mnt mount partition, And when the user chooses to install on the memory side, the APK is installed on the memory side at this time. The main drawback of this method is: After the user sets the installation mode uniformly, it is not always installed on the memory side when each APK is installed. It depends on the AndroidManifest.xml property InstallLocation control in the APK installation file, which will cause the user to set Installed on the memory side, due to the limitation of the APK itself, it cannot be successfully installed on the memory side, resulting in poor user experience.
2、 在应用程序安装时, 默认安装在 DATA/APP 目录下, 在任务管理器或者其他 设置界面提供了应用程序管理界面的入口, 在应用程序管理界面上, 能够对所有的已 安装 APK进行遍历, 根据 APK安装文件中的 AndroidManifest.xml属性进行分类, 将 允许被移动的 APK 单独显示, 供用户移动到存储器侧。 该方案的主要缺点在于: 当 DATA/APP目录下的 APK加上 mnt挂载分区的主存储区路径下的. android_secure目录 下的 APK总容量超过 DATA区总容量时,会导致备份当前的应用程序包后,无法进行 还原。 而且, 由于 Android源生并不支持双 T卡方案, 双 Τ卡方案基本都是各平台厂商 进行对副存的差异化和客制化实现。 在现有的应用程序管理方法中, 均只考虑了手机 侧 DATA存储区和存储器侧 mnt挂载分区的主存储区之间的数据转移, 副存储区的巨 大空间没有进行利用。 从用户角度看, 提供双 T卡功能的手机设置模块中, 均提供了 存储路径的选择, 用户可以选择默认存储路径为内置 T卡还是外置 T卡。 现有方案只 能将应用移动到存储器侧 mnt挂载分区的主存储区中的设置, 会引起用户的疑义, 从 而降低用户体验。 针对相关技术中进行应用程序管理时只考虑了主存储区之间的数据转移导致副存 储区利用效率过低的问题, 目前尚未提出有效的解决方案。 发明内容 本发明实施例提供了一种应用程序管理方法及装置, 以至少解决上述问题。 根据本发明实施例的一个方面, 提供了一种应用程序管理方法, 包括: 在应用程 序的管理位置为存储区侧的情况下, 确定系统当前的默认存储路径对应的存储区域, 其中, 存储区域包括: 内置 TFT卡或外置 TFT卡; 将应用程序存储到存储区域的预置 文件夹下; 在系统的预定文件夹下建立系统与存储区域之间的链接文件以使系统能够 直接访问应用程序。 优选地, 在确定系统当前的默认存储路径对应的存储区域之前, 包括: 读取用户 为管理应用程序设置的配置信息, 根据配置信息获取管理位置。 优选地, 将应用程序存储到存储区域的预置文件夹下, 包括: 调用系统的加密接 口对应用程序进行加密操作, 将加密后的应用程序存储到存储区域的预置文件夹下。 优选地, 管理位置包括: 首选安装位置, 或拟移动位置, 其中, 首选安装位置是 用户为安装应用程序选择的存储位置, 拟移动位置是用户为移动应用程序选择的存储 位置。 优选地, 在首选安装位置为移动终端侧的情况下, 还包括: 直接调用系统的安装 应用程序接口, 对应用程序进行安装。 优选地, 在根据配置信息获取到拟移动位置之后, 还包括: 判断系统分区是否可 写, 在判断结果为是的情况下, 启动应用程序的移动操作, 在判断结果为否的情况下, 提示用户权限不够导致应用程序无法移动。 优选地, 存储区域的预置文件夹包括: .Android_secure文件夹; 系统的预定文件 夹包括: mnt/asec文件夹。 根据本发明实施例的另一方面, 提供了一种应用程序管理装置, 包括: 确定模块, 设置为在应用程序的管理位置为存储区侧的情况下, 确定系统当前的默认存储路径对 应的存储区域, 其中, 存储区域包括: 内置 TFT卡或外置 TFT卡; 存储模块, 设置为 将应用程序存储到存储区域的预置文件夹下; 建立模块, 设置为在系统的预定文件夹 下建立系统与存储区域之间的链接文件以使系统能够直接访问应用程序。 优选地, 该装置还包括: 获取模块, 设置为读取用户为管理应用程序设置的配置 信息, 根据配置信息获取管理位置, 其中, 管理位置包括: 首选安装位置, 或拟移动 位置, 首选安装位置是用户为安装应用程序选择的存储位置, 拟移动位置是用户为移 动应用程序选择的存储位置。 优选地, 存储区域的预置文件夹包括: .Android_secure文件夹; 系统的预定文件 夹包括: mnt/asec文件夹。 通过本发明实施例, 采用用户无需关注内置 T卡和外置 T卡的区分, 就可以使应 用程序的安装和移动可以完全和其配置的存储路径保持一致的方式, 解决了相关技术 中进行应用程序管理时只考虑了主存储区之间的数据转移导致副存储区利用效率过低 的问题, 达到了能够有效利用副存储区域的空间的效果。 附图说明 此处所说明的附图用来提供对本发明的进一步理解, 构成本申请的一部分, 本发 明的示意性实施例及其说明用于解释本发明, 并不构成对本发明的不当限定。 在附图 中: 图 1是根据本发明实施例的应用程序管理方法流程图; 图 2是根据本发明实施例的应用程序管理装置的结构框图; 图 3是根据本发明实施例的优选应用程序管理装置的结构框图; 图 4是根据本发明优选实施例一的在双 T卡环境下进行应用安装的流程图; 图 5是根据本发明优选实施例二的在双 T卡环境下进行应用移动的流程图; 图 6是根据本发明优选实施例一或优选实施例二在双 T卡环境下开机过程中对已 安装的应用程序信息进行加载的流程图。 具体实施方式 下文中将参考附图并结合实施例来详细说明本发明。 需要说明的是, 在不冲突的 情况下, 本申请中的实施例及实施例中的特征可以相互组合。 本发明实施例涉及 Android智能手机领域下的应用程序管理方法,特别涉及在双 T 卡环境下, 对应用程序在主存储卡和副存储卡中移动, 管理的方法和系统。 为了优化 对手机外设存储空间的利用效率,减少应用程序安装对手机 DATA区存储空间的占用, 提升用户在进行业务信息配置时的用户体验, 本发明实施例提出了一种双 T卡环境下 应用程序管理方法及系统, 从底层整合了手机存储空间的利用规则和流程, 在应用层 和显示界面上对用户进行透明。 本发明实施例提供了一种应用程序管理方法。 图 1是根据本发明实施例的应用程 序管理方法流程图, 如图 1所示, 该方法主要包括以下步骤 (步骤 S102-步骤 S106): 步骤 S102, 在应用程序的管理位置为存储区侧的情况下, 确定系统当前的默认存 储路径对应的存储区域, 其中, 存储区域包括: 内置 TFT卡或外置 TFT卡; 步骤 S104, 将应用程序存储到存储区域的预置文件夹下; 步骤 S106,在系统的预定文件夹下建立系统与存储区域之间的链接文件以使系统 能够直接访问应用程序。 通过上述各个步骤, 用户无需关注内置 T卡和外置 T卡的区分, 就可以使应用程 序的安装和移动可以完全和其配置的存储路径保持一致, 从应用程序的管理操作本身 看, 内外置 T卡对用户而言是合一的, 这提高了用户的体验, 而且达到了能够有效利 用副存储区域的空间的效果。 在本实施例中,在执行步骤 S102之前,可以先读取用户为管理应用程序设置的配 置信息, 根据配置信息获取管理位置。 在本实施例中,步骤 S104可以通过以下的方式来实现:先调用系统的加密接口对 应用程序进行加密操作, 再将加密后的应用程序存储到存储区域的预置文件夹下。 在本实施例中, 管理位置可以包括: 首选安装位置, 或拟移动位置, 其中, 首选 安装位置是用户为安装应用程序选择的存储位置, 拟移动位置是用户为移动应用程序 选择的存储位置。 进一步地,在本实施例的一个优选实施方式中,在首选安装位置为移动终端侧(与 存储区侧相对而言, 从用户角度来看, 在移动终端上显示为非存储区域, 也可以称之 为非 DATA侧或 APP侧)的情况下, 可以直接调用系统的安装应用程序接口, 对应用 程序进行安装。 在本实施例的另一个优选实施方式中, 在根据配置信息获取到拟移动位置之后, 还可以先判断系统分区是否可写, 在判断结果为是 (即系统分区处于可写状态) 的情 况下, 可以启动应用程序的移动操作, 在判断结果为否(即系统分区处于不可写状态) 的情况下, 可以提示用户权限不够导致应用程序无法移动。 在本实施例中, 存储区域的预置文件夹可以包括: .Android_secure文件夹; 系统 的预定文件夹包括: mnt/asec 文件夹。 当然, 这里仅给出两个较佳的文件夹类型, 在 实际应用中, 完全不局限于此, 只要容易实现上述方案的文件夹类型均可以作为存储 区域的预置文件夹, 或系统的预定文件夹。 本发明实施例还提供了一种应用程序管理装置, 用以实现上述实施例提供的应用 程序管理方法。 图 2是根据本发明实施例的应用程序管理装置的结构框图, 如图 2所 示, 该装置主要包括: 确定模块 10、 存储模块 20以及建立模块 30。 其中, 确定模块 10, 设置为在应用程序的管理位置为存储区侧的情况下, 确定系统当前的默认存储路 径对应的存储区域, 其中, 存储区域包括: 内置 TFT卡或外置 TFT卡; 存储模块 20, 连接至确定模块 10,设置为将应用程序存储到存储区域的预置文件夹下;建立模块 30, 连接至存储模块 20, 设置为在系统的预定文件夹下建立系统与存储区域之间的链接文 件以使系统能够直接访问应用程序。 图 3是根据本发明实施例的优选应用程序管理装置的结构框图, 如图 3所示, 该 优选应用程序管理装置还包括: 获取模块 40, 与确定模块 10连接, 设置为读取用户 为管理应用程序设置的配置信息, 根据配置信息获取管理位置, 其中, 管理位置包括: 首选安装位置, 或拟移动位置, 首选安装位置是用户为安装应用程序选择的存储位置, 拟移动位置是用户为移动应用程序选择的存储位置。 优选地, 存储区域的预置文件夹可以包括: .Android—secure文件夹; 系统的预定 文件夹包括: mnt/asec 文件夹。 当然, 这里仅给出两个较佳的文件夹类型, 在实际应 用中, 完全不局限于此, 只要容易实现上述方案的文件夹类型均可以作为存储区域的 预置文件夹, 或系统的预定文件夹。 采用上述实施例提供的应用程序管理方法及装置, 在安装或移动应用程序的过程 中, 用户无需关注内外置 τ卡的区分, 内外置 T卡对用户而言是合一的, 应用程序的 安装和移动可以完全和用户配置的存储路径保持一致, 且能够有效利用副存储区域的 空间。 下面结合图 4至图 6以及优选实施例一和优选实施例二对上述实施例提供的应用 程序管理方法及装置进行更加详细的描述和说明。 以下的优选实例一将介绍在双 T卡场景下, 以应用程序在手机上进行安装为例对 应用程序管理方法进行描述, 以下的优选实施例二将介绍在双 T卡场景下, 以应用程 序在手机上进行移动为例对应用程序管理方法进行描述, 这两个优选实例仅以应用程 序的安装或移动两种较为常见的对应用程序进行管理方式为例对本发明实施例的实现 进行说明, 在实际应用中, 完全可以以其他方式对应用程序更为广泛的管理。 在对优选实施例一和优选实施例二进行详细描述之前, 首先对这两个优选实施例 的实现过程进行从技术方案的思路上进行简要介绍: 2. When the application is installed, it is installed by default in the DATA/APP directory. The task management interface is provided in the task manager or other settings interface. On the application management interface, all installed APKs can be traversed. According to the AndroidManifest.xml attribute in the APK installation file, the allowed APK will be displayed separately for the user to move to the memory side. The main disadvantages of this scheme are: When the APK in the DATA/APP directory is added to the main storage area of the mnt mount partition. The total capacity of the APK in the android_secure directory exceeds the total capacity of the DATA area, which will cause the current application to be backed up. After the package, it cannot be restored. Moreover, since the Android source does not support the dual T card solution, the dual Leica solution is basically the differentiation and customization of the sub-storage by each platform manufacturer. In the existing application management method, only the data transfer between the mobile phone side DATA storage area and the memory side mnt mount partition main storage area is considered, and the huge space of the secondary storage area is not utilized. From the user's point of view, the phone setting module that provides the dual T card function provides a choice of the storage path, and the user can select whether the default storage path is a built-in T card or an external T card. The existing solution can only move the application to the setting in the main storage area of the mnt mounting partition on the storage side, which may cause doubts of the user, thereby reducing the user experience. For the application management in the related art, only the data transfer between the main storage areas is considered to cause the utilization efficiency of the sub-storage area to be too low, and an effective solution has not been proposed yet. SUMMARY OF THE INVENTION Embodiments of the present invention provide an application management method and apparatus to solve at least the above problems. According to an aspect of the embodiments of the present invention, an application management method is provided, including: determining, in a case where a management location of an application is a storage area side, a storage area corresponding to a current default storage path of the system, where the storage area Including: built-in TFT card or external TFT card; store the application under the preset folder in the storage area; establish a link file between the system and the storage area under the system's predetermined folder to enable the system to directly access the application . Preferably, before determining the storage area corresponding to the current default storage path of the system, the method includes: reading configuration information set by the user for the management application, and acquiring the management location according to the configuration information. Preferably, storing the application in the preset folder of the storage area comprises: invoking an encryption interface of the system to encrypt the application, and storing the encrypted application in a preset folder of the storage area. Preferably, the management location comprises: a preferred installation location, or a quasi-mobile location, wherein the preferred installation location is a storage location selected by the user for the installation application, and the intended mobile location is a storage location selected by the user for the mobile application. Preferably, in the case that the preferred installation location is the mobile terminal side, the method further includes: directly calling the installation application interface of the system, and installing the application. Preferably, after acquiring the proposed moving position according to the configuration information, the method further includes: determining whether the system partition is writable, and if the determination result is yes, starting the moving operation of the application, and if the determination result is no, prompting Insufficient user permissions prevent the application from moving. Preferably, the preset folder of the storage area comprises: .Android_secure folder; the predetermined folder of the system includes: mnt/asec folder. According to another aspect of the embodiments of the present invention, an application management apparatus is provided, including: a determining module, configured to determine, when the management location of the application is the storage area side, the storage corresponding to the current default storage path of the system The area, where the storage area includes: a built-in TFT card or an external TFT card; a storage module, configured to store the application under a preset folder of the storage area; a setup module, configured to establish a system under a predetermined folder of the system A link file with the storage area to enable the system to directly access the application. Preferably, the device further includes: an obtaining module, configured to read configuration information set by the user for the management application, and obtain a management location according to the configuration information, where the management location includes: a preferred installation location, or a pseudo-moving location, a preferred installation location Is the storage location that the user selects for the installation application, and the intended mobile location is the storage location that the user selects for the mobile application. Preferably, the preset folder of the storage area comprises: .Android_secure folder; the predetermined folder of the system includes: mnt/asec folder. With the embodiment of the present invention, the user does not need to pay attention to the distinction between the built-in T card and the external T card, so that the installation and movement of the application can be completely consistent with the configured storage path, and the application in the related technology is solved. In the program management, only the problem that the data transfer between the main storage areas causes the use efficiency of the sub-storage area to be too low is considered, and the effect of effectively utilizing the space of the sub-storage area is achieved. BRIEF DESCRIPTION OF THE DRAWINGS The accompanying drawings, which are set to illustrate,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, 1 is a flowchart of an application management method according to an embodiment of the present invention; FIG. 2 is a structural block diagram of an application management apparatus according to an embodiment of the present invention; FIG. 3 is a preferred application according to an embodiment of the present invention. FIG. 4 is a flowchart of application installation in a dual T card environment according to a preferred embodiment of the present invention; FIG. 5 is an application movement in a dual T card environment according to a preferred embodiment 2 of the present invention; Flow chart FIG. 6 is a flow chart showing loading of installed application information during booting in a dual T card environment according to a preferred embodiment or preferred embodiment 2 of the present invention. BEST MODE FOR CARRYING OUT THE INVENTION Hereinafter, the present invention will be described in detail with reference to the accompanying drawings. It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict. Embodiments of the present invention relate to an application management method in the field of Android smart phones, and in particular, to a method and system for moving and managing an application in a primary storage card and a secondary storage card in a dual T card environment. In order to optimize the utilization efficiency of the storage space of the mobile phone peripherals, reduce the occupation of the storage space of the mobile phone DATA area, and improve the user experience when the user configures the service information, the embodiment of the present invention proposes a double T card environment. The application management method and system integrate the utilization rules and processes of the storage space of the mobile phone from the bottom layer, and transparently illuminate the user on the application layer and the display interface. The embodiment of the invention provides an application management method. 1 is a flowchart of an application management method according to an embodiment of the present invention. As shown in FIG. 1, the method mainly includes the following steps (step S102 - step S106): Step S102, where the management location of the application is storage area side In this case, the storage area corresponding to the current default storage path of the system is determined, where the storage area includes: a built-in TFT card or an external TFT card; Step S104, storing the application in a preset folder of the storage area; Step S106, A link file between the system and the storage area is created under the system's predetermined folder to enable the system to directly access the application. Through the above steps, the user does not need to pay attention to the distinction between the built-in T card and the external T card, so that the installation and movement of the application can be completely consistent with the configured storage path. From the management operation of the application itself, internal and external The T card is unified for the user, which improves the user's experience and achieves the effect of effectively utilizing the space of the sub storage area. In this embodiment, before performing step S102, the configuration information set by the user for the management application may be read first, and the management location may be acquired according to the configuration information. In this embodiment, step S104 can be implemented by first calling the encryption interface of the system to encrypt the application, and then storing the encrypted application in a preset folder of the storage area. In this embodiment, the management location may include: a preferred installation location, or a quasi-mobile location, wherein the preferred installation location is a storage location selected by the user for the installation application, and the intended mobile location is a storage location selected by the user for the mobile application. Further, in a preferred embodiment of the embodiment, the preferred installation location is the mobile terminal side (as opposed to the storage area side, from the perspective of the user, the non-storage area is displayed on the mobile terminal, and may also be called In the case of non-DATA side or APP side), the application installation interface of the system can be directly called to install the application. In another preferred embodiment of the present embodiment, after acquiring the intended moving position according to the configuration information, it may also first determine whether the system partition is writable, and if the determination result is yes (ie, the system partition is in a writable state) You can start the mobile operation of the application. If the judgment result is no (that is, the system partition is in a non-writable state), you can prompt the user that the authority is insufficient and the application cannot move. In this embodiment, the preset folder of the storage area may include: .Android_secure folder; the predetermined folder of the system includes: mnt/asec folder. Of course, only two preferred folder types are given here. In practical applications, it is not limited to this. As long as the folder type that easily implements the above solution can be used as a preset folder of the storage area, or a system reservation. folder. The embodiment of the present invention further provides an application management apparatus, which is used to implement the application management method provided by the foregoing embodiment. FIG. 2 is a structural block diagram of an application management apparatus according to an embodiment of the present invention. As shown in FIG. 2, the apparatus mainly includes: a determining module 10, a storage module 20, and an establishing module 30. The determining module 10 is configured to determine, in the case that the management location of the application is the storage area side, the storage area corresponding to the current default storage path of the system, where the storage area includes: a built-in TFT card or an external TFT card; The module 20 is connected to the determining module 10, and is configured to store the application program under a preset folder of the storage area; the establishing module 30 is connected to the storage module 20, and is configured to establish a system and a storage area under a predetermined folder of the system. Linked files to give the system direct access to the application. 3 is a structural block diagram of a preferred application management apparatus according to an embodiment of the present invention. As shown in FIG. 3, the preferred application management apparatus further includes: an obtaining module 40, connected to the determining module 10, configured to read the user for management. The configuration information set by the application is obtained according to the configuration information, where the management location includes: a preferred installation location, or a planned mobile location, a preferred installation location is a storage location selected by the user for the installation application, and the intended mobile location is the user is mobile The storage location selected by the application. Preferably, the preset folder of the storage area may include: .Android-secure folder; the predetermined folder of the system includes: mnt/asec folder. Of course, only two preferred folder types are given here, in practice In use, it is not limited to this, as long as the folder type that is easy to implement the above scheme can be used as a preset folder of the storage area, or a predetermined folder of the system. With the application management method and device provided by the above embodiments, in the process of installing or moving the application, the user does not need to pay attention to the distinction between the internal and external τ cards, and the internal and external T cards are unified for the user, and the application is installed. And the mobile can be completely consistent with the user-configured storage path, and can effectively utilize the space of the secondary storage area. The application management method and apparatus provided by the foregoing embodiments are described and illustrated in more detail below with reference to FIG. 4 to FIG. 6 and the preferred embodiment 1 and the preferred embodiment 2. The following preferred example 1 will introduce an application management method by using an application installed on a mobile phone as an example in a dual T-card scenario. The following preferred embodiment 2 will be described in the dual T-card scenario. The application management method is described by taking the mobile phone as an example. The two preferred examples illustrate the implementation of the embodiment of the present invention by taking the two common management methods of the application installation or mobile as an example. In practical applications, the application can be managed more widely in other ways. Before the detailed description of the preferred embodiment 1 and the preferred embodiment 2, the implementation process of the two preferred embodiments is firstly introduced from the technical solution:
( 1 )在下述优选实施例一提供的在应用程序的安装过程中,直接读取用户的配置 信息, 查看用户对安装模式的选择, 如果用户选择安装在非 DATA区 (即上述移动终 端侧), 则直接读取用户设置的存储路径,直接将应用程序安装在用户设置的存储路径 下。 (2)在下述优选实施例二提供的在应用程序的移动过程中,在需要将应用程序移 动到存储器侧时, 首先判断 SYSTEM分区是否已经挂载为可写, 如果为不可写, 提示 用户 SYSTEM分区下的应用程序由于权限限制无法进行移动, 接着将 APK文件从手 机侧移出, 放置在存储器侧的 .Android—secure文件夹中, 具体放置在内置 T卡还是外 置 T卡则由设置的默认存储路径决定。 在移动过程中, 直接将源目录下的 APK文件 进行移动, 将 APK 通过 Android 系统接口提供的方法进行混淆加密, 复制 至 IJ.Android_secure, 删除源目录下的原始文件, 释放空间。移出后, 在 mnt/ASEC路径 下对已经移动的应用进行链接式挂载, 从而使得用户在点击原有的应用图标时才能链 接到对应的 APK进行运行。 在对应用程序进行上述管理操作 (即, 安装或移动应用程序的操作) 之后, 就可 以对管理后的应用程序进行加载流程了, 加载流程主要包括: 在开机过程中, VOLD 层会首先通过配置文件获取当前系统挂载的内外置 T卡的存储路径,然后 VOLD层扫 描该路径下的 .AndroicLsecure文件夹, 将每个文件按照应用程序包名挂载成独立的分 区, 每个分区在 mnt/ASEC文件夹下创建链接, 完成应用程序的加载。 优选实施例一 图 4是根据本发明优选实施例一的在双 T卡环境下进行应用安装的流程图, 如图(1) In the installation process of the application provided in the following preferred embodiment 1, the user's configuration information is directly read, and the user's selection of the installation mode is viewed. If the user chooses to install in the non-DATA area (ie, the mobile terminal side) , directly read the storage path set by the user, and directly install the application in the storage path set by the user. (2) In the moving process of the application provided in the following preferred embodiment 2, when the application needs to be moved to the memory side, it is first determined whether the SYSTEM partition has been mounted as writable, and if it is not writable, the user is prompted to SYSTEM. The application under the partition cannot be moved due to the permission restriction. Then the APK file is removed from the mobile phone side and placed in the .Android-secure folder on the memory side. The specific setting is set in the built-in T card or the external T card. The storage path is determined. During the move process, the APK file in the source directory is directly moved, the APK is confusingly encrypted by the method provided by the Android system interface, copied to IJ.Android_secure, the original file in the source directory is deleted, and the space is released. After the removal, the linked application is linked in the mnt/ASEC path, so that the user can link to the corresponding APK to run when the original application icon is clicked. After performing the above management operations on the application (that is, installing or moving the application), the loaded application can be loaded. The loading process mainly includes: During the boot process, VOLD The layer first obtains the storage path of the internal and external T-cards currently mounted by the system through the configuration file, and then the VOLD layer scans the .AndroicLsecure folder under the path, and mounts each file as a separate partition according to the application package name. The partitions create links under the mnt/ASEC folder to complete the application loading. Preferred Embodiment 1 FIG. 4 is a flow chart of application installation in a dual T card environment according to a preferred embodiment of the present invention.
4所示, 该流程包括以下步骤: 步骤 S401 , 手机开机运行; 步骤 S402, 用户通过网络或者读取存储区域, 开始进行 APK的安装工作; 步骤 S403 , 手机读取用户在安装应用时的配置信息, 判断用户选择的首选安装位 置; 步骤 S404, 如果用户选择安装在手机侧, 那么直接调用系统的安装 APK接口, 安装完毕; 步骤 S405, 当用户选择安装在存储区侧时, 读取系统目前的默认存储路径, 是存 储在双 T卡中的哪一张卡上; 步骤 S406,将待安装的 APK作为入参,调用 Android的加密接口,将加密的 APK 拷贝到对应存储区域的. Android_secure文件夹下; 步骤 S407, 在 mnt/asec文件夹下建立系统和存储区域间的链接文件, 让系统能够 直接访问到存储在存储器侧的 APK应用; 步骤 S408, 应用程序安装结束。 优选实施例二 图 5是根据本发明优选实施例二的在双 T卡环境下进行应用移动的流程图, 如图 5所示, 该流程包括以下步骤: 步骤 S501 , 手机开机运行; 步骤 S502, 用户通过应用程序管理入口, 进行应用程序的移动操作; 步骤 S503 ,手机读取用户在安装应用时的配置信息,判断用户选择的拟移动位置; 步骤 S504, 进行系统权限的判定, 如果 System分区可写, 则直接开始进行移动 操作; 如果不可写, 需要提示用户权限不够, SYSTEM/APP下的应用程序无法进行移 动; 步骤 S505, 当用户选择移动到存储区侧时, 读取系统目前的默认存储路径, 是存 储在双 T卡中的哪一张卡上; 步骤 S506,将待移动的 APK作为入参,调用 Android的加密接口,将加密的 APK 拷贝到对应存储区域的. Android_secure文件夹下; 步骤 S507, 在 mnt/asec文件夹下建立系统和存储区域间的链接文件, 让系统能够 直接访问到存储在存储器侧的 APK应用; 步骤 S508, 应用程序移动过程结束。 图 6是根据本发明优选实施例一或优选实施例二在双 T卡环境下开机过程中对已 安装的应用程序信息进行加载的流程图, 如图 6所示, 该流程包括以下步骤: 步骤 S601 , 手机开机运行; 步骤 S602,通过系统配置文件 storagejist.xml,获取存储器的挂载方式和挂载路径; 步骤 S603 , 在内外置 T卡的. Android_secure文件夹下扫描应用 APK加密文件; 步骤 S604, 将每个加密文件作为一个单独的分区进行挂载; 步骤 S605, 调用 Android系统接口对加密的 APK进行解密; 步骤 S606, 在 mnt/asec文件夹下建立系统和存储区域间的链接文件, 让系统能够 直接访问到存储在存储器侧的 APK应用; 步骤 S607, 应用程序启动加载过程结束。 通过优选实施例一和优选实施例二的实施过程以及对管理后的应用程序进行加载 的过程, 可以看出, 无论是在安装应用的过程中, 还是在应用的移动过程中, 用户始 终都不需要关注内外置 T卡的区分,就该业务而言,内外置 T卡对用户而言是合一的, 用户对应用程序的安装和移动, 完全和用户配置的存储路径保持一致, 而且通过该方 法, 能够对副存储区域的空间加以有效利用。 需要说明的是, 上述各个模块是可以通过硬件来实现的。 例如: 一种处理器, 包 括上述各个模块, 或者, 上述各个模块分别位于一个处理器中。 在另外一个实施例中, 还提供了一种软件, 该软件用于执行上述实施例及优选实 施方式中描述的技术方案。 在另外一个实施例中, 还提供了一种存储介质, 该存储介质中存储有上述软件, 该存储介质包括但不限于: 光盘、 软盘、 硬盘、 可擦写存储器等。 从以上的描述中, 可以看出, 本发明实施例实现了如下技术效果: 无论是在安装 应用的过程中,还是在应用的移动过程中,用户始终都不需要关注内外置 T卡的区分, 就该业务而言, 内外置 T卡对用户而言是合一的, 用户对应用程序的安装和移动, 完 全和用户配置的存储路径保持一致, 而且通过该方法, 能够对副存储区域的空间加以 有效利用。 另外, 从目前的现有设备看, 外置 τ卡往往被作为副存储区域, 随着外置4, the process includes the following steps: Step S401, the mobile phone is powered on; Step S402, the user starts the installation of the APK through the network or reading the storage area; Step S403, the mobile phone reads the configuration information of the user when the application is installed Determining the preferred installation location selected by the user; Step S404, if the user chooses to install on the mobile phone side, directly calling the installation APK interface of the system, the installation is completed; Step S405, when the user selects to install on the storage area side, the current system is read. The default storage path is stored on which card in the dual T card; in step S406, the APK to be installed is used as an input parameter, and the encrypted interface of Android is called to copy the encrypted APK to the corresponding storage area. Android_secure folder Step S407, establishing a link file between the system and the storage area under the mnt/asec folder, so that the system can directly access the APK application stored on the memory side; Step S408, the application installation ends. FIG. 5 is a flowchart of performing application movement in a dual T card environment according to a preferred embodiment 2 of the present invention. As shown in FIG. 5, the process includes the following steps: Step S501: The mobile phone is powered on; Step S502, The user manages the portal through the application, and performs a mobile operation of the application; in step S503, the mobile phone reads the configuration information of the user when the application is installed, and determines the intended moving location selected by the user; Step S504, determining the system authority, if the System partition is writable, directly starting the moving operation; if not writing, the user is required to be insufficiently authorized, and the application under the SYSTEM/APP cannot move; Step S505, when the user selects the mobile When the storage area is located, the current default storage path of the system is read, which is stored in the dual T card; Step S506, the APK to be moved is used as an input parameter, and the encrypted interface of the Android is called, and the encrypted interface is encrypted. The APK is copied to the Android_secure folder of the corresponding storage area; Step S507, the link file between the system and the storage area is established under the mnt/asec folder, so that the system can directly access the APK application stored on the memory side; Step S508, The application move process ends. FIG. 6 is a flowchart of loading installed application information during booting in a dual T card environment according to a preferred embodiment or preferred embodiment of the present invention. As shown in FIG. 6, the process includes the following steps: S601, the mobile phone is powered on; in step S602, the storage mode and the mounting path of the memory are obtained through the system configuration file storagejist.xml; Step S603, scanning the application APK encrypted file in the Android_secure folder of the internal and external T card; Step S604 , each encrypted file is mounted as a separate partition; Step S605, calling the Android system interface to decrypt the encrypted APK; Step S606, establishing a link file between the system and the storage area in the mnt/asec folder, The system can directly access the APK application stored on the memory side; Step S607, the application starts the loading process to end. Through the implementation process of the preferred embodiment 1 and the preferred embodiment 2 and the process of loading the managed application, it can be seen that the user is never in the process of installing the application or in the process of moving the application. It is necessary to pay attention to the distinction between internal and external T-cards. For the business, the internal and external T-cards are unified for the user, and the installation and movement of the application by the user is completely consistent with the storage path configured by the user, and the The method can effectively utilize the space of the secondary storage area. It should be noted that each of the above modules can be implemented by hardware. For example: a processor, including the above modules, or each of the above modules is located in one processor. In another embodiment, software is also provided for performing the technical solutions described in the above embodiments and preferred embodiments. In another embodiment, a storage medium is provided, the software being stored, including but not limited to: an optical disk, a floppy disk, a hard disk, a rewritable memory, and the like. From the above description, it can be seen that the embodiment of the present invention achieves the following technical effects: the user does not need to pay attention to the distinction between the internal and external T cards, whether in the process of installing the application or during the moving process of the application. As far as the service is concerned, the internal and external T-cards are unified for the user, and the installation and movement of the application by the user is completely consistent with the storage path configured by the user, and by this method, the space of the secondary storage area can be Use it effectively. In addition, from the current existing equipment, the external τ card is often used as a secondary storage area, with external
T卡的读写速度越来越快, 存储空间越来越大, 将外置 T卡作为手机安装应用的主要 存储区域已经开始出现此种趋势, 本发明实施例提供的技术方案完全可以适应于该趋 势下的技术发展。 显然, 本领域的技术人员应该明白, 上述的本发明的各模块或各步骤可以用通用 的计算装置来实现, 它们可以集中在单个的计算装置上, 或者分布在多个计算装置所 组成的网络上, 可选地, 它们可以用计算装置可执行的程序代码来实现, 从而, 可以 将它们存储在存储装置中由计算装置来执行, 并且在某些情况下, 可以以不同于此处 的顺序执行所示出或描述的步骤, 或者将它们分别制作成各个集成电路模块, 或者将 它们中的多个模块或步骤制作成单个集成电路模块来实现。 这样, 本发明不限制于任 何特定的硬件和软件结合。 以上所述仅为本发明的优选实施例而已, 并不用于限制本发明, 对于本领域的技 术人员来说, 本发明可以有各种更改和变化。 凡在本发明的精神和原则之内, 所作的 任何修改、 等同替换、 改进等, 均应包含在本发明的保护范围之内。 工业实用性 如上所述, 本发明实施例提供的一种应用程序管理方法及装置具有以下有益 效果: 无论是在安装应用的过程中, 还是在应用的移动过程中, 用户始终都不需要 关注内外置 T卡的区分, 就该业务而言, 内外置 T卡对用户而言是合一的, 用户对 应用程序的安装和移动, 完全和用户配置的存储路径保持一致, 而且通过该方法, 能够对副存储区域的空间加以有效利用。 另外, 从目前的现有设备看, 外置 T卡往 往被作为副存储区域, 随着外置 τ卡的读写速度越来越快, 存储空间越来越大, 将 外置 τ卡作为手机安装应用的主要存储区域已经开始出现此种趋势, 本发明本发明 实施例提供的技术方案完全可以适应于该趋势下的技术发展。 The T-card is faster and faster to read and write, and the storage space is getting larger and larger. The external T-card is the main storage area of the mobile phone installation application. The technical solution provided by the embodiment of the present invention can be fully adapted to Technological development under this trend. Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general-purpose computing device, which can be concentrated on a single computing device or distributed over a network composed of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device, such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein. The steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps are fabricated as a single integrated circuit module. Thus, the invention is not limited to any specific combination of hardware and software. The above is only the preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and scope of the present invention are intended to be included within the scope of the present invention. INDUSTRIAL APPLICABILITY As described above, an application management method and apparatus provided by an embodiment of the present invention have the following beneficial effects: Whether in the process of installing an application or during the movement of an application, the user does not need to pay attention to internal and external In terms of the service, the internal and external T-cards are unified for the user, and the installation and movement of the application by the user is completely consistent with the storage path configured by the user, and by this method, Effective use of the space in the secondary storage area. In addition, from the current existing equipment, the external T card to As the secondary storage area, as the read and write speed of the external τ card is getting faster and faster, the storage space is getting larger and larger, and the external τ card has begun to appear as the main storage area for mobile phone installation applications. The technical solutions provided by the embodiments of the present invention can be fully adapted to the technical development under the trend.

Claims

权 利 要 求 书 Claim
1. 一种应用程序管理方法, 包括: 1. An application management method, comprising:
在应用程序的管理位置为存储区侧的情况下, 确定系统当前的默认存储路 径对应的存储区域, 其中, 所述存储区域包括: 内置 TFT卡或外置 TFT卡; 将所述应用程序存储到所述存储区域的预置文件夹下;  When the management location of the application is the storage area side, the storage area corresponding to the current default storage path of the system is determined, where the storage area includes: a built-in TFT card or an external TFT card; storing the application to Under the preset folder of the storage area;
在系统的预定文件夹下建立系统与所述存储区域之间的链接文件以使系统 能够直接访问所述应用程序。  A link file between the system and the storage area is established under a predetermined folder of the system to enable the system to directly access the application.
2. 根据权利要求 1所述的方法, 其中, 在确定系统当前的默认存储路径对应的存 储区域之前, 包括: The method according to claim 1, wherein before determining the storage area corresponding to the current default storage path of the system, the method includes:
读取用户为管理所述应用程序设置的配置信息, 根据所述配置信息获取所 述管理位置。  The configuration information set by the user for managing the application is read, and the management location is obtained according to the configuration information.
3. 根据权利要求 1或 2所述的方法, 其中, 将所述应用程序存储到所述存储区域 的预置文件夹下, 包括: The method according to claim 1 or 2, wherein storing the application program in a preset folder of the storage area comprises:
调用系统的加密接口对所述应用程序进行加密操作, 将所述加密后的应用 程序存储到所述存储区域的预置文件夹下。  The encryption interface of the calling system performs an encryption operation on the application, and the encrypted application is stored in a preset folder of the storage area.
4. 根据权利要求 1或 2所述的方法, 其中, 所述管理位置包括: 首选安装位置, 或拟移动位置, 其中, 所述首选安装位置是用户为安装所述应用程序选择的存 储位置, 所述拟移动位置是用户为移动所述应用程序选择的存储位置。 The method according to claim 1 or 2, wherein the management location comprises: a preferred installation location, or a pseudo-location location, wherein the preferred installation location is a storage location selected by a user for installing the application, The intended mobile location is a storage location selected by the user for moving the application.
5. 根据权利要求 4所述的方法, 其中, 在所述首选安装位置为移动终端侧的情况 下, 还包括: The method according to claim 4, wherein, in the case that the preferred installation location is the mobile terminal side, the method further includes:
直接调用系统的安装应用程序接口, 对所述应用程序进行安装。  The application is installed by directly calling the installation application interface of the system.
6. 根据权利要求 4所述的方法, 其中, 在根据所述配置信息获取到所述拟移动位 置之后, 还包括: The method according to claim 4, further comprising: after acquiring the proposed moving position according to the configuration information, further comprising:
判断系统分区是否可写, 在判断结果为是的情况下, 启动所述应用程序的 移动操作, 在判断结果为否的情况下, 提示用户权限不够导致所述应用程序无 法移动。 根据权利要求 1或 2所述的方法, 其中, It is judged whether the system partition is writable, and if the judgment result is yes, the mobile operation of the application is started, and if the determination result is negative, the user is insufficiently prompted to cause the application to be unable to move. The method according to claim 1 or 2, wherein
所述存储区域的预置文件夹包括: .Android_secure文件夹;  The preset folder of the storage area includes: .Android_secure folder;
所述系统的预定文件夹包括: mnt/asec文件夹。 一种应用程序管理装置, 包括:  The predetermined folder of the system includes: mnt/asec folder. An application management device, comprising:
确定模块, 设置为在应用程序的管理位置为存储区侧的情况下, 确定系统 当前的默认存储路径对应的存储区域, 其中, 所述存储区域包括: 内置 TFT卡 或外置 TFT卡; 存储模块, 设置为将所述应用程序存储到所述存储区域的预置文件夹下; 建立模块, 设置为在系统的预定文件夹下建立系统与所述存储区域之间的 链接文件以使系统能够直接访问所述应用程序。 根据权利要求 8所述的装置, 其中, 所述装置还包括: 获取模块, 设置为读取用户为管理所述应用程序设置的配置信息, 根据所 述配置信息获取所述管理位置, 其中, 所述管理位置包括: 首选安装位置, 或 拟移动位置, 所述首选安装位置是用户为安装所述应用程序选择的存储位置, 所述拟移动位置是用户为移动所述应用程序选择的存储位置。 根据权利要求 8或 9所述的装置, 其中,  The determining module is configured to determine, in the case that the management location of the application is the storage area side, the storage area corresponding to the current default storage path of the system, where the storage area includes: a built-in TFT card or an external TFT card; Provided to store the application under a preset folder of the storage area; establishing a module, configured to establish a link file between the system and the storage area under a predetermined folder of the system to enable the system to directly Access the application. The device according to claim 8, wherein the device further comprises: an obtaining module, configured to read configuration information set by the user for managing the application, and acquire the management location according to the configuration information, where The management location includes: a preferred installation location, or a intended location to move, the preferred installation location being a storage location selected by the user for installing the application, the intended mobile location being a storage location selected by the user for moving the application. The apparatus according to claim 8 or 9, wherein
所述存储区域的预置文件夹包括: .Android_secure文件夹;  The preset folder of the storage area includes: .Android_secure folder;
所述系统的预定文件夹包括: mnt/asec文件夹。  The predetermined folder of the system includes: mnt/asec folder.
PCT/CN2014/079402 2013-11-29 2014-06-06 Application program management method and device WO2014180427A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310632155.2A CN104679544A (en) 2013-11-29 2013-11-29 Application program managing method and device
CN201310632155.2 2013-11-29

Publications (1)

Publication Number Publication Date
WO2014180427A1 true WO2014180427A1 (en) 2014-11-13

Family

ID=51866807

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/079402 WO2014180427A1 (en) 2013-11-29 2014-06-06 Application program management method and device

Country Status (2)

Country Link
CN (1) CN104679544A (en)
WO (1) WO2014180427A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110989876A (en) * 2019-10-30 2020-04-10 深圳市普天宜通技术股份有限公司 Application program adaptation method, mobile terminal and storage medium

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106484719B (en) * 2015-08-28 2020-10-16 南京中兴新软件有限责任公司 Method and terminal for expanding mobile phone storage
CN105159803A (en) * 2015-09-17 2015-12-16 成都中科创达软件有限公司 Restoring method and system of application program
CN107122211A (en) * 2017-04-25 2017-09-01 努比亚技术有限公司 Application software installation method, terminal and computer-readable recording medium
WO2019090622A1 (en) * 2017-11-09 2019-05-16 深圳传音通讯有限公司 Method for optimizing storage space of smart terminal and device for optimizing storage space
CN110096306B (en) 2019-05-09 2021-10-15 京东方科技集团股份有限公司 Application version switching method and device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004242200A (en) * 2003-02-07 2004-08-26 Matsushita Electric Ind Co Ltd Electronic device, mobile type device, and transmitting system of remote control program
CN102087605A (en) * 2011-01-28 2011-06-08 宇龙计算机通信科技(深圳)有限公司 Android-based platform application installation control method and system
CN102646042A (en) * 2012-02-28 2012-08-22 华为终端有限公司 Method and terminal equipment for storing application program data
CN103092649A (en) * 2013-01-08 2013-05-08 广东欧珀移动通信有限公司 Method and device capable of managing application program storage paths intelligently

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101853296A (en) * 2010-05-28 2010-10-06 华为终端有限公司 Method and device for managing application program
CN102970413B (en) * 2012-10-26 2014-11-12 广东欧珀移动通信有限公司 Operation method of smart phone

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004242200A (en) * 2003-02-07 2004-08-26 Matsushita Electric Ind Co Ltd Electronic device, mobile type device, and transmitting system of remote control program
CN102087605A (en) * 2011-01-28 2011-06-08 宇龙计算机通信科技(深圳)有限公司 Android-based platform application installation control method and system
CN102646042A (en) * 2012-02-28 2012-08-22 华为终端有限公司 Method and terminal equipment for storing application program data
CN103092649A (en) * 2013-01-08 2013-05-08 广东欧珀移动通信有限公司 Method and device capable of managing application program storage paths intelligently

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110989876A (en) * 2019-10-30 2020-04-10 深圳市普天宜通技术股份有限公司 Application program adaptation method, mobile terminal and storage medium
CN110989876B (en) * 2019-10-30 2023-09-22 深圳市普天宜通技术股份有限公司 Application program adaptation method, mobile terminal and storage medium

Also Published As

Publication number Publication date
CN104679544A (en) 2015-06-03

Similar Documents

Publication Publication Date Title
CN108628658B (en) License management method and device for container
WO2014180427A1 (en) Application program management method and device
EP2973147B1 (en) Policy-based secure web boot
WO2019119544A1 (en) Method and device for accessing data of embedded sim card
US20110258456A1 (en) Extensible management of self-encrypting storage devices
JP5983940B2 (en) Information processing apparatus, information processing method, program, integrated circuit
EP3032418A1 (en) Permission control method and device
US20150081644A1 (en) Method and system for backing up and restoring a virtual file system
US9176826B1 (en) Portable data archiving device
EP2631795A1 (en) Terminal and method for assigning permission to application
CN114095916A (en) Method for managing configuration file, embedded universal integrated circuit card and terminal
CN114245366B (en) Unified cloud card issuing method, hybrid cloud card service system and system equipment
CN110262872B (en) Load balancing application management method and device, computer equipment and storage medium
WO2018157716A1 (en) Smart card
US9807595B2 (en) Terminal read with smart card update list
Do et al. Enforcing file system permissions on android external storage: Android file system permissions (afp) prototype and owncloud
CN104090822B (en) The switching method and system of android system lower outer portion storage device
US11888690B2 (en) System and method for subscription limitation enforcement in distributed system
US20140304285A1 (en) Terminal and method for managing files associated with an application
JP2015043231A (en) Data protection method, circuit card, and mobile radio communications device
WO2016188200A1 (en) Method and device for implementing partition switching
US9323907B2 (en) Distribution apparatus, device, control method for distribution apparatus, and storage medium
KR100733742B1 (en) Portable information processing terminal and communication system thereof
KR101879812B1 (en) User terminal having client program, cloud device, management server and system for cloud service including thereof
WO2012088785A1 (en) Data access method and mobile terminal

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14795276

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14795276

Country of ref document: EP

Kind code of ref document: A1