Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Are the platforms stubs? #11

Open
gfour opened this issue Feb 17, 2021 · 0 comments
Open

Are the platforms stubs? #11

gfour opened this issue Feb 17, 2021 · 0 comments

Comments

@gfour
Copy link

gfour commented Feb 17, 2021

Hello! Are the android.jar archives stubs of the Android APIs? According to Issue #4 that should not be the case but I disassemble classes at random and always see method bodies with the equivalent of throw new RuntimeException("Stub!").

For example, for android-25:

$ mkdir 25 && cd 25 && jar xf ../android-25/android.jar
$ javap -p -v -c android/system/Os.class
...
  public static int write(java.io.FileDescriptor, byte[], int, int) throws android.system.ErrnoException, java.io.InterruptedIOException;
    descriptor: (Ljava/io/FileDescriptor;[BII)I
    flags: ACC_PUBLIC, ACC_STATIC
    Code:
      stack=3, locals=4, args_size=4
         0: new           #2                  // class java/lang/RuntimeException
         3: dup
         4: ldc           #3                  // String Stub!
         6: invokespecial #4                  // Method java/lang/RuntimeException."<init>":(Ljava/lang/String;)V
         9: athrow
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant