Queries regarding building rom from source for tissot - Xiaomi Mi A1 Questions & Answers

Hello,
After joining XDA for quite some time, where I flashed different roms, some times bricking the phone, I can say my experience was amazingly eye opening. Now, here I am, feeling quite inspired to try building one by myself and hopefully further contribute to the Mi A1 forum. I followed many tutorials, guides, lineage website etc but yet still face the issue: certain commands give me errors where I get stuck. What went wrong? Is it based on luck, where sometimes u get it working, sometimes not? Huge thanks to whoever is willing to help me(newbie) so I can accomplish my dream of successfully building it

Related

[REQ] Development Environment Setup for Moto G 2014

Hey there,
INTRO:
I'm a relatively new member to XDA and the Android Community as well. The Moto G (2014) is my first Android phone since ever. I was using iPhones (4,4S,5,5S), iPads and Mac and have Jailbroken and Developed Tweaks, Apps etc for iOS.
Now that I got my hands on this amazing device, I would love to contribute to the Community by developing and porting ROMs for the Moto G 2014.
WHAT? WHY?:
So if it isnt too much trouble could someone post a device-specific instructions, checklist and downloads to setup a development environment for Moto G (2014). I'm a pretty fast learner so any crude form of instructions would suffice. With the right heading and instructions I'm sure that I can contribute to this community.
PAST CONTRIBUTIONS:
If you're curious about what I've preciously done, just Google "Krishna Sagar iPhone" and you'll see. I've developed apps, Jailbreak tweaks and I've even been mentioned and credited by CNET.com for discovering the first solid evidence about 4G in the iPhone 5. (Before it was announced or released. Yea!! )
So any help at all is appreciated! You know.. Help Me to Help You!
Regards
Krishna Sagar
http://www.krishna.bz
PS: I've searched XDA and found some tutorials but I'm looking for some device specific instructions and downloads such as Device Tree, Kernal, ROM sources etc.. and crude up-to-date instructions on how to setup a Build-Environment. Thanks
Reserved by OP:
Once I get a working set of instruction and successfully setup my Dev Environment, I will post concise step-by-step instructions on how I set it up so that others can use it as a reference.
Okay....i just learned these things past month.
So tell me where you reached so that i can guide you.
N.K.V. said:
Okay....i just learned these things past month.
So tell me where you reached so that i can guide you.
Click to expand...
Click to collapse
I am at the very beginning... From the start would be great. Like i said.. I dont want a lengthy tutorial.. I'll find the instructions myself
For eg: just say setup Android Kitchen instead of walking me through the installation setup.
I just need a crude checklist to begin. I've doing some searxhing of my own.. But like i said, i need a bit more devicr specific approach!
Device specific approach would start once you have downloaded the repo.
Till then.... Approach for all the devices would be same.
Que: You are talking about building the rom from source right??
Or you just want to modify the stock rom!?
N.K.V. said:
Device specific approach would start once you have downloaded the repo.
Till then.... Approach for all the devices would be same.
Que: You are talking about building the rom from source right??
Or you just want to modify the stock rom!?
Click to expand...
Click to collapse
Havent decided really.. Might start by porting ROMs initially.. then gradually work on my own ROM
Thanks btw for your help
KrishnaSagar said:
Havent decided really.. Might start by porting ROMs initially.. then gradually work on my own ROM
Thanks btw for your help
Click to expand...
Click to collapse
And where can I download these device repos?
For Porting ROMs : Usually ports are done from working Cyanogen build or AOSP build, which we doesn't have yet. But, k2wl and shawn are main developers working towards that. Once we get those fully working then only you will be able to port another roms.
Regarding Device Repo: It's required to build rom from source, not for porting one.
repo is a "Source Code" file, which is approx 25-30 GB in size.

Going crazy - ROM and Kernel suggestions please

Hello,
I recently rooted my Galaxy Y and installed CyanogenMod 7.2. After spending time trying to get Google Play to function (I have tried different things and searched on here) but being unable to I decided to try another ROM.
It seems very hard however to get straightforward and comprehensive details on here for anything i.e. whether a different kernel is required, what the installation procedure is in terms of wiping and mounting things. There seems to be a lot of assumed knowledge when things are posted.
So, can someone please recommend a ROM or ROMS with links to precise instructions on installation. I'm looking for something stable, quick, clean and customisable. Things that sound like they might suit are AOSP, EVO and Oxygen.
Thanks in advance.

