yashsingh1/xdaforums huggingface dataset:
[Android] nitin.chobhe:
Did you read the OP? It is about setting the build environment and not about build errors (there are many threads for that).

Did you see anyone posting about build errors in the thread?

Nitin
[Android] w1ll1m:
I see where i was mistaken.

The thread title was how to build a rom with google cloud, not how to set up a build environment.

Next time perhaps you should name your thread correctly.
[Android] nitin.chobhe:
Thank you sir...!

Nitin
[Android] Bryanx86:
So it's not possible to emulate a build environment on the cloud for free with a SSD?
[Android] Mr.Ak:
[MENTION=5044214]nitin.chobhe[/MENTION] ,you should update the OP,1 USD will get reversed back in case of both debit and credit card.Moreover,the trial is free for a year now,not just 60 days.Credits will expire early though.
[Android] Lynjun002:
how do you guys compile a custom rom from a source code of my device? because i have the full rom source code but i dont know how to get source tree from it.
[Android] nitin.chobhe:
You need to read and search a lot. At least you should read the thread linked in OP.

Nitin
[Android] Lynjun002:
Ive done research but cant find anything .... Also if i have 64bit chip my kernel is also 64bit?if i compile my kernel should i get the config in arch/arm64 or in arch/arm ?
[Android] nitin.chobhe:
As I mentioned in my last post, even if you read the thread that I linked in OP, you'll understand how the ROM Source, device related trees are being used (and from where and how they be obtained) while compiling the ROM. If you do research then you will understand hell lot of things other than the ones that I mentioned.

Anyways, that's not the topic of this thread. I would advise you to post your questions in the right thread. This thread is for HOW to use GCE for building the ROM.

Nitin
[Android] Lynjun002:
Ok so can i connect my device to cloud using adb? I cant seem to make it work
[Android] nitin.chobhe:
Man, what are you talking? Why do you need to connect your device to cloud? :confused:

Nitin
[Android] Lynjun002:
Because to extract propietraty files needed for the source tree i read that we have tp run a .sh file with phone connected to adb so the script will extract needed files from phone
[Android] nitin.chobhe:
You can do that on your PC and then upload it to github. What's the problem in doing that?

Nitin
[Android] Michael24884:
He would I be able to extract files using ADB while using Google cloud?
[Android] nitin.chobhe:
When you connect your phone to PC, you can use adb and extract whatever you want from the device. It doesn't matter if you are using Google could or not...

Nitin
[Android] nitin.chobhe:
Updated the thread with some new information like trial validity, debit card, reversal of charge etc

Nitin
[Android] Michael24884:
How do I quit from Google Cloud? Including removing my card and server
[Android] nitin.chobhe:
As far as I know, card details are not stored on GCE; so no question about removing them.

After trial period it will be expired automatically after some duration. You need not to do anything.

Nitin
[Android] va6996:
Hi! Thanks for the guide. I set up the build system. However, if I close my ssh terminal, the build job also stops. How do I keep it running? My connection is very unstable and I am unable to stay connected. Thanks!
[Android] TimSchumi:
Install tmux and run your builds inside tmux. If your connection drops, you can simply run "tmux attach" and continue working.
[Android] biosokx:
I can't get adb and fastboot to regonize my devices when using the vm
[Android] nitin.chobhe:
Is your device connected to VM?

Nitin
[Android] biosokx:
My device is connected to my PC but the adb in the Google cloud vm is not showing my device
[Android] biosokx:
Plz help
[Android] nitin.chobhe:
Your PC and cloud VM are 2 different machines. So if you connect your phone to one PC, you can not expect it to be shown in another. Do you?

Nitin
[Android] biosokx:
Okay thanks
[Android] Sparker0i:
Okay, so in a new instance, I did another repo sync. So should I cd into vendor, then clone this repo there, and rename it xiaomi?
[Android] biosokx:
No,you stay in the main device tree and git clone the vendor
[Android] Sparker0i:
https://github.com/TheMuppets/proprietary_vendor_xiaomi

If I go on to clone this repo, the name of the folder would be proprietary_vendor_xiaomi . How will brunch recognize my vendor files then?
[Android] nitin.chobhe:
Guys, post it in right thread or take this offline. This is not related to the Google cloud.

Nitin
[Android] BabluS:
My pc configuration are 1td hard dusk and 4gb ram with i3 processor and my interest connection is 20MB/s with a general download speed of 2mbps does I need to get a server first to build a rom or can I continue in my pc without getting a server
[Android] nitin.chobhe:
Is there any this in this post that is related to Google Cloud?

