Skip to content

Commit 1aad2e4

Browse files
committed
Deployed 767a2d7 with MkDocs version: 1.6.1
1 parent b876a51 commit 1aad2e4

File tree

7 files changed

+1332
-79
lines changed

7 files changed

+1332
-79
lines changed

en/build/index.html

Lines changed: 49 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -460,48 +460,50 @@
460460

461461

462462
<h1 id="the-android-build-guide">The android build guide</h1>
463-
<p>on this guide i will explain u how to find device trees, prepare the env, requeriments, and more</p>
463+
<p>on this guide i will explain u how to find device trees, prepare the env, requeriments, and more </p>
464464
<h2 id="reqs">Reqs</h2>
465465
<ul>
466-
<li>64bit decent cpu</li>
467-
<li>32GB of RAM</li>
468-
<li>500GB+ space (SSD recommended)</li>
469-
<li>a good internet (or much patience)</li>
470-
<li>a brain</li>
471-
<li>a bit of knowledge of linux terminal</li>
466+
<li>64bit decent cpu </li>
467+
<li>32GB of RAM </li>
468+
<li>500GB+ space (SSD recommended) </li>
469+
<li>a good internet (or much patienceand a very stable internet) </li>
470+
<li>common sense </li>
471+
<li>a bit of knowledge of linux terminal </li>
472472
</ul>
473+
<p>can u use lowest specifications? ye, these ae the most recommended but u can try others. u can by example to use a lot of swap or waiting 3 days to the rom to be compiled but with these specifications u can be sure that u wont have problems <br />
474+
anothehr recomendation is that if u are going to make a PC to buildalways search AMD, the compilation is a work that uses the whole CPU at the same time and on long periods and for that a good AMD multicore is the best </p>
473475
<h2 id="recomendations">recomendations</h2>
474476
<ul>
475-
<li>do just Lineage <ul>
476-
<li>for the first try i recommend u that u try a simple rom, dont try aospa, aosp, etc. do a rom that all of us know that works well</li>
477+
<li>do just Lineage <ul>
478+
<li>for the first try i recommend u that u try a simple rom, dont try aospa, aosp, etc. do a rom that all of us know that works well </li>
477479
</ul>
478480
</li>
479-
<li>learn git (a guide is coming soon)<ul>
480-
<li>its not necesary to make the rom but u will need it wen u want to do changes and u dont want to push commits without author and "update x.x" if u dont want the community hates u</li>
481+
<li><a href="../git/">learn git</a> <ul>
482+
<li>its not necesary to make the rom but u will need it wen u want to do changes and u dont want to push commits without author and "update x.x" if u dont want the community hates u </li>
481483
</ul>
482484
</li>
483-
<li>dont ask for mainteinership<ul>
484-
<li>u did your rom? congrats, but u still have to learn a lot to be a maintainer of a rom, maintainer is a person that can update the rom constantly and can fix reported bugs reading logs and making changes in trees</li>
485+
<li>dont ask for mainteinership <ul>
486+
<li>u did your rom? congrats, but u still have to learn a lot to be a maintainer of a rom, a maintainer is a person that can update the rom constantly and can fix reported bugs reading logs and making changes in trees. u dont want that the creators of the rom to put u in a blacklist </li>
485487
</ul>
486488
</li>
487489
</ul>
488490
<h2 id="getting-server">getting server</h2>
489-
<p>if u dont have the specs mentioned before u will need a server
490-
for that we have some options </p>
491+
<p>if u dont have the specs mentioned before u will need a server <br />
492+
for that we have some options </p>
491493
<ul>
492-
<li>buy a server<ul>
493-
<li>since no one of server sellers promote me i wont send u anyone but its really easy to find a server seller in tellegram, they usually manages on paypal</li>
494+
<li>buy a server <ul>
495+
<li>since no one of server sellers promote me i wont send u anyone but its really easy to find a server seller in telegram, they usually manages on paypal </li>
494496
</ul>
495497
</li>
496-
<li><a href="https://cloud.google.com">Google Cloud Platform Free triel</a><ul>
497-
<li>make a new google account since wen u have 0 credits u have to delete it</li>
498-
<li>u need a credit card (dw, no costs at all)</li>
498+
<li><a href="https://cloud.google.com">Google Cloud Platform Free triel</a> <ul>
499+
<li>make a new google account since wen u have 0 credits u have to delete it </li>
500+
<li>u need a credit card (dw, no costs at all) </li>
499501
</ul>
500502
</li>
501503
</ul>
502504
<h2 id="getting-device-trees">getting device trees</h2>
503-
<p>doesnt makes sense that we sync a rom if there is not device trees for my device so the next step is to look for a device tree
504-
how we plan to do that?</p>
505+
<p>doesnt makes sense that we sync a rom if there is not device trees for my device so the next step is to look for a device tree <br />
506+
how we plan to do that? </p>
505507
<p>first try, XDA <br />
506508
i have a Xiaomi Redmi Note 7 [lavender] <br />
507509
now we will ook for the xda <br />
@@ -513,23 +515,23 @@ <h2 id="getting-device-trees">getting device trees</h2>
513515
<p>xda has no luck? <br />
514516
lets try another <br />
515517
go to github.com <br />
516-
go to search button and search kernel_brand_device(or _soc ex sm8250) </p>
517-
<p>if u found your device trees then lets come with the next step <br />
518-
if u have no luck then probably can <a href="https://t.me/FPSensor">contact me</a> to see if we have luck, else the guide ends here for u </p>
519-
<p>wen we have his kernel we will go to his github profile and look for these:</p>
518+
go to search button and search kernel_brand_device(or _soc ex ssm660) </p>
519+
<p>if u found your kernel tree then lets come with the next step <br />
520+
if u have no luck then can <a href="https://t.me/FPSensor">contact me</a> to see if we have luck, else the guide ends here for u </p>
521+
<p>wen we have his kernel we will go to his github profile and look for these: </p>
520522
<ul>
521-
<li>device_brand_name</li>
522-
<li>vendor_brand_name</li>
523-
<li>kernel_brand_name (it can be kernel_brand_soc ex: sm8250)</li>
524-
<li>device_brand_soc-common (if exist)</li>
525-
<li>vendor_brand_soc-common (if exist)<ul>
526-
<li>for vendor repos if u found device and kernel from lineage org then there will be on TheMuppets org probably</li>
523+
<li>device_brand_name </li>
524+
<li>vendor_brand_name </li>
525+
<li>kernel_brand_name (it can be kernel_brand_soc ex: sdm660) (that we already have) </li>
526+
<li>device_brand_soc-common (if exist) </li>
527+
<li>vendor_brand_soc-common (if exist) <ul>
528+
<li>for vendor repos if u found device and kernel from lineage org then there will be on TheMuppets org probably </li>
527529
</ul>
528530
</li>
529-
<li>hardware_brand (if exist, else we will take it from LineageOS organization)</li>
531+
<li>hardware_brand (if exist, else we will take it from LineageOS organization) </li>
530532
</ul>
531-
<p>in some cases it will have android_, its the same, dont worry</p>
532-
<p>if we can find a local_manifests repo very good cuz we can use it, save it cuz will be important</p>
533+
<p>in some cases it will have android_ or proprietary_, its the same, dont worry </p>
534+
<p>if we can find a local_manifests repo very good cuz we can use it, save it cuz will be important </p>
533535
<h2 id="preparing-the-env">preparing the env</h2>
534536
<p>i recommend u to use Ubuntu (i use 20.04 but others should work too)</p>
535537
<pre><code>sudo apt install bc bison build-essential ccache curl flex g++-multilib gcc-multilib git git-lfs gnupg gperf imagemagick lib32ncurses5-dev lib32readline-dev lib32z1-dev liblz4-tool libncurses5 libncurses5-dev libsdl1.2-dev libssl-dev libwxgtk3.0-gtk3-dev libxml2 libxml2-utils lzop pngcrush rsync schedtool squashfs-tools xsltproc zip zlib1g-dev python
@@ -547,19 +549,19 @@ <h2 id="sync-the-rom">sync the rom</h2>
547549
<pre><code>mkdir LineageOS
548550
cd LineageOS
549551
</code></pre>
550-
<p>we will start the rom sync</p>
551-
<p>BUT WAIT WAIT WAIT
552-
you got a local_manifests repo?
553-
do this</p>
552+
<p>we will start the rom sync </p>
553+
<p>BUT WAIT WAIT WAIT <br />
554+
you got a local_manifests repo? <br />
555+
do this </p>
554556
<pre><code>git clone LINK .repo/local_manifests
555557
</code></pre>
556-
<p>now lets sync the rom
557-
be ready for a long time of downloading, have a good internet in that moment</p>
558+
<p>now lets sync the rom <br />
559+
be ready for a long time of downloading, have a good internet in that moment </p>
558560
<pre><code>repo init -u https://github.com/LineageOS/android.git -b lineage-XX (replace XX with lineage version, should be same as tree adroid version)
559561
repo sync -c --no-clone-bundle -j12 --force-sync
560562
</code></pre>
561563
<p>u should get a message like "Repo sync succesfully" </p>
562-
<p>ok so if we had local_manifest all things we need are cloned <br />
564+
<p>ok so if we had local_manifests all things we need are cloned <br />
563565
else we will take a look on the repos we got <br />
564566
i will do a command for example and then u guys will reply </p>
565567
<p>git clone https://github.com/android_device_motorola_rhode device/motorola/rhode -b [the branch should be the same as lineage or android version] <br />
@@ -569,9 +571,11 @@ <h2 id="sync-the-rom">sync the rom</h2>
569571
in the clkone path we do this <br />
570572
device/xiaomi/lavender <br />
571573
so we ignore the android_ or the proprietary_ and we replace these _ with / <br />
572-
done, we have all clonned </p>
574+
done, we have all clonned <br />
575+
we will do this with all the repos we found in the search of dts </p>
573576
<h2 id="prepare-device-trees-for-the-rom">prepare device trees for the rom</h2>
574577
<p>we will move to device/brand/devicename <br />
578+
if we see that xx_devicename.mk is linege_devicename.mk we will skip these next steps
575579
now we will look for AndroidProducts.mk <br />
576580
we will replace all xx_devicename with lineage_devicename <br />
577581
save and now we will search for xx_devicename.mk and rename as lineage_devicename.mk <br />
@@ -581,7 +585,7 @@ <h2 id="prepare-device-trees-for-the-rom">prepare device trees for the rom</h2>
581585
on it we will look if there is any vendor/xx definition and will replace with vendor/lineage <br />
582586
done, we will move back to main folder </p>
583587
<h2 id="time-to-build">time to build</h2>
584-
<p>we will do this</p>
588+
<p>we will do this on the main build directory</p>
585589
<pre><code>. build/envsetup.sh
586590
lunch lineage_devicename-userdebug
587591
m bacon
@@ -590,7 +594,7 @@ <h2 id="time-to-build">time to build</h2>
590594
now test and good luck </p>
591595
<h2 id="ask-me-a-question">Ask me a question</h2>
592596
<p>want me to modify the guide? need help with the guide? contact me in my <a href="https://t.me/FPSensorSupport">support group</a> </p>
593-
<p>this guide was done with my hands, with my knowledge and never searched in another site for a reference wen writing (besides these env commands that i took from crDroid) so it may can have issues, make suggestions in my group</p>
597+
<p>this guide was done with my hands, with my knowledge and never searched in another site for a reference wen writing (besides these env commands that i took from crDroid) so it may can have redaction issues, make suggestions in my group</p>
594598
<p>thank you</p>
595599

