yashsingh1/xdaforums huggingface dataset:
[Android] joaomarcosoliveira:
Getting started by the beginning

I'm using the Google translator, sorry if the translation can not be true to what I'm trying to say:

Thanks to all who contributed in this very useful and interesting guide.

After researching for several days the existence of an Android-based rom Marshmallow for the Samsung Gaslaxy SM-J200M smartphone, which comes with Android 5.1.1, without success, I decided that at least I would try to create a rom with the above characteristics, Google has inserted in the version of Android 6.0.1 a very interesting possibility is that we can add a good quality sd card (class 10) to the internal memory of the device and so we can continue with it for another good time. After reading the 23 pages there are still some doubts: but for the moment I will only say the 1st and most important.

Given the Android version I'm interested in 6.0.1 or 6.0

Given the device I have: Samsung Galaxy SM-J200M

How does the custom rom build start?

Consider that I am a beginner, but I have used linux for a short time

In this device I have already installed TWRP 3.0.2

I've tried installing rom for SM-200J and other variants of this model, for example but it does not work.

In Moto G4 Plus I installed recovey 3.0.3 and installed Lineage OS 14.1

Now I want to learn how to create roms, báseados in Marshmallow for this and other devices.

A big hug to all and des

Eu estou usando o tradutor do Google, desculpe se a tradução não conseguir ser fiel ao que estou tentando dizer:

Obrigado a todos que contribuiram neste guia muito útil e interessante.

Após pesquisar por vários dias a existência de uma rom baseada no Android Marshmallow para o smartphone Samsung Gaslaxy SM-J200M, que vem com o Android 5.1.1, sem sucesso, decidi que pelo menos tentaria criar uma rom com a caracteristica acima, em virtude do Google ter inserido na versão do Android 6.0.1 uma possibilidade muito interessante que é de podermos adicionar um cartão sd de boa qualidade (classe 10) à memoria interna do aparelho e assim podermos continuar com o mesmo por mais um bom tempo. Após ter lido as 23 páginas ainda restou umas dúvidas: mas no momento só direi a 1ª e a mais importante.

Dado a versão do Android que estou interessado 6.0.1 ou 6.0

Dado o aparelho que tenho: Samsung Galaxy SM-J200M

Como é iniciado a construção da rom customizada?

Considerem que sou um iniciante, porem já usei linux por um tempo pequeno

Neste aparelho já instalei o recovery TWRP 3.0.2

Já tentei instalar rom para SM-200J e outras variantes desse modelo, por exemplo mas não dá certo.

Num Moto G4 Plus instalei recovey 3.0.3 e instalei Lineage OS 14.1

Agora quero aprender a criar roms, báseados no Marshmallow para este e outros aparelhos.

Um forte abraço a todos e desculpem pelo texto grande.
[Android] nitin.chobhe:
Hey there,

It's nice to see that users are now trying to build the ROM that they like for their device :D

Building a ROM broadly involves following steps:

1. Setting up environment

2. Downloading the ROM source

3. Downloading (or creating) device source (device, kernel and vendor)

4. Modifying the device source as per ROM requirements

5. Building the ROM

All these steps are beautifully, and in detail, explained in this thread https://xdaforums.com/chef-central/android/guide-android-rom-development-t2814763 by [MENTION=5216756]jackeagle[/MENTION]

Hope this helps you :)

All the best for your first ROM :good:

Nitin
[Android] alphamale:
I'm a bit off topic. Just out of curiosity did anyone else get charged yesterday for the google cloud service
[Android] nitin.chobhe:
No, in fact, Google extended my free trial by 300 more days :D Don't know how and why :good:

Nitin
[Android] nicesoni_ash:
Mine too but my free credits do get deducted every day. I will be required to pay after I am out of free credits, right?

Edit :

When I am not using my server, stopping it would be a good idea, right?

Sent from my "1+2" powered by Official RR 7.x.x

Compiled by myself
[Android] Matt07211:
Yes, to both questions.
[Android] jneval:
I did. I was charged in US$ 55.52 in my credit card, on march 10. I stoped using GCP even before the credits or time trial finish.

