I've managed to make a workaround for Android authentication with these docker files
I guess loginserver is missing something that the sdkserver.jar from the vm has
Update your mysql db:
Code:
USE `db_hk4e_global_deploy`;
INSERT INTO `t_bind_config` VALUES (3,'OSRELAndroid3.2.0','dev_docker','1');
INSERT INTO `t_client_channel_id_config` VALUES (3,'OSRELAndroid3.2.0',1,1,'','');
INSERT INTO `t_client_config` VALUES (3,'OSRELAndroid3.2.0','OSRELAndroid','','{\"sdkenv\":\"1\",\"checkdevice\":false,\"loadPatch\":false,\"showexception\":false,\"regionConfig\":\"pm|fk|add\",\"downloadMode\":\"0\"}','027d8a5fcdc9c5cf');
INSERT INTO `t_client_region_config` VALUES (3,'OSRELAndroid3.2.0','dev_docker','');
Use the
You must be registered to see links
Create a "sdkserver" folder next to the loginserver one (replace 127.0.0.1 ip from config.json if needed)
Update your docker.yml file with these lines and comment/remove the loginserver service
Code:
mongodb:
image : mongo:latest
container_name: mongodb
restart: unless-stopped
ports:
- 27017:27017
sdkserver:
image: openjdk:17
container_name: "sdkserver"
restart: unless-stopped
ports:
- 2888:2888
volumes:
- "./bin/sdkserver/sdkserver.jar:/sdkserver.jar"
- "./bin/sdkserver/config.json:/config.json"
command: ['java', '-jar', '/sdkserver.jar']
Rebuild by running the docker compose script again
Use port 2888 to login
There's an issue with the .jar it is writing "<INFO:Grasscutter> EOF detected." endlessly in console and I don't know why.
Saw
You must be registered to see links
but it didn't help. I didn't include the logs folder in docker's volumes because it would take resources writing that error.
In the end, I would need to see what the client/server needs to auth in Android to implement a proper solution.