So for fun I decided to try to build CyanogenMod (Vision) on my Mac w/Snow Leopard 10.6.5. (VMs? Who uses VMs?)
After some trial, error, and improvisation... it actually worked. A fresh, piping-hot CM 6.1 RC1 update.zip built right on my Macbook Pro. And it even installed and ran on my phone. Holy crap.
Too fun to keep to myself. So I decided to write up what I did, and the result was this guide that takes you through the steps of pulling, building, and installing your own version of CM for the T-Mobile G2 from source.
Obviously don't even consider doing this without permaroot, a g2, a nandroid backup of everything, and the willingness to fail a couple times.
Cheers.
Build CyanogenMod for Vision (Mac Edition)
Build CyanogenMod for Nexus One (Mac Edition)
Update: The instructions are confirmed! A 2nd person (rhcp) has gotten this to work, so I'm thinking the instructions are decent.
Another Update: Nexus One version available too.
I run a 2007 white macbook with intel processor. will give it a try
daveyboi said:
I run a 2007 white macbook with intel processor. will give it a try
Click to expand...
Click to collapse
Cool. One of the issues is that I had a bunch of stuff installed w/mac ports before I even started the build-- I don't know which of them might have been necessary but I didn't explicitly need to add because they weren't missing. So if you discover "oh, it's not building because xyz is missing", just add it to the list of required port packages.
The libX stuff came about in just that manner. The person who was testing for me had broken builds until he installed that. I'd already added it previously so I didn't experience the issue.
I think it's pretty awesome you wrote this up. All hobbyists should be willing to give this a try, IMO.
btw. the link on the wiki for macports,org comes up as a .com
daveyboi said:
btw. the link on the wiki for macports,org comes up as a .com
Click to expand...
Click to collapse
Fixed. Thx.
BTW-- one cool thing about building it yourself is you don't have to worry about gapps. All the Google Apps and even the T-Mobile Wifi Calling app transfers to your new ROM.
Success!
So I heard back from rhcp. The walkthrough worked to the end. He now has a full build and was able to get it on his phone.
If anyone is interested in trying this for a phone other than the vision, I might be able to port the instructions over for something else... shouldn't be too hard.
can someone write a guide or point me to a guide for win xp 64
sundar2012 said:
can someone write a guide or point me to a guide for win xp 64
Click to expand...
Click to collapse
Mac OS is Unixy enough to pull this off. It would be very difficult to do this directly under Windows--even building the ARM toolchain would be nontrivial.
If you are a Windows user, I recommend installing VirtualBox with an Ubuntu image and following the standard Android build process.
Templated it...
I made this a template so now things like the Nexus One build instructions are easy:
http://wiki.cyanogenmod.com/index.php?title=Compile_CyanogenMod_for_Passion_(Mac)
Yeps works great. Thanks bro. Been trying to do this since day 1
Sent from my T-Mobile G2 using XDA App
MODS,
Can this be sticky? I think it should be put other places too.
This is the first how-to to get a full building env setup on a Mac!
Glad it worked for ya. I have to apologize if the page kept ****ing up, but some jackwad interested individual kept moving everything around on the wiki and reformatting because he thinks it's more "aesthetic"... I think it makes it way harder to understand.
After a lot of back and forth and arguing, the page was frozen "the good way" for a week. But I'm worried that this penis interested person will mess with it as soon as he gets a chance.
And as i type this, RC1 is officially here!
Update: Hopefully the layout controversy has been resolved.
I ran into an error- any help?
No CM in the target directory???!!!
Code:
make: *** No rule to make target `vendor/htc/vision/proprietary/libganril.so', needed by `out/target/product/vision/system/lib/libganril.so'. Stop.
make: *** Waiting for unfinished jobs....
Notice file: device/htc/vision/libsensors/NOTICE -- out/target/product/vision/obj/NOTICE_FILES/src//system/lib/hw/sensors.vision.so.txt
here is the line in extract-files.sh that pulls it. I checked my phone, and I no gots!
Code:
adb pull /system/lib/libganril.so ../../../vendor/htc/$DEVICE/proprietary
and this is the output from extract-files.sh. I saw that there were a few other files that did not exist.
Code:
remote object '/system/app/MS-HTCVISION-KNT20-02.apk' does not exist
994 KB/s (42512 bytes in 0.041s)
1483 KB/s (34948 bytes in 0.023s)
855 KB/s (9700 bytes in 0.011s)
1386 KB/s (13884 bytes in 0.009s)
1376 KB/s (13900 bytes in 0.009s)
1567 KB/s (62636 bytes in 0.039s)
1778 KB/s (76168 bytes in 0.041s)
1267 KB/s (11490 bytes in 0.008s)
1653 KB/s (31858 bytes in 0.018s)
1304 KB/s (31858 bytes in 0.023s)
127 KB/s (513 bytes in 0.003s)
58 KB/s (288 bytes in 0.004s)
37 KB/s (186 bytes in 0.004s)
127 KB/s (499 bytes in 0.003s)
91 KB/s (459 bytes in 0.004s)
1445 KB/s (32768 bytes in 0.022s)
1337 KB/s (27340 bytes in 0.019s)
1657 KB/s (79784 bytes in 0.046s)
1853 KB/s (166956 bytes in 0.087s)
1924 KB/s (1866396 bytes in 0.947s)
1890 KB/s (210620 bytes in 0.108s)
1465 KB/s (17788 bytes in 0.011s)
1258 KB/s (13976 bytes in 0.010s)
1673 KB/s (81028 bytes in 0.047s)
1167 KB/s (9260 bytes in 0.007s)
576 KB/s (9268 bytes in 0.015s)
1672 KB/s (89372 bytes in 0.052s)
remote object '/system/lib/libganril.so' does not exist
1279 KB/s (18116 bytes in 0.013s)
1574 KB/s (38464 bytes in 0.023s)
1306 KB/s (13492 bytes in 0.010s)
994 KB/s (9300 bytes in 0.009s)
1937 KB/s (495580 bytes in 0.249s)
remote object '/system/lib/libkineto.so' does not exist
1597 KB/s (25900 bytes in 0.015s)
1343 KB/s (25972 bytes in 0.018s)
1875 KB/s (580140 bytes in 0.302s)
1760 KB/s (184640 bytes in 0.102s)
1226 KB/s (14540 bytes in 0.011s)
1830 KB/s (522216 bytes in 0.278s)
1383 KB/s (13928 bytes in 0.009s)
1634 KB/s (61308 bytes in 0.036s)
1557 KB/s (69704 bytes in 0.043s)
1750 KB/s (292888 bytes in 0.163s)
1933 KB/s (981868 bytes in 0.496s)
909 KB/s (5424 bytes in 0.005s)
remote object '/system/lib/librilswitch.so' does not exist
My G2 is unrooted and does not have the OTA updates installed, if that makes a difference. I followed the directions to a T, except I used a slightly different name for the sparseimage and had two beers while the source was downloading. My Mac also had a few of the requisite files installed already from other projects.
Thanks for taking the time to make the wiki!
This reference to "MS-HTCVISION-KNT20-02.apk" looks like a problem the missing OTA. I think that's the wifi-calling app, and I know Cyanogen added support to transfer the wifi-calling stuff over to CM 6.1.
So maybe try installing the OTA and then see if the files transfer. If it works, I'll add a note to the build instructions.
gee one said:
I ran into an error- any help?
and this is the output from extract-files.sh. I saw that there were a few other files that did not exist.
Code:
remote object '/system/app/MS-HTCVISION-KNT20-02.apk' does not exist
My G2 is unrooted and does not have the OTA updates installed, if that makes a difference.
Click to expand...
Click to collapse
fattire said:
This reference to "MS-HTCVISION-KNT20-02.apk" looks like a problem the missing OTA. I think that's the wifi-calling app, and I know Cyanogen added support to transfer the wifi-calling stuff over to CM 6.1.
So maybe try installing the OTA and then see if the files transfer. If it works, I'll add a note to the build instructions.
Click to expand...
Click to collapse
OK- it looks like I'll need another beer...
I flashed the OTA and confirmed that the missing files are now where they are suppose to be. Compiling takes almost as long as downloading the source, but now the homecooked CM-6.1.0-RC1-vision is hot and fresh!
I got my G2 on Monday and I didn't even know what a hacker was. Now, thanks to fattire, xda-developers, and CyanogenMod, now I is one!
I can't wait to cook me up some Donut rom for the G2!
gee one said:
I got my G2 on Monday and I didn't even know what a hacker was. Now, thanks to fattire, xda-developers, and CyanogenMod, now I is one!
Click to expand...
Click to collapse
Dude, you just made my day
I see that Cyanogen is requiring less and less from your phone with every new commit...
Gonna rebuild my stuff too right now. Can't wait for the new scheduler. Dunno if it will be better than brainfuck, but it's getting good reviews anyway.
BUMP.
Can a mod please stickie this? Thanks!
fattire said:
So for fun I decided to try to build CyanogenMod (Vision) on my Mac w/Snow Leopard 10.6.5. (VMs? Who uses VMs?)
After some trial, error, and improvisation... it actually worked. A fresh, piping-hot CM 6.1 RC1 update.zip built right on my Macbook Pro. And it even installed and ran on my phone. Holy crap.
Too fun to keep to myself. So I decided to write up what I did, and the result was this guide that takes you through the steps of pulling, building, and installing your own version of CM for the T-Mobile G2 from source.
Obviously don't even consider doing this without permaroot, a g2, a nandroid backup of everything, and the willingness to fail a couple times.
Cheers.
Build CyanogenMod for Vision (Mac Edition)
Build CyanogenMod for Nexus One (Mac Edition)
Update: The instructions are confirmed! A 2nd person (rhcp) has gotten this to work, so I'm thinking the instructions are decent.
Another Update: Nexus One version available too.
Click to expand...
Click to collapse
I'm finally running some homebrewed CM on my G2. At first, I had a few problems with force closing and bootloops. Apparently, I had a bad SD card. As soon as I switched to the stock one, CM6.1 started running straight and stable.
Awesome! That makes 4 known successes. I'd like to see if it works on N1. Having someone try it.
Hello
I have a problem with the DarkyRom Tool app on me Galaxy S, I installed it from the Android Market succesfully but. When I try to start the app it says
"Runtime error
Location: [20,0] file:///android_asset(Resources/function.js
Message: TypeError: Cannot read property "nattivepath" from null (file///android_asset/Resources/functions.js#20"
Someone have any good idea or something what it can be ?
MvH Atyne
www.darkyrom.com
There you can live chat with devs if you are registered.
Redownload it make sure its the one made by ficeto
hi there !
i've sideloaded some of the android apps but they didnt work ! they just open and wont respond to my touches at all , its just like im opening a picture
it doesnt respond at all !
lumia 820 windows 10 mobile 10512 rm 825 CV
anyone please help !
yahia123 said:
hi there !
i've sideloaded some of the android apps but they didnt work ! they just open and wont respond to my touches at all , its just like im opening a picture
it doesnt respond at all !
lumia 820 windows 10 mobile 10512 rm 825 CV
anyone please help !
Click to expand...
Click to collapse
Same problem here with Lumia 730...
Did you make hard reset after updating to latest build?
Yes I did , it didn't use to work on 166 too even after doing a hard reset