Skip to content
This repository has been archived by the owner on Dec 14, 2021. It is now read-only.

Commit

Permalink
0.2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
parrotgeek1 committed May 9, 2019
0 parents commit 0a4b9f9
Show file tree
Hide file tree
Showing 65 changed files with 378 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .theos/_/DEBIAN/control
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Package: com.parrotgeek.globalize
Name: Globalize (not for A12 yet!)
Depends: mobilesubstrate
Architecture: iphoneos-arm
Description: Disables almost all region differences/restrictions on iOS devices. Please run ldrestart after installation.
Maintainer: parrotgeek1
Author: parrotgeek1
Section: Tweaks
Version: 0.2.3
Installed-Size: 360
5 changes: 5 additions & 0 deletions .theos/_/DEBIAN/postinst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash
rm -f /var/containers/Shared/SystemGroup/systemgroup.com.apple.mobilegestaltcache/Library/Caches/com.apple.MobileGestalt.plist
rm -f /var/mobile/Library/Caches/com.apple.MobileGestalt.plist
echo PLEASE RUN LDRESTART
exit 0
5 changes: 5 additions & 0 deletions .theos/_/DEBIAN/prerm
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash
rm -f /var/containers/Shared/SystemGroup/systemgroup.com.apple.mobilegestaltcache/Library/Caches/com.apple.MobileGestalt.plist
rm -f /var/mobile/Library/Caches/com.apple.MobileGestalt.plist
echo PLEASE RUN LDRESTART
exit 0
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Empty file added .theos/build_session
Empty file.
Empty file added .theos/fakeroot
Empty file.
1 change: 1 addition & 0 deletions .theos/last_package
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
./packages/com.parrotgeek.globalize_0.2.3_iphoneos-arm.deb
Empty file added .theos/obj/.stamp
Empty file.
Binary file added .theos/obj/Globalize.dylib
Binary file not shown.
Binary file added .theos/obj/PrideWatchFaceHook.dylib
Binary file not shown.
Binary file added .theos/obj/WAPIHook.dylib
Binary file not shown.
Binary file added .theos/obj/arm64/Globalize.dylib
Binary file not shown.
20 changes: 20 additions & 0 deletions .theos/obj/arm64/Globalize.dylib.dSYM/Contents/Info.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleIdentifier</key>
<string>com.apple.xcode.dsym.Globalize.dylib</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundlePackageType</key>
<string>dSYM</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleVersion</key>
<string>1</string>
</dict>
</plist>
Binary file not shown.
Binary file added .theos/obj/arm64/PrideWatchFaceHook.dylib
Binary file not shown.
20 changes: 20 additions & 0 deletions .theos/obj/arm64/PrideWatchFaceHook.dylib.dSYM/Contents/Info.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleIdentifier</key>
<string>com.apple.xcode.dsym.PrideWatchFaceHook.dylib</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundlePackageType</key>
<string>dSYM</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleVersion</key>
<string>1</string>
</dict>
</plist>
Binary file not shown.
20 changes: 20 additions & 0 deletions .theos/obj/arm64/Tweak.xm.ac25ac9f.Td
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/Users/ethan/Desktop/Projects/Globalize/.theos/obj/arm64/Tweak.xm.ac25ac9f.o: \
/Users/ethan/Desktop/Projects/Globalize/.theos/obj/arm64/Tweak.xm.mm \
/opt/theos/Prefix.pch \
/opt/theos/vendor/include/_Prefix/BackwardsCompat.h \
/opt/theos/include/_Prefix/IOSMacros.h \
/opt/theos/vendor/include/HBLog.h \
/opt/theos/include/CoreFoundation/CFLogUtilities.h \
/opt/theos/include/substrate.h

/opt/theos/Prefix.pch:

/opt/theos/vendor/include/_Prefix/BackwardsCompat.h:

/opt/theos/include/_Prefix/IOSMacros.h:

/opt/theos/vendor/include/HBLog.h:

/opt/theos/include/CoreFoundation/CFLogUtilities.h:

