Jump to content

sizlaq

Eurobricks Vassals
  • Posts

    13
  • Joined

  • Last visited

About sizlaq

Spam Prevention

  • What is favorite LEGO theme? (we need this info to prevent spam)
    Mario
  • Which LEGO set did you recently purchase or build?
    Minecraft

Profile Information

  • Gender
    Male

Extra

  • Country
    UK

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. I've uploaded all the Mindstorms App + Content here: https://www.brickshelf.com/cgi-bin/gallery.php?f=588884.
  2. I've uploaded the build instructions here: https://www.brickshelf.com/cgi-bin/gallery.php?i=6780575. The build instructions in the app are actually videos and each frame of a video is a "page" of the instructions. I've had to process the video into a PDF document and make them look presentable. Let me know if you see any issues.
  3. I've succesfully restored the downloaded content for the Windows app. I'll provide instructions on how to do this with the files that I will upload at some point.
  4. The bricksafe.com site isn't accepting new registrations. Any other suggestions?
  5. I have generated all the build instructions in the app into PDF format, there are 63 PDFs. I'm looking for a good place to host them that isn't my Google Drive. Any suggestions?
  6. Managed to get the downloadable content and updates working for the Windows App. Fix LEGO MINDSTORMS Windows Content Download Failure Problem The LEGO MINDSTORMS Windows app may fail when downloading content because its app configuration points to a broken QA S3 bucket: lego-education-atlas-app-content-qa.s3.amazonaws.com The app receives this configuration from a local appconfig endpoint: http://localhost:<port>/content/appconfig/appconfig.json This workaround replaces that local appconfig response using Fiddler AutoResponder, removing the broken AWS/S3 config so the app uses the normal LEGO Education content URL instead. What you need Install: Fiddler Classic PowerShell does not need to be run as Administrator for the main workaround. Step 1 — Open Fiddler Open Fiddler Classic. Make sure traffic capture is enabled: File > Capture Traffic It should be ticked. Step 2 — Start the LEGO MINDSTORMS app Open the Windows MINDSTORMS app. In Fiddler, look for a request like: http://localhost:53389/content/appconfig/appconfig.json The port number may be different each time, for example: localhost:53389 localhost:50123 localhost:62410 The important part is: /content/appconfig/appconfig.json Keep a note of the port number for Step 3. Step 3 — Save the current appconfig In PowerShell, replace the port number with the one shown in Fiddler: $Port = <PORT NUMBER> curl.exe -s "http://localhost:$Port/content/appconfig/appconfig.json" -o "$env:USERPROFILE\Downloads\appconfig-original.json" Step 4 — Create a patched appconfig Run this in PowerShell: $Original = "$env:USERPROFILE\Downloads\appconfig-original.json" $Patched = "$env:USERPROFILE\Downloads\appconfig-patched.json" $json = Get-Content $Original -Raw | ConvertFrom-Json # Remove the broken QA/S3 config if ($json.contentstack.PSObject.Properties.Name -contains "aws") { $json.contentstack.PSObject.Properties.Remove("aws") } # Ensure the normal LEGO Education content URLs are present $json.contentstack.url.global = "https://education.lego.com" $json.contentstack.url.cn = "https://education.lego.cn" $json | ConvertTo-Json -Depth 100 | Set-Content $Patched -Encoding UTF8 Write-Host "Patched config created at: $Patched" Step 5 — Confirm the bad bucket has been removed Run: Select-String -Path "$env:USERPROFILE\Downloads\appconfig-patched.json" -SimpleMatch "lego-education-atlas-app-content-qa" If there is no output, the bad QA bucket has been removed. Check the normal content URL is still present: Select-String -Path "$env:USERPROFILE\Downloads\appconfig-patched.json" -SimpleMatch "https://education.lego.com" Step 6 — Configure Fiddler AutoResponder In Fiddler: Go to the AutoResponder tab. Tick: Enable rules Unmatched requests passthrough Add a new rule. For the match rule, use: regex:http://localhost:\d+/content/appconfig/appconfig\.json For the response, give the location of the patched JSON file. E.g. C:\Users\bob\Downloads\appconfig-patched.json Step 7 — Restart the app Fully close the LEGO MINDSTORMS app. Keep Fiddler open. Make sure AutoResponder is enabled. Start the LEGO MINDSTORMS app again. In Fiddler, confirm the request to: /content/appconfig/appconfig.json is being handled by AutoResponder. Step 8 — Download all available content and updates In the MINDSTORMS app, go through the content/update screens and download everything available. Apply all available updates and download all additional content including community content. The aim is to let the app fully populate its local content cache while Fiddler is still serving the patched appconfig. Keep Fiddler running until all updates and additional content downloads have completed successfully. Step 9 — Put the PC back to normal afterwards Once the content has downloaded successfully, stop Fiddler from modifying traffic. Disable AutoResponder In Fiddler: AutoResponder > untick Enable rules You can also delete the AutoResponder rule. Stop capturing traffic In Fiddler: File > Capture Traffic Untick it. Then close Fiddler. Step 10 — Optional cleanup Delete the temporary config files: Remove-Item "$env:USERPROFILE\Downloads\appconfig-original.json" -Force Remove-Item "$env:USERPROFILE\Downloads\appconfig-patched.json" -Force Summary The workaround is: 1. Capture the localhost appconfig request in Fiddler. 2. Save appconfig.json. 3. Remove the contentstack.aws block. 4. Serve the patched appconfig using Fiddler AutoResponder. 5. Restart the MINDSTORMS app. 6. Apply all updates and download all additional content, including community content. 7. Disable Fiddler and close it afterwards. The key fix is removing this block from the appconfig: "aws": { "accessKeyId": "...", "secretAccessKey": "...", "bucket": "lego-education-atlas-app-content-qa" } Once removed, the app stops generating broken QA S3 download URLs.
  7. I'm investigating a way to fix the download issue for the Windows app but it is tricky. Will see if there is a way to transplant the content files from the Mac OS version to the Windows version if the download feature can't be fixed.
  8. I will make this available somewhere for everyone to access with some basic steps on how to load the app and restore the data. Some additional good news, I've managed to copy the Mac OS version of the app with the additional content and made it so that it can be manually installed and restored with all the downloaded content. Might see if I can do the same for Windows as well.
  9. Just an update, I've managed to copy the all the additional content/downloads off an Android device. I've also managed to restore the downloaded content after installing the app from scratch. Note: This requires the device to be rooted however this should mean that as long as you have an Android device that is Android 7+ or greater and has been rooted, you should be able to install the Lego Mindstorms app and have access to all the additional content without any issues.
  10. I can download content from the app on Android and MacOS. Downloading from the Windows app is still broken for me.
  11. It looks like the Robot Inventor APK is a split-APK. I extracted the APKs from my Pixel phone and was able to successful install the app on a Samsung Galaxy Tab S4 (with Internet turned off on the tablet to make sure it didn't depend on a Lego server). Interestingly I was not able to officially install it on a Samsung Tab S4 when using the Google Play Store but I was able to install it using the APKs and the adb tool. I'm going to check if there is a way to copy the additional downloads (further activities, advanced activities, and community content) so it can be preserved.
  12. I emailed Lego and also used the support form on the website with the following: Got the following response: I'm currently looking into a way to see if I can extract the Android APK (along with content) and install that on another device.
  13. Hi, I will be emailing Lego support with the concerns raised here. Stopping support is fine and understandable but I hope they don't pull the apps as they contain content which isn't available in other formats or means. I was able to download the additional content from the app on Android and Mac OS but not Windows. It would be good to see if we can extract the APK on Android along with the additional content so that it could be reloaded on other devices if needed. It is a shame the additional builds don't have a PDF download option which would have made things a bit easier.
×
×
  • Create New...