yashsingh1/xdaforums huggingface dataset:
[Android] Aadi:
Intializing Repo And Download Source Code

Step 2:- Initializing Repository And Downloading Source Code​

Initializing Repository​

First step is to download the Repo which is essential to download the source code.

1. Open Terminal

2. Execute these commands one by one in Terminal

mkdir ~/bin
PATH=~/bin:$PATH
sudo apt-get install curl
curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
chmod a+x ~/bin/repo

Downloading Source Code​

After you have initialized the repo you are set to download the source code.

1. Open Terminal

2. Execute these commands one by one in Terminal

mkdir source
cd source
repo init -u git://github.com/Cyanogenmod/android.git -b gingerbread
sudo sysctl -w net.ipv4.tcp_window_scaling=0
repo sync -jx (Replace x with a number this number corresponds to number simultaneous download you want for e.g if you give 5 it will download 5 files at once so go on increase to whatever you like but be reasonable :D)

.

The download will take hours if you are on slow connection like it will be a 2 days is 512kbps connection so if you are planning to develop please have a good internet connection with a reasonable fast speed. Every developer recommends more than 1Mbps and sometimes 4Mbps.

After downloading is finished go to source folder you must have many folders inside them. Also make a backup of the source folder just in case as we will modifying it so if something goes wrong you don't have to re-download it all again.

Go to the next step to start the actual development.
[Android] Aadi:
Compiling Recovery

Step 4:- Compiling Recovery​

Finally you have come to the final part of the guide which is compiling recovery.

1. Open Terminal.

2. Execute these commands in Terminal

. build/envsetup.sh
lunch (Again select your device)
make -j4 recoveryimage

.

That's it when it is finished grab recovery.img from:

out/target/product/your_product_name/recovery.img

Flash it in your device test it fix the bugs and release it.

Wait if you don't want flash and just see how it looks so that you can flash another recovery if it is not working do these

1. Copy the recovery.img to sdk/platform-tools

2. Boot your device into fastboot mode.

3. Open Terminal

4. Execute these commands one by one in Terminal

fastboot devices (wait for your device to show up int terminal)
fastboot boot recovery.img

You can test out all the features except flash zip, backup and restore.

Victory :victory: you have successfully compiled TWRP recovery for your device go ahead have fun and enjoy.
[Android] Aadi:
Reserved

reserved just in case :D :fingers-crossed:
[Android] Aadi:
Contributions

You can Contribute to this guide by suggesting improvements and stuff are welcome PM about the contribution and i will add by giving credits to the person contributed
[Android] Joe4899:
Does it make any difference if I want to compile it for an ARMV6 device?

Gesendet von meinem Skate mit Tapatalk 4 Beta
[Android] Aadi:
Nope it won't make any difference it is just the same even if your device is ARMv6 or ARMv7. Make sure your device is supported by CM ;)
[Android] 666satyr666:
i'm wondering if it will work for Tegra's device
[Android] Aadi:
Yes it will work go ahead give it a shot :good: :D
[Android] Joe4899:
So that's me again :laugh: Wanted to compile TWRP 2.6.0.0 for cm10.1 so I have set up everything so far but get an error when I try to compile

Seems to be really stupid, so far I understand is the libfuse defined twice in recovery and base_rules.mk so think (thought :mad:) it's an easy part - just to remove this libfuse from one of them... But I can't find something with "libfuse", "static libraries" or anything like that in base_rules.mk
[Android] Aadi:
I have never tried compiling 2.6.0.0 because Dees_Troy is evaluating my theme for my device such that it gets official support so if you are ready to use CM7 and TWRP 2.3.3.0 you can follow my guide and i can help you with the errors but any other version please ask Dees_Troy for the solution. :)
[Android] andrea210701:
How I compile twrp if my phone is not officially/unofficially supported?is it possible?

Sended from my ascend g330 using tapatalk 4 [VIP]
[Android] Aadi:
It is possible after successful build with no bugs you can contact Dees_Troy for evaluation and get official support.
[Android] maximik1980:
Error detected :)

Hi, Chain Hacker.

Does it matter how to write address after "git://"?

I mean this:

[B]repo init -u git://github.com/Cyanogenmod/android.git -b gingerbread[/B]

Should it be like this:

[B]repo init -u git://github.com/Cyanogen[COLOR="Red"]M[/COLOR]od/android.git -b gingerbread[/B]

By the way, it's a very good manual for those who are just starting to understand how to compile :cool:
[Android] Aadi:
No i doesnt matter at all the only thing that is case sensitive are the words after cyanogenmod as they must be written as it is so it is your wish whether you are gonna write Cyanogenmod or CyanogenMod :) and by the way thanks for the complement ;) :) :D
[Android] maximik1980:
TWRP Recovery size...

Hi again...

I've managed to compile a TWRP-Recovery 2.6.0.1 based on CM9 for my Huawei Ascend Y101 (8186).

But I had to change recovery partition size in BoardConfig.mk (originally it was BOARD_RECOVERYIMAGE_PARTITION_SIZE := 0x00500000, I changed it to 0x00600000), because without these changes it wasn't possible to build a recovery.img ("recovery.img is too large... etc.")

When I flashed it on my device, the TWRP recovery started and worked perfectly, but I wasn't able to boot my device. But it's not a problem for me, I understand why it wasn't able to boot very good.

The question is the following

: is it possible to decrease somehow the source files' sizes of TWRP recovery (maybe images, don't know...) in order to compile the recovery.img that would be less than 4.85 MB (actually it's size is 5*095*424, it's more than my recovery partition....... :( )

By the way, the size of a CWM-recovery (cm9) that I've compiled is 4*489*216, so it fits like a glove :good: and works fine...

Thanks in advance. I understand that you compiled a TWPR recovery based on CM7, but I don't see much differences...:cool:
[Android] Aadi:
The difference is no on the source dude so relax. You have to modify your kernel and change the compression method to lzma. Contact Dees_Troy for this because i dont know how to change it. You can chat with him through IRC. :)
[Android] maximik1980:
TWRP Recovery 2.6.1.0 for Huawei Ascend Y101 (8186)

OK, I've got it.

I've finally managed to compile a TWRP Recovery for my Huawei Ascend Y101 u8186 (240x320).

I've used a TWRP 2.6.1.0 tree on GitHub and CM7.2 source code to make it. It took me two weaks, but now I have a full working recovery! So thanks for your GUIDE, it's really useful.

I don't now why, but I have yellow color instead of blue... :eek: But I'm not the first who deal with this "bug" :laugh: : http://www.xda-developers.com/andro...oject-port-available-for-lg-optimus-one-p500/
[Android] Aadi:
Use TARGET_RECOVERY_PIXEL_FORMAT := RGBX ????

Replace the question mark with the colour code you want. Colour codes are available in Dees_Troy's Rootzwiki guide. Happy to help and also dont forget to upload the theme files on github so that i can merge that in my guide here :) :D
[Android] maximik1980:
OK, thanks, I'll try this "TARGET..." (hmmm, I've spent days in Google trying to solve this "colour problem" :D)

I'm not an experienced user of GitHub... But I think I'll upload my theme files on GitHub as soon as possible.:cowboy:
[Android] Aadi:
Sure
[Android] maximik1980:
TWRP Recovery 2.6.1.0 Theme for 240x320 devices

Hi again.

Here is my TWRP's theme (works with CM7.2 source code, but I think it'll work with CM9 too).:cowboy:

https://github.com/maximik1980/TWRP-2.6.1.0-u8186

I think it would help some people to compile their own TWRP Recovery.

I've slightly edited the original TWRP's ui.xml (select by ascending and by descending are eliminated and some other little changes...).

