Initial commit

This commit is contained in:
Adam Goldsmith 2021-11-17 01:37:55 -05:00
commit 2df67725cb
5 changed files with 98 additions and 0 deletions

8
hosts Normal file
View File

@ -0,0 +1,8 @@
ipads:
hosts:
iPad2:
iPad3:
vars:
ansible_ssh_user: mobile
ansible_ssh_pass: alpine
ansible_become_pass: alpine

28
ipads.yml Normal file
View File

@ -0,0 +1,28 @@
- name: ipad setup
hosts: ipads
gather_facts: no
become: true
tasks:
- name: Allow Pubkey Authentication for OpenSSH
raw: >-
sed -i /etc/ssh/sshd_config
-e 's|^#\?PubkeyAuthentication\W.*|PubkeyAuthentication yes|'
-e 's|^#\?AuthorizedKeysFile\W.*|AuthorizedKeysFile %h/.ssh/authorized_keys|'
-e 's|^#\?PermitRootLogin\W.*|PermitRootLogin no|'
- name: Fix /var/mobile permissions
raw: chmod 750 /var/mobile
- name: restart sshd
raw: launchctl kickstart -k system/com.openssh.sshd
- name: Add Karen's Repo
raw: echo "deb http://cydia.akemi.ai/ ./" > /etc/apt/sources.list.d/akemi.list
- name: Add rpetrich Repo
raw: echo "deb https://rpetri.ch/repo/ ./" > /etc/apt/sources.list.d/rpetrich.list
- name: Update apt sources
raw: apt-get update
- name: Install packages
raw: apt-get install -y --force-yes net.angelxwind.mikoto libactivator com.rpetrich.monocle
- name: Copy webclip
local_action: command scp -r ./reservations_display.webclip {{ inventory_hostname }}:Library/WebClips
become: false
- name: Respring
raw: killall SpringBoard

40
notes.org Normal file
View File

@ -0,0 +1,40 @@
* iPad Jailbreaking/Downgrading
** iPad2,3 or iPad3,2
*** We want to be on an untethered jailbreak, which seems to mean iOS 8.4.1. Some sources claim it is also noticably faster
*** steps:
1. JB with Phoenix (via https://jailbreaks.app/legacy.html or 3uTools)
2. Follow instructions here to downgrade to 8.4.1: [[http://www.3u.com/news/articles/5841/untethered-downgrade-iphone-5-ipad234-ipad-mini-to-ios841-without-shsh][Untethered Downgrade iPhone 5/iPad 2,3,4/iPad mini to iOS 8.4.1 without SHSH]]
- Use 3uTools v2.55, or it will hang! (as per https://twitter.com/3utools/status/1455107861172797449)
- specifically, 2.58 was bugged at time of testing
- can be downloaded from http://www.3u.com/update-log
- for iPad3,2: Use [[https://github.com/LukeZGD/iOS-OTA-Downgrader/][iOS-OTA-Downgrader]] to enter kDFU instead of kDFUApp
- Ideally this would work for the whole downgrade, but it was a bit buggy :(
3. install jailbreak (preferably daibutsu):
- https://github.com/LukeZGD/iOS-OTA-Downgrader/wiki/Jailbreaking
- used Sideloadly on MacOS
- daibutsu did not support iPad2,3 so EtasonJB was used
4. ansible setup:
1. install "openssh" and "apt 0.7 strict" via cydia
2. =su= to root and =apt-get install sudo python vim=
3. edit =/etc/sudoers= to allow =wheel=
4. edit =/etc/group= to add mobile to =wheel=
5. install [[https://cydia.akemi.ai/?page/net.angelxwind.mikoto][mikoto]] to disable OTA update notifications (and some other things)
* iPad lock/unlock via activator
#+begin_src bash
activator send libactivator.system.sleepbutton # lock
activator send libactivator.lockscreen.dismiss # unlock
activator send com.rpetrich.monocle # hide status bar
#+end_src
* Editing preferences:
can use plutil from http://repo.bingner.com/ to convert from/to binary plist
to restart the preferences daemon after editing a plist:
#+begin_src bash
launchctl kickstart -k system/com.apple.cfprefsd.xpc.daemon
#+end_src
* making a webclip:
** ~/Library/WebClips/whatever.webclip
can place an Info.plist and icon then respring and it kind of just works
- Can launch with =activator send com.apple.webapp= maybe?
- only seems to work when it is already running (ie to switch to it, not launch it)

View File

@ -0,0 +1,22 @@
<?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>ClassicMode</key>
<false/>
<key>FullScreen</key>
<true/>
<key>IconIsPrecomposed</key>
<false/>
<key>IconIsScreenShotBased</key>
<true/>
<key>Orientations</key>
<integer>0</integer>
<key>Title</key>
<string>Tool Reservations</string>
<key>UIStatusBarStyle</key>
<string>UIStatusBarStyleGray</string>
<key>URL</key>
<string>http://10.12.42.247:8080/</string>
</dict>
</plist>

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB