Sunday, November 26, 2017

solve gplaycli with error Unexpected end-group tag

1-it might be caused by token expired, just remove  ~/.cache/gplaycli/toke, it will work
$ rm  ~/.cache/gplaycli/toke


but have to remove every time we need to download a package

2- so we can  get a token from google or setup token-dispenser

 $ git clone https://github.com/yeriomin/token-dispenser
 $  cd token-dispenser

- change content of   src/main/resources/config.properties to below, or left as is
spark-host=0.0.0.0
spark-port=8080
storage=plaintext
storage-plaintext-path=passwords/passwords.txt
enable-email-retrieval=true


 $ mvn install

4- update password file
the format of passwords/passwords.txt  is
username@gmail.com password

5- then we can run the server with command below
$  java -jar target/token-dispenser.jar

6- to get token use url below
-regular
http://localhost:8080/token/email/username@gmail.com
-checkin
http://localhost:8080/token-ac2dm/email/username@gmail.com


7- now we can update the gplaci cache to use our own token, and  seem we can download forever with the token, if not just update again ~/.cache/gplaycli/toke

when we access url below we get only the first part, so update that part only
http://localhost:8080/token/email/username@gmail.com


dAUDqP6rK-atn44X3wM0SK8YmymDhaah0dreCe22ltwbMX-Zfz_FYyh_XyvLfEW-zHdwZQ. 30008c3f70b8bd96

No comments:

Post a Comment