Skip to content

Commit

Permalink
New personality injection method, resolves AGDP issues
Browse files Browse the repository at this point in the history
Signed-off-by: Visual Ehrmanntraut <[email protected]>
  • Loading branch information
VisualEhrmanntraut committed Oct 4, 2023
1 parent 24c9f8f commit 4505798
Show file tree
Hide file tree
Showing 7 changed files with 257 additions and 295 deletions.
3 changes: 0 additions & 3 deletions NootRX.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,6 @@
"MODULE_VERSION=$(MODULE_VERSION)",
"PRODUCT_NAME=$(PRODUCT_NAME)",
"APPLE_KEXT_ASSERTIONS=1",
"LILU_CUSTOM_IOKIT_INIT=1",
"$(inherited)",
);
HEADER_SEARCH_PATHS = "$(inherited)";
Expand Down Expand Up @@ -577,7 +576,6 @@
GCC_PREPROCESSOR_DEFINITIONS = (
"MODULE_VERSION=$(MODULE_VERSION)",
"PRODUCT_NAME=$(PRODUCT_NAME)",
"LILU_CUSTOM_IOKIT_INIT=1",
);
HEADER_SEARCH_PATHS = "$(inherited)";
INFOPLIST_FILE = NootRX/Info.plist;
Expand Down Expand Up @@ -690,7 +688,6 @@
"MODULE_VERSION=$(MODULE_VERSION)",
"APPLE_KEXT_ASSERTIONS=1",
"PRODUCT_NAME=$(PRODUCT_NAME)",
"LILU_CUSTOM_IOKIT_INIT=1",
"$(inherited)",
);
HEADER_SEARCH_PATHS = "$(inherited)";
Expand Down
2 changes: 1 addition & 1 deletion NootRX/Firmware.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ inline const FWDescriptor &getFWDescByName(const char *name) {
for (size_t i = 0; i < firmwareCount; i++) {
if (!strcmp(firmware[i].name, name)) { return firmware[i]; }
}
PANIC("nred", "getFWDescByName: '%s' not found", name);
PANIC("FW", "'%s' not found", name);
}
237 changes: 237 additions & 0 deletions NootRX/Firmware/Drivers.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,237 @@
<array>
<dict>
<key>CFBundleIdentifier</key>
<string>com.apple.kext.AMDRadeonX6000HWServices</string>
<key>IOClass</key>
<string>AMDRadeonX6000_AMDRadeonHWServicesNavi</string>
<key>IOMatchCategory</key>
<string>AMDRadeonX6000HWServices</string>
<key>IOPCIMatch</key>
<string>0x73A21002 0x73A31002 0x73A41002 0x73A51002 0x73AB1002 0x73AF1002 0x73BF1002 0x73C31002 0x73C41002 0x73DF1002 0x73E01002 0x73E11002 0x73E31002 0x73EF1002 0x73FF1002</string>
<key>IOPCITunnelCompatible</key>
<true/>
<key>IOProbeScore</key>
<integer>65051</integer>
<key>IOPropertyMatch</key>
<dict>
<key>LoadHWServices</key>
<true/>
</dict>
<key>IOProviderClass</key>
<string>IOPCIDevice</string>
</dict>
<dict>
<key>CFBundleIdentifier</key>
<string>com.apple.kext.AMDRadeonX6000</string>
<key>GPUDCCDisplayable</key>
<true/>
<key>GPUDebugNullClientMask</key>
<integer>0</integer>
<key>GpuDebugPolicy</key>
<integer>0</integer>
<key>IOClass</key>
<string>AMDRadeonX6000_AMDNavi21GraphicsAccelerator</string>
<key>IODVDBundleName</key>
<string>AMDRadeonVADriver2</string>
<key>IOGVACodec</key>
<string>AMDVCN2</string>
<key>IOGVAH264EncodeCapabilities</key>
<dict>
<key>VTQualityRating</key>
<integer>50</integer>
<key>VTRating</key>
<integer>350</integer>
</dict>
<key>IOGVAHEVCDecode</key>
<string>1</string>
<key>IOGVAHEVCDecodeCapabilities</key>
<dict>
<key>VTPerProfileDetails</key>
<dict>
<key>1</key>
<dict>
<key>VTMaxDecodeLevel</key>
<integer>153</integer>
</dict>
<key>2</key>
<dict>
<key>VTMaxDecodeLevel</key>
<integer>153</integer>
</dict>
<key>3</key>
<dict>
<key>VTMaxDecodeLevel</key>
<integer>153</integer>
</dict>
</dict>
<key>VTSupportedProfileArray</key>
<array>
<integer>1</integer>
<integer>2</integer>
<integer>3</integer>
</array>
</dict>
<key>IOGVAHEVCEncode</key>
<string>1</string>
<key>IOGVAHEVCEncodeCapabilities</key>
<dict>
<key>VTPerProfileDetails</key>
<dict>
<key>1</key>
<dict>
<key>VTMaxEncodeLevel</key>
<integer>153</integer>
</dict>
</dict>
<key>VTQualityRating</key>
<integer>50</integer>
<key>VTRating</key>
<integer>350</integer>
<key>VTSupportedProfileArray</key>
<array>
<integer>1</integer>
</array>
</dict>
<key>IOKitDebug</key>
<integer>0</integer>
<key>IOMatchCategory</key>
<string>IOAccelerator</string>
<key>IOPCIMatch</key>
<string>0x73A21002 0x73A31002 0x73A41002 0x73A51002 0x73AB1002 0x73AF1002 0x73BF1002 </string>
<key>IOPCITunnelCompatible</key>
<true/>
<key>IOPropertyMatch</key>
<dict>
<key>LoadAccelerator</key>
<true/>
</dict>
<key>IOProviderClass</key>
<string>IOPCIDevice</string>
<key>IOSourceVersion</key>
<string>0.0.0.0.0</string>
<key>IOVARendererID</key>
<integer>16908288</integer>
<key>ResNoAllocPaging</key>
<integer>0</integer>
<key>SWIP_properties</key>
<dict>
<key>EnableGDDR6MemoryTraining</key>
<integer>0</integer>
<key>EnableSwVCNFWLoading</key>
<integer>0</integer>
<key>EnableSwVCNUnifiedQueue</key>
<false/>
<key>EnableVCNFWLog</key>
<integer>0</integer>
</dict>
<key>cail_properties</key>
<dict/>
</dict>
<dict>
<key>CFBundleIdentifier</key>
<string>com.apple.kext.AMDRadeonX6000</string>
<key>GPUDCCDisplayable</key>
<true/>
<key>GPUDebugNullClientMask</key>
<integer>0</integer>
<key>GpuDebugPolicy</key>
<integer>0</integer>
<key>IOClass</key>
<string>AMDRadeonX6000_AMDNavi23GraphicsAccelerator</string>
<key>IODVDBundleName</key>
<string>AMDRadeonVADriver2</string>
<key>IOGVACodec</key>
<string>AMDVCN2</string>
<key>IOGVAH264EncodeCapabilities</key>
<dict>
<key>VTQualityRating</key>
<integer>50</integer>
<key>VTRating</key>
<integer>350</integer>
</dict>
<key>IOGVAHEVCDecode</key>
<string>1</string>
<key>IOGVAHEVCDecodeCapabilities</key>
<dict>
<key>VTPerProfileDetails</key>
<dict>
<key>1</key>
<dict>
<key>VTMaxDecodeLevel</key>
<integer>153</integer>
</dict>
<key>2</key>
<dict>
<key>VTMaxDecodeLevel</key>
<integer>153</integer>
</dict>
<key>3</key>
<dict>
<key>VTMaxDecodeLevel</key>
<integer>153</integer>
</dict>
</dict>
<key>VTSupportedProfileArray</key>
<array>
<integer>1</integer>
<integer>2</integer>
<integer>3</integer>
</array>
</dict>
<key>IOGVAHEVCEncode</key>
<string>1</string>
<key>IOGVAHEVCEncodeCapabilities</key>
<dict>
<key>VTPerProfileDetails</key>
<dict>
<key>1</key>
<dict>
<key>VTMaxEncodeLevel</key>
<integer>153</integer>
</dict>
</dict>
<key>VTQualityRating</key>
<integer>50</integer>
<key>VTRating</key>
<integer>350</integer>
<key>VTSupportedProfileArray</key>
<array>
<integer>1</integer>
</array>
</dict>
<key>IOKitDebug</key>
<integer>0</integer>
<key>IOMatchCategory</key>
<string>IOAccelerator</string>
<key>IOPCIMatch</key>
<string>0x73C31002 0x73C41002 0x73DF1002 0x73E01002 0x73E11002 0x73E31002 0x73EF1002 0x73FF1002</string>
<key>IOPCITunnelCompatible</key>
<true/>
<key>IOPropertyMatch</key>
<dict>
<key>LoadAccelerator</key>
<true/>
</dict>
<key>IOProviderClass</key>
<string>IOPCIDevice</string>
<key>IOSourceVersion</key>
<string>0.0.0.0.0</string>
<key>IOVARendererID</key>
<integer>16908288</integer>
<key>ResNoAllocPaging</key>
<integer>0</integer>
<key>SWIP_properties</key>
<dict>
<key>EnableGDDR6MemoryTraining</key>
<integer>0</integer>
<key>EnableSwVCNFWLoading</key>
<integer>0</integer>
<key>EnableSwVCNUnifiedQueue</key>
<false/>
<key>EnableVCNFWLog</key>
<integer>0</integer>
</dict>
<key>cail_properties</key>
<dict/>
</dict>
</array>
Loading

0 comments on commit 4505798

Please sign in to comment.