美文网首页程序员android 集结号
1.Android系统源代码目录与系统目录

1.Android系统源代码目录与系统目录

作者: 凌川江雪 | 来源:发表于2018-07-28 00:06 被阅读51次

    1.Android源代码的目录中包含了Android系统所有的源代码,从底层驱动到上层应用,Android系统对所有文件都进行了详细管理;
    2.而在手机中,Android系统的目录与源代码的目录并不是一一对应的,而是源代码编译之后,与打包生成的Image文件的结构相同;
    3.了解这些目录的结构,对于认识整个Android系统有很好的帮助。


    1.Android系统源代码目录

    想要看完整个Android的源代码,需要懂C、懂脚本、懂Java、软硬兼通。所以一般情况下,我们了解源代码的框架结构,出了问题知道从哪里着手解决就可以了。这就好比图书管理员,他不一定要把所有的书都读一遍,但是只要有用到,他就可以很快地找到相应的资料。

    这里是查看Android源代码的网站。其界如下:


    每个目录都具有不同的功能和目的,整个结构关系图如下所示:

    2.Android系统目录

    在Android手机里,系统的目录结构与源代码目录结构还是有所不同的,我们通过ADB连接上手机,通过Linux的ls命令查看Android系统的根目录。其中/system和/data是开发者非常关心的两个目录。

    • /system/app/
      这里面放的是一些系统的App:
    root@vbox86p:/ # cd system/app
    root@vbox86p:/system/app # ll
    drwxr-xr-x root     root              2018-02-15 14:40 BasicDreams
    drwxr-xr-x root     root              2018-02-15 14:40 Bluetooth
    drwxr-xr-x root     root              2018-02-15 14:47 Browser
    drwxr-xr-x root     root              2018-02-15 14:40 CMFileManager
    drwxr-xr-x root     root              2018-02-15 14:44 Calculator
    drwxr-xr-x root     root              2018-02-15 14:47 Calendar
    drwxr-xr-x root     root              2018-02-15 14:47 Camera2
    drwxr-xr-x root     root              2018-02-15 14:40 CaptivePortalLogin
    drwxr-xr-x root     root              2018-02-15 14:41 CertInstaller
    drwxr-xr-x root     root              2018-02-15 14:41 CubeLiveWallpapers
    drwxr-xr-x root     root              2018-02-15 14:41 CustomLocale
    drwxr-xr-x root     root              2018-02-15 14:46 DeskClock
    drwxr-xr-x root     root              2018-02-15 14:41 Development
    drwxr-xr-x root     root              2018-02-15 14:05 DevelopmentSettings
    drwxr-xr-x root     root              2018-02-15 14:45 DocumentsUI
    drwxr-xr-x root     root              2018-02-15 14:41 DownloadProviderUi
    drwxr-xr-x root     root              2018-02-15 14:48 Email
    drwxr-xr-x root     root              2018-02-15 14:47 Exchange2
    drwxr-xr-x root     root              2018-02-15 14:41 Galaxy4
    drwxr-xr-x root     root              2018-02-15 14:47 Gallery2
    drwxr-xr-x root     root              2018-02-15 14:42 GenydService
    drwxr-xr-x root     root              2018-02-15 14:41 GenymotionLayout
    drwxr-xr-x root     root              2018-02-15 14:41 HTMLViewer
    drwxr-xr-x root     root              2018-02-15 14:41 HoloSpiralWallpaper
    drwxr-xr-x root     root              2018-02-15 14:41 KeyChain
    drwxr-xr-x root     root              2018-02-15 14:47 LatinIME
    drwxr-xr-x root     root              2018-02-15 14:46 Launcher3
    drwxr-xr-x root     root              2018-02-15 14:41 LiveWallpapers
    drwxr-xr-x root     root              2018-02-15 14:41 LiveWallpapersPicker
    drwxr-xr-x root     root              2018-02-15 14:42 Music
    drwxr-xr-x root     root              2018-02-15 14:41 NoiseField
    drwxr-xr-x root     root              2018-02-15 14:41 OpenWnn
    drwxr-xr-x root     root              2018-02-15 14:41 PacProcessor
    drwxr-xr-x root     root              2018-02-15 14:44 PackageInstaller
    drwxr-xr-x root     root              2018-02-15 14:41 PhaseBeam
    drwxr-xr-x root     root              2018-02-15 14:41 PhotoTable
    drwxr-xr-x root     root              2018-02-15 14:41 PicoTts
    drwxr-xr-x root     root              2018-02-15 14:45 PrintSpooler
    drwxr-xr-x root     root              2018-02-15 14:41 Provision
    drwxr-xr-x root     root              2018-02-15 14:42 QuickSearchBox
    drwxr-xr-x root     root              2018-02-15 14:40 SoundRecorder
    drwxr-xr-x root     root              2018-02-15 14:44 Superuser
    drwxr-xr-x root     root              2018-02-15 14:41 UserDictionaryProvider
    drwxr-xr-x root     root              2018-02-15 14:41 VisualizationWallpapers
    drwxr-xr-x root     root              2018-02-15 14:41 WAPPushManager
    drwxr-xr-x root     root              2018-02-15 14:42 webview
    root@vbox86p:/system/app #
    
    • /system/bin/
      这里面放的主要是Linux自带的组件:
    • /system/build.prop
      这里记录的是系统的属性信息(注意是cat build.prop 查看):
    2|root@vbox86p:/system # cat build.prop
    
    # begin build properties
    # autogenerated by buildinfo.sh
    ro.build.id=LRX21M
    
    ro.build.version.incremental=17
    ro.build.version.sdk=21
    ro.build.version.codename=REL
    ro.build.version.all_codenames=REL
    ro.build.version.release=5.0
    ro.build.date=Thu Feb 15 18:31:12 UTC 2018
    ro.build.date.utc=1518719472
    
    ro.build.user=genymotion
    ro.build.host=f1b5df862109
    
    
    
    
    
    
    # ro.product.cpu.abi and ro.product.cpu.abi2 are obsolete,
    # use ro.product.cpu.abilist instead.
    ro.product.cpu.abi=x86
    
    
    ro.product.cpu.abilist64=
    
    ro.product.locale.language=en
    ro.product.locale.region=US
    ro.wifi.channels=
    ro.board.platform=
    # ro.build.product is obsolete; use ro.product.device
    ro.build.product=vbox86p
    # Do not try to parse description, fingerprint, or thumbprint
    ro.build.description=vbox86p-userdebug 5.0 LRX21M 17 test-keys
    
    
    # end build properties
    #
    # from device/genymotion/vbox86p/system.prop
    #
    #
    # system.prop for Genymotion
    #
    
    # Build informations
    
    
    
    
    # Disable opengl Zygote preloading to avoid opengl problems
    ro.zygote.disable_gl_preload=true
    
    rild.libpath=/system/lib/libreference-ril.so
    dalvik.vm.heapsize=256m
    persist.service.adb.enable=1
    # Allow root adbd
    service.adb.root=1
    
    ro.opengles.version=131072
    ro.bq.gpu_to_cpu_unsupported=1
    ro.genymotion.version=2.12.0
    
    # Add device version
    ro.genymotion.device.version=1
    
    #
    # Capabilities
    #
    
    # Battery sensor
    ro.genyd.caps.bat=on
    # GPS sensor
    ro.genyd.caps.gps=on
    # Accelerometer sensor
    ro.genyd.caps.acc=on
    # Webcam / camera sensor
    ro.genyd.caps.cam=on
    # Screencast / screenshot capability
    ro.genyd.caps.scr=on
    # Remote controller capability
    ro.genyd.caps.rmt=on
    # DeviceID / IMEI and AndroidID emulation
    ro.genyd.caps.did=on
    # Network control capability
    ro.genyd.caps.net=on
    # Disk IO throttling capability
    ro.genyd.caps.diskio=on
    ......
    
    • /system/fonts/
      系统字体存放目录,root后可下载TTF格式字体替换原字体,达到修改系统字体的效果:
    127|root@vbox86p:/system/bin # cd ..
    root@vbox86p:/system # cd fonts
    root@vbox86p:/system/fonts # ll
    -rw-r--r-- root     root         4540 2018-02-15 13:57 AndroidClock.ttf
    -rw-r--r-- root     root         4464 2018-02-15 13:57 AndroidClock_Highlight.ttf
    -rw-r--r-- root     root         4464 2018-02-15 13:57 AndroidClock_Solid.ttf
    -rw-r--r-- root     root        40308 2018-02-15 13:57 CarroisGothicSC-Regular.ttf
    -rw-r--r-- root     root         6564 2018-02-15 13:57 Clockopia.ttf
    -rw-r--r-- root     root        59136 2018-02-15 13:57 ComingSoon.ttf
    -rw-r--r-- root     root        69180 2018-02-15 13:57 CutiveMono.ttf
    -rw-r--r-- root     root       115568 2018-02-15 13:57 DancingScript-Bold.ttf
    -rw-r--r-- root     root       116580 2018-02-15 13:57 DancingScript-Regular.ttf
    lrw-r--r-- root     root              2018-02-15 13:59 DroidSans-Bold.ttf -> Roboto-Bold.ttf
    lrw-r--r-- root     root              2018-02-15 13:59 DroidSans.ttf -> Roboto-Regular.ttf
    -rw-r--r-- root     root      4033420 2018-02-15 13:57 DroidSansFallback.ttf
    -rw-r--r-- root     root       108128 2018-02-15 14:00 DroidSansMono.ttf
    -rw-r--r-- root     root      2558716 2018-02-15 13:57 MTLmr3m.ttf
    -rw-r--r-- root     root      1289100 2018-02-15 13:57 NanumGothic.ttf
    -rw-r--r-- root     root      1384488 2018-02-15 13:57 NotoColorEmoji.ttf
    -rw-r--r-- root     root       114612 2018-02-15 13:57 NotoNaskh-Bold.ttf
    -rw-r--r-- root     root       115540 2018-02-15 13:57 NotoNaskh-Regular.ttf
    -rw-r--r-- root     root       114596 2018-02-15 13:57 NotoNaskhUI-Bold.ttf
    -rw-r--r-- root     root       115700 2018-02-15 13:57 NotoNaskhUI-Regular.ttf
    -rw-r--r-- root     root        14152 2018-02-15 13:57 NotoSansArmenian-Bold.ttf
    -rw-r--r-- root     root        14324 2018-02-15 13:57 NotoSansArmenian-Regular.ttf
    -rw-r--r-- root     root        98100 2018-02-15 13:57 NotoSansBengali-Bold.ttf
    -rw-r--r-- root     root       101308 2018-02-15 13:57 NotoSansBengali-Regular.ttf
    -rw-r--r-- root     root       103532 2018-02-15 13:57 NotoSansBengaliUI-Bold.ttf
    -rw-r--r-- root     root       106640 2018-02-15 13:57 NotoSansBengaliUI-Regular.ttf
    -rw-r--r-- root     root       119664 2018-02-15 13:57 NotoSansDevanagari-Bold.ttf
    -rw-r--r-- root     root       123740 2018-02-15 13:57 NotoSansDevanagari-Regular.ttf
    -rw-r--r-- root     root       114168 2018-02-15 13:57 NotoSansDevanagariUI-Bold.ttf
    -rw-r--r-- root     root       119200 2018-02-15 13:57 NotoSansDevanagariUI-Regular.ttf
    -rw-r--r-- root     root       142968 2018-02-15 13:57 NotoSansEthiopic-Bold.ttf
    -rw-r--r-- root     root       142832 2018-02-15 13:57 NotoSansEthiopic-Regular.ttf
    -rw-r--r-- root     root        19636 2018-02-15 13:57 NotoSansGeorgian-Bold.ttf
    -rw-r--r-- root     root        19684 2018-02-15 13:57 NotoSansGeorgian-Regular.ttf
    -rw-r--r-- root     root        16636 2018-02-15 13:57 NotoSansHebrew-Bold.ttf
    -rw-r--r-- root     root        16456 2018-02-15 13:57 NotoSansHebrew-Regular.ttf
    -rw-r--r-- root     root        80016 2018-02-15 13:57 NotoSansKannada-Bold.ttf
    -rw-r--r-- root     root        81392 2018-02-15 13:57 NotoSansKannada-Regular.ttf
    -rw-r--r-- root     root        79136 2018-02-15 13:57 NotoSansKannadaUI-Bold.ttf
    -rw-r--r-- root     root        80644 2018-02-15 13:57 NotoSansKannadaUI-Regular.ttf
    -rw-r--r-- root     root        33620 2018-02-15 13:57 NotoSansKhmer-Bold.ttf
    -rw-r--r-- root     root        34612 2018-02-15 13:57 NotoSansKhmer-Regular.ttf
    -rw-r--r-- root     root        36456 2018-02-15 13:57 NotoSansKhmerUI-Bold.ttf
    -rw-r--r-- root     root        38160 2018-02-15 13:57 NotoSansKhmerUI-Regular.ttf
    -rw-r--r-- root     root        29004 2018-02-15 13:57 NotoSansLao-Bold.ttf
    -rw-r--r-- root     root        30352 2018-02-15 13:57 NotoSansLao-Regular.ttf
    -rw-r--r-- root     root        29064 2018-02-15 13:57 NotoSansLaoUI-Bold.ttf
    -rw-r--r-- root     root        30372 2018-02-15 13:57 NotoSansLaoUI-Regular.ttf
    -rw-r--r-- root     root        56740 2018-02-15 13:57 NotoSansMalayalam-Bold.ttf
    -rw-r--r-- root     root        56864 2018-02-15 13:57 NotoSansMalayalam-Regular.ttf
    -rw-r--r-- root     root        61124 2018-02-15 13:57 NotoSansMalayalamUI-Bold.ttf
    -rw-r--r-- root     root        61360 2018-02-15 13:57 NotoSansMalayalamUI-Regular.ttf
    -rw-r--r-- root     root       104692 2018-02-15 13:57 NotoSansMyanmar-Bold.ttf
    -rw-r--r-- root     root       107640 2018-02-15 13:57 NotoSansMyanmar-Regular.ttf
    -rw-r--r-- root     root        94696 2018-02-15 13:57 NotoSansMyanmarUI-Bold.ttf
    -rw-r--r-- root     root        94188 2018-02-15 13:57 NotoSansMyanmarUI-Regular.ttf
    -rw-r--r-- root     root       133624 2018-02-15 13:57 NotoSansSymbols-Regular-Subsetted.ttf
    -rw-r--r-- root     root        33096 2018-02-15 13:57 NotoSansTamil-Bold.ttf
    -rw-r--r-- root     root        32980 2018-02-15 13:57 NotoSansTamil-Regular.ttf
    -rw-r--r-- root     root        33548 2018-02-15 13:57 NotoSansTamilUI-Bold.ttf
    -rw-r--r-- root     root        33412 2018-02-15 13:57 NotoSansTamilUI-Regular.ttf
    -rw-r--r-- root     root       109936 2018-02-15 13:57 NotoSansTelugu-Bold.ttf
    -rw-r--r-- root     root       110176 2018-02-15 13:57 NotoSansTelugu-Regular.ttf
    -rw-r--r-- root     root       110240 2018-02-15 13:57 NotoSansTeluguUI-Bold.ttf
    -rw-r--r-- root     root       110644 2018-02-15 13:57 NotoSansTeluguUI-Regular.ttf
    -rw-r--r-- root     root        17484 2018-02-15 13:57 NotoSansThai-Bold.ttf
    -rw-r--r-- root     root        20536 2018-02-15 13:57 NotoSansThai-Regular.ttf
    -rw-r--r-- root     root        18156 2018-02-15 13:57 NotoSansThaiUI-Bold.ttf
    -rw-r--r-- root     root        21160 2018-02-15 13:57 NotoSansThaiUI-Regular.ttf
    -rw-r--r-- root     root       246688 2018-02-15 13:57 NotoSerif-Bold.ttf
    -rw-r--r-- root     root       261772 2018-02-15 13:57 NotoSerif-BoldItalic.ttf
    -rw-r--r-- root     root       248644 2018-02-15 13:57 NotoSerif-Italic.ttf
    -rw-r--r-- root     root       245788 2018-02-15 13:57 NotoSerif-Regular.ttf
    -rw-r--r-- root     root       242172 2018-02-15 13:57 Roboto-Black.ttf
    -rw-r--r-- root     root       263976 2018-02-15 13:57 Roboto-BlackItalic.ttf
    -rw-r--r-- root     root       242304 2018-02-15 13:57 Roboto-Bold.ttf
    -rw-r--r-- root     root       264068 2018-02-15 13:57 Roboto-BoldItalic.ttf
    -rw-r--r-- root     root       263056 2018-02-15 13:57 Roboto-Italic.ttf
    -rw-r--r-- root     root       243788 2018-02-15 13:57 Roboto-Light.ttf
    -rw-r--r-- root     root       266080 2018-02-15 13:57 Roboto-LightItalic.ttf
    -rw-r--r-- root     root       241640 2018-02-15 13:57 Roboto-Medium.ttf
    -rw-r--r-- root     root       263548 2018-02-15 13:57 Roboto-MediumItalic.ttf
    -rw-r--r-- root     root       241008 2018-02-15 13:57 Roboto-Regular.ttf
    -rw-r--r-- root     root       246428 2018-02-15 13:57 Roboto-Thin.ttf
    -rw-r--r-- root     root       267068 2018-02-15 13:57 Roboto-ThinItalic.ttf
    -rw-r--r-- root     root       239596 2018-02-15 13:57 RobotoCondensed-Bold.ttf
    -rw-r--r-- root     root       261660 2018-02-15 13:57 RobotoCondensed-BoldItalic.ttf
    -rw-r--r-- root     root       261992 2018-02-15 13:57 RobotoCondensed-Italic.ttf
    -rw-r--r-- root     root       240820 2018-02-15 13:57 RobotoCondensed-Light.ttf
    -rw-r--r-- root     root       264500 2018-02-15 13:57 RobotoCondensed-LightItalic.ttf
    -rw-r--r-- root     root       238804 2018-02-15 13:57 RobotoCondensed-Regular.ttf
    root@vbox86p:/system/fonts #
    
    • /system/framework/
      系统的核心文件、框架层:
    2|root@vbox86p:/system # cd framework
    root@vbox86p:/system/framework # ll
    -rw-r--r-- root     root          310 2018-02-15 14:36 am.jar
    -rw-r--r-- root     root          310 2018-02-15 14:35 android.policy.jar
    -rw-r--r-- root     root          310 2018-02-15 14:35 android.test.runner.jar
    -rw-r--r-- root     root        17816 2018-02-15 14:20 apache-xml.jar
    -rw-r--r-- root     root          310 2018-02-15 14:36 appops.jar
    -rw-r--r-- root     root          310 2018-02-15 14:36 appwidget.jar
    -rw-r--r-- root     root          310 2018-02-15 14:36 bmgr.jar
    -rw-r--r-- root     root          310 2018-02-15 14:22 bouncycastle.jar
    -rw-r--r-- root     root          310 2018-02-15 14:36 bu.jar
    -rw-r--r-- root     root          310 2018-02-15 14:36 com.android.future.usb.accessory.jar
    -rw-r--r-- root     root          310 2018-02-15 14:36 com.android.location.provider.jar
    -rw-r--r-- root     root          310 2018-02-15 14:36 com.android.media.remotedisplay.jar
    -rw-r--r-- root     root          310 2018-02-15 14:36 com.android.mediadrm.signer.jar
    -rw-r--r-- root     root          310 2018-02-15 14:22 conscrypt.jar
    -rw-r--r-- root     root          310 2018-02-15 14:36 content.jar
    -rw-r--r-- root     root          310 2018-02-15 14:06 core-junit.jar
    -rw-r--r-- root     root      1258999 2018-02-15 14:05 core-libart.jar
    -rw-r--r-- root     root          310 2018-02-15 14:36 dpm.jar
    -rw-r--r-- root     root          310 2018-02-15 14:38 ethernet-service.jar
    -rw-r--r-- root     root      1570569 2018-02-15 14:20 ext.jar
    -rw-r--r-- root     root     23569550 2018-02-15 14:06 framework-res.apk
    -rw-r--r-- root     root        19887 2018-02-15 14:35 framework.jar
    -rw-r--r-- root     root          310 2018-02-15 14:36 ime.jar
    -rw-r--r-- root     root          310 2018-02-15 14:36 ims-common.jar
    -rw-r--r-- root     root          310 2018-02-15 14:36 input.jar
    -rw-r--r-- root     root          310 2018-02-15 14:36 javax.obex.jar
    -rw-r--r-- root     root          310 2018-02-15 14:36 media_cmd.jar
    -rw-r--r-- root     root          310 2018-02-15 14:36 mms-common.jar
    -rw-r--r-- root     root          310 2018-02-15 14:36 monkey.jar
    -rw-r--r-- root     root          310 2018-02-15 14:22 okhttp.jar
    -rw-r--r-- root     root          310 2018-02-15 14:36 pm.jar
    -rw-r--r-- root     root          310 2018-02-15 14:36 requestsync.jar
    -rw-r--r-- root     root          310 2018-02-15 14:39 services.jar
    -rw-r--r-- root     root          310 2018-02-15 14:36 settings.jar
    -rw-r--r-- root     root          310 2018-02-15 14:36 svc.jar
    -rw-r--r-- root     root          310 2018-02-15 14:37 telephony-common.jar
    -rw-r--r-- root     root          310 2018-02-15 14:36 uiautomator.jar
    -rw-r--r-- root     root          310 2018-02-15 14:36 voip-common.jar
    -rw-r--r-- root     root          310 2018-02-15 14:41 wifi-service.jar
    -rw-r--r-- root     root          310 2018-02-15 14:36 wm.jar
    drwxr-xr-x root     root              2018-02-15 14:41 x86
    
    • /system/lib/
      存放几乎所有的共享库(.so)文件:
    • /system/media/
      该目录用来保存系统提示音、系统铃声:
    root@vbox86p:/system # cd media
    root@vbox86p:/system/media # ll
    drwxr-xr-x root     root              2018-02-15 13:49 audio
    

    其中/system/media/audio/目录,这里面保存着Android系统的默认的铃声,alarms目录是闹铃提醒,notification目录是短信或提示音,ringtones目录是来电铃声,而ui目录则是一些界面音效:

    • /system/usr/
      该目录用来保存用户的配置文件,如键盘布局、共享、时区文件等:
    root@vbox86p:/system/media/audio # cd ../..
    root@vbox86p:/system # cd usr
    root@vbox86p:/system/usr # ll
    drwxr-xr-x root     root              2018-02-15 13:54 icu
    drwxr-xr-x root     root              2018-02-15 13:49 idc
    drwxr-xr-x root     root              2018-02-15 13:49 keychars
    drwxr-xr-x root     root              2018-02-15 13:49 keylayout
    drwxr-xr-x root     root              2018-02-15 13:52 share
    drwxr-xr-x root     root              2018-02-15 13:49 srec
    root@vbox86p:/system/usr #
    
    • /data/app/
      data目录包含了用户的大部分数据信息。其中,/data/app/这个目录包含了用户安装的App或者升级的App:
    root@vbox86p:/system/usr # cd ../../data/app
    root@vbox86p:/data/app # ll
    drwxrwx--x system   system            2018-03-24 05:27 ApiDemos
    drwxrwx--x system   system            2018-03-24 05:27 GestureBuilder
    drwxr-xr-x system   system            2018-07-13 13:13 andy.ham-2
    drwxr-xr-x system   system            2018-05-15 10:46 com.example.broadcast-2
    drwxr-xr-x system   system            2018-04-14 09:58 com.example.broadcastbestpractice-1
    drwxr-xr-x system   system            2018-06-11 12:37 com.example.daoexample-2
    drwxr-xr-x system   system            2018-04-30 12:57 com.example.databasetest-1
    drwxr-xr-x system   system            2018-04-14 07:24 com.example.filepersistencetest-1
    drwxr-xr-x system   system            2018-06-07 09:44 com.example.greendaotest-1
    drwxr-xr-x system   system            2018-07-27 10:23 com.example.helloworld-1
    drwxr-xr-x system   system            2018-03-24 14:57 com.example.listviewforthepredictor-1
    drwxr-xr-x system   system            2018-06-07 14:55 com.example.litepaltest-2
    drwxr-xr-x system   system            2018-05-25 04:19 com.example.newdialer-1
    drwxr-xr-x system   system            2018-06-07 13:27 com.example.sharedpreferencestest-2
    drwxr-xr-x system   system            2018-04-28 09:40 csumissu.fakewechat-1
    root@vbox86p:/data/app #
    
    • /data/data/
      这个目录应该是开发者访问的最多的目录了,这里包含了App的数据信息、文件信息、数据库信息等,以包名的方式来区分各个应用:
    root@vbox86p:/data/app # cd ../data
    root@vbox86p:/data/data # ll
    drwxr-x--x u0_a70   u0_a70            2018-06-18 11:38 andy.ham
    drwxr-x--x u0_a0    u0_a0             2018-03-24 05:27 com.android.backupconfirm
    drwxr-x--x bluetooth bluetooth          2018-03-24 05:27 com.android.bluetooth
    drwxr-x--x u0_a18   u0_a18            2018-03-24 05:27 com.android.browser
    drwxr-x--x u0_a20   u0_a20            2018-03-24 05:27 com.android.calculator2
    drwxr-x--x u0_a21   u0_a21            2018-03-24 05:27 com.android.calendar
    drwxr-x--x u0_a22   u0_a22            2018-03-24 05:27 com.android.camera2
    drwxr-x--x u0_a23   u0_a23            2018-03-24 05:27 com.android.captiveportallogin
    drwxr-x--x u0_a24   u0_a24            2018-03-24 05:27 com.android.certinstaller
    drwxr-x--x u0_a2    u0_a2             2018-04-14 03:01 com.android.contacts
    drwxr-x--x u0_a26   u0_a26            2018-03-24 05:27 com.android.customlocale2
    drwxr-x--x u0_a3    u0_a3             2018-03-24 05:48 com.android.defcontainer
    drwxr-x--x u0_a27   u0_a27            2018-03-24 05:27 com.android.deskclock
    drwxr-x--x u0_a28   u0_a28            2018-03-24 05:27 com.android.development
    drwxr-x--x u0_a29   u0_a29            2018-03-24 05:27 com.android.development_settings
    drwxr-x--x u0_a4    u0_a4             2018-03-24 05:27 com.android.dialer
    drwxr-x--x u0_a30   u0_a30            2018-04-14 03:02 com.android.documentsui
    drwxr-x--x u0_a17   u0_a17            2018-03-24 05:27 com.android.dreams.basic
    drwxr-x--x u0_a48   u0_a48            2018-03-24 05:27 com.android.dreams.phototable
    drwxr-x--x u0_a31   u0_a31            2018-03-24 05:27 com.android.email
    drwxr-x--x u0_a32   u0_a32            2018-03-24 05:27 com.android.exchange
    drwxr-x--x u0_a6    u0_a6             2018-04-14 03:02 com.android.externalstorage
    drwxr-x--x u0_a33   u0_a33            2018-03-24 05:27 com.android.galaxy4
    drwxr-x--x u0_a34   u0_a34            2018-03-24 05:27 com.android.gallery3d
    drwxr-x--x u0_a58   u0_a58            2018-03-24 05:27 com.android.gesture.builder
    drwxr-x--x u0_a36   u0_a36            2018-03-24 05:27 com.android.htmlviewer
    drwxr-x--x system   system            2018-03-24 05:27 com.android.inputdevices
    drwxr-x--x u0_a38   u0_a38            2018-03-24 05:27 com.android.inputmethod.latin
    drwxr-x--x system   system            2018-03-24 05:53 com.android.keychain
    drwxr-x--x u0_a39   u0_a39            2018-03-24 05:27 com.android.launcher3
    drwxr-x--x system   system            2018-03-24 05:27 com.android.location.fused
    drwxr-x--x u0_a7    u0_a7             2018-03-24 05:27 com.android.managedprovisioning
    drwxr-x--x u0_a8    u0_a8             2018-03-24 05:27 com.android.mms
    drwxr-x--x radio    radio             2018-03-24 05:27 com.android.mms.service
    drwxr-x--x u0_a42   u0_a42            2018-03-24 05:27 com.android.music
    drwxr-x--x u0_a9    u0_a9             2018-03-24 05:48 com.android.musicfx
    ......
    
    • /data/system/
      这个目录包含了手机的各项系统信息:
    • /data/misc/
      这个目录保存了大部分的Wi-Fi、VPN信息:

    相关文章

      网友评论

        本文标题:1.Android系统源代码目录与系统目录

        本文链接:https://www.haomeiwen.com/subject/htxnmftx.html