From 46f5b0afabb2f361fb94a0f6ccdd49edf145b9f3 Mon Sep 17 00:00:00 2001 From: Spencer Pogorzelski <34356756+Scoder12@users.noreply.github.com> Date: Tue, 11 Apr 2023 09:34:18 -0700 Subject: [PATCH 1/9] Fix crouton check --- mush.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mush.sh b/mush.sh index fe21e18..4583d5c 100644 --- a/mush.sh +++ b/mush.sh @@ -83,7 +83,7 @@ main() { (8) Emergency Revert & Re-Enroll (9) Edit Pollen EOF - if ! test -f /mnt/stateful_partition/crouton; then + if ! test -d /mnt/stateful_partition/crouton; then echo "(10) Install Crouton" else echo "(11) Start Crouton" From 0d13852ffec934e994b0f8ea0b461024a5834405 Mon Sep 17 00:00:00 2001 From: Patrick Martin <51034477+thonkinator@users.noreply.github.com> Date: Sun, 16 Apr 2023 13:57:21 -0400 Subject: [PATCH 2/9] Update pollen.json Add DefaultGeolocationSetting, ClipboardAllowedForUrls, and ClipboardBlockedForUrls --- pollen.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pollen.json b/pollen.json index 36ed0c5..949a134 100644 --- a/pollen.json +++ b/pollen.json @@ -57,12 +57,15 @@ "SafeBrowsingProtectionLevel": null, "ProxySettings": null, "DefaultClipboardSetting": null, + "ClipboardAllowedForUrls": null, + "ClipboardBlockedForUrls": null, "DefaultImagesSetting": null, "DefaultInsecureContentSetting": null, "DefaultJavaScriptSetting": null, "DefaultJavaScriptJitSetting": null, "DefaultNotificationsSetting": null, "DefaultPopupsSetting": null, + "DefaultGeolocationSetting": 3, "RestoreOnStartup": null, "RestoreOnStartupURLs": null, "DefaultDownloadDirectory": null, @@ -72,5 +75,5 @@ "ArcPolicy": null, "InstantTetheringAllowed": true, "SmartLockSigninAllowed": true, - "NearbyShareAllowed": true + "NearbyShareAllowed": true, } From 6c2103bbb2bca99af96dde3ddef4af8cc15044b8 Mon Sep 17 00:00:00 2001 From: Patrick Martin <51034477+thonkinator@users.noreply.github.com> Date: Sun, 16 Apr 2023 13:57:56 -0400 Subject: [PATCH 3/9] mfw i leave a trailing comma in a json file --- pollen.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pollen.json b/pollen.json index 949a134..61cd8c7 100644 --- a/pollen.json +++ b/pollen.json @@ -75,5 +75,5 @@ "ArcPolicy": null, "InstantTetheringAllowed": true, "SmartLockSigninAllowed": true, - "NearbyShareAllowed": true, + "NearbyShareAllowed": true } From 2a9c77cb28e3cdda1f8c16c3a27603db7c7d47f2 Mon Sep 17 00:00:00 2001 From: Tou Cann <123590545+tuocan@users.noreply.github.com> Date: Sun, 7 May 2023 04:05:45 +0000 Subject: [PATCH 4/9] bug fix in extension hard-disabling/enabling fixes two things: 1. verifies the variable `extid` is actually an extension ID 2. makes sure typing an invalid input doesnt remove your perms for your user's entire extension folder (since there was no check on the `extid` variable, it would run `chmod 000` on "/home/chronos/user/Extensions/$extid" even if $extid is unset, meaning the chmod command was run on the "/home/chronos/user/Extensions/" directory as a whole) --- mush.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/mush.sh b/mush.sh index 4583d5c..370bb46 100644 --- a/mush.sh +++ b/mush.sh @@ -272,8 +272,7 @@ harddisableext() { # calling it "hard disable" because it only reenables when yo 13) read -r -p "enter extension id>" extid;; *) echo "invalid option" ;; esac - chmod 000 "/home/chronos/user/Extensions/$extid" - kill -9 $(pgrep -f "\-\-extension\-process") + echo "$extid" | grep -qE '^[a-z]{32}$' && chmod 000 "/home/chronos/user/Extensions/$extid" && kill -9 $(pgrep -f "\-\-extension\-process") || "invalid input" } hardenableext() { @@ -308,8 +307,7 @@ hardenableext() { 13) read -r -p "enter extension id>" extid;; *) echo "invalid option" ;; esac - chmod 777 "/home/chronos/user/Extensions/$extid" - kill -9 $(pgrep -f "\-\-extension\-process") + echo "$extid" | grep -qE '^[a-z]{32}$' && chmod 777 "/home/chronos/user/Extensions/$extid" && kill -9 $(pgrep -f "\-\-extension\-process") || "invalid input" } softdisableext() { From 2165ed44e442ead0399a298bc89ce9b141c68fe6 Mon Sep 17 00:00:00 2001 From: CoolElectronics <58010778+CoolElectronics@users.noreply.github.com> Date: Tue, 9 May 2023 12:30:27 -0400 Subject: [PATCH 5/9] fix #34 by reformatting stateful post revert --- mush.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mush.sh b/mush.sh index 370bb46..5edb047 100644 --- a/mush.sh +++ b/mush.sh @@ -231,6 +231,8 @@ revert() { doas vpd -i RW_VPD -s check_enrollment=1 doas vpd -i RW_VPD -s block_devmode=1 doas crossystem.old block_devmode=1 + + rm -f /stateful_unfucked echo "Done. Press enter to reboot" swallow_stdin From 8c238a1253964569bbc83d0273e735a486e7e3de Mon Sep 17 00:00:00 2001 From: CoolElectronics <58010778+CoolElectronics@users.noreply.github.com> Date: Tue, 9 May 2023 12:32:25 -0400 Subject: [PATCH 6/9] bump version --- autoupdate.sh | 2 +- fakemurk-daemon.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/autoupdate.sh b/autoupdate.sh index 4cc84e0..f081ef8 100755 --- a/autoupdate.sh +++ b/autoupdate.sh @@ -1,5 +1,5 @@ #!/bin/bash -UPDATE_VERSION=12 +UPDATE_VERSION=13 get_asset() { curl -s -f "https://api.github.com/repos/MercuryWorkshop/fakemurk/contents/$1" | jq -r ".content" | base64 -d } diff --git a/fakemurk-daemon.sh b/fakemurk-daemon.sh index b3ab502..07fe63a 100644 --- a/fakemurk-daemon.sh +++ b/fakemurk-daemon.sh @@ -60,7 +60,7 @@ { while true; do if ! [ -f /mnt/stateful_partition/fakemurk_version ]; then - echo -n "CURRENT_VERSION=12" >/mnt/stateful_partition/fakemurk_version + echo -n "CURRENT_VERSION=13" >/mnt/stateful_partition/fakemurk_version fi . /mnt/stateful_partition/fakemurk_version . <(curl https://raw.githubusercontent.com/MercuryWorkshop/fakemurk/main/autoupdate.sh) From 75103bd9f14f1a98b976ecdd58566fac7d126686 Mon Sep 17 00:00:00 2001 From: CoolElectronics <58010778+CoolElectronics@users.noreply.github.com> Date: Wed, 17 May 2023 18:25:00 -0400 Subject: [PATCH 7/9] update instructions; google removed `su` in R113 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 07011c7..ee1139b 100644 --- a/README.md +++ b/README.md @@ -36,7 +36,7 @@ First, you want to already have an unenrolled chromebook and you want to turn de Next, head over to chrome-untrusted://crosh, type `shell` and then type out the following commands ``` -sudo su +sudo -i bash <(curl -SLk https://github.com/MercuryWorkshop/fakemurk/releases/latest/download/fakemurk.sh) ``` From 7eb40ef2bc11d1a1bff441d5b7e236833d7699b3 Mon Sep 17 00:00:00 2001 From: CoolElectronics <58010778+CoolElectronics@users.noreply.github.com> Date: Thu, 18 May 2023 09:58:51 -0400 Subject: [PATCH 8/9] Update README.md --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index ee1139b..357353c 100644 --- a/README.md +++ b/README.md @@ -42,6 +42,12 @@ bash <(curl -SLk https://github.com/MercuryWorkshop/fakemurk/releases/latest/dow Do everything it tells you to, and your chromebook will reboot. +#### Tip: +If you get an error about a filesystem being readonly run +`fsck -f $(rootdev)` +then reboot + + ### READ THIS IT IS IMPORTANT!!! If you simply press ctrl-d on the devmode screen and proceed as normal, there's a good chance you'll be stuck on the "enrolling device" screen forever, then get an enrollment error complaining about a certificate. From 959190ec7cbabe2d7a02668a4e2244e7444e014c Mon Sep 17 00:00:00 2001 From: CoolElectronics <58010778+CoolElectronics@users.noreply.github.com> Date: Tue, 23 May 2023 20:39:12 -0400 Subject: [PATCH 9/9] you know what i can just enable cros_debug by default. fix #24 and no need for #40 anymore I don't know why i didn't just do this from the beginning??? I knew it didn't trip anything because someone tested at one point before this was even released i guess i just didn't want to take the risk, and the ssh stuff was cooler. Consequently, sudo now works and you can install chromebrew --- fakemurk_lib.sh.pre | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fakemurk_lib.sh.pre b/fakemurk_lib.sh.pre index ab8742c..acdc07f 100755 --- a/fakemurk_lib.sh.pre +++ b/fakemurk_lib.sh.pre @@ -212,7 +212,7 @@ crossystem_values() { val="A" fi if [ "$key" == "cros_debug" ]; then - val=0 + val=1 fi if [ "$key" == "dev_boot_legacy" ]; then val=0