They say there that "There is no charge during or after the free trial period".

I don't know how to claim for this improper charge. After that I closed the Billing account manually.
[Android] DEVILOPS 007:
Would someone be able to tell me why this is happening with Chads uber? I can't get it to work. Thanks!

https://www.dropbox.com/s/th7uvve7bfoz37o/log.txt?dl=0
[Android] MAROCANU:
[MENTION=5044214]nitin.chobhe[/MENTION],

Hi, thank you for this thread. I have a question, and apologize if you have answered already. This is my question : I was syncing my repo for a build, but, where are the folders? Is only a terminal here? How can I see the folders?

Can you guide me?

Thank you.
[Android] nitin.chobhe:
You will have to learn basic linux commands for that. Search on Google. Here is the list of ​10 Basic Linux Commands That Help Newbies Get Started

Nitin
[Android] nicesoni_ash:
It was a technical glitch on their part and they are refunding the charged amount in trial period.

---

I noticed that even stopping my instances, my credits still get deducted every day. I wrote to them asking about that and waiting for some explanation.
[Android] MAROCANU:
Thanks for answering, but not this is I asked. Sorry. I use Ubuntu on my laptop, I knew the commands. I have built some roms, but ON GOOGLE CLOUD PLATFORM, is only terminal? Where is Ubuntu VM, the desktop, and so on. After syncing my repo, no?, I must create a local manifest in. repo folder which is a hidden folder. My question, where are those folders.?

My English is not so good, sorry.

Thank you.
[Android] nitin.chobhe:
Ok, Google Compute Engine is only terminal based; so you'll not have any UI.

Those folders will where you synced them. If you have created a directory and synced repo in that directory, then they would be there. And those commands that I linked will help you see them :)

