Skip to content

Instantly share code, notes, and snippets.

@praseodym
Created October 3, 2013 12:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save praseodym/6809010 to your computer and use it in GitHub Desktop.
Save praseodym/6809010 to your computer and use it in GitHub Desktop.
Unsigning JavaApplicationStub
# The application is signed using a broken signature:
codesign -vvvv YourKit_Java_Profiler_12.0.6.app
# YourKit_Java_Profiler_12.0.6.app: invalid Info.plist (plist or signature have been modified)
# In architecture: x86_64
# Get a clean copy of the JavaApplicationStub
cp /System/Library/Frameworks/JavaVM.framework/Versions/A/Resources/MacOS/JavaApplicationStub YourKit_Java_Profiler_12.0.6.app/Contents/MacOS/JavaApplicationStub
# Unsign it using the script from http://snipt.org/kto/ (linked from http://lists.apple.com/archives/java-dev/2012/Jul/msg00136.html)
unsign_snipt.rb YourKit_Java_Profiler_12.0.6.app/Contents/MacOS/JavaApplicationStub
# The application will be unsigned, and ctrl+click (rightclick) -> open will open it just fine.
codesign -vvvv YourKit_Java_Profiler_12.0.6.app
# YourKit_Java_Profiler_12.0.6.app: code object is not signed at all
# In architecture: i386
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment