because Build.VERSION.SDK_INT is not available for api level prior to 4 and
in the payload the min api level is 3 so this gives an error during building


On Fri, Feb 21, 2014 at 8:53 PM, jlee-r7 <notifications@github.com> wrote:

> In
> androidpayload/library/src/com/metasploit/meterpreter/android/stdapi_sys_config_sysinfo_android.java:
>
> > +import com.metasploit.meterpreter.Meterpreter;
> > +import com.metasploit.meterpreter.TLVPacket;
> > +import com.metasploit.meterpreter.TLVType;
> > +import com.metasploit.meterpreter.command.Command;
> > +import com.metasploit.meterpreter.stdapi.stdapi_sys_config_sysinfo;
> > +import android.os.Build;
> > +
> > +public class stdapi_sys_config_sysinfo_
> android extends stdapi_sys_config_sysinfo implements Command {
> > +	
> > +	public int execute(Meterpreter meterpreter, TLVPacket request, TLVPacket response) throws Exception {
> > +		
> > +		String androidOS = Build.VERSION.RELEASE;
> > +		//int APILevel =  Build.VERSION.SDK_INT;
> > +		
> > +		response.add(TLVType.TLV_TYPE_COMPUTER_NAME, InetAddress.getLocalHost().getHostName());
> > +		response.add(TLVType.TLV_TYPE_OS_NAME, "Android " + androidOS + /*" (API " + Integer.toString(APILevel) + ") - "*/ " - " + System.getProperty("os.name") + " " + System.getProperty("os.version") + " (" + System.getProperty("os.arch") + ")");
>
> And why is there more commented code in the middle of this line?
>
> --
> Reply to this email directly or view it on GitHub<https://github.com/rapid7/metasploit-javapayload/pull/11/files#r9956802>
> .
>