commit 2df67725cb92914c2db123a10ed462d49ecd3c51 Author: Adam Goldsmith Date: Wed Nov 17 01:37:55 2021 -0500 Initial commit diff --git a/hosts b/hosts new file mode 100644 index 0000000..bf50b99 --- /dev/null +++ b/hosts @@ -0,0 +1,8 @@ +ipads: + hosts: + iPad2: + iPad3: + vars: + ansible_ssh_user: mobile + ansible_ssh_pass: alpine + ansible_become_pass: alpine diff --git a/ipads.yml b/ipads.yml new file mode 100644 index 0000000..943c87a --- /dev/null +++ b/ipads.yml @@ -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 diff --git a/notes.org b/notes.org new file mode 100644 index 0000000..374da4b --- /dev/null +++ b/notes.org @@ -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) diff --git a/reservations_display.webclip/Info.plist b/reservations_display.webclip/Info.plist new file mode 100644 index 0000000..a0fe6c3 --- /dev/null +++ b/reservations_display.webclip/Info.plist @@ -0,0 +1,22 @@ + + + + + ClassicMode + + FullScreen + + IconIsPrecomposed + + IconIsScreenShotBased + + Orientations + 0 + Title + Tool Reservations + UIStatusBarStyle + UIStatusBarStyleGray + URL + http://10.12.42.247:8080/ + + diff --git a/reservations_display.webclip/icon.png b/reservations_display.webclip/icon.png new file mode 100644 index 0000000..e54bc47 Binary files /dev/null and b/reservations_display.webclip/icon.png differ