Conversation
- Convert instructions to numbered lists - Mention more clearly what to perform in the app and what on the PC - Add hints for when `nc` is not available
| nc -l -s 127.0.0.1 -p 12101 > firefox-android-backup.tar.gz | ||
| ``` | ||
|
|
||
| On MacOS you might have to use `nc -l 127.0.0.1 12101 > ...` ([issue #3](https://github.com/Rob--W/firefox-android-backup-restore/issues/3)).\ |
There was a problem hiding this comment.
Note: I haven't and cannot verify the MacOS command; I took it from the linked issue.
There was a problem hiding this comment.
In case you don't know, you can legally rent a macOS computer, for instance at Scaleway.
Personal notes: Benjamin_Loison/MacOS/issues/1
| ``` | ||
|
|
||
| On MacOS you might have to use `nc -l 127.0.0.1 12101 > ...` ([issue #3](https://github.com/Rob--W/firefox-android-backup-restore/issues/3)).\ | ||
| On Windows you can use [ncat](https://nmap.org/ncat/) with `ncat -l 127.0.0.1 -p 12101 > ...`. |
There was a problem hiding this comment.
The idea to use ncat (and also to clear the cache before the backup) is from this Reddit comment.
README.md
Outdated
| If the script fails, saying it cannot find `nc`, see [issue #2](https://github.com/Rob--W/firefox-android-backup-restore/issues/2). | ||
| 11. Close the reverse connection you opened earlier for the transfer: | ||
| ```sh | ||
| adb reverse –-remove tcp:12101 |
There was a problem hiding this comment.
with my linux adb version 35.0.2-android-tools:
$ adb reverse –-remove tcp:12101
adb: error: cannot bind listener: unknown socket specification:–-remove
but it works with
$ adb reverse tcp:12101 --remove
There was a problem hiding this comment.
Thanks for mentioning this! It looks like I accidentally used an "en dash" (–, U+2013) instead of a regular hyphen here in the documentation. Maybe that was the issue.
Could you please check again?
There was a problem hiding this comment.
When debugging, I re-typed in reverse order, accidentally fixing the copy-pasted en-dash. I wrongly assumed the issue was the args order.
I can't test presently, but your fix of en-dash does make totally sense.
This tries to improve the instructions a bit by:
ncis not availableAny feedback or improvement suggestions are welcome though, or feel free to directly make the changes if you want, or apply only some of these changes.
If possible please double check that the steps are still correct and I did not make any mistake.