yashsingh1/xdaforums huggingface dataset:
[General Questions and Answers] skrishna86:
Hi Ravi,

I would like to do the same. Did you figure that out? Any help would be appreciated.

Thanks,

Krishnan.
[General Questions and Answers] daim0nas:
a little bit late, but this may help someone that has the same question:

http://android.stackexchange.com/questions/6558/how-can-i-run-a-script-on-boot
[EVO Shift 4G General] riggsandroid:
Nice write up. When I have time I'll see if it works for me.
[EVO Shift 4G General] sparksco:
Yeah this was a quick write up. The main thing is you have to reboot every time you edit your .bashrc, or copy and paste it into terminal

Also I'll be doing a how to compile kernel, hopefully soon
[EVO Shift 4G General] danaff37:
Or just when you change your bashrc, just source the bashrc script

. ~/.bashrc
[EVO Shift 4G General] sparksco:
Has anyone tried a swap file yet? I just set mine up and it seems to speed compiling up quite a bit. I went off of this guide but I made mine 1.6GB in size

https://help.ubuntu.com/community/SwapFaq
[EVO Shift 4G General] drob311:
You are a savior... I have been trying to get this running on my natty tower, but have had little success... This write up will be very handy... Thank you for the excellent write up and the time for doing it... :)
[EVO Shift 4G General] sparksco:
New java update?

I noticed that my java was not all the way up to date. I went into recovery and selected fix broken packages and then it updated my java to this version:

~$ java -version

java version "1.6.0_25"

Java(TM) SE Runtime Environment (build 1.6.0_25-b06)

Java HotSpot(TM) 64-Bit Server VM (build 20.0-b11, mixed mode)

On a side note it also updated my python and some other things. Make sure you have internet that is not wifi
[EVO Shift 4G General] sparksco:
guide updated for korg workaround. Changes are labeled in red
[EVO Shift 4G General] JaceAlvejetti:
Repo not found?

Followed Directions to the T, Currently Hung up on

$ repo init -u git://github.com/CyanogenMod/android.git -b gingerbread --repo-url=git://github.com/android/tools_repo.git

Tells me repo command not Found

EDIT: I'm sorry hows about more info?, Ubuntu 11.10 64bit need anymore just ask :)
[EVO Shift 4G General] VICODAN:
Nice guide. Can I do this on Fedora?
[EVO Shift 4G General] jesusice:
...6 months later.

Ya find any of that time yet, Riggs?
[EVO Shift 4G General] sparksco:
Did you set up ~/bin/repo yet? Never had that issue before. Probably need to reboot once for the repo to take effect. Just like it says on the OP.
[EVO Shift 4G General] sparksco:
I wish I knew more about fedora, but I just don't, sorry.
[EVO Shift 4G General] VICODAN:
It works fine on fedora just change the apt-get to yum
[EVO Shift 4G General] Dread 7us:
Great guide, thanks sparksco
[EVO Shift 4G General] sparksco:
Sweet thanks for pointing that out. I've been meaning to update this guide when I have time later when I get home I'll update more info on it. I've also been wanting to try fedora for quite some time.
[EVO Shift 4G General] sparksco:
I was wondering about this too
[EVO Shift 4G General] sparksco:
OP updated

Updated OP to include Vicodan's instructions and this is to build kanged editions of Cyanogenmod. I will also start posting my own versions of the kanged builds here when I get a build that will include my own extra mods.
[EVO Shift 4G General] bdbc:
Awesome guide. I'll be trying this soon. Tonight, if the wife and kids cooperate. Which usually translates to 'a week from now' lol...
[EVO Shift 4G General] blahbl4hblah:
Its all good. me and sparksco use regular Ubuntu and it runs great
[EVO Shift 4G General] VICODAN:
Detailed instructions for Fedora 32/64 bit:

As root:

1) 32+64 bit:

yum install git gnupg flex bison gperf SDL-devel esound-devel wxGTK-devel zip curl ncurses-devel zlib-devel gcc-c++

2) 64bit also run:

yum install glibc-devel.i686 libstdc++.i686 zlib-devel.i686 ncurses-devel.i686

As a normal user (not root):

mkdir -p ~/bin
curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
chmod a+x ~/bin/repo
echo $PATH|grep ~/bin>/dev/null||export PATH="${PATH}":~/bin

To validate the repo command is in your path, type 'which repo'.

To add ~/bin to your $PATH edit ~/.bashrc and add:

export PATH = ~/bin:$PATH

Download ROM Source Code