A screenshot is avialaible in the attachement. :o
[Android] mathm2013:
Hello, on Dees_Troy's thread i saw i should test the recovery on a android emulator. Could anyone tell me how can i do that?

EDIT: Oh, nevermind. I was too dumb to read the whole op :P
[Android] Qeemi:
My devices hasn't a recovery partition instead the recovery is inside the boot.img.

How can I extract the twrp from recovery.img and places it in boot.img?
[Android] Aadi:
Go to the official irc channel and ask your question... I specifically told I can only help for the errors you gace during compilation of the recovery....
[Android] erikasnoske:
For those who want to work on Kali linux (mine is 64bit as default OS on my computer)

Java auto install script

http://www.youtube.com/watch?v=yq5ySksM6SE

Sublime 2 text editor (better then GEDIT)

http://www.youtube.com/watch?v=heZS--e5CHE

(not sure if it works on 32bit (32bit version) but works very well on 64bit! (64bit version))
[Android] Aadi:
I would suggest you install ubuntu as a dual boot or removing your existing OS and installing ubuntu in its place... Ubuntu is development friendly no much hassle and clutters... :)
[Android] andrman1:
I haven't my device in lunch menu ?
[Android] Aadi:
Contact the Dev's working on your device's forum for the device tree and files needed for compiling CyanogenMod.

On second thought may I know which device you are using now.
[Android] andrman1:
I have mtk6577 device
[Android] Aadi:
I seriously doubt whether CyanogenMod officially supports your phone.. Ask your phone's Dev's for the device files...
[Android] andrman1:
sorry but nobody dev not working on my device Alcatel star 6010
[Android] Bhargav97:
Hi bro,

I seriously need your help. My LDPI (QVGA) device: Galaxy 5

We have a working cm11 already. I have already downloaded the source and I was successful in compiling a fully working Stock CWM from it. Now, I want to go for TWRP...but the only problem is a missing 240x320 folder. TWRP supports upto mdpi only. I want you to help me make a 240x320 folder for the latest twrp source (v2.6.00) or anything else which can solve my problem. You can find the twrp source at Github.

Will you be able to help me?...please.

Any help will be much appreciated.

Btw, awesome guide....Keep up the good work. :)
[Android] chraso:
can u make it compatible for 4.4?

My compiled recovery works for sure in the device but its display is scattered somehow.

Don't know what is wrong.
[Android] Aadi:
Yea sure but it may take some time because Dees_Troy made some changes in the 2.6 version... But i will update you regarding this as soon as possible....
[Android] Aadi:
I see try using

RECOVERY_GRAPHICS_USE_LINELENGTH:= TRUE

If already enabled delete that line and try again...
[Android] Bhargav97:
He has fixed it. Now, we have a user interface (fit for ldpi) with a touch fully working. Only problem left out is mounting. Partitions' name even is not shown. In logs, constantly an error is recurring... "Unable to find...blah blah...at blah blah". We checked the fstab but it's all fine. What is wrong and what can be done now?
[Android] Aadi:
I don't get your problem which partition is not mounting for you??:confused:
[Android] Bhargav97:
Any of the partitions is not mounting. To be clear, let's take an example. If I go to Mounts then I can't see the names of any partition (that means obviously can't mount it). Same happens when I go to backup, restore & install. Not even the names like '/data', '/sdcard', '/system' are showm.

I hope it's clear now.
[Android] Aadi:
Are u sure you double checked fstab??
[Android] Bhargav97:
Yes, I checked it many a times now. It's absolutely right.

Dees_Troys told that maybe I'm using v2 fstab. Now, what does that mean?
[Android] Tech N You:
Great Guide :D

However I want to compile a CWM Recovery for my device.

Is it possible?

I use karbonn a8 and it's board is hawaii_garret_W68
[Android] Adromir:
Just wondering. I am trying to compile TWRP along with a CM13 based Rom (AICP), but that gives me compiling errors. Should I set up a clean CM13 repo just for compiling the Recovery? And what if there is a 5.1 Branch of my Device I am trying to build it for.. Might that be the reason the Rom build breaks?
[Android] muralivijay:
framebuffer problem compiled twrp

i have successfully compiled twrp .. for my device. but it does not booting . stuck at device logo .. i got my last log " fb swap active fail: invaild arguments " help please how to fix it ?
[Android] Sachinkk:
Source code for dependencies while using Ubuntu 16.04

Hello dev & everyone in XDA forum.I'm new to android development world but I'm interested to learn new things.Im trying to compile twrp for gingerbread tab using ur (Aadi sir) thread but problem is I'm using Ubuntu 16.04 for which source code of dependencies is not mentioned. Can anyone guide me with code for compiling using Ubuntu 16.04?
[Android Q&A, Help & Troubleshooting] androidmarkets:
Hi all,

I really hope I'm not violating any forum rules by posting this message, if it does, then I apologize upfront to the wise and omnipotent moderators!

Track The Person Application:- https://play.google.com/store/apps/details?id=com.creatiosoft.tracktheperson&feature=search_result#

Collage Creator: Photo Art Lab:- https://play.google.com/store/apps/...soft.mixpics.photogrid&feature=search_result#

Both apps are very unique and useful. The downloading of these app are well, but some user are confused how to use it, and I want to know why user are not showing their interest in this app.

So I really need some constructive feedback on it so that I can make it even better. And who better to judge my astronomy related programming skills than you folks?

Feel free to discus your experiences with the app in this thread, I'm really looking forward to your feedback!

Thanks.

Neeraj Kr Singh

http://www.Creatiosoft.com

SkyPe Id:- neeraj.singh633
[Asus Transformer TF700] adelancker:
Hi guys,

just wanted to make this thread to see what tweaks you have on your CROMI-X based TF700, since I have just installed CROMI-X and I am curious what tweaks work and improve overal performance.

Not that I really think it's necessary because sdbags did one hell of a job here, but I am just really interested to see what you have done to make your TF700 more to your liking :)
[Asus Transformer TF700] elfaure:
I think you hit it on the head. [MENTION=518363]sbdags[/MENTION] has already got ALL the known tricks in his ROM. He is diligent about finding new tweaks and incorporating any and all stable performance enhancements known so users don't have to "tweak" anything. As I understand it, its fully optimized and ready for the race track right out of the box. He's already planning to incorporate my multi-browser script if its not in there already. The warranty period is painful when talking about CROMIX. I can't wait to try it.
[Asus Transformer TF700] adelancker:
It is perfect to me too, but I can't stop reading about people who tweak it to the max with Pimp my Rom, System Tuner, etc.

And I was wondering: does that even still have effect? Because it seems like it could only do more harm than good, considering the default set-up by sdbags :)

The only thing that could make my tf700 more perfect is faster browsing. Don't know why, but sometimes it hangs (not only during downloads) and sometimes it's blazing fast. And it doesn't have anything to do with my wifi at home, because that is probably the best Internet connection you could get in my village lol
[Asus Transformer TF700] KinetiClutch:
Think that Lucius Zens guide covers all tweaks really well. Have a look for it
[Asus Transformer TF700] elfaure:
Yea, he's already got my browser2ram script incorporated for 4 browsers (stock, naked, firefox, chrome). My final release is out with support for a total of 14 browsers (only if they are installed) with a unmount script available to unload them too so if you wanted you could run my unmount_all script then my autostart4 script to enable supporting 10 more browsers but the 4 you already have wouldn't be any faster.