596600

en/git/index.html

Lines changed: 29 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -370,9 +370,9 @@
370370
</li>
371371

372372
<li class="md-nav__item">
373-
<a href="#who-are" class="md-nav__link">
373+
<a href="#who-are-you" class="md-nav__link">
374374
<span class="md-ellipsis">
375-
who are ?
375+
who are you?
376376
</span>
377377
</a>
378378

@@ -465,13 +465,13 @@ <h1 id="gitgithubgitlab-guide">Git/Github/Gitlab guide</h1>
465465
u should have a git account of a git site ofc. <br />
466466
u should had installed git already </p>
467467
<h2 id="initialize-my-first-repo">initialize my first repo</h2>
468-
<p>new repo</p>
468+
<p>new repo </p>
469469
<pre><code>mkdir repo
470470
cd repo
471471
git init
472472
</code></pre>
473-
<h2 id="who-are">who are ?</h2>
474-
<p>with the information u provided to create a account u have to fil this</p>
473+
<h2 id="who-are-you">who are you?</h2>
474+
<p>with the information u provided to create a account u have to fil this </p>
475475
<pre><code>git config --global user.name
476476
git config --global user.email
477477
</code></pre>
@@ -484,7 +484,7 @@ <h2 id="doing-our-first-change">Doing our first change</h2>
484484
</code></pre>
485485
<h2 id="pushing-to-our-repo">pushing to our repo</h2>
486486
<p>in our github we should make a repository with the name we want to add to it <br />
487-
i want to clarify that i use github cuz its the more ommon but its the same for all </p>
487+
i want to clarify that i use github cuz its the more common but its the same for all </p>
488488
<pre><code>git remote add origin https://github.com/FPSensor/hi
489489
git push -f -u origin HEAD:master
490490
</code></pre>
@@ -493,46 +493,45 @@ <h2 id="first-chaper-is-done-some-things-to-clarify">first chaper is done, some
493493
2: no need to put -m on the git commit command, if u dont add -m it will open the editor, this is better for long commit messages. <br />
494494
3: that larger push command is only for new branches, should be another way but if u clone the repo again a "git push" is enough </p>
495495
<h2 id="clone-a-repo">clone a repo</h2>
496-
<p>as simple as "git clone link -b branch"</p>
496+
<p>as simple as "git clone link -b branch Descargas/hola" </p>
497497
<h2 id="who-did-this">who did this?</h2>
498498
<p>i took a commit from another guy, how to recognize his work? <br />
499-
in android comunity we dont want people that doesnt add authors to commits and u will be like trash for they (i say by previous experiences) so,
500-
we should add who did that.
501-
this will be applied for the previous commit, i will tell us how to do for others</p>
499+
in android comunity we dont want people that doesnt add authors to commits and u will be like trash for they (i say by previous experiences) so, <br />
500+
we should add who did that. <br />
501+
this will be applied for the previous commit, i will tell us how to do for others more later. </p>
502502
<pre><code>git commit --amend --author=&quot;FPSensor &lt;gkartyt@gmail.com&gt;&quot;
503503
</code></pre>
504-
<p>but, how we got that info
505-
i took a commit from a repo where i was looking, how we can get that?
506-
in the commit link add .patch
507-
this will literally make the commit a patch file, something that we will talk later about, but the point is:
508-
we can use it to get the author, check it.</p>
504+
<p>but, how we got that info <br />
505+
i took a commit from a repo where i was looking, how we can get that? <br />
506+
in the commit link add .patch <br />
507+
this will literally make the commit a patch file, something that we will talk later about, but the point is: <br />
508+
we can use it to get the author, check it. </p>
509509
<h2 id="i-want-a-cherry">i want a cherry</h2>
510-
<p>a cherry pick is literally wn you pick commits from another repo
511-
to do it is really simple
512-
we have to initialize the repository and its changes with their commit hashes:</p>
513-
<pre><code>}git remote add cherrypick https://github.com/FPSensor/FPSensor
510+
<p>a cherry pick is literally wen you pick commits from another repo <br />
511+
to do it is really simple <br />
512+
we have to initialize the repository where the commit is and its changes with their commit hashes: </p>
513+
<pre><code>git remote add cherrypick https://github.com/FPSensor/FPSensor
514514
git fetch cherrypick
515515
git cherry-pick hfwdhuwhfuiwuihfvuiwfhefhruifhfuihiuwe
516516
</code></pre>
517-
<p>u can just copy the hash from the commit
518-
i have to pick 300 commits, how?
519-
things to have in account?
520-
its a start commit and a end commit, everything after the first commit and before the final commit will be picked, no metter what it is</p>
517+
<p>u can just copy the hash from the commit <br />
518+
i have to pick 300 commits, how? <br />
519+
things to have in account? <br />
520+
its a start commit and a end commit, everything after the first commit and before the final commit will be picked, no metter what it is </p>
521521
<pre><code>git cherry-pick commit-start~..commit-end
522522
</code></pre>
523-
<p>oh, no
524-
we got a conflict of context at hi file</p>
525-
<p>how we look into it?
526-
a git conflict its where git dont know what to do cuz your source and the source of the repo before that commit are different
527-
its really simple</p>
523+
<p>oh, no <br />
524+
we got a conflict of context at hi file </p>
525+
<p>how we look into it? <br />
526+
a git conflict its where git dont know what to do cuz your source and the source of the repo before that commit are different <br />
527+
its really simple </p>
528528
<pre><code>&lt;&lt;&lt;&lt;&lt;&lt;&lt; HEAD
529529
======= that source with the commit applied (should appear as a hash of commit)
530530
&gt;&gt;&gt;&gt;&gt;&gt;&gt; end of the confflict
531531
</code></pre>
532-
<p>we dont want to apply a commit cuz tons of confflicts and urlazy?</p>
532+
<p>we dont want to apply a commit cuz tons of confflicts and u are lazy? </p>
533533
<pre><code>git cherry-pick --ship
534534
</code></pre>
535-
<p>this also applies for commits that was already dont and are uplicated</p>
536535
<h2 id="to-be-continued">to be continued</h2>
537536

538537

0 commit comments

Comments
 (0)