Help from experienced Developers!

Hello devs,
I have had a Micromax Canvas 2 Colors phone since a year and a half now. Custom/Themed ROMs were uncharted territory for me till June of this year, when my warranty was about to expire. I decided to use the VionicL ROM then. One heck of a ROM that was. Later, in the span of months, so many developments came in for the device, CM11, CM12/12.1, MIUI, and so on. I was very happy to see that there are so many people working hard on providing us the very best experience on our phone. But, like most of the average mobile phone users, I used to download the ROM, install it and enjoy, nothing more than that.
Now, as the time has come for me to switch to a new phone, I am switching to Lenovo K3 Note. I have had digitizer issues with my Canvas 2 Colors and the battery back-up was a little on the poorer side. So, I'm finally giving my phone away to one of my friends and moving on. Although, I would've loved to experience the final, stable build of CM12.1. Thanks to all the devs that worked hard on that. @Al3XKOoL : Especially you, man!
Now that I'm going to be using a new phone, starting from the 28th of October as per Flipkart, I looked up the phone on xda. Unfortunately, there is no forum for the phone. I was a little disappointed, but even C2C did not have a forum a few months ago. So, I tried looking for ROMs, and I have to say, I was a little disappointed with the progress in new and variety of ROMs. I agree that it is a fairly new phone, but there are a lot of people who own that phone, so I was expecting better results. And another point that many people like me would be searching for ROMs.
The help I request from all the developers here is to teach me to develop ROMs and Porting ROMs. I am absolutely inexperienced here, but I'm eager to learn. I'm 17 years old and I am studying 12th grade at the moment. I would still love to learn about ROM development and Porting so that I can provide the people with some ROMs like you all have. Although, I will not be helping out the C2C family, I can start to help the K3 Note family in any way I can. I hope some developers are interested in having an acquaintance.
Please consider this a sincere request and if anyone can please help me learn, I would be very, very grateful to you. I know that I can't learn it overnight, and that is why I want a proper guidance.
If anyone is interested to help me learn about the things mentioned above, please contact me through a message.
Thank you and sorry for annoying you lot with a long post!
And I will be indebted forever to all the developers in the C2C community for giving me and all the C2C owners a pleasurable experience. Thank You!
Sorry for tagging you people, but I hope you don't mind and you people are the most recognized devs in the C2C community :
 @vibhu0009
 @smokerman
 @ariafan
