Skip to content

Instantly share code, notes, and snippets.

@dmpatel151282
Created September 18, 2017 09:12
Show Gist options
  • Save dmpatel151282/caa354663d216cd96c6d84598a72f816 to your computer and use it in GitHub Desktop.
Save dmpatel151282/caa354663d216cd96c6d84598a72f816 to your computer and use it in GitHub Desktop.
Checking API: checkapi-last
out / target / common / obj / PACKAGING / public_api.txt: 23556: error 12: Class android.telephony.gsm.SmsMessage changed static qualifier
prebuilts / sdk / api / 19.txt: 23513: error 9: Removed public constructor SmsMessage ()
prebuilts / sdk / api / 19.txt: 23514: error 9: Removed public method android.telephony.gsm.SmsMessage.calculateLength
prebuilts / sdk / api / 19.txt: 23515: error 9: Removed public method android.telephony.gsm.SmsMessage.calculateLength
prebuilts / sdk / api / 19.txt: 23516: error 9: Removed public method android.telephony.gsm.SmsMessage.createFromPdu
prebuilts / sdk / api / 19.txt: 23517: error 9: Removed public method android.telephony.gsm.SmsMessage.getDisplayMessageBody
prebuilts / sdk / api / 19.txt: 23518: error 9: Removed public method android.telephony.gsm.SmsMessage.getDisplayOriginatingAddress
prebuilts / sdk / api / 19.txt: 23519: error 9: Removed public method android.telephony.gsm.SmsMessage.getEmailBody
prebuilts / sdk / api / 19.txt: 23520: error 9: Removed public method android.telephony.gsm.SmsMessage.getEmailFrom
prebuilts / sdk / api / 19.txt: 23521: error 9: Removed public method android.telephony.gsm.SmsMessage.getIndexOnSim
prebuilts / sdk / api / 19.txt: 23522: error 9: Removed public method android.telephony.gsm.SmsMessage.getMessageBody
prebuilts / sdk / api / 19.txt: 23523: error 9: Removed public method android.telephony.gsm.SmsMessage.getMessageClass
prebuilts / sdk / api / 19.txt: 23524: error 9: Removed public method android.telephony.gsm.SmsMessage.getOriginatingAddress
prebuilts / sdk / api / 19.txt: 23525: error 9: Removed public method android.telephony.gsm.SmsMessage.getPdu
prebuilts / sdk / api / 19.txt: 23526: error 9: Removed public method android.telephony.gsm.SmsMessage.getProtocolIdentifier
prebuilts / sdk / api / 19.txt: 23527: error 9: Removed public method android.telephony.gsm.SmsMessage.getPseudoSubject
prebuilts / sdk / api / 19.txt: 23528: error 9: Removed public method android.telephony.gsm.SmsMessage.getServiceCenterAddress
prebuilts / sdk / api / 19.txt: 23529: error 9: Removed public method android.telephony.gsm.SmsMessage.getStatus
prebuilts / sdk / api / 19.txt: 23530: error 9: Removed public method android.telephony.gsm.SmsMessage.getStatusOnSim
prebuilts / sdk / api / 19.txt: 23531: error 9: Removed public method android.telephony.gsm.SmsMessage.getSubmitPdu
prebuilts / sdk / api / 19.txt: 23532: error 9: Removed public method android.telephony.gsm.SmsMessage.getSubmitPdu
prebuilts / sdk / api / 19.txt: 23533: error 9: Removed public method android.telephony.gsm.SmsMessage.getTPLayerLengthForPDU
prebuilts / sdk / api / 19.txt: 23534: error 9: Removed public method android.telephony.gsm.SmsMessage.getTimestampMillis
prebuilts / sdk / api / 19.txt: 23535: error 9: Removed public method android.telephony.gsm.SmsMessage.getUserData
prebuilts / sdk / api / 19.txt: 23536: error 9: Removed public method android.telephony.gsm.SmsMessage.isCphsMwiMessage
prebuilts / sdk / api / 19.txt: 23537: error 9: Removed public method android.telephony.gsm.SmsMessage.isEmail
prebuilts / sdk / api / 19.txt: 23538: error 9: Removed public method android.telephony.gsm.SmsMessage.isMWIClearMessage
prebuilts / sdk / api / 19.txt: 23539: error 9: Removed public method android.telephony.gsm.SmsMessage.isMWISetMessage
prebuilts / sdk / api / 19.txt: 23540: error 9: Removed public method android.telephony.gsm.SmsMessage.isMwiDontStore
prebuilts / sdk / api / 19.txt: 23541: error 9: Removed public method android.telephony.gsm.SmsMessage.isReplace
prebuilts / sdk / api / 19.txt: 23542: error 9: Removed public method android.telephony.gsm.SmsMessage.isReplyPathPresent
prebuilts / sdk / api / 19.txt: 23543: error 9: Removed public method android.telephony.gsm.SmsMessage.isStatusReportMessage
prebuilts / sdk / api / 19.txt: 23544: error 10: Removed field android.telephony.gsm.SmsMessage.ENCODING_16BIT
prebuilts / sdk / api / 19.txt: 23545: error 10: Removed field android.telephony.gsm.SmsMessage.ENCODING_7BIT
prebuilts / sdk / api / 19.txt: 23546: error 10: Removed field android.telephony.gsm.SmsMessage.ENCODING_8BIT
prebuilts / sdk / api / 19.txt: 23547: error 10: Removed field android.telephony.gsm.SmsMessage.ENCODING_UNKNOWN
prebuilts / sdk / api / 19.txt: 23548: error 10: Removed field android.telephony.gsm.SmsMessage.MAX_USER_DATA_BYTES
prebuilts / sdk / api / 19.txt: 23549: error 10: Removed field android.telephony.gsm.SmsMessage.MAX_USER_DATA_SEPTETS
prebuilts / sdk / api / 19.txt: 23550: error 10: Removed field android.telephony.gsm.SmsMessage.MAX_USER_DATA_SEPTETS_WITH_HEADER
******************************
You have tried to change the API from what has been released in
an SDK. Please fix the errors listed above.
******************************
Solutions:-
1. change javadoc
$ sudo update-alternatives --install "/ usr / bin / javadoc" "javadoc" "/usr/local/jdk1.6.0_45/bin/javadoc" 1;
$ sudo update-alternatives --config javadoc
2. update API
$ make update-api
or
$ touch frameworks/opt/telephony/src/java/android/telephony/gsm/SmsManager.java
$ touch frameworks/opt/telephony/src/java/android/telephony/gsm/SmsMessage.java
$ make -j8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment