P
P
Philipp272017-01-30 17:37:19
Android
Philipp27, 2017-01-30 17:37:19

How to parse authorization tokens in an android application?

Please help. You need to emulate through a desktop program, login through an android application. The application uses tokens when logging in. Tell me how to get tokens for authorization?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Rou1997, 2017-01-30
@Rou1997

Network debugging - with sniffers on Android itself, or run in the emulator, and install the sniffer on the host (computer where the emulator is) to proxy requests from the guest OS.
Debugging the application's executable code, as well as disassembling and decompiling.

I
ivanessence, 2017-01-30
@ivanessence

Perhaps something like this:

URL url = new URL(URL_REG_WORK);
            CookieManager manager = new CookieManager();
            HttpURLConnection conn = (HttpURLConnection) url.openConnection();
            String server = conn.getHeaderField("set-cookie");
            token = server.substring(10, 42);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question