Skip to content

A step-by-step guide on how to install LineageOS with Android 7 onto an old Samsung Galaxy SIII Mini.

License

Notifications You must be signed in to change notification settings

gluckgluckwasserbauch/galaxy-s3mini-secondlife

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

General information/ FAQ/ Disclaimers:

Why?

I had an old Galaxy S III mini lying around in my drawer and didn't want to throw it away, since it's in good condition.
Even though this device is now over 10 years old, and we have phones more powerful than a dozen of SIII minis today in 2024, it is still useful.
... At least more useful than on a landfill! 😄

I wanted to breathe a second life into this antiquity. While I tried to do this, I noticed, most guides are super scattered on many forums and outdated, and they provided conflicting packages.
With this repo and guide, you can replicate my process quickly and don't have to do the same annoying work as I do.

You can use old Android phones for example as:

  • Raspberry Pi alternative
  • As Nextcloud server (see here
  • For Octoprint Octo4a, see here
  • As remote shutter for digital cameras This for example
  • Surveillance device at home
  • ... and much more!

Security + risks

Using the stock OS on the phone is bad. Why?

  • It never recieved any significant updates in this last decade, and therefore, there might be many (many!) potential security issues that never got fixed.
  • The missing maintenence isn't the only issue. The stock OS is also bloated as hell, which increases the attack surface by a lot!

Now, after installing the new ROM, I'm totally secure and can use it as my daily driver... right???

NO! The "new" OS is still old. Not over a decade old, but old. The last update was 2017, so even that was ~6 years ago. The custom install should mainly be there to debloat the system and remove many proprietary system apps. The newer Android version is only the cherry on top. Don't use this phone as daily driver with personal data on it.

Risks

The procedure of flashing the custom Android distribution is risky. You might brick your device if not careful. While the loss wouldn't be big, I am not responsible for any damage for anyone following this guide. This guide only applies to the Samsung Galaxy SIII mini (GT-I8190).


Procedure

Step 0: Precautions

  • Back up any personal data. Old phones are a gem in retrieving old memories! :)
  • Get a micro-SD-card + USB-reader for it.
  • Charge the phone fully. The process will take longer than you think, the battery is aged and that will drain lots of juice. My battery was in good condition, and still I had only 40% battery left when finishing.

Step 1: Flashing TWRP

TWRP replaces the pre-installed recovery mode from Samsung with this custom one. It allows you to install other distros (+ much more!), including LineageOS.

Install Heimdall:

Heimdall is a FOSS-alternative to Odin, a firmware tool developed by Samsung, which is closed source and Windows only. Using this alternative gives you the good conscience that there won't be any weird hidden things, and it will be installable on Linux/ MacOS too.

Installation on Linux:

  • Since I use Fedora Silverblue (image based system), I needed to work in containers. Therefore, I've used my Arch-container in Distrobox. If you use a traditional (mutable) distro, like Mint or Fedora Workstation, you can choose to install it on your host directly. If you use Mac or Windows, read the documentation of Heimdall in the link above.
  • Install the packages: You'll need both heimdall and android-tools. They might have a different name on your distro, but basically, you want Heimdall and ADB. If there's an error with "qt5-framework missing"-blablabla, install that too.

Flash

  • Enable USB-debugging. You can find it under developer options and it allows you to modify the phone via your PC.
  • Connect your device and check the connection via ´adb devices´ in your terminal. The phone should be listed with its' ID.
  • Plug in your phone and type adb reboot download. This will put the phone into the download-mode. If the phone is off, you can also press POWER + HOME + VOL-UP instead. If there's a warning message, accept it PXL_20240118_132235138 PXL_20240118_132402265
  • Now, start Heimdall via heimdall-frontend. Don't use sudo. Many other guides say you should, but it will result in an error message.
  • Now, go into the "Utilities" tab and click "Detect". Screenshot_20240118_151119
  • Prepare the PIT by clicking "Save as..." and downloading it.
  • Next, disconnect the phone by pulling the cable. Sounds weird, but if you don't, there will be error messages. Thanks to Pemill, see comment here.
  • Prepare the flashing while the device isn't connected. For that, switch to the "Flash"-tab and
    • Select the .pit from before.
    • Click "Add" for adding a new layout. Defaults to MBR, which we don't want.
    • On the dropdown, select "Kernel2", which is the bootloader
    • And then, select the recovery file. This is the TWRP.img Screenshot_20240118_154427
    • Finally, you can start flashing. This will take about 30 seconds.

If you go into the recovery menu next time, either by ´adb reboot recovery´ or ´POWER BUTTON + HOME + VOL-UP´, you will boot into the new recovery mode! PXL_20240119_075050279

Step 2: Flashing LineageOS

Get the files

Some of them are attached to this repo, some of them are too big for upload. Links: - LOS: here - OpenGApps Pico: here You can also download other variants of the GApps here, but I would recommend sticking to the minimalist one.

Download and copy them to the SD-card. These are the ones I used, and they work.
Just copy the lineage.zip and GApps-pico.zip with the SD-adapter plugged in your PC.

Boot into recovery (TWRP)

Do this either by adb reboot recovery (if the phone is on) or POWER BUTTON + HOME + VOL-UP if off.

Install LineageOS and the GApps

Tap "Install" and select the copied Lineage-ROM and GApps-Zip. Confirm and wait. Don't worry, the phone is old and wants to take its' time! :) That will take about ~10 minutes PXL_20240119_075050279 PXL_20240119_075157143 PXL_20240119_075207791 MP PXL_20240119_075912093

Wipe cache

Every guide I watched said I should, so just do it. It will probably prevent some errors, idk... PXL_20240119_075105325

Reboot

Almost done! PXL_20240119_075942777 The LineageOS-logo should now appear. PXL_20240119_080007340 This will take a long time, so don't worry. Your device probably isn't bricked. The first boot will just take ~10 - 15 minutes. (If it takes significantly longer, you're fucked. Sorry.)

By now, it should be booted completely. PXL_20240119_080927618 MP Aaaaand, you're done! Now, just set up the phone the first time, just like you would another device. PXL_20240119_081613396


I hope this guide did help you!


Credits/ sources/ further ressources:

About

A step-by-step guide on how to install LineageOS with Android 7 onto an old Samsung Galaxy SIII Mini.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published