Skip to content

Commit

Permalink
First commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
Andy Ibanez committed May 31, 2013
0 parents commit 225c8c5
Show file tree
Hide file tree
Showing 44 changed files with 607 additions and 0 deletions.
Binary file added .DS_Store
Binary file not shown.
10 changes: 10 additions & 0 deletions .theos/_/DEBIAN/control
@@ -0,0 +1,10 @@
Package: com.andyibanez.cecrecy
Name: Cecrecy
Depends: mobilesubstrate, applist(>=1.5.1), firmware(>=6.0), libhide
Version: 1.0.0-10
Architecture: iphoneos-arm
Description: Protect your privacy - rather than locking apps with a passcode, this tweak can hide them altogether.
Maintainer: Andy Ibanez
Author: Andy Ibanez
Section: Tweaks
Installed-Size: 40
Binary file added .theos/_/Library/Cecrecy/Cecrecy.bundle/Cecrecy
Binary file not shown.
10 changes: 10 additions & 0 deletions .theos/_/Library/Cecrecy/Cecrecy.bundle/Info.plist
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleExecutable</key>
<string>Cecrecy</string>
<key>CFBundleDisplayName</key>
<string>Cecrecy</string>
</dict>
</plist>
Binary file not shown.
@@ -0,0 +1,41 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>items</key>
<array>
<dict>
<key>cell</key>
<string>PSGroupCell</string>
<key>label</key>
<string>Cecrecy Settings</string>
</dict>
<dict>
<key>ALAllowsSelection</key>
<string>1</string>
<key>ALSettingsKeyPrefix</key>
<string></string>
<key>ALSettingsPath</key>
<string>/var/mobile/Library/Preferences/com.andyibanez.Cecrecy.HiddenApps.plist</string>
<key>ALSingleEnabledMode</key>
<false/>
<key>bundle</key>
<string>AppList</string>
<key>cell</key>
<string>PSLinkCell</string>
<key>isController</key>
<string>1</string>
<key>label</key>
<string>Applications</string>
</dict>
<dict>
<key>cell</key>
<string>PSGroupCell</string>
<key>footerText</key>
<string>Developed by Andy Ibanez © 2013</string>
</dict>
</array>
<key>title</key>
<string>Cecrecy</string>
</dict>
</plist>
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//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>CFBundleExecutable</key>
<string>CecrecySettings</string>
<key>CFBundleIdentifier</key>
<string>com.andyibanez.CecrecySettings</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundlePackageType</key>
<string>BNDL</string>
<key>CFBundleShortVersionString</key>
<string>1.0.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1.0</string>
<key>DTPlatformName</key>
<string>iphoneos</string>
<key>MinimumOSVersion</key>
<string>3.0</string>
<key>NSPrincipalClass</key>
<string>CecrecySettingsListController</string>
</dict>
</plist>
@@ -0,0 +1,10 @@
{
entry = {
bundle = CecrecySettings;
cell = PSLinkCell;
detail = "CecrecySettingsListController";
icon = "CecrecySettings.png";
isController = 1;
label = Cecrecy;
};
}
Empty file added .theos/fakeroot
Empty file.
Empty file added .theos/obj/.stamp
Empty file.
Binary file added .theos/obj/Cecrecy.bundle/Cecrecy
Binary file not shown.
10 changes: 10 additions & 0 deletions .theos/obj/Cecrecy.bundle/Info.plist
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleExecutable</key>
<string>Cecrecy</string>
<key>CFBundleDisplayName</key>
<string>Cecrecy</string>
</dict>
</plist>
Binary file added .theos/obj/Cecrecy.mm.20505357.o
Binary file not shown.
Binary file added .theos/obj/Cecret.bundle/Cecret
Binary file not shown.
10 changes: 10 additions & 0 deletions .theos/obj/Cecret.bundle/Info.plist
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleExecutable</key>
<string>Cecret</string>
<key>CFBundleDisplayName</key>
<string>Cecret</string>
</dict>
</plist>
Binary file added .theos/obj/Cecret.mm.b2f15314.o
Binary file not shown.
1 change: 1 addition & 0 deletions .theos/packages/com.andyibanez.cecrecy-1.0.0
@@ -0,0 +1 @@
1.0.0-10
1 change: 1 addition & 0 deletions .theos/packages/com.andyibanez.cecret-0.0.1
@@ -0,0 +1 @@
0.0.1-30
1 change: 1 addition & 0 deletions .theos/packages/com.andyibanez.cecret-1.0.0
@@ -0,0 +1 @@
1.0.0-24
39 changes: 39 additions & 0 deletions Cecrecy.mm
@@ -0,0 +1,39 @@
#import <Foundation/Foundation.h>
#import "libhide_functions.mm"

