Mac or Linux
-------------------
Open up a terminal and run the following:
$ cd <unzipped maru installer directory>
$ ./adb push -p <gapps filename>.zip /sdcard/
$ ./adb reboot bootloader
$ ./fastboot flash recovery <twrp filename>.img
To get rid of the CD command, you can simply (WINDOWS) navigate to the folder with Maru.zip and twrp.img and press :
"Shift + Right Click --> Open CMD here"
Greets, Christian
Mac or Linux
-------------------
Open up a terminal and run the following:
$ cd <unzipped maru installer directory>
$ ./adb push -p <gapps filename>.zip /sdcard/
$ ./adb reboot bootloader
$ ./fastboot flash recovery <twrp filename>.img
I found I needed to install a Mint package to get adb.
I can not make the push command work. I wonder if "sdcard" refers to an removable card? [...]
---
willie@willie-Lenovo-G580 ~/Desktop/maru $ ./adb push ./open_gapps-arm64-5~ico-20160611-1.zip /sdcard/
cannot stat './open_gapps-arm64-5~ico-20160611-1.zip': No such file or directory
willie@willie-Lenovo-G580 ~/Desktop/maru $
---
willie@willie-Lenovo-G580 ~/Desktop/maru $ ./adb push open_gapps-arm64-5~ico-20160611-1.zip /sdcard/
cannot stat 'open_gapps-arm64-5~ico-20160611-1.zip': No such file or directory
willie@willie-Lenovo-G580 ~/Desktop/maru $
---
The zip file is in the maru subdirectory..
As you might observe, I am a complete newbie in messing with Android software.
Restoring Google Apps
If you would like to restore access to the Play store for your device, you will need to do a little extra work.
We have had success using the TWRP custom recovery to restore Google apps:
1. Download Play apps from a 3rd party packager like Open Gapps and save it in
the same directory you unzipped the Maru installer:
http://opengapps.org/?arch=arm&api=5.1&variant=pico
2. Download TWRP (we have tested v2.8.7.1 and v3.0.0.0) and save it in the same directory you
unzipped the Maru installer:
https://dl.twrp.me/hammerhead
3. Connect your device to your computer, enable USB Debugging, and follow the instructions below depending on your platform.
(Make sure to substitute the correct name of the file you downloaded for anything in brackets)
Mac or Linux
-------------------
Open up a terminal and run the following:
Feel free to suggest corrections, alternative installation methods, etc. below.
In Spanish: How Install Google Apps on Maru OS
Restoring Google Apps
If you would like to restore access to the Play store for your device, you will need to do a little extra work.
We have had success using the TWRP custom recovery to restore Google apps:
1. Download Play apps from a 3rd party packager like Open Gapps and save it in
the same directory you unzipped the Maru installer:
http://opengapps.org/?arch=arm&api=5.1&variant=pico
2. Download TWRP (we have tested v2.8.7.1 and v3.0.0.0) and save it in the same directory you
unzipped the Maru installer:
https://dl.twrp.me/hammerhead
3. Connect your device to your computer, enable USB Debugging, and follow the instructions below depending on your platform.
(Make sure to substitute the correct name of the file you downloaded for anything in brackets)
Mac or Linux
-------------------
Open up a terminal and run the following:
Feel free to suggest corrections, alternative installation methods, etc. below.
Blauer Hunger
Restoring Google Apps
If you would like to restore access to the Play store for your device, you will need to do a little extra work.
We have had success using the TWRP custom recovery to restore Google apps:
1. Download Play apps from a 3rd party packager like Open Gapps and save it in
the same directory you unzipped the Maru installer:
http://opengapps.org/?arch=arm&api=5.1&variant=pico
2. Download TWRP (we have tested v2.8.7.1 and v3.0.0.0) and save it in the same directory you
unzipped the Maru installer:
https://dl.twrp.me/hammerhead
3. Connect your device to your computer, enable USB Debugging, and follow the instructions below depending on your platform.
NOTE: The following instructions assume you have downloaded the installer zip, which contain adb and fastboot tools.
If you are using the update zip, you will need to obtain your own versions of adb and fastboot.
(Make sure to substitute the correct name of the file you downloaded for anything in brackets)
Mac or Linux
-------------------
Open up a terminal and run the following:
Restoring Google Apps
If you would like to restore access to the Play store for your device, you will need to do a little extra work.
We have had success using the TWRP custom recovery to restore Google apps:
1. Download Play apps from a 3rd party packager like Open Gapps and save it in
the same directory you unzipped the Maru installer:
Maru OS v0.2.4 and below:
http://opengapps.org/?arch=arm&api=5.1&variant=pico
Maru OS v0.3 and above:
http://opengapps.org/?arch=arm&api=6.0&variant=pico
2. Download TWRP (we have tested v2.8.7.1 and v3.0.0.0) and save it in the same directory you
unzipped the Maru installer:
https://dl.twrp.me/hammerhead
Mac or Linux
-------------------
Open up a terminal and run the following:
Tip: you may need to run the fastboot command as root if it hangs at < waiting for any device >
$ cd <unzipped maru installer directory>
$ ./adb push -p <gapps filename>.zip /sdcard/
$ ./adb reboot bootloader
$ ./fastboot flash recovery <twrp filename>.img
Hi Preetam,
I successfully loaded the Google Apps via Linux as per your instructions (using the vendor websites md5 verified versions of maru-v0.3-installer-hammerhead-linux-64fe8f83.zip, twrp-3.0.3-0-hammerhead.img and open_gapps-arm-6.0-pico-20170131.zip) ...
... however the first app I load and ran out of the playstore was the VirusTotal app by VirusTotal (aka Google/ABC) and it identified that 3 of the installed gapps as potentially containing malware. The apps in question were "Contacts Storage", "Shell", and "Email".
I wrote the following post under the “New Maru OS User” posts, but I deleted it from there and posted it here as this ”Restoring Google Apps” post is far more relevant. “Hi again, I have replaced Maru v0.3 with Maru v0.4 on my Nexus 5 following Preetam's installation guide at https://github.com/maruos/maruos/wiki/Installation-Guide and using maru-v0.4-installer-hammerhead-windows-0db8cdcb.zip. It worked well, except that Google Play Store is no longer visible. I saw your note somewhere about "Play store will freak out and disappear" and "just go ahead and flash the gapps again". I can't find a Gapps file to flash, so could someone kindly explain how this is done? Regards Alan”.
Since then, I have found this post and tried to follow the instructions provided by Preetam to restore Google Play Store, but was unable to complete the steps from step 3 onward. However, the following approach (based upon the instructions and a bit of guesswork) worked for me: I went to http://opengapps.org and downloaded the pico version of Open G Apps onto the Nexus 5 phone. I then used Marius Quabeck’s magic-device-tool via my Linux PC to install (or maybe repair) TWRP onto the phone. I was then able to boot into recovery and install Gapps using the downloaded file. I now have v0.4 of Maru with Google Play Store back! Hopefully this may help others. Perhaps the instructions could be modified to make it easier for new users to get up and running with Maru and experience its amazing abilities.
Restoring Google Apps
If you would like to restore access to the Play store for your device, you will need to do a little extra work.
We have had success using the TWRP custom recovery to restore Google apps:
1. Download Play apps from a 3rd party packager like Open Gapps and save it in
the same directory you unzipped the Maru installer:
Maru OS v0.2.4 and below:
http://opengapps.org/?arch=arm&api=5.1&variant=pico
Maru OS v0.3 and above:
http://opengapps.org/?arch=arm&api=6.0&variant=pico
2. Download TWRP for your device and save it in the same directory you
unzipped the Maru installer:
https://twrp.me/Devices
3. Connect your device to your computer, enable USB Debugging, and follow the instructions below depending on your platform.
NOTE: The following instructions assume you have downloaded the installer zip, which contain adb and fastboot tools.
If you are using the update zip, you will need to obtain your own versions of adb and fastboot.
(Make sure to substitute the correct name of the file you downloaded for anything in brackets)
Mac or Linux
-------------------
Open up a terminal and run the following:
Tip: you may need to run the fastboot command as root if it hangs at < waiting for any device >
$ cd <unzipped maru installer directory>
$ ./adb push -p <gapps filename>.zip /sdcard/
$ ./adb reboot bootloader
$ ./fastboot flash recovery <twrp filename>.img
Windows
-------------
Open up Command Prompt and run the following:
$ cd <unzipped maru installer directory>
Edit 2017-03-30: Update TWRP link to device search page since we now support more devices
Hi Preetam, thanks for the reply. I can’t recall the reasons I got stuck, but I will try the procedure again soon and let you know the outcome. I would like to reinstall Maru OS v0.4 when I have finished experimenting with Lineage OS, which I intend to install next week using Marius Quabeck’s magic-device-tool (mdt). I emailed Marius recently and he told me that he is planning to update Maru OS to the latest version in mdt soon. Do you have much contact with Marius? In the meantime, I checked my downloads folder, and can confirm that I used the Linux version of the zip installer in my Linux PC. Sorry for the error, but I copied and pasted the wrong link in my earlier post. Regards Alan.
I have reinstalled Maru OS v0.4 and repeated the steps in the Restoring Google Apps Guide at https://groups.google.com/forum/#!topic/maru-os/S8PUEqq with the following results:
Step 1 (http://opengapps.org/?arch=arm&api=6.0&variant=pico) worked fine.
Step 2 (https://twrp.me/Devices) worked fine.
Step 3 (from Connect your device to your computer, enable USB Debugging through to ./adb reboot bootloader) worked fine, and I could confirm that the “opengapps zip” file above had been successfully pushed to the internal storage of the Nexus 5.
Step 3 (./fastboot flash recovery <twrp filename>.img) did not work for me. The image I had previously downloaded from https://twrp.me/devices/lgnexus5.html had an apk extension not an img extension. Changing it to twrp.img did not work. The Primary (Europe) website was down and I was unable to try other images. Just in case, I tried the first two images from Primary (Americas) (twrp-3.1.0-0 and twrp-3.0.3-0-hammerhead.img) but they did not work.
I resolved the issue by using Marius Quabeck’s magic-device-tool (mdt) to install TWRP (shown on the phone as version 3.0.3-0), following which I could boot into Recovery and install Google Apps following steps 4 to 8 of your guide.
Prior to the above installation, I had experimented with Lineage OS, Maru OS v 0.4 via mdt and Stock Android; here are my comments on the quality of the installation instructions:
1. Lineage OS via Lineage OS website: good instructions, straightforward to install
2. Maru OS v0.4 via magic-device-tool: good instructions, very easy to install
3. Stock Android OS via https://developers.google.com/android/images: OK instructions, straightforward to reinstall (although the build number I selected required several updates)
4. Maru OS v0.4 via Maru OS website at https://github.com/maruos/maruos/wiki/Installation-Guide: poor instructions, needed trial and error and additional knowledge to install
5. Google Apps via Maru OS Guide: good instructions, but step 3 did not work (as above).
In summary, there appears to be problems relating to TWRP images which prevent the installation of Google Apps using the Maru OS Guide.
In addition, I think it would be beneficial and encourage new users if the Maru OS website provided clear, comprehensive and unambiguous instructions (including any prerequisites) for obtaining and installing Maru OS, along the lines of those provided by Lineage OS, Marius Quabeck mdt, Google Developers and others.
The instructions at https://github.com/maruos/maruos/wiki/Installation-Guide for “Easy installers” consist of only two steps i.e. download installer zip (in my case maru-v0.4-installer-hammerhead-linux-6b1b3aeb.zip) and install (“Open a terminal, cd to the unzipped installer, and run the install.sh script with: $ ./install.sh”).
In the “Easy installers” section, you could perhaps explain that you need to download the installer zip to a computer, extract it somewhere (I extracted in the Downloads directory), connect the device to the computer via a USB cable, navigate to the installer zip (providing an example of how this can be done*), and mention any prerequisites that are or are not handled by the installer. *In my case, it was /home/alanupson/Downloads/maru-v0.4-installer-hammerhead-linux-6b1b3aeb/install.sh.
While the above may be obvious to persons having a good working knowledge of Linux, there are plenty of persons that would benefit from having better instructions. As well as the examples of good instructions I mentioned in my previous post, the Maru OS “Maru OS [Guide] Restoring Google Apps” instructions are also a good example of the level of detail that I think should be provided.
When the “cd to the unzipped installer” part is properly completed, the ./install.sh command works fine and brings up the “Welcome to the Maru installer” instructions which are also fine.
THIS GUIDE HAS BEEN DEPRECATED. PLEASE SEE THE NEW GUIDE HERE.
Edit 2019-03-06: Add deprecation notice and link to new guide