Nitin
[Android] MAROCANU:
Thank you. In this case is not very helpful. :(
[Android] Arvind7352:
I agree that you need some GUI love, on being a new Linux user (Even I needed it at the start). But keep in mind that you'd eventually learn about the Terminal and the Operational Commands as you continue building ROMs, It's Unavoidable :D

A Workaround was provided by an user to get the GUI on GCloud. Post's Here.

Keep in Mind, that this is a workaround and is NOT officially sanctioned by Google Cloud.

#HappyBuilding :)
[Android] nicesoni_ash:
For those wondering abt their credits getting deducted even when the instances are not running..

Reason is even though your instances are not running, they are still using resources like hdd that's why credits get deducted every day.

For those who are not able to use their debit cards to get this trial, easiest way is to add your debit card to your Google account thru wallet option and then when you sign up for trial, it'll work. Tried with SBI debit card and it worked. Also Citi CC worked too but I guess any credit card will work.

Edit:

Payment portal not wallet.

https://payments.google.com

Sent from my "1+2" powered by Official RR 7.x.x

Compiled by myself
[Android] DarkFrenzy:
300 days ?? Will they have done same for my account
[Android] Arvind7352:
For everyone. Credits remain unchanged.
[Android] DarkFrenzy:
bad luck :crying: i have already upgraded when the trial ended now its not showing free credits
[Android] mihran_thalhath:
Add through wallet option?
[Android] nicesoni_ash:
https://payments.google.com/

Add payment method in there.

Sent from my "1+2" powered by Official RR 7.x.x

Compiled by myself
[Android] jneval:
How did you talk to them? I wanna know so I can ask for refunding of the charged amount on my credit card.
[Android] nicesoni_ash:
You can call them or write to them. Details are in support on their page when you login.

Sent from my "1+2" powered by Official RR 7.x.x

Compiled by myself
[Android] rwxr-xr-xis:
Are my free trial credits supposed to get deducted when my VM is not running?
[Android] neonkat:
i don't think so but i see my credits being used(checked after a few days).i guess those are the server renting charges.(running charges are diff)
[Android] nicesoni_ash:
Yes, they will. Even if your server is not running you are using resources like hdd etc.

Sent from my "1+2" powered by Official RR 7.x.x

Compiled by myself
[Android] :
How to upload my newly created ROM to androidfilehost???

Thank You..
[Android] nitin.chobhe:
Search this thread, it has been answered here.

Nitin
[Android] lynjun02:
sadly i cant try this :/ because i dont have credit card do you have an alternative?
[Android] MZO:
What's an alternative to buying a server? :/ Make it on your PC?
[Android] lynjun02:
nope like other online virtual machines that doesnt require credit card for registration
[Android] nitin.chobhe:
You can find that and share here too

Nitin
[Android] nicesoni_ash:
If you have a debit card linked to your Google account, that'll work too.

Sent from my "1+2" powered by Unofficial RR 7.x.x

Compiled by myself
[Android] vinoth_raja:
How to link it? In google wallet i can't find IND other than US & UK.
[Android] nicesoni_ash:
http://payments.google.com/

Use this link to add your debit card.
[Android] vinoth_raja:
It says "You haven’t signed up to pay for any Google services yet" Do i hav to subscribe somethin here? [MENTION=4659955]nicesoni_ash[/MENTION]
[Android] nicesoni_ash:
Just go to payment methods and add your card. A verification amount of a dollar will be charged which will be reimbursed later.

Sent from my "1+2" powered by Unofficial RR 7.x.x

Compiled by myself
[Android] vinoth_raja:
Thanks. Great info.
[Android] himavanth.reddy925:
https://pastebin.com/9T1G4dsk

Im trying to build asop-caf marshmallow ..

im getting these error

device/motorola/msm8916-common/sepolicy/akmd09912.te:2:ERROR 'attribute domain_deprecated is not declared' at to

ken ';' on line 27768:

type akmd09912, domain, domain_deprecated;

#line 1 "device/motorola/msm8916-common/sepolicy/akmd09912.te"

checkpolicy: error(s) encountered while parsing configuration

make: *** [/home/himavanth93/bin/aosp/out/target/product/merlin/obj/ETC/sepolicy_intermediates/sepolicy] Error 1

its my first build. help me .. thanks in advance
[Android] Arvind7352:
(Saw this post in another relevant thread)

This isn't the right thread for discussing on Build Errors, Edit it accordingly.
[Android] Ravi Kumawat:
Can anyone guide me how can I connect my linux vm instance to another ssh client? It's given in the guide there but I can't understand.

I'm stuck here -

I have manually generated ssh keys and applied the public key to the ssh section in metadata tab. Now what to do? Don't know how to connect now?

Ps - I'm learning and new to linux so please if anyone can help me ;_;
[Android] Arvind7352:
1. Start the Instance (In Google Cloud Console -> Compute Engine -> Instances)

2. Obtain its External IP which would come up after it has been started successfully

3. Now Open up a Terminal in PC and enter this command

ssh -i [ssh-key-location] [username]@[External-IP]

Where,

[ssh-key-location] - Location of SSH Key in your PC

[username] - Name of the User by which you want to connect

[External-IP] - The IP Address I mentioned to be noted/copied down

Take a note that External IP address doesn't remain the same, you need to note it down every time you start that Instance

Example

ssh -i ~/.ssh/my-ssh-key arvind@127.0.0.1
[Android] Ravi Kumawat:
That's the problem, I'm new to linux. I don't know how to get the ssh key as a file locally on my pc. I'm only stuck at getting the key file. Thanks for helping me.
[Android] Arvind7352:
Usually located inside /home/username/.ssh folder under the name you've provided

You mentioned that you have generated the SSH Key on that same PC, right?
[Android] Ravi Kumawat:
Ok, I made a mistake. I used the command to generate keys in the ssh terminal of the instance instead of my own pc so the keys got saved on the storage of vm instance. Thanks again for helping me. Gonna try again.

Edit : Thanks got it working. I wanted to connect my phone with the instance via ssh and finally got it working ?
[Android] kirito9:
JuiceSSH simplifies this greatly. I always use it :silly:.
[Android] Ravi Kumawat:
Yeah, I'm using JuiceSSH too.
[Android] thinhx2:
Someone can share me a google cloud sever? Thank
[Android] rajatgupta1998:
No one probably will. Why do you want it in sharing, in the first place? Use your own credentials please.
[Android] Jhayzt:
Hey there! First of all thanks for the tutorial! :D I only have a small problem. I get "You've reached your limit of 100GB's of SSD disk space" when I use 500GB. Is it possible that google has limited their free storage already? thanks!
[Android] nitin.chobhe:
No, free service is exactly same as the paid one until you reach $300.

Check if you 2 instances created.

Nitin
[Android] Jhayzt:
Hi there! :D Thanks for replying. Unfortunately I don't have any instances created. Check the photos I've uploaded. :highfive:
[Android] nicesoni_ash:
Yes, indeed it looks like they did this for new trials. One of my friend reported the same.
[Android] nicesoni_ash:
Amy reason why would it suddenly stops working and shows can't connect to port 22 through ssh via browser? I read their documentation but didn't help so if someone here has any clue, I'll be greatful.

Sent from my "1+2" powered by Unofficial RR 7.x.x

Compiled by myself
[Android] nitin.chobhe:
Have you tried something different? I got this error once (when I played with the boot and then I was never able to connect to that instance and had to create another one)

Nitin
[Android] nicesoni_ash:
Only thing I did was to use mv command to move some directory contents into a different directory and suddenly every command stopped working, like no ls/bash or anything. So I tried to reconnect but started getting this error. Looks like I need to do the same thing. This doesn't mean I have done ssh issues on my local pc, right?

Sent from my "1+2" powered by Unofficial RR 7.x.x

Compiled by myself
[Android] nitin.chobhe:
No, nothing wrong on local PC. You can check the logs on the to right corner (icon of bell).

Nitin
[Android] nicesoni_ash:
Yes, nothing worked in my case too, not even attaching the old hdd as a secondary to a new instance. Had to start from the beginning.

Sent from my "1+2" powered by Unofficial RR 7.x.x

Compiled by myself
[Android] tcpcd:
any other service like google cloud to build rom. bcoz i dont have credit card
[Android] arjitkumarsingh:
They all required credit card
[Android] tcpcd:
ALternate method to upload rom using curl method:

next it will print download link like https://transger.sh/xxxxx/rom.zip
[Android] Mr.Ak:
Won't debit card do the work? How much I'll be charged for using debit card?
[Android] arjitkumarsingh:
For charges read the description carefully
[Android] Mr.Ak:
So charges for credit card and debit card are same? Will we get the 1$ refund as we get in credit card?
[Android] Elanza_48:
[MENTION=5044214]nitin.chobhe[/MENTION]

I was asking that if I use the persistant VM instances instead of regular instances due to low cost. Will I get any difficulty while compiling?

I choose high-mem-2.
[Android] nitin.chobhe:
I have no idea about that. Please check and let me know :)

