The invention discloses a construction method, device and construction structure of storage space structure of Android system, which creates a first storage directory in the data partition for storing preset applications, and then links the preset applications in the first storage directory with the second storage directory under the system partition, so that the system can store the preset applications in the first storage directory Identify as system application; set the properties and permissions of the first storage directory to ensure the security of the first storage directory storage; modify the image packaging process, upgrade mode and the deletion mode when restoring factory settings to ensure that the preset application in the first storage directory operates normally as the preset application originally stored in the system partition. The pre-set application stored in the first storage directory occupies the storage space of the data partition when upgrading, which does not affect the storage of other data in the data partition. It not only ensures that the storage space for the pre-set application is large enough, but also ensures that the storage space will not be wasted.
【技术实现步骤摘要】
一种安卓系统存储空间结构的构建方法、装置及其构建结构
本专利技术涉及系统存储领域,特别地,涉及一种安卓系统存储空间结构的构建方法、装置及其构建结构。
技术介绍
Android系统会将整个的存储空间划分为多个分区,每个分区存储特定的内容。其中system分区用来存储系统预置的应用和数据,该分区在系统运行时为只读属性,无法修改,且该分区在系统设计时就固定了大小,无法扩展。这使得后续的应用可能因为system分区占满而无法预置。Android这种分区划分决定了在设计一个产品时就要确定分区的大小,并且不能在后续升级过程中修改分区划分,否则系统将被损坏。一个产品在后续的软件更新升级时,系统的预置应用很有可能被改变,并且更大的可能是逐渐增加预置应用。这样,在设计分区时就要考虑到后续预置应用增加的问题。因为无法预测未来,所以必须预留出足够大的空间给预置应用使用。现有的解决方案一般为两种,一种是预留出足够大的system分区,这样大概率会浪费存储空间。另一种再单独划分出一个分区来存放预置应用,但也无法解决存储空间浪费的问题。
技术实现思路
为了克服现有技术的不足,本专利技术提供一种能够既保证存储空间足够,又能不浪费存储空间的安卓系统存储空间结构的构建方法、装置及其构建结构。本专利技术解决其技术问题所采用的技术方案是:一方面,一种安卓系统存储空间结构的构建方法,包括以下步骤:在数据分区创建第一存储目录,所述第一存储目录用于存放预置应用;将所述第一存储目录存储的 ...
【技术保护点】
1.一种安卓系统存储空间结构的构建方法,其特征在于,包括以下步骤:/n在数据分区创建第一存储目录,所述第一存储目录用于存放预置应用;/n将所述第一存储目录存储的预置应用设置为系统应用。/n
【技术特征摘要】
1.一种安卓系统存储空间结构的构建方法,其特征在于,包括以下步骤:
在数据分区创建第一存储目录,所述第一存储目录用于存放预置应用;
将所述第一存储目录存储的预置应用设置为系统应用。
2.根据权利要求1所述的方法,其特征在于,还包括:
将所述第一存储目录设置为只读属性;
将创建所述第一存储目录的用户和所述用户所在的组设置为root权限。
3.根据权利要求1所述的方法,其特征在于,还包括:当所述安卓系统开启强制访问控制时,将所述安卓系统的安全策略配置文件权限设置为系统文件。
4.根据权利要求1所述的方法,其特征在于,还包括:修改所述数据分区的镜像打包过程,用于当所述数据分区镜像打包时打包到系统镜像文件中。
5.根据权利要求1所述的方法,其特征在于,还包括:将所述数据分区的升级方式改为差分升级。
6.根据权利要求1所述的方法,其特征在于:所述将所述第一存储目录存储的预置应用设置为系统应用包括:
在系统编译时,将所述第一存储目录存储的预置应用全部软链接到第二存储目录中,所述第二存储目录位于系统分区,用于系统识别所述第二存储目录中的应用为系统应用。
7.根据权利要求1所述的方法,其特征在于,还包括:
当恢...
【专利技术属性】
技术研发人员:王旭宇,
申请(专利权)人:国美视界北京科技有限公司,
类型:发明
国别省市:北京;11
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。