Re: [android-building] sdk 23 bytecode does not match source

2019-03-26 Thread Robert Durkacz
So that explains what I see with the debugger when I try to follow the
code into the android M/6.0/API 23 platform. Android Studio is
decompiling that dummy android.jar library. If there is any tutorial
information as to why the debugging system needs to work that way I
would be interested to follow it up.

The next part of my problem is that, having downloaded the real source
code, using Android Studio SDK manager to do that, the debugger tells
me that the bytecode does not match the source code, and obviously it
is right to say so, going by the source lines that are displayed.

Just to be specific, I am trying to follow what happens when the
application calls startActivity(). Before downloading android source
code debugger decompiled a call to startActivity() purporting to throw
Stub! exception. With source code debugger indicates some erroneous
line in and warns source code is wrong.

How can I verify for myself if the dummy android.jar lines up with the
source code that I downloaded? E.g., should line numbers match?

On Tue, 26 Mar 2019 at 04:02, Colin Cross  wrote:
> Studio is decompiling the android.jar shipped with the SDK, which only 
> contains the public API of each class with the implementation replaced with 
> an exception.
>
> On Mon, Mar 25, 2019 at 7:34 AM Robert Durkacz  
> wrote:
>> I have built ApiDemos sample code with sdk 23 and get wrong behaviour with 
>> InstallPackage demo. I trace problem into SDK code with debugger. Android 
>> Studio decompiles sdk code for me showing frequent throws of Runtime Error 
>> ("Stub!"). I download source code for SDK level 23 and the source code is a 
>> gross mismatch to what debugger sees. Source code likewise is different to 
>> decompiled code, with none of those exception throws. Can someone tell me 
>> what is going on?

-- 
-- 
You received this message because you are subscribed to the "Android Building" 
mailing list.
To post to this group, send email to android-building@googlegroups.com
To unsubscribe from this group, send email to
android-building+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-building+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [android-building] sdk 23 bytecode does not match source

2019-03-25 Thread Colin Cross
Studio is decompiling the android.jar shipped with the SDK, which only
contains the public API of each class with the implementation replaced with
an exception.

On Mon, Mar 25, 2019 at 7:34 AM Robert Durkacz 
wrote:

> I have built ApiDemos sample code with sdk 23 and get wrong behaviour with
> InstallPackage demo. I trace problem into SDK code with debugger. Android
> Studio decompiles sdk code for me showing frequent throws of Runtime Error
> ("Stub!"). I download source code for SDK level 23 and the source code is a
> gross mismatch to what debugger sees. Source code likewise is different to
> decompiled code, with none of those exception throws. Can someone tell me
> what is going on?
>
> --
> --
> You received this message because you are subscribed to the "Android
> Building" mailing list.
> To post to this group, send email to android-building@googlegroups.com
> To unsubscribe from this group, send email to
> android-building+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-building?hl=en
>
> ---
> You received this message because you are subscribed to the Google Groups
> "Android Building" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to android-building+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
-- 
You received this message because you are subscribed to the "Android Building" 
mailing list.
To post to this group, send email to android-building@googlegroups.com
To unsubscribe from this group, send email to
android-building+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-building+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[android-building] sdk 23 bytecode does not match source

2019-03-25 Thread Robert Durkacz
I have built ApiDemos sample code with sdk 23 and get wrong behaviour with 
InstallPackage demo. I trace problem into SDK code with debugger. Android 
Studio decompiles sdk code for me showing frequent throws of Runtime Error 
("Stub!"). I download source code for SDK level 23 and the source code is a 
gross mismatch to what debugger sees. Source code likewise is different to 
decompiled code, with none of those exception throws. Can someone tell me 
what is going on? 

-- 
-- 
You received this message because you are subscribed to the "Android Building" 
mailing list.
To post to this group, send email to android-building@googlegroups.com
To unsubscribe from this group, send email to
android-building+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-building+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.