欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

Android 把数据存到应用的数据目录下

程序员文章站 2022-03-13 22:37:50
```markup```powershellC:\WINDOWS\system32>adb devicesList of devices attachedemulator-5554 deviceC:\WINDOWS\system32>adb remountNot running as root. Try "adb root" first.C:\WINDOWS\system32>adb rebootC:\WINDOWS\system32>adb root....

```markup

```powershell
C:\WINDOWS\system32>adb devices
List of devices attached
emulator-5554   device


C:\WINDOWS\system32>adb remount
Not running as root. Try "adb root" first.

C:\WINDOWS\system32>adb reboot

C:\WINDOWS\system32>adb root
restarting adbd as root

C:\WINDOWS\system32>adb remount
remount succeeded

C:\WINDOWS\system32>adb shell
generic_x86_64:/ # cd data
generic_x86_64:/data # cd data
generic_x86_64:/data/data # ls -l
total 816
drwx------  2 system system 4096 2020-10-26 09:56 android
drwx------  2 u0_a0  u0_a0  4096 2020-10-26 09:56 com.android.backupconfirm
drwx------  2 u0_a31 u0_a31 4096 2020-10-26 09:56 com.android.bookmarkprovider
drwx------  2 u0_a44 u0_a44 4096 2020-10-26 09:56 com.android.calculator2
drwx------  4 u0_a34 u0_a34 4096 2020-10-26 09:56 com.android.camera2
drwx------  2 u0_a35 u0_a35 4096 2020-10-26 09:56 com.android.captiveportallogin
drwx------  3 u0_a3  u0_a3  4096 2020-10-26 09:56 com.android.carrierconfig
drwx------  2 u0_a4  u0_a4  4096 2020-10-26 09:56 com.android.cellbroadcastreceiver
drwx------  2 u0_a36 u0_a36 4096 2020-10-26 09:56 com.android.certinstaller
drwx------  5 u0_a37 u0_a37 4096 2020-11-11 14:46 com.android.chrome
drwx------  2 u0_a6  u0_a6  4096 2020-10-26 09:56 com.android.contacts
drwx------  2 u0_a38 u0_a38 4096 2020-10-26 09:56 com.android.cts.ctsshim
drwx------  2 u0_a7  u0_a7  4096 2020-10-26 09:56 com.android.cts.priv.ctsshim
drwx------  2 u0_a39 u0_a39 4096 2020-10-26 09:56 com.android.customlocale2
drwx------  2 u0_a8  u0_a8  4096 2020-10-26 09:56 com.android.defcontainer
drwx------  2 u0_a40 u0_a40 4096 2020-10-26 09:56 com.android.development
drwxr-x--x  6 u0_a9  u0_a9  4096 2020-10-26 09:56 com.android.dialer
drwx------  2 u0_a10 u0_a10 4096 2020-10-26 09:56 com.android.documentsui
drwx------  2 u0_a30 u0_a30 4096 2020-10-26 09:56 com.android.dreams.basic
drwx------  2 u0_a42 u0_a42 4096 2020-10-26 09:56 com.android.egg
drwx------  2 u0_a12 u0_a12 4096 2020-10-26 09:56 com.android.emergency
drwx------  2 u0_a43 u0_a43 4096 2020-10-26 09:56 com.android.emulator.smoketests
drwx------  2 u0_a13 u0_a13 4096 2020-10-26 09:56 com.android.externalstorage
drwx------  2 u0_a45 u0_a45 4096 2020-10-26 09:56 com.android.fallback
drwx------  4 u0_a46 u0_a46 4096 2020-10-26 10:00 com.android.gallery3d
drwxr-x--x  2 u0_a73 u0_a73 4096 2020-10-26 09:56 com.android.gesture.builder
drwxr-x--x  2 u0_a51 u0_a51 4096 2020-10-26 09:56 com.android.htmlviewer
drwx------  2 system system 4096 2020-10-26 09:56 com.android.inputdevices
drwxr-x--x  2 u0_a53 u0_a53 4096 2020-10-26 09:56 com.android.inputmethod.latin
drwx------  4 system system 4096 2020-10-28 09:32 com.android.keychain
drwxr-x--x  5 u0_a20 u0_a20 4096 2020-10-26 09:56 com.android.launcher3
drwx------  2 system system 4096 2020-10-26 09:56 com.android.location.fused
drwx------  4 u0_a21 u0_a21 4096 2020-10-26 09:56 com.android.managedprovisioning
drwx------  2 radio  radio  4096 2020-10-26 09:56 com.android.mms.service
drwx------  2 u0_a11 u0_a11 4096 2020-10-26 09:56 com.android.mtp
drwx------  2 u0_a58 u0_a58 4096 2020-10-26 09:56 com.android.netspeed
drwx------  2 u0_a60 u0_a60 4096 2020-10-26 09:56 com.android.pacprocessor
drwxr-x--x  3 radio  radio  4096 2020-11-10 19:00 com.android.phone
drwx------  5 u0_a66 u0_a66 4096 2020-10-26 09:56 com.android.printspooler
drwx------  2 u0_a67 u0_a67 4096 2020-10-26 09:56 com.android.protips
drwx------  2 u0_a1  u0_a1  4096 2020-10-26 09:56 com.android.providers.blockednumber
drwx------  5 u0_a2  u0_a2  4096 2020-10-26 09:56 com.android.providers.calendar
drwx------  6 u0_a1  u0_a1  4096 2020-10-26 09:56 com.android.providers.contacts
drwx------  4 u0_a11 u0_a11 4096 2020-10-26 09:56 com.android.providers.downloads
drwx------  2 u0_a11 u0_a11 4096 2020-10-26 09:56 com.android.providers.downloads.ui
drwx------  4 u0_a11 u0_a11 4096 2020-10-26 09:56 com.android.providers.media
drwxr-x--x  2 u0_a61 u0_a61 4096 2020-10-26 09:56 com.android.providers.partnerbookmarks
drwx------  2 system system 4096 2020-10-26 09:56 com.android.providers.settings
drwx------  2 radio  radio  4096 2020-10-26 09:56 com.android.providers.telephony
drwx------  3 u0_a1  u0_a1  4096 2020-11-11 14:28 com.android.providers.userdictionary
drwx------  2 u0_a22 u0_a22 4096 2020-10-26 09:56 com.android.proxyhandler
drwx------  3 u0_a23 u0_a23 4096 2020-10-26 09:56 com.android.sdksetup
drwx------  2 system system 4096 2020-10-26 09:56 com.android.server.telecom
drwx------  2 system system 4096 2020-10-26 09:56 com.android.settings
drwx------  2 u0_a25 u0_a25 4096 2020-10-26 09:56 com.android.sharedstoragebackup
drwx------  2 shell  shell  4096 2020-10-26 09:56 com.android.shell
drwxr-x--x  2 u0_a75 u0_a75 4096 2020-10-26 09:56 com.android.smoketest
drwxr-x--x  2 u0_a74 u0_a74 4096 2020-10-26 09:56 com.android.smoketest.tests
drwx------  2 u0_a26 u0_a26 4096 2020-10-26 09:56 com.android.statementservice
drwx------  2 u0_a27 u0_a27 4096 2020-10-26 09:56 com.android.systemui
drwx------  2 u0_a54 u0_a54 4096 2020-10-26 09:56 com.android.vending
drwx------  2 u0_a29 u0_a29 4096 2020-10-26 09:56 com.android.vpndialogs
drwx------  2 u0_a55 u0_a55 4096 2020-10-26 09:56 com.android.wallpaper.livepicker
drwx------  2 system system 4096 2020-10-26 09:56 com.android.wallpaperbackup
drwx------  2 u0_a77 u0_a77 4096 2020-10-26 09:56 com.android.widgetpreview
drwxr-x--x  2 u0_a71 u0_a71 4096 2020-10-26 09:56 com.example.android.apis
drwx------  2 u0_a72 u0_a72 4096 2020-10-26 09:56 com.example.android.livecubes
drwx------  2 u0_a76 u0_a76 4096 2020-10-26 09:56 com.example.android.softkeyboard
drwx------  4 u0_a79 u0_a79 4096 2020-10-29 15:52 com.example.narziss.activitytest
drwx------  4 u0_a78 u0_a78 4096 2020-10-26 10:00 com.example.narziss.helloworld
drwx------  2 u0_a41 u0_a41 4096 2020-10-26 09:56 com.google.android.apps.docs
drwx------  7 u0_a56 u0_a56 4096 2020-10-26 09:56 com.google.android.apps.maps
drwx------  6 u0_a63 u0_a63 4096 2020-11-11 14:46 com.google.android.apps.messaging
drwx------  6 u0_a62 u0_a62 4096 2020-11-11 14:46 com.google.android.apps.photos
drwx------  2 u0_a14 u0_a14 4096 2020-10-26 09:56 com.google.android.backuptransport
drwx------  6 u0_a33 u0_a33 4096 2020-10-26 09:56 com.google.android.calendar
drwx------  5 u0_a5  u0_a5  4096 2020-10-26 09:56 com.google.android.configupdater
drwx------  6 u0_a64 u0_a64 4096 2020-10-26 09:56 com.google.android.deskclock
drwx------  2 u0_a15 u0_a15 4096 2020-10-26 09:56 com.google.android.ext.services
drwx------  2 u0_a48 u0_a48 4096 2020-10-26 09:56 com.google.android.ext.shared
drwxr-x--x  2 u0_a16 u0_a16 4096 2020-10-26 09:56 com.google.android.feedback
drwx------  6 u0_a65 u0_a65 4096 2020-10-26 09:56 com.google.android.gm
drwx--x--x 17 u0_a14 u0_a14 4096 2020-11-11 14:43 com.google.android.gms
drwx------ 10 u0_a28 u0_a28 4096 2020-11-11 14:46 com.google.android.googlequicksearchbox
drwx------  7 u0_a14 u0_a14 4096 2020-10-26 09:56 com.google.android.gsf
drwxr-x--x  2 u0_a14 u0_a14 4096 2020-10-26 09:56 com.google.android.gsf.login
drwx------  7 u0_a57 u0_a57 4096 2020-10-26 09:56 com.google.android.music
drwx------  4 u0_a17 u0_a17 4096 2020-10-26 09:56 com.google.android.onetimeinitializer
drwx------  2 u0_a18 u0_a18 4096 2020-10-26 09:56 com.google.android.packageinstaller
drwx------  5 u0_a19 u0_a19 4096 2020-10-26 09:56 com.google.android.partnersetup
drwx------  2 u0_a49 u0_a49 4096 2020-10-26 09:56 com.google.android.printservice.recommendation
drwx------  4 u0_a24 u0_a24 4096 2020-10-26 09:56 com.google.android.setupwizard
drwxr-x--x  4 u0_a47 u0_a47 4096 2020-10-26 09:56 com.google.android.syncadapters.contacts
drwx------  6 u0_a52 u0_a52 4096 2020-11-11 14:46 com.google.android.talk
drwx------  2 u0_a50 u0_a50 4096 2020-11-11 14:46 com.google.android.tts
drwx------  7 u0_a68 u0_a68 4096 2020-11-11 14:46 com.google.android.videos
drwx------  2 u0_a69 u0_a69 4096 2020-10-26 09:56 com.google.android.webview
drwx------  7 u0_a70 u0_a70 4096 2020-10-26 09:56 com.google.android.youtube
drwx------  4 u0_a80 u0_a80 4096 2020-11-10 19:01 com.narziss.androiduidemo
drwx------  4 u0_a81 u0_a81 4096 2020-11-11 14:28 com.narziss.qqlogindemo
drwx------  2 u0_a59 u0_a59 4096 2020-10-26 09:56 jp.co.omronsoft.openwnn
drwx------  2 u0_a32 u0_a32 4096 2020-10-26 09:56 org.chromium.webview_shell
generic_x86_64:/data/data # cd com.narziss.qqlogindemo/
generic_x86_64:/data/data/com.narziss.qqlogindemo # ls -l
total 24
drwxrwx--x 2 u0_a81 u0_a81 4096 2020-11-11 14:42 cache
drwx------ 3 u0_a81 u0_a81 4096 2020-11-11 14:06 files
-rw------- 1 u0_a81 u0_a81   11 2020-11-11 14:43 info.text


本文地址:https://blog.csdn.net/weixin_44145648/article/details/109621373

相关标签: Android