锁定iPhone / iPod / iPad,因此它只能运行一个应用程序 [英] Lock-down iPhone/iPod/iPad so it can only run one app

查看:917
本文介绍了锁定iPhone / iPod / iPad,因此它只能运行一个应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们想要锁定iPhone / iPod / iPad,以便用户只能运行一个应用程序(我们已在内部开发此应用程序)。我猜我们会关注越狱,然后替换(?)默认的Springboard应用程序。

We'd like to 'lock-down' an iPhone/iPod/iPad so that the user can only run one app (we've developed this app internally). I'm guessing we'd be looking at jailbreaking, and then replacing (?) the default Springboard app.

我们可以这样做吗?如果是这样,怎么样?

Can we do this? If so, how?

编辑: Rick在下面发布了一个很好的答案。您可以从以下URL下载mobileconfig文件的副本,如果您在iOS设备上访问此URL,Safari将提示您安装该配置文件。不要忘记重启设备:)

http://ipadhire.co.nz/lockdown.mobileconfig

-

编辑编辑:在下面发布的Brainray指出,iOS 6中有一项名为引导访问的新功能,可让您将设备锁定到特定的应用程序。遗憾的是这个功能一年前还没有 - 会给我们带来一些麻烦:)

EDIT brainray posted below and pointed out that there's a new feature in iOS 6 called 'guided access' that allows you to lock a device to a specific app. It's a pity this feature wasn't available a year ago -- would have saved us a bit of hassle :)

-

编辑编辑编辑:iOS 7现在包含App Lock有效负载,作为设备配置文件的一部分。从Apple文档:通过安装应用程序锁定有效负载,设备将锁定到单个应用程序,直到删除有效负载。主页按钮被禁用,设备在唤醒或重新启动时自动返回指定的应用程序。

EDIT EDIT iOS 7 now includes an 'App Lock' payload as part of the device configuration profile. From the Apple docs: "By installing an app lock payload, the device is locked to a single application until the payload is removed. The home button is disabled, and the device returns to the specified application automatically upon wake or reboot."

在此处阅读更多相关信息:

Read more about it here:

https://developer.apple.com /library/content/featuredarticles/iPhoneConfigurationProfileRef/Introduction/Introduction.html#//apple_ref/doc/uid/TP40010206-CH1-SW4

推荐答案

可以将iPad或iPhone置于商店演示模式,以便禁用主页按钮和滑动到主页手势。如果您已经看到Apple Store中运行智能标志应用程序的iPad,那么您就会明白我的意思。

It is possible to put an iPad or iPhone into 'Store Demo' mode so that the home button and swipe to home gesture is disabled. If you have seen the iPads in the Apple Store running the smart sign apps then you will know what I mean.

实现这一点实际上是非常重要的需要做的是从网络服务器通过无线方式安装格式正确的移动配置plist。

It is actually pretty trivial to make this work, all you need to do is install a correctly formatted mobile config plist over the air from a web server.

要从网络上发送配置,你只需要指挥iPhone到包含个人资料的网址。只需在safari中打开指向.mobileconfig文件的链接即可。如果您没有网络空间,您可以使用dropbox公用文件夹URL或在Mac网络服务器上切换。

To deliver your config from the web all you have to do is direct the iPhone to a url containing the profile. Just open the link to your .mobileconfig file in safari. If you don't have web space you can just use dropbox public folder URLs or switch on your mac webserver.

您可以使用加载配置IPCU也是如此,但我还没试过。这个配置文件不会加载到iPhone配置工具中,因为它使用的是IPCU不知道的密钥。您可以将此与您正在使用的其他任何企业配置配置文件相结合。

It's possible that you can load the config using IPCU too but I have not tried this. This config file will not load in the iPhone Configuration Utility as it uses keys that IPCU doesn't know about. You can combine this with whatever other enterprise configuration profiles you have in play.

编辑 @cocoanetics 指出IPCU不需要删除配置文件。但请注意,要使您的设备恢复正常,您需要执行以下操作:

EDIT: @cocoanetics pointed out that IPCU is not required to remove the profile. However note that to get your device back to normal you would need to do the following:


  1. 重新启动

  2. 首先打开设置应用程序 - 不要打开任何其他内容或者您需要重新启动

  3. 设置 - >常规 - >配置文件 - > [您的个人资料]将其删除。

  4. 重新启动

  1. Reboot
  2. Open the settings app FIRST - don't open anything else or you will need to reboot again
  3. Settings->General->Profiles->[your profile] remove it.
  4. Reboot

你应该恢复正常。

我添加了一个示例plist,它将禁用主页按钮并将您的设备锁定到应用程序中。

I have included an example plist that will disable the home button and lock your device into the app.

BEWARE

安装此配置文件后,重启设备时启动的第一个应用程序将是唯一一个在您重新启动设备之前运行的应用程序。
正如 @Cawas 所说,这完全禁用了返回主屏幕的能力(除非您的应用程序崩溃),包括辅助功能辅助触摸。

Once this profile is installed the first app that is launched when the device is rebooted will be the only app that will run until you reboot the device again. As @Cawas has said this completely disables the ability to return to the home screen (unless your app crashes) including accessibility assistive touch.

请注意,安装配置文件后,您必须重启设备(关闭电源,电源())它才能生效。要删除配置文件,请将设备插入IPCU并将其删除,然后重新启动设备。一切都将恢复正常。

Note that after installing the profile you must reboot the device (power off, power on) for it to take effect. To remove the profile plug the device into IPCU and delete it then reboot the device. Everything will be back to normal.

<?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>PayloadContent</key>
    <array>
        <dict>
            <key>PayloadDescription</key>
            <string>Disables home</string>
            <key>PayloadDisplayName</key>
            <string>Home Button Lock</string>
            <key>PayloadIdentifier</key>
            <string>com.hbkill.kiosk</string>
            <key>PayloadOrganization</key>
            <string>My Org</string>
            <key>PayloadType</key>
            <string>com.apple.defaults.managed</string>
            <key>PayloadUUID</key>
            <string>B2D02E2D-BAC5-431B-8A29-4B91F71C9FC1</string>
            <key>PayloadVersion</key>
            <integer>1</integer>
            <key>PayloadContent</key>
            <array>
                <dict>
                    <key>DefaultsDomainName</key>
                    <string>com.apple.springboard</string>
                    <key>DefaultsData</key>
                    <dict>
                    <key>SBStoreDemoAppLock</key>
                    <true/>
                    </dict>
                </dict>
            </array>
        </dict>
    </array>
    <key>PayloadDescription</key>
    <string>Disables Home Button</string>
    <key>PayloadDisplayName</key>
    <string>Home Button Lock</string>
    <key>PayloadIdentifier</key>
    <string>com.hbkill</string>
    <key>PayloadOrganization</key>
    <string>My Org</string>
    <key>PayloadType</key>
    <string>Configuration</string>
    <key>PayloadUUID</key>
    <string>614D1FE3-F80D-4643-AF6B-D10C4CC8737A</string>
    <key>PayloadVersion</key>
    <integer>1</integer>
</dict>
</plist>

你可能已经离开了这个但我想我会在这里发布这个答案我在试图弄清楚如何做同样的事情时的问题。

You may well have moved on from this but I thought I would post this answer here as I came across the question while I was trying to figure out how to do the same thing.

这篇关于锁定iPhone / iPod / iPad,因此它只能运行一个应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