基于A(yíng)ndroid移動(dòng)終端的U盤(pán)系統(tǒng)的設(shè)計(jì)與實(shí)現(xiàn)
本文選題:Android系統(tǒng) 切入點(diǎn):磁盤(pán)管理 出處:《上海交通大學(xué)》2014年碩士論文 論文類(lèi)型:學(xué)位論文
【摘要】:Android系統(tǒng)存在以下規(guī)定,即應(yīng)用軟件只能安裝在“主存儲(chǔ)器”之中,且主存儲(chǔ)器的映射關(guān)系是固定的、不可改變的。對(duì)于中低端android手機(jī),由于手機(jī)內(nèi)部存儲(chǔ)空間小,通常使用大容量的擴(kuò)展外存(如外置SD卡)映射為主存儲(chǔ)器來(lái)支持更多軟件的安裝,,這意味著手機(jī)安裝的外置SD卡不允許用戶(hù)隨意移除、更換,否則系統(tǒng)無(wú)法正常工作,如無(wú)法使用已有應(yīng)用,無(wú)法安裝新應(yīng)用。 針對(duì)以上問(wèn)題,本文提出并設(shè)計(jì)了一種可動(dòng)態(tài)切換“主存儲(chǔ)器”映射的U盤(pán)工作機(jī)制,終端用戶(hù)可通過(guò)自己的選擇,決定“主存儲(chǔ)器”映射關(guān)系。當(dāng)手機(jī)安裝了外置SD卡,用戶(hù)可以選擇外置SD卡映射為“主存儲(chǔ)器”,保證用戶(hù)在內(nèi)部存儲(chǔ)空間小的手機(jī)上有充足的應(yīng)用安裝空間;當(dāng)外置SD卡被移除,手機(jī)將自動(dòng)切換為內(nèi)部存儲(chǔ)器映射成“主存儲(chǔ)器”,防止“主存儲(chǔ)器”映射丟失造成的應(yīng)用軟件無(wú)法安裝和使用。 本文的研究工作包括如下幾方面: 1)動(dòng)態(tài)映射“主存儲(chǔ)空間”機(jī)制的分析與設(shè)計(jì):本文首先分析了國(guó)內(nèi)外對(duì)Android平臺(tái)存儲(chǔ)空間的研究現(xiàn)狀,指出了固定主存儲(chǔ)器映射關(guān)系會(huì)導(dǎo)致用戶(hù)應(yīng)用無(wú)法安裝使用的問(wèn)題,接著,結(jié)合分析Android操作系統(tǒng)在磁盤(pán)存儲(chǔ)框架的原生設(shè)計(jì),從硬件層、驅(qū)動(dòng)層、文件系統(tǒng)、系統(tǒng)管理等幾個(gè)層面,設(shè)計(jì)了一種可動(dòng)態(tài)切換“主存儲(chǔ)器”映射的U盤(pán)工作機(jī)制。 2)動(dòng)態(tài)切換機(jī)制相關(guān)開(kāi)發(fā)實(shí)現(xiàn)工作:動(dòng)態(tài)切換機(jī)制的實(shí)現(xiàn)涉及系統(tǒng)管理、文件系統(tǒng)、驅(qū)動(dòng)程序、空間管理等幾個(gè)層面。首先,手機(jī)內(nèi)部存儲(chǔ)空間以?xún)?nèi)置U盤(pán)的形式存在,調(diào)整eMMC分區(qū)表結(jié)構(gòu),增加內(nèi)置U盤(pán)分區(qū);其次,調(diào)整內(nèi)核USB驅(qū)動(dòng)節(jié)點(diǎn),提供內(nèi)置U盤(pán)和外置SD卡兩塊大容量存儲(chǔ)區(qū)域的文件系統(tǒng)訪(fǎng)問(wèn)能力;同時(shí),本文重構(gòu)了Vold服務(wù)和Android Framework框架,將fstab分區(qū)表和storage_list磁盤(pán)管理文件動(dòng)態(tài)配置,實(shí)現(xiàn)可動(dòng)態(tài)切換“主存儲(chǔ)器”映射功能。 3)系統(tǒng)驗(yàn)證與測(cè)試:針對(duì)本功能,設(shè)計(jì)了測(cè)試用例,覆蓋所有功能點(diǎn),驗(yàn)證了本文提出的可動(dòng)態(tài)切換“主存儲(chǔ)器”映射機(jī)制可用,并通過(guò)兼容性測(cè)試和性能壓力測(cè)試,保證本方案的穩(wěn)定性和健壯性。 本文提出的設(shè)計(jì)方案已在android4.2/leadcore L1813處理器平臺(tái)上予以實(shí)現(xiàn),通過(guò)對(duì)依賴(lài)于大容量主存的主流應(yīng)用測(cè)試表明,本文提出的可動(dòng)態(tài)切換“主存儲(chǔ)器”映射的U盤(pán)系統(tǒng)在系統(tǒng)功能、系統(tǒng)性能、軟件穩(wěn)定性等方面表現(xiàn)良好。
[Abstract]:The Android system has the following stipulation: the application software can only be installed in the "main memory", and the mapping relationship of the main memory is fixed and immutable. In general, a large capacity of extended external memory (such as external SD card) is used to map the main memory to support more software installation, which means that the external SD card installed on the mobile phone does not allow the user to remove and replace it at will, otherwise the system will not work properly. If you cannot use an existing application, you cannot install a new application. In order to solve the above problems, this paper proposes and designs a mechanism for dynamically switching "main memory" mapping. End users can decide the mapping relationship of "main memory" by their own choice. When the mobile phone installs an external SD card, The user can choose to map the external SD card to "main memory" to ensure that the user has sufficient application installation space on the mobile phone with small internal storage space; when the external SD card is removed, Mobile phone will automatically switch to internal memory mapping to "main memory" to prevent the "main memory" mapping caused by the loss of application software can not be installed and used. The research work of this paper includes the following aspects:. 1) the analysis and design of "main storage space" mechanism of dynamic mapping: firstly, this paper analyzes the research status of Android platform storage space at home and abroad, and points out that fixed main memory mapping relationship will lead to user application can not be installed and used. Then, combining with the analysis of the native design of Android operating system in disk storage framework, from the hardware layer, driver layer, file system, system management and other layers, a dynamic switching "main memory" mapping of the U disk working mechanism is designed. 2) Development and implementation of dynamic switching mechanism: the implementation of dynamic switching mechanism involves several aspects, such as system management, file system, driver, space management and so on. First, the internal storage space of mobile phone exists in the form of built-in U disk. Adjust the structure of the eMMC partition table to increase the built-in U disk partition; secondly, adjust the kernel USB driver node to provide file system access for the two bulk storage areas, the built-in U disk and the external SD card; at the same time, This paper reconstructs the framework of Vold service and Android Framework, dynamically configures fstab partition table and storage_list disk management file, and realizes the mapping function of "main memory". 3) system verification and testing: for this function, a test case is designed to cover all function points. It is verified that the dynamic switchable "main memory" mapping mechanism proposed in this paper is available, and the compatibility test and performance stress test are passed. Ensure the stability and robustness of the scheme. The proposed design scheme has been implemented on android4.2/leadcore L1813 processor platform. By testing the mainstream applications that rely on large capacity main memory, it is shown that the USB disk system which can dynamically switch "main memory" mapping in this paper is functional in the system. System performance, software stability and other aspects of good performance.
【學(xué)位授予單位】:上海交通大學(xué)
【學(xué)位級(jí)別】:碩士
【學(xué)位授予年份】:2014
【分類(lèi)號(hào)】:TP333.2;TP311.52
【參考文獻(xiàn)】
相關(guān)期刊論文 前10條
1 仲偉峰;李全利;徐軍;;基于A(yíng)RM的嵌入式USB主機(jī)系統(tǒng)設(shè)計(jì)[J];哈爾濱理工大學(xué)學(xué)報(bào);2010年06期
2 胡勇其;侯紫峰;;嵌入式Linux下NAND存儲(chǔ)系統(tǒng)的設(shè)計(jì)與實(shí)現(xiàn)[J];計(jì)算機(jī)工程;2006年04期
3 魯慧榮;;eMMC/eMCP將成為移動(dòng)設(shè)備嵌入式存儲(chǔ)主導(dǎo)技術(shù)[J];集成電路應(yīng)用;2013年02期
4 林興;樊立民;;嵌入式Linux文件系統(tǒng)的優(yōu)化[J];計(jì)算機(jī)工程與設(shè)計(jì);2009年23期
5 范耀武;何維;田增山;;嵌入式Linux下USB設(shè)備的大容量數(shù)據(jù)傳輸驅(qū)動(dòng)開(kāi)發(fā)與實(shí)現(xiàn)[J];數(shù)字通信;2011年02期
6 楊豐瑞;周繼才;;Android手機(jī)Bootloader的設(shè)計(jì)與實(shí)現(xiàn)[J];數(shù)字通信;2012年04期
7 安毅;蔡伯根;;基于A(yíng)RM的嵌入式大容量存儲(chǔ)設(shè)備的設(shè)計(jì)[J];微計(jì)算機(jī)信息;2008年17期
8 陳t
本文編號(hào):1640747
本文鏈接:http://sikaile.net/kejilunwen/jisuanjikexuelunwen/1640747.html