Warning: Google Drive access will soon only be possible via own client id

Support for Android version of Total Commander

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48145
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Warning: Google Drive access will soon only be possible via own client id

Post by *ghisler(Author) »

Unfortunately after restricting my "cloud" plugin for Windows (thread here), Google is now doing the same to my "drive" plugin for Android. It would cost several 10'000 dollars per year to keep the plugin working as it is now.

Therefore I have decided to use the same approach as with the "cloud" plugin: Users will have to create their own credentials to log in. Currently it's still working with built-in credentials, but it will stop working within the next 30-60 days.

If you are a heavy user of this plugin, or if you have already created your own credentials for the Windows "cloud" plugin, then please test the beta version which supports both the old built-in credentials and the new user-created credentials:
https://play.google.com/apps/testing/com.ghisler.tcplugins.drive

To use the new credentials, open the plugin and click on <Settings & Privacy>. Then click on JSON and pick the JSON file created for the "cloud" plugin for Windows.

Here are the instructions to create your own credentials. It looks like a lot of steps, but they are all very small, so it's not that hard:
https://www.ghisler.com/googledriveandroid.htm
Author of Total Commander
https://www.ghisler.com
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48145
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Warning: Google Drive access will soon only be possible via own client id

Post by *ghisler(Author) »

Could someone - anyone - test this please? Time is running out, and I will have to remove the app from the Play Store if I can't update the app.
Author of Total Commander
https://www.ghisler.com
Jedi
Junior Member
Junior Member
Posts: 7
Joined: 2015-08-29, 05:15 UTC
Location: Internet

Re: Warning: Google Drive access will soon only be possible via own client id

Post by *Jedi »

I tested this test-version following the instruction and it seems to work for me.

I do encounter one tiny issue during the process. The replay here is:
1. Set JSON via <Settings & Privacy>, done.
2. Click my account in Drive plugin...
3. Drive plugin shows messages about "click OK after login in browser"...
4. Bring up browser app and it ask me to login my Google account...
5. Enter my account and password to login...
6. Since I enabled 2-factors login, Google (in browser) ask me to confirm my login via notification...
7. I confirm my login. Now the browser app closed before it can ask me grant permission to Drive plugin. This results that Drive plugin not receiving token at all.

The workaround I took here is:
8. Start my browser app first, login (with 2-factors) into my Google account with accounts.google.com
9. Back to Total Commander and Drive plugin, click my account in it.
10. Drive plugin shows messages...bring up browser app... since I already logged in, it shows permission granting screen this time.
11. Grant permission to Drive plugin.
12. Now browser app closed and back to Drive plugin message, click OK.
13. And it works.
User avatar
petermad
Power Member
Power Member
Posts: 14833
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Warning: Google Drive access will soon only be possible via own client id

Post by *petermad »

Works here, without any problems.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48145
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Warning: Google Drive access will soon only be possible via own client id

Post by *ghisler(Author) »

2Jedi
Thanks, I can reproduce the problem. It happens because I'm calling Chrome with the parameter FLAG_ACTIVITY_NO_HISTORY. This prevents the login screen from appearing in the task manager (list of previously opened apps). Unfortunately it also seems to prevent Android from returning to the login screen after closing the 2 factor screen. I will therefore remove FLAG_ACTIVITY_NO_HISTORY although it's bad that the user can then return to the login page.
Author of Total Commander
https://www.ghisler.com
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48145
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Warning: Google Drive access will soon only be possible via own client id

Post by *ghisler(Author) »

Here is beta 2, you can install it from an Android web browser without uninstalling the first beta:
https://www.totalcommander.ch/beta/tcandroiddrive240b2.apk
I'm posting it here because currently it takes several days to get an app approved in the Play Store.
Improvements:
1. You can now add Google Drive accounts manually by entering mail addresses when a JSON file has been added.
2. Login with 2 factors should work now. You can test this by launching Chrome manually and logging out of your Google account.
Author of Total Commander
https://www.ghisler.com
Post Reply