如何不恢复出厂设置恢复华为P7的notepad.db及记事本迁移咨询
Got it, let's tackle this step by step—first recovering your main P7's notepad.db without a factory reset, then migrating those notes to your new P7. Since you can't use Google Play, NFC, and mobile data is spotty, we'll stick to offline/local methods that play nice with your setup.
1. Recovering the
notepad.db on Your Main Huawei P7 (No Factory Reset) Huawei's default notes app stores its data in notepad.db, located in the app's private directory. Here are two reliable ways to get it out:
Method 1: ADB Backup (No Root Required)
This is the safest method if your phone isn't rooted:
- First, enable USB debugging on your main P7: Go to Settings > About Phone and tap the build number 7 times to unlock Developer Options. Then go back to Settings > Developer Options and turn on USB Debugging.
- Connect your phone to a Windows/macOS computer. You'll need Huawei's USB drivers installed (you can grab these via Huawei's official support resources if needed, or use generic ADB drivers).
- Open Command Prompt (Windows) or Terminal (macOS) and run this command:
adb backup -f notepad.ab -noapk com.huawei.notepad - On your phone, a backup confirmation pop-up will appear. Check "Backup app data" (leave APK unchecked) and confirm the backup.
- Once done, convert the
.abbackup file to a.tararchive using a tool likeabe.jar(run this command if you have Java installed):java -jar abe.jar unpack notepad.ab notepad.tar - Extract the
.tarfile, and you'll finddatabases/notepad.dbinside—that's your target database file.
Method 2: Root Access (If You Already Have It)
If your main P7 is rooted:
- Connect to WiFi (since your mobile data is wonky) and download a root-enabled file manager from Huawei AppGallery (you can't use Google Play, but AppGallery should work).
- Open the file manager, navigate to
/data/data/com.huawei.notepad/databases/, and copynotepad.dbto your phone's public storage (like the Downloads folder or an SD card). You can then transfer this file to a computer or USB drive later.
2. Migrating Notes to Your New Huawei P7
Now that you have the notepad.db file, here's how to get it onto your new P7:
Method 1: USB OTG Transfer (No Computer Needed)
- Use a USB OTG cable to connect your main P7 to a USB drive. Copy the
notepad.dbfile to the drive. - Connect the same USB drive to your new P7 via OTG, and copy
notepad.dbto the new phone's Downloads folder. - If your new P7 is rooted: Use a root file manager to move
notepad.dbfrom Downloads to/data/data/com.huawei.notepad/databases/(replace the existing file—back up the original first just in case). - If not rooted: Enable USB debugging on the new P7, connect it to a computer, and run this command in Terminal/Command Prompt:
adb push /path/to/your/notepad.db /data/data/com.huawei.notepad/databases/ - Restart the notes app on your new P7, and your old notes should show up.
Method 2: Computer-Mediated Transfer
- Keep the
notepad.dbfile on your computer from the recovery step. - Enable USB debugging on your new P7, connect it to the computer.
- Run the same ADB push command as above to move the file into the notes app's private directory.
- Restart the app, and you're good to go.
Alternative: Manual Copy-Paste (For Non-Technical Users)
If messing with databases feels too complex:
- On your main P7, open each note, copy its content, and paste it into a new TXT file (use Huawei's default file manager to create TXT files).
- Transfer the TXT files to your new P7 via OTG or computer.
- Open each TXT file on the new P7, copy the content, and paste it into new notes in the default notes app. It's tedious, but it works without any technical steps.
内容的提问来源于stack exchange,提问作者skywalker deflepfollower
相关产品推荐
相关产品推荐

