tryPatchShadedLibraryIdAndSign() — netty Function Reference
Architecture documentation for the tryPatchShadedLibraryIdAndSign() function in NativeLibraryLoader.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 718b0b6c_05e8_e851_bc3f_0a119eac5245["tryPatchShadedLibraryIdAndSign()"] e940cc67_3be6_5ff3_e560_4d68972dc13b["NativeLibraryLoader"] 718b0b6c_05e8_e851_bc3f_0a119eac5245 -->|defined in| e940cc67_3be6_5ff3_e560_4d68972dc13b d92afe83_049b_d0b5_f35c_dd5834c38908["load()"] d92afe83_049b_d0b5_f35c_dd5834c38908 -->|calls| 718b0b6c_05e8_e851_bc3f_0a119eac5245 50a1da9f_331c_2384_d1cd_d997cf54f46f["String()"] 718b0b6c_05e8_e851_bc3f_0a119eac5245 -->|calls| 50a1da9f_331c_2384_d1cd_d997cf54f46f 669386f2_d789_f310_46b6_6942cdcc0600["generateUniqueId()"] 718b0b6c_05e8_e851_bc3f_0a119eac5245 -->|calls| 669386f2_d789_f310_46b6_6942cdcc0600 b8b7f986_a84f_3a12_d53b_c975f0075ed2["tryExec()"] 718b0b6c_05e8_e851_bc3f_0a119eac5245 -->|calls| b8b7f986_a84f_3a12_d53b_c975f0075ed2 style 718b0b6c_05e8_e851_bc3f_0a119eac5245 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
common/src/main/java/io/netty/util/internal/NativeLibraryLoader.java lines 328–340
static void tryPatchShadedLibraryIdAndSign(File libraryFile, String originalName) {
if (!new File("/Library/Developer/CommandLineTools").exists()) {
logger.debug("Can't patch shaded library id as CommandLineTools are not installed." +
" Consider installing CommandLineTools with 'xcode-select --install'");
return;
}
String newId = new String(generateUniqueId(originalName.length()), CharsetUtil.UTF_8);
if (!tryExec("install_name_tool -id " + newId + " " + libraryFile.getAbsolutePath())) {
return;
}
tryExec("codesign -s - " + libraryFile.getAbsolutePath());
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does tryPatchShadedLibraryIdAndSign() do?
tryPatchShadedLibraryIdAndSign() is a function in the netty codebase, defined in common/src/main/java/io/netty/util/internal/NativeLibraryLoader.java.
Where is tryPatchShadedLibraryIdAndSign() defined?
tryPatchShadedLibraryIdAndSign() is defined in common/src/main/java/io/netty/util/internal/NativeLibraryLoader.java at line 328.
What does tryPatchShadedLibraryIdAndSign() call?
tryPatchShadedLibraryIdAndSign() calls 3 function(s): String, generateUniqueId, tryExec.
What calls tryPatchShadedLibraryIdAndSign()?
tryPatchShadedLibraryIdAndSign() is called by 1 function(s): load.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free