Nitin
[Android] BabluS:
Yah there is I'm asking does my pc support the process without this server or with the server
[Android] nitin.chobhe:
I would highly suggest you to read what cloud means before starting to work in it. That would answer your question.

Nitin
[Android] BabluS:
Yah I read and maybe I might have missed some points.. I think clarifying doubts and reporting problems are for what the comment section is...

Don't you think so?
[Android] nitin.chobhe:
Again you didn't read my comment correctly. I had suggested to "read what cloud means before starting to work in it". Didn't I help you there?

This thread (and comments on the thread) is for building ROM using Google Cloud and not for general Q & A for cloud. You can find tons of articles (and places to ask questions about cloud in general)

Nitin
[Android] BabluS:
Ok anyway I don't find the answer but thanks for your reply
[Android] arunassain:
I can't create 300GB SSD in vm instances

It's say u reached 100GB quote

Help plz
[Android] nitin.chobhe:
Screenshot please

Nitin
[Android] AICProcks!:
Same problem

I have the same problem; it looks like 100 GB is the limit for SSD in Google Cloud free trial... :(

Nevertheless, the Internet connection is very fast. :good::D Standard HDD 300 GB has no problem.

I just have one question [MENTION=5044214]nitin.chobhe[/MENTION]. Does the build process continue on Google Cloud if I turn off my computer?
[Android] nitin.chobhe:
I do not have any issue in creating a VM with 1 TB HD.

Regarding - Does the build process continue on Google Cloud if I turn off my computer? - why not try and find that out? :confused:

(hint: this post in this very thread)

Nitin
[Android] AICProcks!:
Actually, I already tried this multiple times, but I have no idea if the process is still running or not. I assume its running because the Google Cloud VM is still running. I guess you're correct in using tmux when building roms.

I have a feeling Google limited VM SSD for the United States. I see that there is an option to create a secondary SSD drive in one VM, or am I reading the option incorrectly? If so, then we would be able to have more space on Google Cloud. I will try it out... :D
[Android] alphamale:
I am too unable to create a ssd had d drive greater than 100Gb. Is 100 GB enough space to build one rom.? I'm trying it now, but the building process has taken over 8hrs so far.
[Android] nitin.chobhe:
Yes, 100 GB is enough to build a ROM.

Search xda for hoe to use ccache and the build process should complete in less than 90 mins.

Nitin
[Android] alphamale:
Thanks for reply. I did use ccache process. Not sure why its so slow
[Android] alphamale:
I ran out of room with 100 GB ssd.
[Android] nitin.chobhe:
Have a look at the attachment. I don't understand why you guys have the restriction :confused:

Nitin
[Android] AICProcks!:
I don't know if you realized, but you are using a Standard HDD disk, not the fast SSD. Try creating a 1000 Gb SSD disk.
[Android] nitin.chobhe:
I do not care if it is HDD or SSD if my clean builds are complete within 90 mins ;)

Nitin
[Android] AICProcks!:
I agree because my build also went very fast in only 2 hours on standard HDD :cyclops:, but everyone besides you commenting about the 100 Gb limit is using SSD, just to make it clear. You claimed that you made a 300 Gb SSD before. I wonder if that's still the case. Try it please. :)
[Android] nitin.chobhe:
No, I never used any other type of the disk (than the one displayed in the screenshot).

Nitin
[Android] AICProcks!:
Sorry to drag this on, :o, but unless you took a screenshot in your very first post of 500 Gb SSD disk before you got an error, it's right there in your very first post. I bet that Google just made a limit for the SSD after changing to 1 year free trial from 60 days. Anyways, HDD is still good.
[Android] nitin.chobhe:
May be yes I had created that when the thread was created (1.5 years ago), but as I mentioned, I do not care if it is SSD or HDD till the time I'm able to build a ROM in acceptable time.

Now let's stop this discussion and get some productive work ;)

Nitin
[Android] alphamale:
Can someone help? I'm struggling trying to upload my zip file to any cloud or file manager. I've used mega in the past, but I'm getting an error end of file reached. I build the ROM in tmux. I don't know if that has anything to do with my error
[Android] AICProcks!:
Hey [MENTION=3848384]alphamale[/MENTION],

I was also getting that error when I was using Mega to upload my build from Google Cloud. In my case, I just tried it again and again, until it finally uploaded without the error showing up. (You may also need to reboot Google Cloud, and cd to your build location again, but it should just upload eventually.) But once you download the build to your computer, unzip it to make sure that it is not a corrupted rom build. If it is corrupted once you unzip, delete the file on Mega, and upload it once again to Mega. This worked for me. ;)
[Android] alphamale:
Anyone building oreo roms with this guide. Just wondering how everyone is set up. Im using ubuntu 16 with akhilnarang scrpts and its taking a long time to build. Several hours. Just wondering how everyone is setup
[Android] Snekxs:
What ROM you trying to build
[Android] alphamale:
Dirty unicorns took 5 aosip took 7
[Android] nitin.chobhe:
Yes, I do and my roms take ~90 minutes to build.

Did you read the jackeagle's thread linked in op?

Nitin
[Android] nitin.chobhe:
Is it like that?

Can someone else confirm this?
[Android] Planet X:
This is so cool. Thank you for this guide. SSD storage. If you would continue to use it after the two month how much would you have to pay for it?
[Android] #Vangreen:
Ok I compile a rom but now how I can download it ?
[Android] piskor:
You can use scp, for example winscp if you are using windows, or you can upload a rom to some cloud service
[Android] #Vangreen:
I use linux. Can you tell me how to uploud to cloud services via trminal?
[Android] piskor:
I think its impossible to upload it to cloud service using terminal. You should have installed web browser or app for cloud you use for folder synchronization.

Maybe i'm wrong.

Use scp to download it to your linux machine.
[Android] zowpow:
I have been doing this for quite a while now. I highly recommend you use a dedicated ssh client, and not the browser one. Using a remote file browser (Winscp for Windows, or many Linux file managers can connect without extra software) can help a lot too. Get familiar with nano for simple file edits, it saves a lot of time. Also, if you're using Google Cloud Platform, like this guide suggests, use preemptible vm to save money. It almost never preempts, and is way cheaper than a normal VM. Last tip, use screen to allow disconnecting SSH without stopping what you're doing, and nohup can be useful too.

---------- Post added at 11:46 PM ---------- Previous post was at 11:46 PM ----------

SCP can work from computer to server as well as server to computer

---------- Post added at 11:47 PM ---------- Previous post was at 11:46 PM ----------

If Google cloud doesn't work out for you guys, there are MANY other VPS services. The big three are Google Cloud, AWS, and Azure. I like Azure a lot, you can try that out.
[Android] machetie:
Does azure have a Ubuntu vm's?
[Android] nitin.chobhe:
It totally depends on your usage. You'll get an idea while you are using the Free trial for 60 365 days :)

Wow, that was fast... Once you are done with the compilation, go to

out/target/product/<device name>

folder and from there you can upload it to ftp server (like basketbuild, AFH etc). You'll need to create account on one of the sites and request access for ftp (this is not a big deal, just a request/ email and you get it).

What do you mean by cloud service? Server like AFH or basketbuild?

If he is talking about uploading ROM so that others (or even he) can download it, then it is possible

Thanks for stopping by and adding more information!

Yes, they do have!

Nitin
[Android] zowpow:
Yes
[Android] shyvam:
Hey Brother [MENTION=5044214]nitin.chobhe[/MENTION] . I understood this guide...i didnt get where will my cm sources store or after build where will my rom store....because this is only a terminal in a browser tab after click on ssh a new browser tab will open..then after addding commands...

i m new in this sever things i m tottally confused..so ...explain me bro...i ll thankful to u

Sorrry for my bad english;)
[Android] nitin.chobhe:
Everything will be on Google Cloud.

Once the ROM is successful, you can upload it on file sharing server like Basketbuild or AndroidFileHost

Hope this clarifies your doubts!

Nitin
[Android] mathy007:
Thanks very much for this guide this is exactly what have been looking for due to network problems and slow pc's I'll need to get things done asap
[Android] shyvam:
thanks brother....u made my day....:good::good::good:
[Android] mathy007:
One more thing do you how much data it will take to repo sync? And after building the full Rom,i just want to know because i have limited data
[Android] nitin.chobhe:
Repo sync will take around 15-20 GB.

But of you are planning to use this guide, then it would not be moré than 40-50 MBs (yes, you read that correctly) ;)
[Android] ya7hu:
Awesome Guide! This is perfect for us who have limited bandwidth and machine power to step into android development, but there is this problem of not having a credit card to sign up, is there a way around this?

