基于Android移動終端的U盤系統(tǒng)的設(shè)計與實現(xiàn)
發(fā)布時間:2018-03-20 20:49
本文選題:Android系統(tǒng) 切入點:磁盤管理 出處:《上海交通大學(xué)》2014年碩士論文 論文類型:學(xué)位論文
【摘要】:Android系統(tǒng)存在以下規(guī)定,即應(yīng)用軟件只能安裝在“主存儲器”之中,且主存儲器的映射關(guān)系是固定的、不可改變的。對于中低端android手機,由于手機內(nèi)部存儲空間小,通常使用大容量的擴展外存(如外置SD卡)映射為主存儲器來支持更多軟件的安裝,,這意味著手機安裝的外置SD卡不允許用戶隨意移除、更換,否則系統(tǒng)無法正常工作,如無法使用已有應(yīng)用,無法安裝新應(yīng)用。 針對以上問題,本文提出并設(shè)計了一種可動態(tài)切換“主存儲器”映射的U盤工作機制,終端用戶可通過自己的選擇,決定“主存儲器”映射關(guān)系。當(dāng)手機安裝了外置SD卡,用戶可以選擇外置SD卡映射為“主存儲器”,保證用戶在內(nèi)部存儲空間小的手機上有充足的應(yīng)用安裝空間;當(dāng)外置SD卡被移除,手機將自動切換為內(nèi)部存儲器映射成“主存儲器”,防止“主存儲器”映射丟失造成的應(yīng)用軟件無法安裝和使用。 本文的研究工作包括如下幾方面: 1)動態(tài)映射“主存儲空間”機制的分析與設(shè)計:本文首先分析了國內(nèi)外對Android平臺存儲空間的研究現(xiàn)狀,指出了固定主存儲器映射關(guān)系會導(dǎo)致用戶應(yīng)用無法安裝使用的問題,接著,結(jié)合分析Android操作系統(tǒng)在磁盤存儲框架的原生設(shè)計,從硬件層、驅(qū)動層、文件系統(tǒng)、系統(tǒng)管理等幾個層面,設(shè)計了一種可動態(tài)切換“主存儲器”映射的U盤工作機制。 2)動態(tài)切換機制相關(guān)開發(fā)實現(xiàn)工作:動態(tài)切換機制的實現(xiàn)涉及系統(tǒng)管理、文件系統(tǒng)、驅(qū)動程序、空間管理等幾個層面。首先,手機內(nèi)部存儲空間以內(nèi)置U盤的形式存在,調(diào)整eMMC分區(qū)表結(jié)構(gòu),增加內(nèi)置U盤分區(qū);其次,調(diào)整內(nèi)核USB驅(qū)動節(jié)點,提供內(nèi)置U盤和外置SD卡兩塊大容量存儲區(qū)域的文件系統(tǒng)訪問能力;同時,本文重構(gòu)了Vold服務(wù)和Android Framework框架,將fstab分區(qū)表和storage_list磁盤管理文件動態(tài)配置,實現(xiàn)可動態(tài)切換“主存儲器”映射功能。 3)系統(tǒng)驗證與測試:針對本功能,設(shè)計了測試用例,覆蓋所有功能點,驗證了本文提出的可動態(tài)切換“主存儲器”映射機制可用,并通過兼容性測試和性能壓力測試,保證本方案的穩(wěn)定性和健壯性。 本文提出的設(shè)計方案已在android4.2/leadcore L1813處理器平臺上予以實現(xiàn),通過對依賴于大容量主存的主流應(yīng)用測試表明,本文提出的可動態(tài)切換“主存儲器”映射的U盤系統(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é)位級別】:碩士
【學(xué)位授予年份】:2014
【分類號】:TP333.2;TP311.52
【參考文獻】
相關(guān)期刊論文 前10條
1 仲偉峰;李全利;徐軍;;基于ARM的嵌入式USB主機系統(tǒng)設(shè)計[J];哈爾濱理工大學(xué)學(xué)報;2010年06期
2 胡勇其;侯紫峰;;嵌入式Linux下NAND存儲系統(tǒng)的設(shè)計與實現(xiàn)[J];計算機工程;2006年04期
3 魯慧榮;;eMMC/eMCP將成為移動設(shè)備嵌入式存儲主導(dǎo)技術(shù)[J];集成電路應(yīng)用;2013年02期
4 林興;樊立民;;嵌入式Linux文件系統(tǒng)的優(yōu)化[J];計算機工程與設(shè)計;2009年23期
5 范耀武;何維;田增山;;嵌入式Linux下USB設(shè)備的大容量數(shù)據(jù)傳輸驅(qū)動開發(fā)與實現(xiàn)[J];數(shù)字通信;2011年02期
6 楊豐瑞;周繼才;;Android手機Bootloader的設(shè)計與實現(xiàn)[J];數(shù)字通信;2012年04期
7 安毅;蔡伯根;;基于ARM的嵌入式大容量存儲設(shè)備的設(shè)計[J];微計算機信息;2008年17期
8 陳t
本文編號:1640747
本文鏈接:http://www.sikaile.net/kejilunwen/jisuanjikexuelunwen/1640747.html
最近更新
教材專著