/opt/theos/include/substrate.h:
Binary file added .theos/obj/arm64/Tweak.xm.ac25ac9f.o
Binary file not shown.
20 changes: 20 additions & 0 deletions .theos/obj/arm64/Tweak.xm.bb8e2aa7.Td
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/Users/ethan/Desktop/Projects/Globalize/.theos/obj/arm64/Tweak.xm.bb8e2aa7.o: \
/Users/ethan/Desktop/Projects/Globalize/.theos/obj/arm64/Tweak.xm.mm \
/opt/theos/Prefix.pch \
/opt/theos/vendor/include/_Prefix/BackwardsCompat.h \
/opt/theos/include/_Prefix/IOSMacros.h \
/opt/theos/vendor/include/HBLog.h \
/opt/theos/include/CoreFoundation/CFLogUtilities.h \
/opt/theos/include/substrate.h

/opt/theos/Prefix.pch:

/opt/theos/vendor/include/_Prefix/BackwardsCompat.h:

/opt/theos/include/_Prefix/IOSMacros.h:

/opt/theos/vendor/include/HBLog.h:

/opt/theos/include/CoreFoundation/CFLogUtilities.h:

/opt/theos/include/substrate.h:
Binary file added .theos/obj/arm64/Tweak.xm.bb8e2aa7.o
Binary file not shown.
20 changes: 20 additions & 0 deletions .theos/obj/arm64/Tweak.xm.d7068344.Td
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/Users/ethan/Desktop/Projects/Globalize/.theos/obj/arm64/Tweak.xm.d7068344.o: \
/Users/ethan/Desktop/Projects/Globalize/.theos/obj/arm64/Tweak.xm.mm \
/opt/theos/Prefix.pch \
/opt/theos/vendor/include/_Prefix/BackwardsCompat.h \
/opt/theos/include/_Prefix/IOSMacros.h \
/opt/theos/vendor/include/HBLog.h \
/opt/theos/include/CoreFoundation/CFLogUtilities.h \
/opt/theos/include/substrate.h

/opt/theos/Prefix.pch:

/opt/theos/vendor/include/_Prefix/BackwardsCompat.h:

/opt/theos/include/_Prefix/IOSMacros.h:

/opt/theos/vendor/include/HBLog.h:

/opt/theos/include/CoreFoundation/CFLogUtilities.h:

/opt/theos/include/substrate.h:
Binary file added .theos/obj/arm64/Tweak.xm.d7068344.o
Binary file not shown.
Binary file added .theos/obj/arm64/WAPIHook.dylib
Binary file not shown.
20 changes: 20 additions & 0 deletions .theos/obj/arm64/WAPIHook.dylib.dSYM/Contents/Info.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleIdentifier</key>
<string>com.apple.xcode.dsym.WAPIHook.dylib</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundlePackageType</key>
<string>dSYM</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleVersion</key>
<string>1</string>
</dict>
</plist>
Binary file not shown.
Binary file added .theos/obj/armv7/Globalize.dylib
Binary file not shown.
20 changes: 20 additions & 0 deletions .theos/obj/armv7/Globalize.dylib.dSYM/Contents/Info.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleIdentifier</key>
<string>com.apple.xcode.dsym.Globalize.dylib</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundlePackageType</key>
<string>dSYM</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleVersion</key>
<string>1</string>
</dict>
</plist>
Binary file not shown.
Binary file added .theos/obj/armv7/PrideWatchFaceHook.dylib
Binary file not shown.
20 changes: 20 additions & 0 deletions .theos/obj/armv7/PrideWatchFaceHook.dylib.dSYM/Contents/Info.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleIdentifier</key>
<string>com.apple.xcode.dsym.PrideWatchFaceHook.dylib</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundlePackageType</key>
<string>dSYM</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleVersion</key>
<string>1</string>
</dict>
</plist>
Binary file not shown.
20 changes: 20 additions & 0 deletions .theos/obj/armv7/Tweak.xm.3ed96ed5.Td
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/Users/ethan/Desktop/Projects/Globalize/.theos/obj/armv7/Tweak.xm.3ed96ed5.o: \
/Users/ethan/Desktop/Projects/Globalize/.theos/obj/armv7/Tweak.xm.mm \
/opt/theos/Prefix.pch \
/opt/theos/vendor/include/_Prefix/BackwardsCompat.h \
/opt/theos/include/_Prefix/IOSMacros.h \
/opt/theos/vendor/include/HBLog.h \
/opt/theos/include/CoreFoundation/CFLogUtilities.h \
/opt/theos/include/substrate.h

