Skip to content

Commit

Permalink
Fix hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
notmarek committed Oct 27, 2023
1 parent 7c59506 commit a45bf4c
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 1 deletion.
1 change: 1 addition & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ echo "moving patched uks to the new hotfix"
cp patchedUks.sqsh newHotfix
echo "patching bridge in the new hotfix"
$(patch originalHotfix/bridge < utils/bridge.patch) &> /dev/null
$(patch originalHotfix/install-bridge.sh < utils/install-bridge.sh.patch) &> /dev/null
mv originalHotfix/* newHotfix
mkdir build
rm -rf originalHotfix
Expand Down
2 changes: 1 addition & 1 deletion utils/bridge.patch
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
+ LOOP=$(mount | grep ' on /etc/uks ' | awk '{print $1}')
+ umount $LOOP
+ losetup -d $LOOP
+ cp patchedUks.sqsh ${UKSSQSH}
+ cp "${MKK_PERSISTENT_STORAGE}/devuks.sqsh" ${UKSSQSH}
+ mount -o loop=$LOOP,norelatime,nodiratime,noatime -t squashfs ${UKSSQSH} ${ROOT}/etc/uks
+ RET=$?
+
Expand Down
22 changes: 22 additions & 0 deletions utils/install-bridge.sh.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
--- originalHotfix/install-bridge.sh 2021-01-28 22:07:17.000000000 +0100
+++ install-bridge.sh 2023-10-27 18:51:17.113787466 +0200
@@ -47,6 +47,7 @@
# Cleanup & exit w/ prejudice
rm -f bridge
rm -f developer.keystore
+ rm -f patchedUks.sqsh
rm -f json_simple-1.1.jar
rm -f gandalf
rm -f bridge.conf
@@ -71,6 +72,11 @@

otautils_update_progressbar

+logmsg "I" "install" "" "Storing combined developer keystore"
+cp -f devuks.sqsh "${MKK_PERSISTENT_STORAGE}/devuks.sqsh"
+
+otautils_update_progressbar
+
logmsg "I" "install" "" "Storing kindlet jailbreak"
cp -f json_simple-1.1.jar "${MKK_PERSISTENT_STORAGE}/json_simple-1.1.jar"

0 comments on commit a45bf4c

Please sign in to comment.