@interface Cecrecy : NSObject
{
}
-(void)hideIcons;
-(void)showIcons;
@end

@implementation Cecrecy
-(void)hideIcons
{
NSDictionary *appsToHide = [NSDictionary dictionaryWithContentsOfFile:
[NSString stringWithFormat:@"%@/Library/Preferences/%@", NSHomeDirectory(), @"com.andyibanez.Cecrecy.HiddenApps.plist"]];
[appsToHide enumerateKeysAndObjectsUsingBlock:^(id key, id obj, BOOL *stop)
{
NSString *sKey = (NSString *)key;
if([obj boolValue] == YES)
{
HideIconViaDisplayId(sKey);
}

}];
}
-(void)showIcons
{
NSDictionary *appsToShow = [NSDictionary dictionaryWithContentsOfFile:
[NSString stringWithFormat:@"%@/Library/Preferences/%@", NSHomeDirectory(), @"com.andyibanez.Cecrecy.HiddenApps.plist"]];
[appsToShow enumerateKeysAndObjectsUsingBlock:^(id key, id obj, BOOL *stop)
{
NSString *sKey = (NSString *)key;
if([obj boolValue] == YES)
{
UnHideIconViaDisplayId(sKey);
}
}];
}
@end
1 change: 1 addition & 0 deletions Cecrecy.plist
@@ -0,0 +1 @@
{ Filter = { Bundles = ( "com.apple.springboard" ); }; }
10 changes: 10 additions & 0 deletions Makefile
@@ -0,0 +1,10 @@
ARCHS = armv7
include theos/makefiles/common.mk