Nitin
[Android] arjitkumarsingh:
I wish i know that

U have to explore yourself.
[Android] impulsar:
+1

Hi OP, I'm havinf $300 credits on my gcloud, can't I use it to increase the limit that's restricted to 100GB?
[Android] nitin.chobhe:
I don't know why this limit is there, I've a VM instance with disk size as 1000 GB. I had not got any error while creating that :confused:

Nitin
[Android] impulsar:
Maybe I'm missing something here, I definitely feel there's some way to use those $300 to get things to work. Please help when you find the procedure, Thanks ?
[Android] impulsar:
Hi [MENTION=5044214]nitin.chobhe[/MENTION] bhai, I'm getting this while installing tools after installing java on google cloud -

Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'lib32z1-dev' instead of 'lib32z-dev'
E: Unable to locate package zlib1g-dev
E: Unable to locate package libx11-dev
E: Unable to locate package libreadline6-dev
E: Unable to locate package libgl1-mesa-glx
E: Unable to locate package libreadline6-dev
E: Unable to locate package libreadline6

Please help :(
[Android] nitin.chobhe:
This has been answered multiple times in the thread by Jackeagle linked in OP. Search there.

Nitin
[Android] Uvneshkumar:
Will we only have access to the terminal? Like if we want to copy or edit a file, do we need no do it by commands or is there any GUI applications installed in it like NAUTILUS for file browsing and GEDIT for text editing like that? Or do we need to do that all via terminal only?
[Android] nitin.chobhe:
You would get terminal and can use nano for editing files.

Nitin
[Android] Uvneshkumar:
In that case, for building LineageOS, we need to extract the proprietary blobs from a physical device or at least from the original ROM zip. But if there is no GUI, how i'm supposed to extract those vendor blobs? In case of using TheMuppets repo for syncing vendor blobs, we need to sync for a whole branch like all devices under xiaomi or all devices under any vendor instead of getting for a particular device. Is there a good way to do this?

Even without GUI, I need to get the vendor blobs only for a particular device. How to do that?

For example in my local manifest, I added like this

<?xml version="1.0" encoding="UTF-8"?>

<manifest>

<remote fetch="https://github.com/TheMuppets/" name="TheMuppets" revision="cm-14.1" />

<project name="proprietary_vendor_xiaomi" path="vendor/xiaomi" remote="TheMuppets" />

</manifest>

But this syncs the blobs for all the devices under xiaomi. Is there a way to sync this only for a particular device like kenzo (Redmi Note 3)?

And also another cheap question. Can we use debit card to create cloud account and what will the initial pay we've to pay as the trial period is now 12 months? :p
[Android] nitin.chobhe:
- how i'm supposed to extract those vendor blobs? -> Extract the blobs on your PC and then upload it on some server (like Google Drive, AFH, BB etc), then download them on the terminal

- Is there a good way to sync only device vendor? -> What's the issue if you get other devices vendor? :rolleyes: If you don't like it, delete other folders that you don't want

- Can we use debit card to create cloud account -> No

Nitin
[Android] DiamondJohn:
Could you fork it into your own repository and then delete the unwanted folders from your git then use your specific git in your local manifest?:confused:
[Android] Uvneshkumar:
Haven't tried that yet. Will have to try
[Android] DiamondJohn:
just dont forget the "remove-project" eg

<remove-project name="TheMuppets/proprietary_vendor_xiaomi" />
<project name="Uvneshkumar/proprietary_vendor_xiaomi" path="vendor/xiaomi" />
[Android] Uvneshkumar:
But i don't have the proprietary repository on my GitHub. So should i remove the muppets and add mine...? Will this work...? And what's the use of doing this? ?
[Android] DiamondJohn:
Let me prefix this with the fact I am new to github and by no means an expert or anything more than a learner myself.:o as such prefix everything with "I think so"

Fork it into yours. There is a button on the github website.

Yes and yes, if you do it correctly ie don't remove a folder used by your build. In my opersonal build, I do a similar thing in that I remove the default kernel (LOS13) and replace it with the kernel from LOS14.1

All the "heavy lifting" is done remotely on the githuib servers ie you do not need to download the whole tree to your local computer. Also, your "repo sync"'s will be lighter
[Android] nitin.chobhe:
Guys, this is OT and I think you should take it to PMs or relevant threads. This Thread is about using GCE for building and let's be on that topic.

Nitin
[Android] Swapnil Soni:
when i try to run ./build/envsetup.sh it gives error as

bash: ./build/envsetup.sh: Permission denied
[Android] nitin.chobhe:
That means you didn't follow the steps given in the op

Nitin
[Android] Swapnil Soni:
ya fixed actually it was google cloud error bdw a new error occurred just now

here it is

Copy: /home/swapnil_soni12345/lineage/out/target/product/mido/obj/SHARED_LIBRARIES/libart_intermediates/runtime_operator_out.cc
Copy: /home/swapnil_soni12345/lineage/out/target/product/mido/obj/SHARED_LIBRARIES/libart_intermediates/stack_operator_out.cc
Copy: /home/swapnil_soni12345/lineage/out/target/product/mido/obj/SHARED_LIBRARIES/libart_intermediates/thread_operator_out.cc
make[2]: Leaving directory '/home/swapnil_soni12345/lineage/out/target/product/mido/obj/KERNEL_OBJ'
Makefile:145: recipe for target 'sub-make' failed
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory '/home/swapnil_soni12345/lineage/kernel/xiaomi/msm8953'
vendor/cm/build/tasks/kernel.mk:299: recipe for target 'TARGET_KERNEL_BINARIES' failed
make: *** [TARGET_KERNEL_BINARIES] Error 2
make: *** Waiting for unfinished jobs....
make: Leaving directory '/home/swapnil_soni12345/lineage'

#### make failed to build some targets (02:04:03 (hh:mm:ss)) ####
[Android] nitin.chobhe:
No, that was not GCE error, that was related to access rights.

And this thread is not for solving/ helping ROM related errors. Please post in appropriate threads.

Nitin
[Android] NVDX11:
Gr8 thread by nitin!

For people who are wondering how to upload zips to the AndroidFilehost after building the ROM.

-Create an account on www.Androidfilehost.com(Obviously ;) )

