From 2df67725cb92914c2db123a10ed462d49ecd3c51 Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Wed, 17 Nov 2021 01:37:55 -0500 Subject: [PATCH] Initial commit --- hosts | 8 +++++ ipads.yml | 28 +++++++++++++++++ notes.org | 40 ++++++++++++++++++++++++ reservations_display.webclip/Info.plist | 22 +++++++++++++ reservations_display.webclip/icon.png | Bin 0 -> 2274 bytes 5 files changed, 98 insertions(+) create mode 100644 hosts create mode 100644 ipads.yml create mode 100644 notes.org create mode 100644 reservations_display.webclip/Info.plist create mode 100644 reservations_display.webclip/icon.png 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 0000000000000000000000000000000000000000..e54bc476e5995b2ab64ca45841ce9bfbbde64e9b GIT binary patch literal 2274 zcmbW3`8(9z8^^~W8WCgP!kBDh&zhdH%rGj9HCcxgW~^y6S$ddZvWx1mGq!AvQ4+GJ zObFSsFGb1PSb97Xz90Pw-yhDo@9VnHdEc-1x$YlMJjT+D8zKe)fk52mXrv7gGmjT1 z7}ztY^`Ssu39&IV237Y^)2;mLaCa6m}Rr-SPYa5J!pm&n2n5Bk7{ns;&y0DlWT?K|r#Cf;_i7j(IwtO5 z5DJoBs_DfId~3Q2t*xyWkz9rkwQUSvj=M4u&<;})f(W|$!RRI{;;NxrQ|P)eDHC+c z=-h0BP7V4DZ2m;r_*qD-u?S_{ifM+0b7wyGLkn3J9UP=}z1e%Q|ULX!tUrG^lpYFJ8M9^`-e0ENaVS*FeCBVK;;%^R9zYxEXj`PA zEq2%=AEAxZwJq-L{atohYwRlibwrb7BUN%JS9`^zAV-zXzqd(Jy|l$JZqMPL2~kwK zsDzSUseK`-ohfN5WXYkI?TYUrtok?2CYu%w(J&g!OBhpn=KK3|1kFrth%3hcPB-1s z0LR~7Uiau|7+X3KGAkfGFBrZxh@MYn+Z0j@cEdv6lyqN`nU5v^m-z~& zz#s9!i|vBJlIfn5;~i&BBPr*J%h!|N;Ua0H)z4?TCe@|%2p=KqKJRxAd(z%ReBa7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