Hangs you say? I've never had that happen on stock ROM. Maybe the browser is getting shut down by OOM due to lack of memory? You might want to check your OOM settings and possibly try increasing the content providers cache to between 96 and 192MB in System Tuner memory tweaks OOM tab using the aggressive or very aggressive presets but there are some more advanced users here on XDA that disagree with me (and System Tuner) on this tweak. If you do this don't set it in boot settings before you test drive the new settings or you could get yourself in a boot loop if it goes wrong. If it works out, then set it complete on boot to autoload the new settings. I'm running my own settings, somewhere in between aggressive and very aggressive on stock ROM with good performance and no issues.
[Asus Transformer TF700] sbdags:
I have 10 browsers in the current script. Where can I see the list of your browsers so I can see what I am missing? Stock browser is yet to be beaten in my opinion. The only one close enough is dolphin.
[Asus Transformer TF700] elfaure:
You can download the recently updated autostart4.sh and open it to see all the mount codes. You can click the link in my signature and go to the OP to get it. Here is the full list:

Stock

Naked

Chrome

Firefox

Opera Mobile

Opera Mini

Boat

Boat Mini

Dolphin

Dolphin Mini

Baudi

Adrenaline

Maxthon

One

What are the default OOM settings you are using in your ROM?
[Asus Transformer TF700] wl123:
Was wondering what Kernel everyone was using, and what is recommended? A few days ago I installed ChromiX 4.5 for the first time ever using a ROM. It works great, and im about to try upgrading to ChromiX 4.6.1. I used _that/ stock modded kernel variant based from ASUS Stock.

My other question is flashing a MOD of 4.6.1 over top of 4.5. Do i have to wipe my tablet and then install every app again? When I flashed 4.5, it was over stock and all my apps were saved when ChromiX loaded

Thanks for any help
[Asus Transformer TF700] berndblb:
You can dirty flash 4.6.1 over 4.5 - no problem there.

I personally think that _that's kernels are the most stable and that's what I'm looking for - no pun intended :D

A lot of users tried and liked Max's kernel, but I have no personal experience with it.
[Asus Transformer TF700] sbdags:
I agree. If you want stability either use my stock based or the more tweaked _that's kernel as your base. Max and Hunds whilst quick also sacrifice some stability.
[Asus Transformer TF700] wl123:
Thanks, I did dirty flash 4.6.1 and it worked great. I went with _that/ stock modded kernel variant based from ASUS Stock, which the same Kernel I was using on 4.5. No problems with the MOD so far. Its really great to have such a huge support group. I had no idea Android had had such a following until I just purchased this tablet. Thanks for the help
[Asus Transformer TF700] KinetiClutch:
I felt the same until this tablet. The xda community really makes android stand apart.

Also if you feel like you might want a bit more Max Kernel v3, is very stable for me giving me incredible speeds. Is just a simple flash via twrp, make a nandroid and try it?
[Asus Transformer TF700] Tylorw1:
Maxkernel runs well but I would not put it out there just yet as it is not liking 32 or 64 GB Micro SD cards and is tending to wiping them. The issue is being worked on though.

Tylor
[Asus Transformer TF700] codeinish:
+1 cromix 4.6.1 and _that kernel work great for me.

This group is unique and splendid indeed!
[Asus Transformer TF700] Deathman20:
I've been using Hunds Kernal for a while and its great. Better yet is the options now to incorporate CPU/GPU Clocks of your own into the Asus Power Bar via his app. I like just a little bit more power especially on the GPU as needed and it provides that, as well has the Data2SD capabilities.
[Asus Transformer TF700] gsuh54:
Any way to get hybrid or pie on it, or is that aokp only?
[Asus Transformer TF700] adelancker:
You could try PIE controls through the LMT app found in the xda forums somewhere. It works fine, but I just haven't really found any practical use for it :)
[Asus Transformer TF700] gsuh54:
Cool, i'll give it a try.
[Asus Transformer TF700] sbdags:
LMT PIE controls are included in the installer of CROMi-X :cool:
[Asus Transformer TF700] mertmag:
Browser Lag

