AwesomeIndustry / SIMLessPNRGateway

[Public version] iMessage phone number registration on Android devices, without a separate SIM card!
46 stars 5 forks source link

PNRGateway: Error reading phone number from file #5

Open Undam opened 11 months ago

Undam commented 11 months ago

PNRGateway: Error reading phone number from file: Error Domain=NSCocoaErrorDomain Code=257 "The file “pnr_android_number.txt” couldn’t be opened because you don’t have permission to view it." UserInfo={NSFilePath=/pnr_android_number.txt, NSUnderlyingError=0x100ff8810 {Error Domain=NSPOSIXErrorDomain Code=1 "Operation not permitted"}}

Whenever I activate the iMessage switch this is the last thing to appear in my macs console, I get the push token and it attempts to send an SMS, but for whatever reason PNRGateway can't access that textfile. I've already messed around with the file ownership of the .txt through Filza on the phone with no luck.

Using iPhone 5s on 12.5.7

gavin4560 commented 10 months ago

Are you using the Chimera jailbreak by any chance? I had this same problem on the same phone and iOS version and I found the fix was to switch to checkra1n instead.

Undam commented 10 months ago

I reinstalled the OS using DFU to clean all the jailbreak files from Freya. When I tap on messages, I can no longer toggle it on or off without logging in, but by doing so it defaults to my apple id and doesn't attempt to active the number. Do you know to toggle the messages without signing in?

AndersGil commented 8 months ago

I also am struggling with the same error. Were there any updates to resolving this?

Supposedly-Sam commented 6 months ago

How did y'all create the file, my iPhone won't let me make it

Sniper26 commented 6 months ago

To fix this problem you need to SSH into your phone and chmod 0777 the text file. That fixes permission denied. As for getting the txt file onto your iPhone you can make it and just drag it then use any file manage (files, etc) to move it.

Supposedly-Sam commented 6 months ago

To fix this problem you need to SSH into your phone and chmod 0777 the text file. That fixes permission denied. As for getting the txt file onto your iPhone you can make it and just drag it then use any file manage (files, etc) to move it.

It won't let me copy the file to the iphone

Sniper26 commented 6 months ago

To fix this problem you need to SSH into your phone and chmod 0777 the text file. That fixes permission denied. As for getting the txt file onto your iPhone you can make it and just drag it then use any file manage (files, etc) to move it.

It won't let me copy the file to the iphone

There are hundreds of ways to get it to your iPhone I don’t understand. Google drive Apple cloud, email, discord, drag it from your PC via files, and/or use an online txt file creator. Literally hundreds of ways to get the file onto your device?

Supposedly-Sam commented 6 months ago

To fix this problem you need to SSH into your phone and chmod 0777 the text file. That fixes permission denied. As for getting the txt file onto your iPhone you can make it and just drag it then use any file manage (files, etc) to move it.

It won't let me copy the file to the iphone

There are hundreds of ways to get it to your iPhone I don’t understand. Google drive Apple cloud, email, discord, drag it from your PC via files, and/or use an online txt file creator. Literally hundreds of ways to get the file onto your device?

The problem is it won't let me put it in the root directory

theAeon commented 6 months ago

pretty sure rootless jailbreaks are the norm for 14+

is there any reason the path needs to be hardcoded to the root?