first of all thanks for our words..im still using my WIKO RAINBOW as my second phone..ive moved on to VODAFONE SMART ULTRA 6 and im testing MIUI 7 LOLLIPOP with a ported rom already that is booting and running with TWRP ..although is very buggy its ALPHA version still, that is nice..
for developers/porters whatever is not easy to teach someone..we have our work to do and that kind of knowledge we have, it took us a few years and at least some dead phones, hard bricks and a few other bad things that could happen to our phone..so my advice to you:
read
search
talk with other users
now and then ask for help when you need it, some users know a lot
you need time and patient..be aware that many times things will not go as you expect or wish..best of luck and keep following us in my blog and youtube..RAINBOW / MMX A120 C2C still is a good phone.:good:
Is anyone developing cm 12 for lenovo k3 note
smokerman said:
first of all thanks for our words..im still using my WIKO RAINBOW as my second phone..ive moved on to VODAFONE SMART ULTRA 6 and im testing MIUI 7 LOLLIPOP with a ported rom already that is booting and running with TWRP ..although is very buggy its ALPHA version still, that is nice..
for developers/porters whatever is not easy to teach someone..we have our work to do and that kind of knowledge we have, it took us a few years and at least some dead phones, hard bricks and a few other bad things that could happen to our phone..so my advice to you:
read
search
talk with other users
now and then ask for help when you need it, some users know a lot
you need time and patient..be aware that many times things will not go as you expect or wish..best of luck and keep following us in my blog and youtube..RAINBOW / MMX A120 C2C still is a good phone.:good:
Click to expand...
Click to collapse
Hey, thanks for taking time out to read my post and replying.
Nice to hear that you've been working on a different phone and rolling out new ROMs for that phone too!
Yes, I know that everyone have their own work, family and personal stuff and everyone are developing in their free time or as a hobby. I will be doing the same too as I have my studies as a bigger priority.
I understand it is not easy to teach anyone about developing, at least guiding is possible, right? I would be glad if you could guide me in what to read and where to be careful etc. stuff like that.
I already bricked my K3 note once and revived it somehow. I know it will not be an easy road or it is just as easy as downloading a ROM and flashing it in recovery, most of the users can do that. I know it is hard work, I will try to read, but there is so much knowledge on XDA alone that it will take me forever to read, understand and be able to implement. So, what I am asking is, if you could let me know on where to begin and in which direction to go after that, I would be indebted to you.
Again, Thank you for taking some time out, I know you have loads of work, and I hope I can be as good a developer as you someday!
weaponoidindustries said:
Is anyone developing cm 12 for lenovo k3 note
Click to expand...
Click to collapse
There is a Chinese developer who has rolled out CM12.1, but the English translations are not complete, so there are some chinese fonts still left behind, and there are some bugs in that too. I would not recommend using that ROM for daily use till the bugs are sorted out and the full English support is included.
With some support, I was planning on compiling CM12.1 for the K3 note. I've noticed that major developments for this phone is on some Spanish and Russian websites and not on XDA. I was a little sad to see that, but hopefully, there are a lot of developments on XDA too!
Cheers1
Hello There!!
My Phone Is Mmx A120 Canvas 2 colours
I was trying to get back to stock rom
And Always Getting this no space error 5069 While Flashing (1st image)
After searching i found that format will fix this and i can flash like a charm
But after formatting my Device Is dead
no boot, no charging, no recovery
I'm Trying TO whole flash but I'm there is no option for that only Getting without bootloader one
Then i've checked it memory in memory test option now i'm getting
Nand Flash Not Detected
Plz!!! tell me what i can do to take my phone back to life
The Phone is out of warrenty

I see a pattern emerging - lack of guides

