Loading api/system-current.txt +1 −0 Original line number Diff line number Diff line Loading @@ -3806,6 +3806,7 @@ package android.os { method public void resume(); method public void suspend(); method public boolean unbind(); method public boolean verifyPayloadMetadata(java.lang.String); } public static final class UpdateEngine.ErrorCodeConstants { Loading core/java/android/os/UpdateEngine.java +18 −0 Original line number Diff line number Diff line Loading @@ -271,4 +271,22 @@ public class UpdateEngine { } } } /** * Verifies that a payload associated with the given payload metadata * {@code payloadMetadataFilename} can be safely applied to ths device. * Returns {@code true} if the update can successfully be applied and * returns {@code false} otherwise. * * @param payloadMetadataFilename the location of the metadata without the * {@code file://} prefix. */ @SystemApi public boolean verifyPayloadMetadata(String payloadMetadataFilename) { try { return mUpdateEngine.verifyPayloadApplicable(payloadMetadataFilename); } catch (RemoteException e) { throw e.rethrowFromSystemServer(); } } } Loading
api/system-current.txt +1 −0 Original line number Diff line number Diff line Loading @@ -3806,6 +3806,7 @@ package android.os { method public void resume(); method public void suspend(); method public boolean unbind(); method public boolean verifyPayloadMetadata(java.lang.String); } public static final class UpdateEngine.ErrorCodeConstants { Loading
core/java/android/os/UpdateEngine.java +18 −0 Original line number Diff line number Diff line Loading @@ -271,4 +271,22 @@ public class UpdateEngine { } } } /** * Verifies that a payload associated with the given payload metadata * {@code payloadMetadataFilename} can be safely applied to ths device. * Returns {@code true} if the update can successfully be applied and * returns {@code false} otherwise. * * @param payloadMetadataFilename the location of the metadata without the * {@code file://} prefix. */ @SystemApi public boolean verifyPayloadMetadata(String payloadMetadataFilename) { try { return mUpdateEngine.verifyPayloadApplicable(payloadMetadataFilename); } catch (RemoteException e) { throw e.rethrowFromSystemServer(); } } }