package com.example.myapp;

import android.app.Activity;

public class IntentSources extends Activity {

	private static void sink(Object o) {}

	public void test() throws java.io.IOException {

		String trouble = this.getIntent().getStringExtra("key");
		sink(trouble); // $hasRemoteTaintFlow

	}

	public void test2() throws java.io.IOException {

		String trouble = getIntent().getStringExtra("key");
		sink(trouble); // $hasRemoteTaintFlow

	}

	public void test3() throws java.io.IOException {

		String trouble = getIntent().getExtras().getString("key");
		sink(trouble); // $hasRemoteTaintFlow

	}

}


class OtherClass {

	private static void sink(Object o) {}

	public void test(IntentSources is) throws java.io.IOException {
		String trouble = is.getIntent().getStringExtra("key");
		sink(trouble); // $hasRemoteTaintFlow
	}

}

@@ -49,16 +49,48 @@
 ctivity;
+%0Aimport android.content.Context;
 %0A%0Apublic
@@ -162,32 +162,89 @@
 k(Object o) %7B%7D%0A%0A
+%09public IntentSources(Context base) %7B%0A%09%09super(base);%0A%09%7D%0A%0A
 %09public void tes

Fix Android tests affected by changes in stubs