norman784 / libimobiledevice-node

A cross-platform software protocol library and tools to communicate with iOS® devices natively.
MIT License
25 stars 8 forks source link

Unable to turn off encryption #12

Closed bhupendra-mp closed 3 years ago

bhupendra-mp commented 4 years ago

I am using the backup2 with following options but it is giving me error:

Can't get password input in non-interactive mode. Either pass password(s) on the command line, or enable interactive mode with -i or --interactive.
const libBackupOptions = {
      encryption: {
        status: 'off',
        password: '000000'
      }
    };

If I pass interactive: true, which I should not. Then I just get following in on('data') event and nothing else.

Started "com.apple.mobilebackup2" service on port 49295.
Negotiated Protocol Version 2.1

I am using macOS Catalina. I installed latest version of libimobiledevice on my Mac mini using brew and following command works fine.

idevicebackup2 encryption off 000000

Is it the limitation of this library?

didix21 commented 3 years ago

Sorry for answering late, but probably the problem is native libimobiledevice is outdated.

didix21 commented 3 years ago

After updating libimobiledevice, I can see the problem persist. The following error is shown:

error:  ERROR: Can't get password input in non-interactive mode. Either pass password(s) on the command line, or enable interactive mode with -i or --interactive.

Moreover, I've been able to find the problem and it's a problem in the native part implemented in libimobiledevice-node.