openstf / STFService.apk

Monitor and perform various actions on your Android device. Not meant for actual user devices.
Other
242 stars 207 forks source link

[help]Unable to send any message, either stfserver or argent #51

Closed lfjking closed 4 years ago

lfjking commented 4 years ago

My head is about to explode. Following the tutorial, I can connect to stfserver and argent,And it works fine from stfserver But I can't send any disappearance to stfserver or argent. As soon as I send it, the connection closes. Help me, give me some advice, see what's wrong.

e.g.:

        Envelope    _lope;
        GetVersionRequest ver;
        _lope.set_id(111);
        _lope.set_type(MessageType::GET_VERSION);
        _lope.set_message(ver.SerializeAsString());
        std::string data = _lope.SerializeAsString();
        mServerForward.ForwardWrite((unsigned char*)(data.data()), data.length());
lfjking commented 4 years ago

Well, maybe I'll have to make some changes to suit my needs