/opt/theos/Prefix.pch:

/opt/theos/vendor/include/_Prefix/BackwardsCompat.h:

/opt/theos/include/_Prefix/IOSMacros.h:

/opt/theos/vendor/include/HBLog.h:

/opt/theos/include/CoreFoundation/CFLogUtilities.h:

/opt/theos/include/substrate.h:
Binary file added .theos/obj/armv7/Tweak.xm.3ed96ed5.o
Binary file not shown.
20 changes: 20 additions & 0 deletions .theos/obj/armv7/Tweak.xm.4754b0da.Td
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/Users/ethan/Desktop/Projects/Globalize/.theos/obj/armv7/Tweak.xm.4754b0da.o: \
/Users/ethan/Desktop/Projects/Globalize/.theos/obj/armv7/Tweak.xm.mm \
/opt/theos/Prefix.pch \
/opt/theos/vendor/include/_Prefix/BackwardsCompat.h \
/opt/theos/include/_Prefix/IOSMacros.h \
/opt/theos/vendor/include/HBLog.h \
/opt/theos/include/CoreFoundation/CFLogUtilities.h \
/opt/theos/include/substrate.h

/opt/theos/Prefix.pch:

/opt/theos/vendor/include/_Prefix/BackwardsCompat.h:

/opt/theos/include/_Prefix/IOSMacros.h:

/opt/theos/vendor/include/HBLog.h:

/opt/theos/include/CoreFoundation/CFLogUtilities.h:

/opt/theos/include/substrate.h:
Binary file added .theos/obj/armv7/Tweak.xm.4754b0da.o
Binary file not shown.
20 changes: 20 additions & 0 deletions .theos/obj/armv7/Tweak.xm.ab270698.Td
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/Users/ethan/Desktop/Projects/Globalize/.theos/obj/armv7/Tweak.xm.ab270698.o: \
/Users/ethan/Desktop/Projects/Globalize/.theos/obj/armv7/Tweak.xm.mm \
/opt/theos/Prefix.pch \
/opt/theos/vendor/include/_Prefix/BackwardsCompat.h \
/opt/theos/include/_Prefix/IOSMacros.h \
/opt/theos/vendor/include/HBLog.h \
/opt/theos/include/CoreFoundation/CFLogUtilities.h \
/opt/theos/include/substrate.h

/opt/theos/Prefix.pch:

/opt/theos/vendor/include/_Prefix/BackwardsCompat.h:

/opt/theos/include/_Prefix/IOSMacros.h:

/opt/theos/vendor/include/HBLog.h:

/opt/theos/include/CoreFoundation/CFLogUtilities.h:

/opt/theos/include/substrate.h:
Binary file added .theos/obj/armv7/Tweak.xm.ab270698.o
Binary file not shown.
Binary file added .theos/obj/armv7/WAPIHook.dylib
Binary file not shown.
20 changes: 20 additions & 0 deletions .theos/obj/armv7/WAPIHook.dylib.dSYM/Contents/Info.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleIdentifier</key>
<string>com.apple.xcode.dsym.WAPIHook.dylib</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundlePackageType</key>
<string>dSYM</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleVersion</key>
<string>1</string>
</dict>
</plist>
Binary file not shown.
1 change: 1 addition & 0 deletions .theos/packages/com.parrotgeek.globalize-0.0.1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
29
1 change: 1 addition & 0 deletions .theos/packages/com.parrotgeek.globalize-0.2
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2
1 change: 1 addition & 0 deletions .theos/packages/com.yourcompany.mghooker-0.0.1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
21
1 change: 1 addition & 0 deletions Globalize.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{ Filter = { Bundles = ( "com.apple.CoreFoundation" ); }; }
13 changes: 13 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
include $(THEOS)/makefiles/common.mk

TWEAK_NAME = Globalize
Globalize_FILES = Tweak.xm
include $(THEOS_MAKE_PATH)/tweak.mk

