That depends. Hypothetically, you could only get a virus from jailbreaking your phone and side loading apps. A jailbreak wouldn’t transfer to a new phone, and those malicious side loaded apps wouldn’t either. In theory, your transferred settings are just non-executable configs that get copied, and you redownload your App
Store apps direct from Apple. But, hypothetically, if the exploit was in an app that made its way into the App Store, or a vulnerability within iOS itself, or part of a transferred config file that is somehow also executable, then the virus could potentially transfer. But since we’re all hypothetical here I’d say no, by why risk it? If you knew you had a malfunctioning iPhone or had jail broken it, set the new one up fresh.
That depends. Hypothetically, you could only get a virus from jailbreaking your phone and side loading apps. A jailbreak wouldn’t transfer to a new phone, and those malicious side loaded apps wouldn’t either. In theory, your transferred settings are just non-executable configs that get copied, and you redownload your App Store apps direct from Apple. But, hypothetically, if the exploit was in an app that made its way into the App Store, or a vulnerability within iOS itself, or part of a transferred config file that is somehow also executable, then the virus could potentially transfer. But since we’re all hypothetical here I’d say no, by why risk it? If you knew you had a malfunctioning iPhone or had jail broken it, set the new one up fresh.