How do you debug android platform source code?

73
January 11, 2019, at 10:30 PM

When you have issues with android source code, how do you dig into the code? For example for this issue
I saw from the debugger that the CookieManager is AwCookieManager.
So from Google search I found that the setCookie is the following:

public void setCookie(final String url, final String value) {  
        nativeSetCookie(url, value);     
}  

But I had trouble finding that native code to see what's going on.
I searched again in Google and found different version of this native and java and ended up with this file: https://android.googlesource.com/platform/external/webkit/+/4bcd50196a7fe4c0c909ce6a7cfac6a808336611/Source/WebKit/android/jni/CookieManager.cpp

but I am not sure if this is the right file to look at and I suspect there is a smarter way for debugging these kind of things. I also wasn't sure how to find the called methods from that file.

So how do you do it?

READ ALSO
How to limit multiple image selection from the gallery?

How to limit multiple image selection from the gallery?

I have implemented adding multiple image selection from the gallery in my projectHowever, I want to limit the user so he/she can select only 3 images from the gallery

32
How to put image on google map using groundoverlay in android where image having 5k (width)* 5k (height) and 1.6 mb of size?

How to put image on google map using groundoverlay in android where image having 5k (width)* 5k (height) and 1.6 mb of size?

I wanna put an image of my city which contains roads and homes on google map using groundoverlay method in android, where my image size and dimensions are very largeHow I can put this image on map in android?

39
Recycler view is not updating on realtime update

Recycler view is not updating on realtime update

i am trying to update recycler view when the user sends and removes friend requesti am using firebase firestore

47
Confusion in Geocoder Class

Confusion in Geocoder Class

I just want to launch my application which is using Reverse Geocoding with the help of Geocoder Class but I want to ask whether this cause any problem further?

34