• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root Building CM 10.1 (JB 4.22) from source for Motion

hroark13

Android Expert
Recognized Developer
I have created a CyanogenMod tree for Cm 10.1 (JB 4.22)

It is not done, and I am not sure if I will have the time to finish it, that is why I am posting this tutorial for yall, so that others can join in and help.

I would like to give a special thanks to my friend Dm47021 for helping me and letting me use his video/media drivers that he worked so hard on.

I also used a lot of Bobz's files, and will be using PlayfulGod's MMS file in the near future.

Please remember that this all started (CM10.x/CWM) by me finding and using the stuff that 985hPaKicK made, so we owe him a big thanks

The status of this tree and the ROM it creates, is basically it builds and it boots

The sound drivers and other things need to be fixed, but a lot of things are working too, like WiFi, and RIL and such, but this needs a lot of work, too much for me to do by myself, I am hoping that Bobz and PlayfulGod will want to collaborate with me on this, and we can work together to produce something good.

To build this ROM you need a Linux computer that has been setup as an Android Build computer, I will not cover that in this thread, there are a lot of tutorials out there for that.

OK so lets begin

Open your terminal and type these commands

mkdir CM10.1
cd CM10.1
repo init -u git://github.com/CyanogenMod/android.git -b cm-10.1
repo sync -j32

(^^repo sync will take a while because it is downloading the CyanogenMod source code)

vendor/cm/get-prebuilts
git clone https://github.com/hroark13/device_lge_l0.git -b cm10.1_Osiris device/lge/l0
git clone https://github.com/hroark13/hardware_qcom_media-legacy.git -b master hardware/qcom/media-legacy
git clone https://github.com/hroark13/hardware_qcom_display-legacy.git -b master hardware/qcom/display-legacy

tar -zcvf hardware/qcom/camera.tar.gz hardware/qcom/camera
rm -R hardware/qcom/camera

(^^we have to backup and remove the camera folder for now since it causes build errors)



make clobber
. build/envsetup.sh && brunch l0


it should now build the ROM, when it is done it will be in cm10.1/out/target/product/l0 folder

you should find some thing like this in there


http://hroark13.waywardpilgrim.net/cm-10.1-20130505-UNOFFICIAL-l0-v2.zip

That can be flashed with 2nd init recovery, make sure you factory wipe after install

The ROM in the above link is not intended for usage, only for testing and furthering development


1236337527_tiger_attack.gif




hK

If I have helped you, and you like my work, please click on the Thanks Button and give my thread a rating by clicking on the stars above.

If you would like to buy me a beer, you can click on the PayPal button

 
You just got me hyped ;)
Thank you so much.
I'm so thankful because I know you don't have to do this.
You don't need this on your phone. You could easily get another one that is easier to build from than this phone.
And I'm thankful that you chose to help us here by now giving us this.
 
You just got me hyped ;)
Thank you so much.
I'm so thankful because I know you don't have to do this.
You don't need this on your phone. You could easily get another one that is easier to build from than this phone.
And I'm thankful that you chose to help us here by now giving us this.


Actually my Motion is my spare phone, I have an S3

I had some free time this weekend, so I dived in, but I will be getting busy with work stuff soon again. so I wanted to shared I had.

I spent a lot of time on this new tree, so I hope it ends up making a good ROM when we are done.
 
Actually my Motion is my spare phone, I have an S3

I had some free time this weekend, so I dived in, but I will be getting busy with work stuff soon again. so I wanted to shared I had.

I spent a lot of time on this new tree, so I hope it ends up making a good ROM when we are done.

I would hope so too :]
And If BobZ and PG decide to help.
I know it will ;)
 
ill help some more, no problem. anyone have an extra motion they can donate or sell for cheap for dev purposes?
 
Was gonna test it out.
Forgot to Factory Wipe. = Security Error.
Unbrick method.
Here I come! :p


the reason you got the security error, was because the install script flashed the boot.img that the build created, and since the boot.img is not signed you get the security error

I am uploading a new one now that does not have this issues

also in my tree I put a releasetools folder so that it uses the install script that I want instead of generating one, so anyone who does a build wont have this issue

I am sorry for uploading the wrong ROM, but I must have did like 6 builds today, and they all had the same name, and I must have uploaded one that was built before I had releasetools working correctly
 
Excellent work...thank you!


hi Bob

I mainly worked off of your jellybean branch, took some stuff from your cm10.1 branch, and then added a bunch of stuff

the media/video from Dm47021 was a big help, but introduced a camera issue, i think we need a camera hal

i may have went backwards on some of the stuff, one thing i can think of is the wrong apn file is in there now

i made some chages to the cm10.tar to get it to boot, but I do not think it has your fix that gets the phone starting again after first boot / reboot issue
 
booted right up. nice
sweet it's auto updating my apps and theme from bobz cm10 and somehow it had my own wallpaper from a picture i took outside my house already installed at boot
 
Bob

another interesting thing, i flashed the Motion version B ril files and they seemed to work somewhat

please no one ask how i got them

but I think it will probably work with C,D,E and F version ril files as well

it is currently using the su640 RIL files becuase 4G was working like it did in your rom (i think)
 
:dancing2: booted right up. nice
sweet it's auto updating my apps and theme from bobz cm10 and somehow it had my own wallpaper from a picture i took outside my house already installed at boot


did you factory wipe ?

factory wiping is important if you coming from a stock ROM, but if you are coming from CM10, I guess it is OK not too

also you should notice there is a new recovery


reboot into recovery by rebooting the phone, and then spamming the vol up and vol down key while on the red LG logo
 
did you factory wipe ?

factory wiping is important if you coming from a stock ROM, but if you are coming from CM10, I guess it is OK

also you should notice there is a new recovery


reboot into recovery by rebooting the phone, and then spamming the vol up and vol down key while on the red LG logo

yes i factory wiped and i came from factory because i tried the first one you posted and soft bricked
oh also i flashed gapps for cm10.1 in recovery before booting
edit:so far i haven't gotten a theme to work "unknown error code during application" and even though it said in status bar that it was updating my apps they are nowhere to be found. but still it's awesome!! think i flashed the wrong gapps :(
 
did you factory wipe ?

factory wiping is important if you coming from a stock ROM, but if you are coming from CM10, I guess it is OK

also you should notice there is a new recovery


reboot into recovery by rebooting the phone, and then spamming the vol up and vol down key while on the red LG logo

I wiped system because I confused it for factory reset...
Unbrick method! Here I come again! :rolleyes:
 
yes i factory wiped and i came from factory because i tried the first one you posted and soft bricked
oh also i flashed gapps for cm10.1 in recovery before booting
edit:so far i haven't gotten a theme to work "unknown error code during application" and even though it said in status bar that it was updating my apps they are nowhere to be found. but still it's awesome!! think i flashed the wrong gapps :(


this would be the right gapps

Goo.im Downloads - Downloading gapps-jb-20130301-signed.zip
 
Heyyy.
I kinda can't restore my backup in the current recovery..
Is there a specific way to do it?
Or would I go to the unbrick method once again? :p
 
Back
Top Bottom