-
1Downloading Android
First thing you need to do is to go to the website https://dlupload.com/filedetail/258184573. This file is the os image for Lineage made by Kongstakang. Click the free access button and use the link to download it. Unzip the downloaded file and you will have your os image. Next you will have to download it to your cm4. Download the Raspberry pi imager (https://www.raspberrypi.com/software/), and when it is open click Rasoberry Pi 4 for the device, and for the operating system scroll down until it says custom image. Click the lineage os file you downloaded. Insert you sd card reader with you sd card into your computer. Click the storage button and then click your reader. Click next, and if it asks you for custimization, click no. After a few minutes android should be written on your sd card!
-
2Editing Config File
Go to the file app on the device you are using, and click on the sd card. Go to the file called Config, and open it in notepad. Scroll down until you find the two lines that talk about the volume buttons. Take the # out, which enables the lines. Write down what pins the volume buttons are and save it for later.
-
3Connect CM4
For this step you will be conecting your cm4 to your display. First, aling the cm4 pins with the pins on the nano board. Slowly place them together and pinch until you hear a click. Connect your cm4 and your monitor to power and connect your cm4 and your monitor with the hdmi cable. Put the sd card into the cm4, and turn everything on. Plug you usb extender with your mouse and keyboard attached.
-
4Setting Up Android
After turning everything on, your monitor should boot lineage (It may take a few minutes). If it dosen't, repeat the steps. Follow the steps on your monitor to setup lineage. After you do, it will boot up the android backround. Find the browser icon, and search for google apk download. Find a site with an apk, and download it. After, go to the files app and click the apk you downloaded. This will install it. If it tells you that you cant install from browser, go to settings and allow it. After a few seconds, you should have the google app. Now look up Aurora store apk and then Text Free apk. Repeat the steps to install both these apps. In the end you should have the Google app, Aurora App Store, and Text Free.
-
5Soldering
Using the wires that you bought, solder two wires on each of the pins on the tactile buttons. Grab the note about what pins the volume buttons are, and solder one wire from each tactile button to one of volume buttons to the Raspberry Pi. You should have one soldered on one pin and one from the other button on another pin. Look up a image of Raspberry Pi pinout, and solder the last wire on each of the buttons to one of the ground pins on the cm4. To test if it works, boot up android again and use the buttons. The volume should go up and down, but if it does not then redo your soldering. Now you need to solder the battery circuit. Grab your battery and solder the positive and the negative wires to the B+ and B- slots on the usb c board. Solder one wire from the out- to one pin on the large button. Finally, solder a wire from the left over button slot to ground on the Raspberry Pi then solder the out+ to 5v on the Raspberry Pi. If everything works, when you push the button, the power turns on. If it does not, make sure to charge the battery, and if it still doesn't work redo soldering.
-
6Sound
I need to put the sound in hear. We are not done with that yet. After you are done with the sound, go to settings on the android and make the screen rotate to 270 degrees.
-
73D Printing
Use the files to 3d print the case. I used regular PLA. I will post them in a few weeks.
-
8Assembling
Plug in a glue gun and gather your materials. Put the ribbon cable in the camera, then glue it in place with the cord facing forward, (Not Behind, the camera will be flipped). Glue the two volume buttons on the holes in the side based on if they are volume up or volume down. Put a small ring of glue on the side of the cm4 in the case to secure it. Glue the USB C board to the bottom of the case on the hole, and make sure you can charge it. Glue the battery next to the USB c board and glue the button to the large hole on the top of the case. Glue the speakers on the holes on both of the sides of the case. Plug the audio jack into the cm4, then glue down the 15 to 30 pin converter. Finally, attach the ribbon cable of the screen, and put in the front case.
-
9Final Product!
Now time to test! Turn the PiPhone on by pressing the button on the top, then it will boot up. Put in your passcode and test volume, sound, camera, and all the other functions. You can download any apps you want with the Aurora store, search with the Google app, and text/call with Text Free. If you want to remove adds and upgrade Text Free which I reccomend, you can buy it without adds. I also reccomend making a google account for this and loging into very app with it.
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.