tweak

Simulate all physical buttons like the pressure on the home button on iOS 7 (Jailbreak)

ぃ、小莉子 提交于 2019-11-29 14:23:21
问题 I'm trying to simulate the "home button pressed" on iOS 7 but the previous method used on iOS 6 doesn't work. I speak of course of a jailbroken device. #include "GSEvent.h" - (void)simulateHomeButton { struct GSEventRecord record; memset(&record, 0, sizeof(record)); record.type = kGSEventMenuButtonDown; record.timestamp = GSCurrentEventTimestamp(); GSSendSystemEvent(&record); record.type = kGSEventMenuButtonUp; GSSendSystemEvent(&record); } *UPDATE What I really need is a generic method like

如何美化你的ubuntu

偶尔善良 提交于 2019-11-29 12:13:49
导读 现在就一个ubuntu系统,当然希望它很漂亮啦,自己可以试着玩玩,搞个Mac OS X主题风格,苹果的界面, 苹果的logo。 安装Unity Tweak Tool——实现桌面,图标,主题的切换 Unity Tweak Tool 是一款适用于ubuntu Unity桌面的设置管理器 sudo aptitude install unity-tweak-tool 实现苹果风格须添加软件源 sudo add-apt-repository ppa:noobslab/themes sudo aptitude update 安装苹果主题 sudo aptitude install macbuntu-ithemes-v6 安装苹果图标 sudo aptitude install macbuntu-icons-v6 安装苹果主题托盘 sudo aptitude install macbuntu-plank-theme-v6 安装苹果启动标志和其他 sudo aptitude install macbuntu-lightdm-v6 sudo aptitude install macbuntu-bscreen-v6 附带安装一套精美的Numix图标,超好看的 sudo add-apt-repository ppa:numix/ppa sudo apt-get update sudo apt

Using IOSurface to take screenshot in iOS7 in games

可紊 提交于 2019-11-29 10:23:23
问题 I'm trying to take screenshots from background using IOSurface, here's my code IOMobileFramebufferConnection connect; kern_return_t result; IOSurfaceRef screenSurface = NULL; io_service_t framebufferService = IOServiceGetMatchingService(kIOMasterPortDefault, IOServiceMatching("AppleH1CLCD")); if(!framebufferService) framebufferService = IOServiceGetMatchingService(kIOMasterPortDefault, IOServiceMatching("AppleM2CLCD")); if(!framebufferService) framebufferService = IOServiceGetMatchingService

iOS - Add “objects” to existing app (jailbroken)

喜欢而已 提交于 2019-11-28 15:36:08
How do you add "objects" to an existing app ? For example, the EasyRefresh for Chrome tweak, enables a new button inside the iOS Chrome app, as do many other tweaks. How may i add a simple UIButton to, for example, the Twitter app ? Is there any GitHub projects that might help me to understand how it's done ? Image Source: ModMyI Thanks. The trick involves some (very basic) reverse engineering and is made up of several steps; I'll try to explain them as clearly as possible. Step Zero: if the app is downloaded from the AppStore, it's encrypted. You have to decrypt it using one of the scripts

(cydia dev) Call Answering Screen in iPhone

≡放荡痞女 提交于 2019-11-28 06:34:44
问题 What would be the class responsible for call answering screen. I think it's a private framework, or even the SpringBoard. But the SpringBoard has dozens of classes, and as I have access only to the header, it is difficult to know what the caller display phone service. Does anyone know what class and method to the caller? 回答1: There are two classes responsible for that (one for Phone call and second for facetime) in /System/Library/SpringBoardPlugins/IncomingCall.servicebundle/IncomingCall

Can I tweak my android emulator to make it fast?

拥有回忆 提交于 2019-11-28 02:53:49
I am using the android emulator to run my programs. But its really slow. It takes around 90 seconds to startup and show the home screen. Can I tweak it so that I can reduce this time considerably? Thanks keyboardP I was having a similar problem ( thread here) . However, mine was taking 10-15 mins. 90 seconds is blazing fast considering a lot of threads in the Android discussion groups. The emulator is slow by nature and the only recommendation I read was to keep the emulator open instead of closing it and rerunning it. However, as mentioned in my thread, if you have a physical Android device,

iOS - Add “objects” to existing app (jailbroken)

自古美人都是妖i 提交于 2019-11-27 09:17:56
问题 How do you add "objects" to an existing app ? For example, the EasyRefresh for Chrome tweak, enables a new button inside the iOS Chrome app, as do many other tweaks. How may i add a simple UIButton to, for example, the Twitter app ? Is there any GitHub projects that might help me to understand how it's done ? Image Source: ModMyI Thanks. 回答1: The trick involves some (very basic) reverse engineering and is made up of several steps; I'll try to explain them as clearly as possible. Step Zero: if

iOS Private API: lock device and power off the screen

房东的猫 提交于 2019-11-27 07:03:30
问题 I'm making an app for jailbreak that lock the device when the user launch the app. I've tried GSEventLockDevice(); from GraphicsServices.framework but this does not work properly because it locks the screen but does not power off the screen. Is there another way to lock the screen without MobileSubstrate ? 回答1: Just as another alternative, check out this answer, which uses SBDimScreen() . You could use that in conjunction with GSEventLockDevice() . It appears that you may now (iOS 5+) need to

Can I tweak my android emulator to make it fast?

北城余情 提交于 2019-11-26 23:52:16
问题 I am using the android emulator to run my programs. But its really slow. It takes around 90 seconds to startup and show the home screen. Can I tweak it so that I can reduce this time considerably? Thanks 回答1: I was having a similar problem (thread here). However, mine was taking 10-15 mins. 90 seconds is blazing fast considering a lot of threads in the Android discussion groups. The emulator is slow by nature and the only recommendation I read was to keep the emulator open instead of closing