BUNDLE_NAME = Cecrecy
Cecrecy_FILES = Cecrecy.mm
Cecrecy_INSTALL_PATH = /Library/Cecrecy
Cecrecy_FRAMEWORKS = Foundation
SUBPROJECTS += cecrecysettings
include $(THEOS_MAKE_PATH)/aggregate.mk
include $(THEOS_MAKE_PATH)/bundle.mk
Binary file added Resources/.DS_Store
Binary file not shown.
10 changes: 10 additions & 0 deletions Resources/Info.plist
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleExecutable</key>
<string>Cecrecy</string>
<key>CFBundleDisplayName</key>
<string>Cecrecy</string>
</dict>
</plist>
Binary file added cecrecysettings/.DS_Store
Binary file not shown.
Empty file.
Binary file not shown.
@@ -0,0 +1,41 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>items</key>
<array>
<dict>
<key>cell</key>
<string>PSGroupCell</string>
<key>label</key>
<string>Cecrecy Settings</string>
</dict>
<dict>
<key>ALAllowsSelection</key>
<string>1</string>
<key>ALSettingsKeyPrefix</key>
<string></string>
<key>ALSettingsPath</key>
<string>/var/mobile/Library/Preferences/com.andyibanez.Cecrecy.HiddenApps.plist</string>
<key>ALSingleEnabledMode</key>
<false/>
<key>bundle</key>
<string>AppList</string>
<key>cell</key>
<string>PSLinkCell</string>
<key>isController</key>
<string>1</string>
<key>label</key>
<string>Applications</string>
</dict>
<dict>
<key>cell</key>
<string>PSGroupCell</string>
<key>footerText</key>
<string>Developed by Andy Ibanez © 2013</string>
</dict>
</array>
<key>title</key>
<string>Cecrecy</string>
</dict>
</plist>
28 changes: 28 additions & 0 deletions cecrecysettings/.theos/obj/CecrecySettings.bundle/Info.plist
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//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>CFBundleExecutable</key>
<string>CecrecySettings</string>
<key>CFBundleIdentifier</key>
<string>com.andyibanez.CecrecySettings</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundlePackageType</key>
<string>BNDL</string>
<key>CFBundleShortVersionString</key>
<string>1.0.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1.0</string>
<key>DTPlatformName</key>
<string>iphoneos</string>
<key>MinimumOSVersion</key>
<string>3.0</string>
<key>NSPrincipalClass</key>
<string>CecrecySettingsListController</string>
</dict>
</plist>
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,41 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>items</key>
<array>
<dict>
<key>cell</key>
<string>PSGroupCell</string>
<key>label</key>
<string>Cecret Settings</string>
</dict>
<dict>
<key>ALAllowsSelection</key>
<string>1</string>
<key>ALSettingsKeyPrefix</key>
<string></string>
<key>ALSettingsPath</key>
<string>/var/mobile/Library/Preferences/com.andyibanez.Cecret.HiddenApps.plist</string>
<key>ALSingleEnabledMode</key>
<false/>
<key>bundle</key>
<string>AppList</string>
<key>cell</key>
<string>PSLinkCell</string>
<key>isController</key>
<string>1</string>
<key>label</key>
<string>Applications</string>
</dict>
<dict>
<key>cell</key>
<string>PSGroupCell</string>
<key>footerText</key>
<string>Developed by Andy Ibanez © 2013</string>
</dict>
</array>
<key>title</key>
<string>Cecret</string>
</dict>
</plist>
28 changes: 28 additions & 0 deletions cecrecysettings/.theos/obj/CecretSettings.bundle/Info.plist
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//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>CFBundleExecutable</key>
<string>Cecret</string>
<key>CFBundleIdentifier</key>
<string>com.andyibanez.CecretSettings</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundlePackageType</key>
<string>BNDL</string>
<key>CFBundleShortVersionString</key>
<string>1.0.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1.0</string>
<key>DTPlatformName</key>
<string>iphoneos</string>
<key>MinimumOSVersion</key>
<string>3.0</string>
<key>NSPrincipalClass</key>
<string>CecretSettingsListController</string>
</dict>
</plist>
Binary file not shown.
22 changes: 22 additions & 0 deletions cecrecysettings/CecrecySettings.mm
@@ -0,0 +1,22 @@
@interface PSListController
{
id _specifiers;
}
-(id)specifiers;
-(id)loadSpecifiersFromPlistName:(id)name target:(id)tar;
@end

@interface CecrecySettingsListController: PSListController {
}
@end

@implementation CecrecySettingsListController
- (id)specifiers {
if(_specifiers == nil) {
_specifiers = [[self loadSpecifiersFromPlistName:@"CecrecySettings" target:self] retain];
}
return _specifiers;
}
@end

// vim:ft=objc
13 changes: 13 additions & 0 deletions cecrecysettings/Makefile
@@ -0,0 +1,13 @@
include theos/makefiles/common.mk

BUNDLE_NAME = CecrecySettings
CecrecySettings_FILES = CecrecySettings.mm
CecrecySettings_INSTALL_PATH = /Library/PreferenceBundles
CecrecySettings_FRAMEWORKS = UIKit
CecrecySettings_PRIVATE_FRAMEWORKS = Preferences

include $(THEOS_MAKE_PATH)/bundle.mk

internal-stage::
$(ECHO_NOTHING)mkdir -p $(THEOS_STAGING_DIR)/Library/PreferenceLoader/Preferences$(ECHO_END)
$(ECHO_NOTHING)cp entry.plist $(THEOS_STAGING_DIR)/Library/PreferenceLoader/Preferences/CecrecySettings.plist$(ECHO_END)
Binary file added cecrecysettings/Resources/.DS_Store
Binary file not shown.

0 comments on commit 225c8c5

Please sign in to comment.