after-install::
install.exec "killall -9 SpringBoard"
SUBPROJECTS += wapihook
SUBPROJECTS += pridewatchfacehook
#SUBPROJECTS += taiwanflaghook
#SUBPROJECTS += taiwanflaghookui
include $(THEOS_MAKE_PATH)/aggregate.mk
32 changes: 32 additions & 0 deletions Tweak.xm
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#import <substrate.h>

typedef mach_port_t io_object_t;
typedef io_object_t io_registry_entry_t;
typedef UInt32 IOOptionBits;

//#define FAKE_CHINA

const uint32_t swbh[] = {1,0,0,0}; // only "valid"

static CFTypeRef (*orig_registryEntry)(io_registry_entry_t entry, CFStringRef key, CFAllocatorRef allocator, IOOptionBits options);
CFTypeRef replaced_registryEntry(io_registry_entry_t entry, CFStringRef key, CFAllocatorRef allocator, IOOptionBits options) {
CFTypeRef retval = NULL;
if (CFEqual(key, CFSTR("region-info"))) {
#ifdef FAKE_CHINA
retval = CFDataCreate(kCFAllocatorDefault, (const unsigned char *)"CH/A", 5);
#else
retval = CFDataCreate(kCFAllocatorDefault, (const unsigned char *)"X/A", 4); // FIXME: use real /A /B part
#endif

} else if (CFEqual(key, CFSTR("software-behavior"))) {
retval = CFDataCreate(kCFAllocatorDefault, (const UInt8 *)&swbh ,16);
} else {
retval = orig_registryEntry(entry, key, allocator, options);
}
return retval;
}

__attribute__((constructor)) static void regioninit() {
void * IORegistryEntryCreateCFProperty=MSFindSymbol(MSGetImageByName("/System/Library/Frameworks/IOKit.framework/Versions/A/IOKit"), "_IORegistryEntryCreateCFProperty");
MSHookFunction((void *)IORegistryEntryCreateCFProperty, (void *)replaced_registryEntry, (void **)&orig_registryEntry);
}
9 changes: 9 additions & 0 deletions layout/DEBIAN/control
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Package: com.parrotgeek.globalize
Name: Globalize (not for A12 yet!)
Depends: mobilesubstrate
Version: 0.2.3
Architecture: iphoneos-arm
Description: Disables almost all region differences/restrictions on iOS devices. Please run ldrestart after installation.
Maintainer: parrotgeek1
Author: parrotgeek1
Section: Tweaks
5 changes: 5 additions & 0 deletions layout/DEBIAN/postinst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash
rm -f /var/containers/Shared/SystemGroup/systemgroup.com.apple.mobilegestaltcache/Library/Caches/com.apple.MobileGestalt.plist
rm -f /var/mobile/Library/Caches/com.apple.MobileGestalt.plist
echo PLEASE RUN LDRESTART
exit 0
5 changes: 5 additions & 0 deletions layout/DEBIAN/prerm
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash
rm -f /var/containers/Shared/SystemGroup/systemgroup.com.apple.mobilegestaltcache/Library/Caches/com.apple.MobileGestalt.plist
rm -f /var/mobile/Library/Caches/com.apple.MobileGestalt.plist
echo PLEASE RUN LDRESTART
exit 0
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
8 changes: 8 additions & 0 deletions pridewatchfacehook/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
include $(THEOS)/makefiles/common.mk

TWEAK_NAME = PrideWatchFaceHook
PrideWatchFaceHook_FILES = Tweak.xm

include $(THEOS_MAKE_PATH)/tweak.mk


1 change: 1 addition & 0 deletions pridewatchfacehook/PrideWatchFaceHook.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{ Filter = { Bundles = ( "com.apple.NanoTimeKitCompanion" ); }; }
7 changes: 7 additions & 0 deletions pridewatchfacehook/Tweak.xm
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
%hook NTKPrideFace

+(BOOL)isRestrictedForDevice:(id)arg1 {
return NO;
}

%end
8 changes: 8 additions & 0 deletions wapihook/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
include $(THEOS)/makefiles/common.mk

TWEAK_NAME = WAPIHook
WAPIHook_FILES = Tweak.xm

include $(THEOS_MAKE_PATH)/tweak.mk


Loading

0 comments on commit 0a4b9f9

Please sign in to comment.