I know what you mean about browser lag. It's been a problem from day one. I changed the net core memory settings in system tuner memory tweaks to 1.5mb instead of 1 and all my browsers run faster. Even the stock one.
[Asus Transformer TF700] berndblb:
I would suggest you guys try the stock browser on 4.6.4 without any of your additional tweaks. It's SCREAMING for me. My home page is up in the blink of an eye, CNN takes 2 seconds to load - it's the fastest browser I have seen anywhere. Tablet/PC/Phone - nothing like it.....
[Asus Transformer TF700] Tylorw1:
I totally agree with you, but have you tried Boat or Dolphin since they are now implemented into B2R? Dolphin runs really well but is more pretty the stock, thus giving it less of a speed boost. Also, the new Opera Next for PC, which is Opera based off Blink, which is Google's remake of webkit, flies like crazy. It is in beta though so not all features are implemented but still screams while retaining Opera's beautiful desktop interface, or the imaging of it.

Tylor
[Asus Transformer TF700] berndblb:
STILL up, ehhh?

When it comes to the browser I'm very utilitarian: I wanna see the web page and fast - don't care much about the eye candy....

What I like about the stock browser is that it syncs with my Google bookmarks. Does Dolphin or Opera Next do that? Maybe I'll give Opera a spin - don't have much planed for the rest of the night ;)
[Asus Transformer TF700] Tylorw1:
Opera next is the desktop browser beta. They rebuilt it from the ground up and their sync is not implemented yet but yes it used to be all opera browsers synced together no matter the device.

Tylor
[Asus Transformer TF700] Neo3D:
I did your tweak and my stock browser loads faster but Chrome is still laggy as usual.
[Asus Transformer TF700] sbdags:
What is the tweak? I'd like to test it.
[Asus Transformer TF700] Neo3D:
http://xdaforums.com/showpost.php?p=42107064&postcount=20

I changed the slider settings to 1.50mb and 2.00mb in the SysCtl tab.

The stock browser "feels" like it loads faster, but I didn't do any before and after timings.
[Galaxy Note II Accessories] spfraggle:
I'm getting the Mugen battery delivered soon, does anyone know of a way you can combine the Samsung flip cover and the Mugen battery taking into account the new back cover needed for the Mugen battery?
[Nexus 4 Q&A, Help & Troubleshooting] mmm286:
Hi

There is some mod to have some volume slides like these?

Many thanks and sorry for my English

Enviado desde mi Nexus 4 usando Tapatalk 2
[Galaxy S III Q&A, Help & Troubleshooting] abihakim:
Anyone have tried?

I'm currently on 4.1.2 Rooted ChainFire

I just wonder if it is possible to flash the 4.2.2 stock ROM from sammobile with CWM?

Which means

i can keep the root while updated to 4.2.2

Because AFAIK, flash via ODIN will remove the root itself.

any respondse will be appreciated

Thanks in advance
[Galaxy S III Q&A, Help & Troubleshooting] Glebun:
all the ROMs on sammobile are Odin-flashable.

It doesn't matter what you flash it with - if the ROM is not rooted, then you'll lose root.

Get a pre-rooted 4.2.2 from the dev section
[Galaxy S III Q&A, Help & Troubleshooting] hany kesho:
The only way to do is with odin for mobile :D
[Galaxy S III Q&A, Help & Troubleshooting] Glebun:
what? no
[Galaxy S III Q&A, Help & Troubleshooting] K3vin71:
No you can't
[Galaxy S III Q&A, Help & Troubleshooting] delsus:
You have two options, flash with PC Odin, then root with CF Auto root, and flash CWM via rom manager.

Or you can flash with mobile Odin, don't flash recovery.img and check the everroot option this will keep root and custom recovery.
[Galaxy S III Q&A, Help & Troubleshooting] tuli20:
Few minutes ago I tried to update my software version, with Odin Mobile to 4.1.2 official Samsung Rom.

Now when the phone starts up, it shown with black scree, and the back&menu bottoms lights works.

What can I do, Please?

TNKS!:)