Is it legal to track my spouse through their smartphone?
And if you access their phone using the password without their permission or initiate tracking software on their phone without their permission, you are breaking the law. And be forewarned, criminal courts can use information that comes out in a family law case, either in a hearing, in testimony or a trial in order to prosecute you for that. If you are inclined to track your spouse, there are other ways to legally do it and you should talk to your attorney about those options.