Hello! This will be a quick post about how it was good earlier and how it can be better today, so please, stay with me.
I've been using Sony's for a while now, starting with small and cute Sony Ericsson k510i, then k550i, then wt19i (LWW), and then Xperia SP. My "flashing career" started after I've lost warranty on my k510. At that time there wasn't a lot you can do to your phone - there were several official firmwares, various customization options, and a lot of custom patches. No competition, one latest official firmware, a big library of patches that you could port to your device, if someone didn't do it already. The only competing area were a lot of graphical patches, but you could compile them together on your phone. Like today, if you were doing something wrong with your phone - you'll get a brick and it's your fault. But for every device there was an instruction, a beautifully crafted instruction on what to do and how to do everything, step by step. Almost every thread included a complete set of links to get you started. If you needed to flash a customisation after installing something, there would be a link on how to flash custom right there.
Today I have my XSP and try to do something to it. So I open one link (non-sticky, needed to bookmark it), see a lot of ROMs, part of which are no longer maintained. Finally open one of them based on performance rating, and see that it needs some kernel. So I go to kernel list, and see that it can't be flashed without recovery. What recovery? One specific recovery, because another one can't flash it. Now how do I flash recovery in the first place? I need a manual for that. Now I go to kernel and ROM page and see that no manual is available for them, too. So I open main device page and don't see any manual, so I open a sticky thread. And guess what? I don't see manual there. And that's when I start a new thread, type my problem in, and see a non-sticky thread with last post made 2nd of May 2015, and no pages link to that thread at all.
Is that how it goes this days? A newbie comes in, spends whole evening, opens 10 tabs, and still can't find anything relevant? I think we need to do something with this, revisit old threads, compile a new one-for-all guide, or at least a list of guides. And stick it, so people can actually see it. Otherwise there will be small closed community of those who already can develop and flash, and all the others who either got brick or is afraid to get a brick. Thanks.
---
UPD: And then I see that the kernel which I almost decided to flash is closed and all developers migrated to another one. I'm talking about tangerine and helium. Again, no info in the first post. And main developer openly says to users of his work - if it didn't work for you, don't use it. What's wrong with you people...
I'm deeply sorry if I offended somebody with my previous post. I'm happy that you guys do such amazing things with this 3 year phone. But damn, FULL INSTALLATION took about 10 minutes, counting PC reboot into linuxes to get fastboot working. In case someone struggles like me, use CyanogenMod instruction to get to Cyanogen Recovery; download TWRP Recovery, ROM of choice and GApps of choice; place all three ZIPs onto your sdcard; go to recovery, flash TWRP, reboot into TWRP (by pressing volume rockers while loading), do Wipe - Factory Wipe, flash ROM, flash GApps, reboot to normal. Wait for about 5 minutes (black screen is normal, there will be dots flying after a minute or so to keep you entertained).
Yes, It's that simple nowadays, so why bothering typing so much? I was in that situation with my SP, too, but if the are so many answers to these questions and so many threads... "You have to read" is the answer! A lot! It's for your own good, trust me. Now I can do anything I want with my phone with nohow! So a little reading and searching here and there is just positive experience for you. Don't complain, the people here ( well a part of them) are hardcore coders or themers or whatever. You can't just ask them to tell you all the stuff. If want help I'm always available.
Thank you for linking to my very dusty and lonely Flash ROM guide hahaha
No you didn't offend anyone at all. The guides are actually there, like how to use Flashtool, how to unlock bootloader, how to flash recovery and everything, it is just that they are buried deep with time as the development goes. The thread are there, in the General section and are awaiting to be searched. Though some are outdated, some are not and you can benefit from there.
Some searching will normally do, but if it didn't, just ask in the threads, someone will probably answer to you!
I always have my eyes on the General and Q&A subforums of the Xperia SP, and I will usually respond to a help-able problems. So if you have any problems, feel free to post in the Q&A subforum, and if not me, someone will help you. If there are nobody, don't feel offended. Maybe people don't know what to help or suggest (but lets just hope that is not what it will be )
About recovery, PhilZ and CWM is way outdated, and its time for everyone to make TWRP as a standard as it is a still updated recovery. Cyanogen Recovery in my opinion is crap as there are far too less feature plus, it enforce on signed flashable zips.
About the thread on Tangerine, the developer said dont use if it doesn't work is because of the norm of the Kernel. The kernel is made by using an AnyKernel template, hence render support for almost all Lollipop ROMs. Since ROMs can be updated and all ROMs have different sources, a simple change in the system part can render Tangerine unsupported, and the developer cannot do anything (definitely his choice, please respect that) to only fix the problem on one ROM which could possibly break support for the majority of the ROMs! This also appplies to Helium. Therefore, his words of "dont user it if it doesn't work" has a meaning, and it is not something to degrade new users and so.
kojata said:
If want help I'm always available.
Click to expand...
Click to collapse
TechnoSparks said:
I always have my eyes on the General and Q&A subforums of the Xperia SP, and I will usually respond to a help-able problems. So if you have any problems, feel free to post in the Q&A subforum, and if not me, someone will help you. If there are nobody, don't feel offended. Maybe people don't know what to help or suggest (but lets just hope that is not what it will be )
Click to expand...
Click to collapse
Thanks for the answers and offering help, happily I was able to install my ROM of choice and it still works flawlessly, I was even able to squeeze 20 battery days from my old XSP.
Thinking about it, I start to understand why that dev answered like that. I was a python dev in the past and know how one feature can kill two others. Just in my head there is one current linux kernel, and all things that are developed should work with that particular kernel. Kernel comes before OS, if you will. Isn't it the case with ROMs and droid kernels?
About TWRP and reading: I honestly did read a lot of info before doing something, because it's my only phone these days. But it's so hard to find information on whether something is deprecated or not. As a new user, you wouldn't just google "is this deprecated and no longer used?", because that search will not provide any info. That is why during that evening and following morning I lost count of how many times I just shaked my head asking which recovery/kernel should I use and how do I install it? Latest being the easy one, because I already found TechnoSparks thread by that time.
In case anybody is interested, I installed Candy 5 on default kernel. But I still don't know if installing android 5 on a kernel used with android 4.2 was a good idea. It went well, however.