mkdir -p ~/android/system
cd ~/android/system
repo init -u git://github.com/CyanogenMod/android.git -b gingerbread
repo sync -j16

For ICS use -b ics (not that it exists for CM9 yet. :confused:)

When you get this error:

error: Exited sync due to fetch errors
[VICODAN@Fedora14 system]$ repo sync -j16
Fetching projects: 93% (293/314) fatal: The remote end hung up unexpectedly
Fetching projects: 99% (311/314) ^Cfatal: The remote end hung up unexpectedly
error: Cannot fetch CyanogenMod/android_prebuilt

Run this command:

vi .repo/manifests/default.xml

Change git:// to https://

Repo sync again.

[VICODAN@Fedora14 system]$ repo sync -j128
Fetching projects: 99% (311/314) remote: Counting objects: 19495, done.
remote: Compressing objects: 100% (11625/11625), done.
Receiving objects: 98% (19151/19495), 1.75 GiB | 1.87 MiB/s
remote: Total 19495 (delta 7010), reused 19495 (delta 7010)
Receiving objects: 100% (19495/19495), 1.80 GiB | 1.87 MiB/s, done.
Resolving deltas: 100% (7010/7010), done.
From https://github.com/CyanogenMod/android_prebuilt
* [new branch] gingerbread -> github/gingerbread
* [new branch] gingerbread-release -> github/gingerbread-release
* [new branch] ics -> github/ics
* [new tag] cm-7.1.0 -> cm-7.1.0
Fetching projects: 100% (314/314), done.
Checking out files: 100% (12553/12553), done.ut files: 17% (2160/12553)
Checking out files: 100% (10462/10462), done.ut files: 0% (75/10462)
Checking out files: 100% (913/913), done.ng out files: 4% (44/913)
Checking out files: 100% (1007/1007), done.
Syncing work tree: 100% (314/314), done.

[VICODAN@Fedora14 system]$ repo sync
Fetching projects: 100% (314/314), done.

[VICODAN@Fedora14 system]$

What to do after that I'm still working on. :)
[EVO Shift 4G General] VICODAN:
Well I created my own kang after fighting with it for a bit.. had to flash a non stock kernel and sound doesn't work. Everything else seems to work. I'll upload the zip later.

http://www.mediafire.com/?1qzn48tli3tais1

b4c9b01706684daadda223bd9daa3bc4 update-cm-7.2.0-RC0-Speedy-KANG-signed.zip
[EVO Shift 4G General] cloverdale:
Here is a version with the stock CM kernel and the sound does work. Beyond that, I have not done much testing, but it does boot as is.

CM 7.2.0-RC0 Kang Build By Cloverdale
[EVO Shift 4G General] blahbl4hblah:
Congrats to the both of you for successfully compiling your first kanges

One of you is using a super old java while the other is using a mac
[EVO Shift 4G General] sparksco:
Well I never had much luck compiling using openjdk without some type of strange errors. That's why I use sun-java6 which is not the same type of java that openjdk is. But maybe you'll have better luck since your using fedora? The kernel is and should already be built into the rom itself so there's really no need to compile the kernel unless your trying to compile your own kernel into the rom? My new kanged reads cm9.0.0-Kanged and not cm7.2.0 RC0 so I'm not sure what the differences are between the two and how they compile.
[EVO Shift 4G General] sparksco:
If that's all they have I guess it works...but macs are not recommended over linux when it comes to android software development and better support for java runtime env. Both macs and openjdk use older types of java. Maybe it's because there's more support for ubuntu but who knows lol.
[EVO Shift 4G General] VICODAN:
That might be my problem is that I used openjdk. I couldn't find the sun jdk package for Fedora.

Also where did you check out the CM9 source? It's not on github.
[EVO Shift 4G General] sparksco:
It might not be supported or available for fedora systems but you could always check sun java's website.

For cm9 it requires a special unique way of building in the device source tree which is not available anywhere on github. I had to make my own source tree port for cm9. I'm sure toastcfh has his own source tree as well but once again it's not available on the git.
[EVO Shift 4G General] VICODAN:
It's toastcfh's "private github" for cool people only. Hook a brotha up!

P.S. where you been on google talk???!?!?!

Happy New Years Sparky!
[EVO Shift 4G General] blahbl4hblah:
Toast never released anything. Sparksco source is his own
[EVO Shift 4G General] cloverdale:
Thanks for the congrats, but this is only my first compile on a mac (I was building from source for my G1 in 2009). I have always been a linux user (debian with xfce dm), but since my work bought me a mac, I have been trying to compile anything I can, usually with very nice results.

