ability to set a token to use #22

Closed
opened 2019-05-08 10:33:27 +00:00 by a · 2 comments
Owner

Useful for microg or no gapps users!

Useful for microg or no gapps users!
a added the
enhancement
label 2019-05-08 10:33:33 +00:00
Author
Owner

First off, get your token from your PC.


Versions with "tokenlogin" : (all versions after 9.0.3)

On login screen, set email to anything that starts with tokenlogin, such as tokenlogin@example.com. Set password to token, press login. Nothing will seem to happen, this is normal. Completely close (through app switcher) and reopen the app, and you'll automatically get logged in with that token.


Versions with debuggability (all versions after 8.9.6), requires computer and adb:

Then use the following commands on your computer with adb installed and your device plugged in with USB debugging enabled, replace [branch] with your branch, and [token] with actual token:

adb shell
run-as com.cutthecord.[branch]
cd shared_prefs
echo "<?xml version='1.0' encoding='utf-8' standalone='yes' ?><map><string name=\"STORE_AUTHED_TOKEN\">[token]</string></map>" > com.cutthecord.[branch]_preferences.xml

then simply restart the app.

First off, [get your token from your PC](https://github.com/Tyrrrz/DiscordChatExporter/issues/76#issuecomment-410067054). --- **Versions with "tokenlogin" : (all versions after 9.0.3)** On login screen, set email to anything that starts with `tokenlogin`, such as `tokenlogin@example.com`. Set password to token, press login. Nothing will seem to happen, this is normal. Completely close (through app switcher) and reopen the app, and you'll automatically get logged in with that token. --- **Versions with debuggability (all versions after 8.9.6), requires computer and adb:** Then use the following commands on your computer with adb installed and your device plugged in with USB debugging enabled, replace [branch] with your branch, and [token] with actual token: ``` adb shell run-as com.cutthecord.[branch] cd shared_prefs echo "<?xml version='1.0' encoding='utf-8' standalone='yes' ?><map><string name=\"STORE_AUTHED_TOKEN\">[token]</string></map>" > com.cutthecord.[branch]_preferences.xml ``` then simply restart the app.
a closed this issue 2019-05-13 09:33:55 +00:00

If you're going to use the adb method to sign in, you can do the following command while your phone's connected to the computer, to figure out what the app string, which is com.cutthecord.BRANCH, is for the CTC Branch that you're using.

adb shell 'pm list packages -f' | sed -e 's/.*=//' | sort | grep -i cutthecord

If you're going to use the adb method to sign in, you can do the following command while your phone's connected to the computer, to figure out what the app string, which is `com.cutthecord.BRANCH`, is for the CTC Branch that you're using. `adb shell 'pm list packages -f' | sed -e 's/.*=//' | sort | grep -i cutthecord`
This repo is archived. You cannot comment on issues.
No Milestone
No Assignees
2 Participants
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: distok/cutthecord#22
No description provided.