Another compiling error as I work on getting Android Nougat on the TBLTEXX/TBLTETMO Samsung Galaxy Note Edge. This time, it will not allow me to return processUnsolicited(p) as a type under “super” like so:

[CODE]
super.processUnsolicited(p);
^
[/CODE]

So, I opened up build_cm14/device/samsung/tblte-common/ril/telephony/java/com/android/internal/telephony/tblteRIL.java and took a look, here is what I found:

[CODE]
@Override
protected void
processUnsolicited (Parcel p) {
Object ret;
int dataPosition = p.dataPosition(); // save off position within the Parcel
int response = p.readInt();
……………EDITED FOR SPACE……………..

// Forward responses that we are not overriding to the super class
super.processUnsolicited(p);
return;
}

}
[/CODE]

Which I changed to this after reviewing similar code for the JFLTETMO in their jflteRIL.java code:

[CODE]
@Override
protected void
processUnsolicited (Parcel p, int type) {
Object ret;
int dataPosition = p.dataPosition(); // save off position within the Parcel
int response = p.readInt();
……………EDITED FOR SPACE……………..

// Forward responses that we are not overriding to the super class
super.processUnsolicited(p, type);
return;
}

}
[/CODE]

Apperently, we needed to give it an integer named type to keep things flowing smoothly. I understand that well enough, but what confuses me is that this worked in Marshmallow, why does it not function in Nougat the way it was written before?

Linux – keep it simple.

One Reply to “Can’t apply that type to a super!”

  1. Probably something with the white listing introduced in nougat. I know with the security changes from marshmallow to nougat it caused trouble for alot of things but still learning not even shore it even has anything to do with what ur trying to do.

Leave a Reply

Your email address will not be published. Required fields are marked *