---------- Post added at 10:15 AM ---------- Previous post was at 10:02 AM ----------

I was a die hard linux user for many years, the type that would automatically judge someone for using a mac, but after getting a mac through my job, I have been amazed at what it can do. The real problem with a mac, is that the typical user buys one so that they do not have to learn any unix (or really anything at all), and so most people do not realize how capable they are (it took less than 20 minutes to build cm-7 from source).

As an aside, people on here do consistently debase macs and apple, for which I have been very guilty of in my past, but there is something about apple that american tax payers should know. When purchasing a computer, the federal government is required to purchase through "small businesses", who in turn are allowed to charge a little bit extra (it is a subsidy to keep small businesses around, and keep competition in the market). For some reason, Dell and HP are able to use this, and have special government pricing. When I was looking to buy a new laptop, for what I needed (which includes calculations on large data sets in Mathematica, MATLAB, and Stata) Dell wanted $9,000 and HP $9,500. These laptops would have cost between $5000 and $6000 for a regular purchase! It turns out that through Apple, I was able to get something equivalent (or better) for $3800, and they did not add on one cent for the federal purchase. That is a significant amount of money, which would have come out of all of our pockets.
[EVO Shift 4G General] sparksco:
Don't know anything about toastcfh's private repos, you'll have to ask him.
[EVO Shift 4G General] blahbl4hblah:
Like I said the hardware in any computer makes it build faster, compiling never does take long. Just got to have a lot of patience basically
[EVO Shift 4G General] sparksco:
If you run make update-api before building you should be able to compile it just fine with just about any type of java. Try running "lunch", then pick the number that says cyanogen-speedy e.g. 23 or whatever number it is. Wait until it runs through the build type and all that. Once your back at the command line run "make update-api". Once that finishes you can go on to run the "brunch" command. Or if you feel your builds are not compiling correctly with brunch just run "make otapackage". But even if you run make otapackage you still need to run lunch first and select the number for cyanogenmod-speedy. Hope this helps.
[EVO Shift 4G General] VICODAN:
I meant can you hook me up with your cm9 repo or provide some instructions?
[EVO Shift 4G General] sparksco:
Once I get a build that boots I'll post my sources along with the rom needed to build it. But right now I need the source to be stable. I don't have the source up on a repo yet. I just finished a build so it should be ready by tomorrow. And things that should be working right out of the box thanks to cm. Gps, wifi, wimax, new launcher, other cool things. If all goes well I'll be able to work on a new kernel and have everything ready by tomorrow.
[EVO Shift 4G General] VICODAN:
Great job sparky.
[EVO Shift 4G General] sparksco:
Your right about the sound not working, not sure what's up with that. I had to mix some of the nightly 255 rom with the build in order to get sound working.

I am the defender of Light and Truth. Suppressing the truth can incur the wrath of God.
[EVO Shift 4G General] VICODAN:
It's a bug in the source code. If you have an older copy of the repo before the bug in "AudioHardware.cpp" you will be able to compile.

Also "extract-files.sh" is full of bugs and missing files that are needed to compile.

