Tencent/tinker · error · TinkerRuntimeException
can't get the right intent return code
Error message
can't get the right intent return code
What it means
Error "can't get the right intent return code" thrown in Tencent/tinker.
Source
Thrown at tinker-android/tinker-android-lib-no-op/src/main/java/com/tencent/tinker/lib/tinker/TinkerLoadResult.java:149
errorCode = ShareConstants.ERROR_LOAD_EXCEPTION_DEX;
break;
case ShareConstants.ERROR_LOAD_PATCH_VERSION_RESOURCE_LOAD_EXCEPTION:
errorCode = ShareConstants.ERROR_LOAD_EXCEPTION_RESOURCE;
break;
case ShareConstants.ERROR_LOAD_PATCH_UNCAUGHT_EXCEPTION:
errorCode = ShareConstants.ERROR_LOAD_EXCEPTION_UNCAUGHT;
break;
default:
break;
}
tinker.getLoadReporter().onLoadException(exception, errorCode);
return false;
}
switch (loadCode) {
case ShareConstants.ERROR_LOAD_GET_INTENT_FAIL:
ShareTinkerLog.e(TAG, "can't get the right intent return code");
throw new TinkerRuntimeException("can't get the right intent return code");
case ShareConstants.ERROR_LOAD_DISABLE:
ShareTinkerLog.w(TAG, "tinker is disable, just return");
break;
// case ShareConstants.ERROR_LOAD_PATCH_NOT_SUPPORTED:
// ShareTinkerLog.w(TAG, "tinker is not supported, just return");
// break;
case ShareConstants.ERROR_LOAD_PATCH_DIRECTORY_NOT_EXIST:
case ShareConstants.ERROR_LOAD_PATCH_INFO_NOT_EXIST:
ShareTinkerLog.w(TAG, "can't find patch file, is ok, just return");
break;
case ShareConstants.ERROR_LOAD_PATCH_INFO_CORRUPTED:
ShareTinkerLog.e(TAG, "path info corrupted");
tinker.getLoadReporter().onLoadPatchInfoCorrupted(oldVersion, newVersion, patchInfoFile);
break;
case ShareConstants.ERROR_LOAD_PATCH_INFO_BLANK:
ShareTinkerLog.e(TAG, "path info blank, wait main process to restart");View on GitHub (pinned to 1b7ea02c23)
Solutions
- Verify the patch service result intent contains ShareIntentUtil.INTENT_RETURN_CODE before reading it.
- Check that TinkerPatchService ran and delivered a result intent; a missing intent means the patch process died or was never started.
When it happens
Trigger: Thrown at tinker-android/tinker-android-lib-no-op/src/main/java/com/tencent/tinker/lib/tinker/TinkerLoadResult.java:149 when the library encounters an invalid state.
Common situations: Thrown in TinkerLoadResult.parseTinkerResult when the load code equals ERROR_LOAD_GET_INTENT_FAIL, meaning the result intent from the patch service lacked a valid return code. Often caused by the patch process crashing before posting its result.
AI-assisted analysis of Tencent/tinker@1b7ea02c23 (2026-08-14).
Data as JSON: /api/errors/3ad3ff0b3182e507.
Report an issue: GitHub.