LineageOS development [unofficial][To-Start]

Okay people, i know things do not look very good for this device, and yeah, we all are frustrated with the fact that no one is building any good rom(except this Resurrection Remix(on http://forum.le.com/in)) for this device.
I am thinking of trying to build the LineageOS for this device.
I am new to building roms, I have not developed any rom before, so this will be my very first experience.
I would very much appreciate any help that any of you may offer regarding any thing.
Be it any tutorial/guide, source codes, testers, or any thing else you have in mind.
I would be downloading the sources today and will look around for tutorials for porting roms with source code that i already have (thanks to that resurrection remix ROM dev 19wisnia89(on http://forum.le.com/in)).
I would also be contacting other devs of other devices for any help regarding the porting process and stuff.
If you know these stuff and would not mind helping me out, it would be very nice.
Please quote me on the reply here or PM me with anything here
Note: I would be needing testers because i don't quite own the device for myself, it's my mother's and i can't risk tempering with it, but I still want it to have a dev support.
All the best for the success, I also tried to compile the kernel and the source code is working completely fine without any modification but I was confused about the process of building the android So I will always help you whenever needs my help. and if you can guide me to building guide then i will also love to try that.
sscsps said:
Okay people, i know things do not look very good for this device, and yeah, we all are frustrated with the fact that no one is building any good rom(except this Resurrection Remix(on http://forum.le.com/in)) for this device.
I am thinking of trying to build the LineageOS for this device.
I am new to building roms, I have not developed any rom before, so this will be my very first experience.
I would very much appreciate any help that any of you may offer regarding any thing.
Be it any tutorial/guide, source codes, testers, or any thing else you have in mind.
I would be downloading the sources today and will look around for tutorials for porting roms with source code that i already have (thanks to that resurrection remix ROM dev 19wisnia89(on http://forum.le.com/in)).
I would also be contacting other devs of other devices for any help regarding the porting process and stuff.
If you know these stuff and would not mind helping me out, it would be very nice.
Please quote me on the reply here or PM me with anything here
Note: I would be needing testers because i don't quite own the device for myself, it's my mother's and i can't risk tempering with it, but I still want it to have a dev support.
Click to expand...
Click to collapse
all the best...we are here for testing!!
sscsps said:
Okay people, i know things do not look very good for this device, and yeah, we all are frustrated with the fact that no one is building any good rom(except this Resurrection Remix(on http://forum.le.com/in)) for this device.
I am thinking of trying to build the LineageOS for this device.
I am new to building roms, I have not developed any rom before, so this will be my very first experience.
I would very much appreciate any help that any of you may offer regarding any thing.
Be it any tutorial/guide, source codes, testers, or any thing else you have in mind.
I would be downloading the sources today and will look around for tutorials for porting roms with source code that i already have (thanks to that resurrection remix ROM dev 19wisnia89(on http://forum.le.com/in)).
I would also be contacting other devs of other devices for any help regarding the porting process and stuff.
If you know these stuff and would not mind helping me out, it would be very nice.
Please quote me on the reply here or PM me with anything here
Note: I would be needing testers because i don't quite own the device for myself, it's my mother's and i can't risk tempering with it, but I still want it to have a dev support.
Click to expand...
Click to collapse
If you are on Telegram(app)
you could join us few devs and testers in this group and ask for anything you need
here is invite & join link:
https://t.me/joinchat/AAAAAEEHPrwCrEYn3uf6BA
Abhi_ said:
hey i first want you to tell me what you know about building?
Because you have mentioned you will look around for porting roms,etc.
I hope you know how linux works.
That's it
if you have queries feel free to ask
If you are on Telegram(app)
you could join us few devs and testers in this group and ask for anything you need
here is invite & join link:
https://t.me/joinchat/AAAAAEEHPrwCrEYn3uf6BA
Click to expand...
Click to collapse
I have gone through the porting guide on CM wiki(through archive.org) a couple of times and a few more places, I have not downloaded the source code of Lineage os, but I have source code of cm13, so i'll build it first,

Categories

Resources