Tried Amazon Cloud but only offers 1GB of storage for Ubuntu VM.
[Android] nitin.chobhe:
That's the least thing that you can do to get such awesome services FREE for 2 months :silly:

Try creating a virtual credit card (

I can not answer any questions/ doubts regarding this though

)...

Nitin
[Android] ya7hu:
Damn.. I saw that coming :P

Why didn't I think of that , cool bro!
[Android] mathy007:
Really[emoji33] that means my overall data required from me to setup and repo sync and build the rom and upload it to a cloud storage will not be up to 500mbps to 1gb?
[Android] alphamale:
Iv'e been using Nathan Chance's guide
[Android] nitin.chobhe:
Search in that thread about ccache

Nitin
[Android] AICProcks!:
[MENTION=3848384]alphamale[/MENTION], I also get relatively quick builds of around ~2 hours. Take a look at my build instructions in post 2 in my XDA thread. You can derive them for your scenario, and be sure to use "repo sync -j10 --force-sync". The j10 in particular seems to speed things up a lot when I use Google Cloud to build.
[Android] Maxr1998:
I'd even go as far and use j40 or more, since the Google Cloud 0.5-1 GBit connection can handle that many parallel downloads easily.
[Android] nitin.chobhe:
Isn't this flag related to cores of the processor and not the connection speed? :confused:

as mentioned on Android's page:

Nitin
[Android] Maxr1998:
For building yes, for syncing it specifies the number of parallel download threads, and more means faster download speed, according to my tests. Isn't necessarily connected to the number of cores.
[Android] Snekxs:
What ROMs are you trying to build whenever I try to build my Oreo ROMs they fail
[Android] nitin.chobhe:
Definitely not problem of Google cloud ;) I build all sorts of roms. Today I built this...

Ask in ROM building threads

Nitin
[Android] alphamale:
A couple days ago it said I had 300 something days left of free credits. Today it says I've reached the free trial limit

Edit

It says I'm out of credits, but I have 319 days remaining
[Android] AICProcks!:
That's because you most likely kept the virtual machine running non-stop, and it used all of your free credits to pay for the virtual machine's resources. You have to make sure that you turn off each individual virtual machine each time you are finished using it. For example, after you finish building your rom.
[Android] alphamale:
What's the process for turning it off. I would build in tmux over night. Do you select stop inststance in hamburger menu
[Android] AICProcks!:
Yes, you would login to your Google Cloud Console, and underneath VM Instances, you select Stop Instance for every VM that is currently running. Whether or not you use tmux is up to you. Basically, you don't have to use tmux over night because you left the VM running anyways. You only use tmux to monitor progress of your rom build, but if you leave the VM running overnight it should be done by the morning. Of course you would need to remember in which location your build is.
[Android] tripLr:
Just wanted to say thanks.

Started my Google cloud account.

Don't have the $for a build computer yet.

Will work on your instructions

Thanks

---------- Post added at 06:55 PM ---------- Previous post was at 06:47 PM ----------

Open up ftp or https service on your computer, if u have a fast enough connect, and upload it directly to your IP address, or open up port forwarding on your router, to a computer on your lan, and then when done, close port forwarding.
[Android] arunassain:
But for me even HDD can't create more than 100GB
[Android] vsot13:
Great tutorial! I've managed to build a Rom for my Op3t and I have a question. I'm not sure if this is right place to ask, so go easy on me.

Once I synced the sources, I tried to close the instance and it told me that if I close changes will not be saved but I'm not sure how to save it. Does it matter if I save or not?

Thanks in advance
[Android] nitin.chobhe:
Screenshot please. Don't remember seeing/ reading a message like that :confused:

Nitin
[Android] nitin.chobhe:
I think that's standard dialog of the browser. Don't worry, click on Leave.

Nitin
[Android] vsot13:
Thanks, I did already. So if I want to build it again, I have repo sync source? Don't need for sync all sources again, right?
[Android] nitin.chobhe:
try it out ;)

Nitin
[Android] Ravuri yaswanth:
Can i compile custom ROMs on 4gb ram and 1tb HDD and Intel Pentium processor computer?
[Android] nitin.chobhe:
Yes, but it would take lots of time to complete.

Nitin
[Android] narshi shukla:
which is less time consuming installing linux on pc or with google cloud with maximum possible settings on window？ the msx setting i can see is octa core soc with 50 gb or more memory .there sre many more options but the are either not available for my region or i need to dig more.
[Android] tripLr:
Change region. Your server can be anywhere. You should select max CPU, about 32 GB ram, persistent drive so you can start and stop server.