I actually made a list of files that were missing from that script (there's probably more):

libgsl.so

wimaxDhcp.conf

TPA2051_CFG.csv

vendor/htc/speedy/proprietary/ip

/system/bin/ip

libaudio.so
[EVO Shift 4G General] sparksco:
Yeah they don't update extract-files.sh anymore. When you start compiling you'll get errors about missing libs so I'm guessing that's how you generated the list? At least that's how I did it. I added libaudio.so thinking that would fix the issue but nope. I'll try the AudioHardware.cpp thanks for the tip.

I am the defender of Light and Truth. Suppressing the truth can incur the wrath of God.
[EVO Shift 4G General] sparksco:
Is it just me or does disable boot animation not work properly?

I am the defender of Light and Truth. Suppressing the truth can incur the wrath of God.
[EVO Shift 4G General] sparksco:
New repo updates.

I am the defender of Light and Truth. Suppressing the truth can incur the wrath of God.
[EVO Shift 4G General] xjman:
I've been working with android for some time now. Almost all work is just work pulled from someone else, ported from another phone, or kanged from CM.

The only edit I've seen accepted to CM by sparks was adding a mount point, that is far from the ordeal you make it out to be.
[EVO Shift 4G General] -somebody-:
https://github.com/CyanogenMod/andr...mmit/5eeeec5f5d93a13334cb61f2559fa7c3c53e9d5c and https://github.com/CyanogenMod/andr...mmit/b310a0538942986627a8efa96bf32224021a0aac
[EVO Shift 4G General] one_love_420:
ok yes it is mislabeled but if you read the code you can clearly see its parts 1 and 2, for instance:

in PerformanceSettingsActivity.java

private static final String DISABLE_BOOTANIMATION_PERSIST_PROP = "persist.sys.nobootanimation";

and in the bootanimation_main.cpp you can see it needs the other part

change:

property_get("debug.sf.nobootanimation", value, "0");

to :

property_get("persist.sys.nobootanimation", value, "0");
[EVO Shift 4G General] VICODAN:
I currently run UKE and would appreciate a complete repo from Speedy that I could kang from. As of right now the current CM7 repo does not compile properly.
[EVO Shift 4G General] Scrip:
ROFL

every time you ask linux to do a simple thing be sure to reboot
[EVO Shift 4G General] Scrip:
a complete waste of time

Another waste of time

Yet again another waste of time

You really are dumb

All you need to do is

. ~/.bashrc

____________________

Hitting the thanks button is soo much easier then typing thanks![/QUOTE]
[EVO Shift 4G General] Scrip:
so why do it?

your OP is a joke

wtf is this about?

Use apt to uninstall it

Or if you are dumb enough to just delete it

this is better

sudo apt-get remove openjdk-6-jre

and this is even quicker

sudo find /usr/lib/jvm -maxdepth 1 -name "*openjdk" -exec rm -r {} ';'

BUT that will screw with dependencies

sudo update-alternatives --config java

is a *much* better way of dealing with it

has nothing to do with your stupid statement that you need to reboot when you edit the .bashrc

Nope, you said that you need to reboot if you edit the .bashrc

Seriously, pretending to be some expert who can do advanced things is not going to wash with me. You have an extremely basic grasp of Linux

Guys, if you want to learn how to compile Android on Linux then read this

http://source.android.com/source/initializing.html

Sparcksco's OP is a joke, which is a poor rehash of the above link and CyanogenMods wiki
[EVO Shift 4G General] dodgejcr:
I usually dont get in the middle of anything here at xda because there are alot of people who feel the need to voice their opinion on ever little thing (even when not knowing what is accurate or not) but this is getting stupid. Sparksco if you had any knowledge with linux other than the usual *I installed ubuntu in a VM or dual boot to learn some android, so I must be the most hardcore MOFO out there now* crap, you would know that in Linux there is several different ways to get everything done. Some are easy, some are not, some are preferred by most, some are not. It is pretty stupid to argue back and forth about it and really shows that you, above everything else, have a serious problem with admitting that others are right even if that means you are not necessarily wrong.

You and I have had it out a little before and it resulted in you insulting me and my knowledge of kernel compiling, toolchain usage, and something else Im sure. Its getting rather old and I know that my years of Linux usage and admin speaks for my knowledge. I dont come on here and try and grow my e-peen with stupid attempts at proving others wrong and starting some pointless flamewar. I dont have an ego and I know that I do not know everything there is about linux and will probably never will but I do know that when I am proven wrong or told another way to do something, I dont flame the **** out of them and insult their knowledge or ability. That is why people troll you, you get to the point where you make no sense and attack anything that has opposition to what you say. Seriously man, as a person who cares nothing about who you are or how smart you think you are and would like to see you learn and grow with XDA and the information you can find here, please stop your ego-driven rants about your crap. If you need to feel better about yourself or some boast in confidence, XDA shouldnt be the place you are looking.

EDIT: Flame me all you want, I dont care and know you are about too. I know what I am doing or I wouldnt be here doing it. You probably saw that when you forked my repo to get my source right? It would make sense that you would delete it after the fact as I dont see you having anything to contribute just wanted to either check up on me or grab my source. Its all good, thats why its there :D
[EVO Shift 4G General] Scrip:
Works just fine for me

could it be that you just screwed up your system by screwing around with it

which is just a gui for apt

No not really, some Packages may depend on Open{jdk,jre}

You didn't tell the PackageManager you deleted it, which could lead to a screwed up system

I wonder why you couldn't get the official guide to work?

Nothing wrong with them, they are working just fine for me

You should take your own advice

Obviously ?

How is this obvious to you?

Do you honestly believe that?

So there are others who point out your ineptitudes

bit difficult seeing as I only have a few posts here

if you are bored then poke around on www.linuxquestions.org you may just find me there

whatever you say

Ok now I'm confused

You think I am Firerat?

Why?

just because I ROFL at your dumb "you must reboot every time you edit .bashrc" statement?

I think you may have a touch of the old Paranoia.

Do you see Trolls everywhere?
[EVO Shift 4G General] blahbl4hblah:
Myself and a few other people that I've seen post on this thread has used this guide and has successfully compiled a working rom. I might not have a shift but the guide is universal and it will work for ALL CyanogenMod support devices.

If you don't have anything better to say to HELP people if they have errors, keep it to yourself
[EVO Shift 4G General] af974:
Deleted 30 posts of garbage!

Obviously there is there is some "love" between sparksco and one_love_420, guys i'm not going to pm both, this is the last advice, keep the crap out of here please, if you want to have a "nice" chat then use the PM.

I'm not the one that i like to gift infraction points but this is the last time i'm come here without only give warnings.

Oh, btw, this is mean for all, of course, i would really like to don't see any other flame post.

Americans, sorry for my English lol
[EVO Shift 4G General] conantroutman:
Pretty disappointed at what I'm seeing here.

This is a development forum, NOT a playground....

Please do not bring your petty squabbles on here, if it's not constructive and relevant to the topic then keep it to yourself.

No more warnings.

Sent From My Fingers To Your Face......
[EVO Shift 4G General] zelendel:
OK guys the fighting stops now!! If people have a prob with each other then take it up in PMs not in the threads. Tossing insults back and forth is childish, pointless and doesn't belong here. I or another mod will be cleaning this thread up soon. If this continues then this thread will be closed and people will be sent on vacations from XDA.

This is my only warning. I don't care who started it. I am ending it now. I hope I have made myself clear.
[EVO Shift 4G General] sparksco:
Understood, is there any way all the slanderous post from all posters could be removed from all posters?

Edit: I've edited my post but they could still used deleting if necessary.

____________________

Hitting the thanks button is soo much easier then typing thanks!
[EVO Shift 4G General] sparksco:
Have you tested it yet?

____________________

Hitting the thanks button is soo much easier then typing thanks!
[EVO Shift 4G General] sparksco:
Here's a new kanged. Audio works, torch, and disable bootanimation. Pretty much everything works. Also inserted apps2ext/swap support, gapps, framework animations and my own bootanimation. And I used this guide to do it :-D

Included in it is my own kernel not the stock cm kernel.

GPL

CM 7.2.0-RC0 Kang Build By SparksCo
[EVO Shift 4G General] VICODAN:
Wimax, GPS, Wifi, Audio all work?
[EVO Shift 4G General] sparksco:
Yes they all work.

____________________

Hitting the thanks button is soo much easier then typing thanks!
[EVO Shift 4G General] VICODAN:
Sweet. I will try it out tonight. Thanks.
[EVO Shift 4G General] sparksco:
I also built pershoot v14 into the rom source. I'm using a lot of my own repositories on github including the device tree repo.

____________________

Hitting the thanks button is soo much easier then typing thanks!
[EVO Shift 4G General] VICODAN:
Sweet. I just updated my PRL using Supreme. I will try and get this on my phone ASAP. Did you change I/O schedulers at all?
[EVO Shift 4G General] sparksco:
Not yet, working on other devices a.t.m..

____________________

Hitting the thanks button is soo much easier then typing thanks!
[EVO Shift 4G General] YoungCorruptionV2.0:
Gonna try your 7.2 right now :D. Haven't ran a Cm rom in a long ass time
[EVO Shift 4G General] sparksco:
cool, I disabled animations because it seemed like it was slowing things down a lot but I'm sure everyone has their own experiences with it.
[EVO Shift 4G General] YoungCorruptionV2.0:
Using your version and i'm having the same problem i was with miui. When i reboot my phone all apps i download disappear and have to re-download them. Data says but apps do not
[EVO Shift 4G General] sparksco:
No clue man first I've heard of that happening.
[EVO Shift 4G General] YoungCorruptionV2.0:
Damn. Oh well I don't download many apps to begin with and don't reboot phone often. I can live with :cool:

Sent from my PG06100 using Xparent Blue Tapatalk
[EVO Shift 4G General] Dread 7us:
You better be using my app haha
[EVO Shift 4G General] YoungCorruptionV2.0:
Lol I am and I've noticed one problem which I'll pm you about

Sent from my PG06100 using Xparent Blue Tapatalk
[EVO Shift 4G General] Dread 7us:
I meant reboot scheduler but app timer help works too :)