-Request for developer status in settings,you''ll get email from them of approval.

-now Go into Contact>select topic-Request Ftp access,Reply may take 2-3 days,You will receive Username and password for ftp access via email

=Now,Its time to upload the ROM to AFH.

-Type This Code in you ROM zip directory

curl --ftp-pasv -T yourbuildname.zip ftp://username:Password@uploads.androidfilehost.com

-Now Go to www.androidfilehost.com , In File manager,Import the Files to your account via Import FTP

-Remember if you don't import files From Ftp into your account,it will be removed in some time frame
[Android] rajit:
any help please.??

i5 8gb ram

still facing jack error. its frustrating ..

Jack server failed to (re)start, see Jack server log
prebuilts/sdk/tools/Android.mk:101: recipe for target '/home/sandip/android/system/out/host/linux-x86/obj/EXECUTABLES/jack_intermediates/jack' failed
make: *** [/home/sandip/android/system/out/host/linux-x86/obj/EXECUTABLES/jack_intermediates/jack] Error 255
make: *** Waiting for unfinished jobs....
make: Leaving directory '/home/sandip/android/system'

#### make failed to build some targets (02:44 (mm:ss)) ####

sandip@sandip-HP-Notebook:~/android/system$ jack-admin start-server
Launching Jack server java -Djava.io.tmpdir=/tmp -Dfile.encoding=UTF-8 -XX:+TieredCompilation-Xmx6G -cp /home/sandip/.jack-home/launcher.jar com.android.jack.launcher.ServerLauncher
Jack server failed to (re)start, see Jack server log
sandip@sandip-HP-Notebook:~/android/system$ jack-admin stop-server
Stopping background server
No Jack server running
sandip@sandip-HP-Notebook:~/android/system$ jack-admin start-server
Launching Jack server java -Djava.io.tmpdir=/tmp -Dfile.encoding=UTF-8 -XX:+TieredCompilation-Xmx6G -cp /home/sandip/.jack-home/launcher.jar com.android.jack.launcher.ServerLauncher
Jack server failed to (re)start, see Jack server log

[MENTION=5044214]nitin.chobhe[/MENTION] bhai madad kr de plz
[Android] nitin.chobhe:
I think you posted in wrong thread. This thread is about Google Compute Engine :confused:

Nitin
[Android] Somprakash07:
I Have build a rom on google cloud ssh

Now how to upload it to Google drive or android file host.

P. S found it. Thanks XDV11

---------- Post added at 11:15 AM ---------- Previous post was at 11:05 AM ----------

Thanks.
[Android] w1ll1m:
Can someone diagnose this issue?
[Android] nitin.chobhe:
Please do not spam the thread: https://xdaforums.com/showpost.php?p=73446920&postcount=317

Nitin
[Android] w1ll1m:
How?

I'm trying to build using the GCE and this is the error i'm getting.