---------- Post added at 07:18 AM ---------- Previous post was at 07:16 AM ----------

4 GB ram will crash. The pentium will not build most ROMs as its probably 32 bit
[Android] EnesSastim:
Guys I have a question

I built CypherOS but the camera is not working. I deleted the old camera and upload the new one on gcloud. Then i deleted the rom,ota and system.img. then i do ". build.envsetup.sh" and "brunch". But the old camera has came back. I flashed it (With 2 Camera apps). The New Camera app gives "Camera has stopped" error. But if i install the new Camera apk on the phone, it give no error. PLEASE HELP ME!!!!
[Android] nitin.chobhe:
Congratulations!

Post this on ROM help threads on xda or Cypher OS G+ page.

Nitin
[Android] prabhjot368:
how can i stop payments for this account coz they are deducting my bank account balance without permission :rolleyes: :(
[Android] nitin.chobhe:
NO, they do not charge without you continue the usage beyond the free period.

You can see your details in settings (this is standard stuff).

Nitin
[Android] narshi shukla:
I m accessing google cloud after few days

Getting error

Billing status is inactive. Though it was working fine on first day.

On billing tab there is verify your payment but i can't as its not accepting cvc, actually what is cvc i don't get it, I assume it to be Cvv, as there is nowhere description of cvc or any other details on my card or elsewhere.
[Android] prabhjot368:
i am not using any vm .. and i have deleted all machines that I've created in past.. but they are still sending me mails about payment failure.. and they have already charged some money from my account..
[Android] nitin.chobhe:
Why not talk with them then?

I have never (ever) got charged by them.

Nitin
[Android] sushant_:
When, I set up the Google Cloud Server with 500 GB of SSD , it gives me the error message that Max space that I can use is 100GB.

SO I want to ask you, can I develop Roms in 100GB of storage?
[Android] nitin.chobhe:
Yes, and search the thread for the issue that you are facing.

Nitin
[Android] ShouLie:
I have a billing issue. I sent them my card picture, passport picture and etc. when they asked me. But still when i want to create billing account it just says there is an error. So please tell me if there are any alternatives
[Android] nitin.chobhe:
No, I don't have any such experience.

Nitin
[Android] ShouLie:
Alternatives? :confused:
[Android] nitin.chobhe:
I mentioned no experience - implies I don't know alternatives :(

Nitin
[Android] arunassain:
Check ur quota allocated in ur zone

Select zone which is available for it

---------- Post added at 06:09 PM ---------- Previous post was at 06:03 PM ----------

I think ur card is not supported

use another card for verification
[Android] Mr.Tom_Tom:
Can you build a ROM with a managed build service in the cloud?

Hey guys, thanks for the good tutorial!

Did somebody try to build an Android ROM on a managed code builder like AWS CodeBuild already? I wonder if this might work. In that case, you would not have to take care of your own instance, but rather use a cloud-hosted service. This seems to be quite new, and I could not find any reference for building a complete OS.

Any ideas or experience?
[Android] munchy_cool:
thanks for the tutorial.

I am trying to build AICP for walleye. 2 questions

1. my build errors at around 72%, but it takes around 4 hours. I see you have mentioned it takes you 90 mins to build. How do I make my builds faster. I did try make -j4 but it still took 4 hrs.

2. Any help with this error.

https://pastebin.com/DLFxcZNv

already did make update-lineage-api but issue persists.
[Android] nitin.chobhe:
1. Use the jackeagale's thread linked in op/ Google search for using ccache while building

2. Build errors - post in related threads on XDA

Nitin
[Android] Varun Sai:
Really helpful Guide

My laptop configuration is low

and also i don't have 40gb internet

But using this method approx 100mb also not consumed

And the work completed in 2 hrs

Thanks Alot
[Android] galaxyfreak:
[MENTION=5044214]nitin.chobhe[/MENTION] Nice find man! Set it all up and finished a build.

Question - why is my credit still at $300.00? Shouldn't VM have used some of it. Or does it update remaining credit periodically?
[Android] AICProcks!:
[MENTION=4635923]galaxyfreak[/MENTION] Don't worry, it will go down very fast, especially if you forget to Stop or shutdown the running VM instance after each time you're done using it. You can stop the running VM from the Google Cloud Console.
[Android] sushant_:
When I shutdown the server after use, then also it charges in the background?

I use shutdown command and I also switch off from the console but still I get hourly charged?

Is there any way to get charged only till the time I am using the services?