yashsingh1/xdaforums huggingface dataset:
[HTC Sensation] Vorbeth:
True

I use a script to run my build:

#!/bin/bash

SOURCE_DIR="$(dirname "$(readlink -f "$0")")"
setup()
{
USE_CCACHE=1
CCACHE=ccache
CCACHE_BASEDIR="$SOURCE_DIR"
CCACHE_COMPRESS=1
CCACHE_DIR="$SOURCE_DIR/.ccache"
export USE_CCACHE CCACHE_DIR CCACHE_COMPRESS CCACHE_BASEDIR
source build/envsetup.sh
lunch cm_$1-userdebug
}

setup pyramid

if [ "$1" = "clean" ]; then
make CC=gcc-4.4 CXX=g++-4.4 clean
fi

START=$(date +%s)

make CC=gcc-4.4 CXX=g++-4.4 -j`cat /proc/cpuinfo| grep processor | wc -l` otapackage 2>&1 | tee build_log

END=$(date +%s)
ELAPSED=$((END - START))
E_MIN=$((ELAPSED / 60))
E_SEC=$((ELAPSED - E_MIN * 60))
printf "Time to compile: "
[ $E_MIN != 0 ] && printf "%d min(s) " $E_MIN
printf "%d sec(s)\n" $E_SEC

Just place it as ~/android/system/build.sh

then

chmod a+x ~/android/system/build.sh

All you need to do then for every build is

cd ~/android/system
./build.sh

or for a clean build

cd ~/android/system
./build.sh clean

it also pumps out a nice log of the build to ~/android/system/build_log
[HTC Sensation] matt95:
it takes a lot to download the sources :eek: my pc is downloading for about 3 hr and it hasn't still finished :)
[HTC Sensation] sparksco:
If you run mka instead of make it'll tell you how long it took to compile so need for time elapsed ;)
[HTC Sensation] sparksco:
Your internet must be really slow lol.
[HTC Sensation] matt95:
my internet connection is 20mb/s but in the terminal it is downloading at 110kb/s....**** :) after 6.30hr it is 99% D:

wired connection

---------- Post added at 07:22 PM ---------- Previous post was at 06:52 PM ----------

stupid question delete :)
[HTC Sensation] sparksco:
Just put this is .bashrc no need to put your /home/username

export PATH=$PATH:~/bin

Done lol

For everything that says "/home/username"; "~" does the exact same thing.

I put everything on the top or bottom of the .bashrc but don't mix things up and put things inbetween the stuff that's already in there. Seperate everything with one space so you can tell easier what is what.
[HTC Sensation] matt95:
Ok thank i had solved that one... Just red wrong but now I can't run envsetup.sh
[HTC Sensation] sparksco:
Why not? :confused:
[HTC Sensation] matt95:
If I double click on it and a choose run on terminal it shows and then disappears immediately and if I run in typing the code in the terminal it doesn't start
[HTC Sensation] tomS01:
Hi Sparksco!

How can i put some other apk to the finally output?

I must use other program example Android Kitchen

Or something else?

Thanks

Tom
[HTC Sensation] sparksco:
You have to run it in terminal. You must not be typing something some right. $ . (One space here) build/envsetup.sh
[HTC Sensation] sparksco:
If you want to add something like torch you have to moddify some files in the source code so it'll build into the rom. I don't have a device tree for my device yet so I can't really test anything yet. But basicly you'd have to add things to your own repo's on github and then add those to your local_manifest.xml. It can get pretty complicated. I would like to try and add some things like fm radio and torch once I have a device source tree for my device but right now I can't really do much without that.
[HTC Sensation] tomS01:
Thanks i will try something in this way.
[HTC Sensation] matt95:
doesn't go...i'm checking the PATH now
[HTC Sensation] matt95:
Nothing... I get this
[HTC Sensation] sparksco:
Follow the steps in the first post. They are very clear, it's not too much to ask is it?
[HTC Sensation] matt95:
well the problem is that i have followed it 2 times :)
[HTC Sensation] sparksco:
No your not, your just flaming this thread because you can't follow the instructions. You should compare our screenshots and you'll see what step you missed. If not good luck
[HTC Sensation] matt95:
well, don't want to argue i'll re-follow this guide again, sorry for that man
[HTC Sensation] blahbl4hblah:
You sir forgot to CD into source folder
[HTC Sensation] tomS01:
I follow the steps & i can tell to all mate here

usefully only one thing must keep it real read! The mistake or error not in guide are. Inside the user have it:D
[HTC Sensation] matt95:
yep, sorry to all :( but i have not red so...the guide tells to type . build/envsetup.sh...so i didn't know that i had to go in the android/system folder before...
[HTC Sensation] sparksco:
For people that are not use to using linux terminal or comfortable using it I found a few good sites:

http://ss64.com/bash/

http://www.unixguide.net/linux/linuxshortcuts.shtml

http://www.pixelbeat.org/cmdline.html

There's more just search around if these are not what your looking for ;)
[HTC Sensation] matt95:
thank you i'll read it later...i used to have ubuntu 10.04 for developing but this 11.10 is driving me mad :mad:
[HTC Sensation] tomS01:
Hi Matt!

10.04 much better for use 11.10 looks nice but also drive me out of motorway.
[HTC Sensation] matt95:
yep man! i installed this one because the guide is based on 11.10 but i hate it! now i'm trying to understand how things work here ;)
[HTC Sensation] elelinux:
A good little script, but I had changed otapackage to bacon instead, to compile CM otapackage.
[HTC Sensation] sparksco:
Honestly I didn't like it at first either until I removed unity and installed kde plasma. But now it's working and looking fine :)
[HTC Sensation] sparksco:
Terminal commands have not changed much...
[HTC Sensation] matt95:
Ok now I am a bit scared of posting again an error :) but I have followed all the things above and now I get this

I have chosen #18 which is cm_pyramid-userdebug and I got that error... My repo manifest is ok i have created it as in the guide... So what's the problem? :-(
[HTC Sensation] xXkingsromXx:
prob

cant get past this help needed thanks

:D:D:D:D
[HTC Sensation] blahbl4hblah:
You made the local_manifest correct? The thing with vorbeths github that he doesn't include cm.mk that's why I prefer elelinux most of the time and its a little more organized
[HTC Sensation] sparksco:
I think this was discussed before with a previous user. Close the terminal, open up a new one and cd to android/system and just do repo sync. repo sync -j makes it hang on 99% :x
[HTC Sensation] Vorbeth:
Err, You will see I do: https://github.com/OpenSensation/android_device_htc_pyramid/blob/master/cm.mk

How else do you think I can compile...

Also the repo is a near mirror of elelinux's and is organised exactly the same!!
[HTC Sensation] sparksco:
That's really strange, maybe he didn't repo sync again? Lol

So just to clear this up what are the differences between the two repo's again?
[HTC Sensation] xXkingsromXx:
got to last command please explain what i am todo please!

make CC=gcc-4.4 CXX=g++-4.4 -j# otapackage(Change # to the number of system cores on your computer)
[HTC Sensation] blahbl4hblah:
It's pretty simple to understand

Look at the parentheses
[HTC Sensation] xXkingsromXx:
(Change # to the number of system cores on your computer)

i have duall core dell inspiron one 19T .... after# put 2?:confused:
[HTC Sensation] blahbl4hblah:
There you go, now you finally get it
[HTC Sensation] xXkingsromXx:
make in text file then paste edit in terminal?:eek:

does this look correct?

make CC=gcc-4.4 CXX=g++-4.4 -j#2 otapackage
[HTC Sensation] blahbl4hblah:
I'm been very patient with you, use some common sense

It'll help you A LOT
[HTC Sensation] xXkingsromXx:
yes you have after i select #20 i get this....

============================================

PLATFORM_VERSION_CODENAME=REL

PLATFORM_VERSION=4.0.3

TARGET_PRODUCT=cm_pyramid

TARGET_BUILD_VARIANT=userdebug

TARGET_BUILD_TYPE=release

TARGET_BUILD_APPS=

TARGET_ARCH=arm

TARGET_ARCH_VARIANT=armv7-a-neon

HOST_ARCH=x86

HOST_OS=linux

HOST_BUILD_TYPE=release

BUILD_ID=MR1

============================================

then just paste this...

make CC=gcc-4.4 CXX=g++-4.4 -j#2 otapackage

then enter???

and i do appreciate yur patience and honesty!
[HTC Sensation] sparksco:
#=number of cores. You don't have to put -j2 if you don't want to if it's that complicated bro. It will build just fine without it.
[HTC Sensation] xXkingsromXx:
thanks been devin since G! just never compiled from source thats all dont mean to pester you in any way bro!

---------- Post added at 06:01 AM ---------- Previous post was at 05:59 AM ----------

just throws this error

This program built for i686-pc-linux-gnu

Report bugs to <bug-make@gnu.org>

king@king-Inspiron-One-19T:~/android/system$

last coomand almost there just tryin to make it happen thats all!

---------- Post added at 06:04 AM ---------- Previous post was at 06:01 AM ----------

select #20 after this correct???

Which would you like? [full-eng]
[HTC Sensation] sparksco:
It sounds like a compatibility issue with your pc hardware and your running ubuntu right? Try removing the toolchain stuff from your .bashrc that might be causing gcc issues
[HTC Sensation] xXkingsromXx:
kkkkk

thanks will do:D
[HTC Sensation] sparksco:
You might need to reboot or just close and open a fresh terminal window after .bashrc edit and it should clear away the toolchain stuff
[HTC Sensation] xXkingsromXx:
k thanks for the quidance

i sect this---. build/envsetup.sh

get this----king@king-Inspiron-One-19T:~/android/system$ . build/envsetup.sh

including device/htc/pyramid/vendorsetup.sh

including device/moto/stingray/vendorsetup.sh

including device/moto/wingray/vendorsetup.sh

including device/samsung/maguro/vendorsetup.sh

including device/samsung/toro/vendorsetup.sh

including device/ti/panda/vendorsetup.sh

including vendor/cm/vendorsetup.sh

including sdk/bash_completion/adb.bash

king@king-Inspiron-One-19T:~/android/system$

then i select this---

king@king-Inspiron-One-19T:~/android/system$ . build/envsetup.sh

including device/htc/pyramid/vendorsetup.sh

including device/moto/stingray/vendorsetup.sh

including device/moto/wingray/vendorsetup.sh

including device/samsung/maguro/vendorsetup.sh

including device/samsung/toro/vendorsetup.sh

including device/ti/panda/vendorsetup.sh

including vendor/cm/vendorsetup.sh

including sdk/bash_completion/adb.bash

king@king-Inspiron-One-19T:~/android/system$ lunch

You're building on Linux

Lunch menu... pick a combo:

1. full-eng

2. full_x86-eng

3. vbox_x86-eng

4. full_pyramid-userdebug

5. full_pyramid-eng

6. full_maguro-userdebug

7. full_toro-userdebug

8. full_panda-eng

9. cm_crespo-userdebug

10. cm_crespo4g-userdebug

11. cm_epicmtd-userdebug

12. cm_maguro-userdebug

13. cm_p4tmo-userdebug

14. cm_p4vzw-userdebug

15. cm_p4wifi-userdebug

16. cm_p920-userdebug

17. cm_p970-userdebug

18. cm_p990-userdebug

19. cm_p999-userdebug

20. cm_pyramid-userdebug

21. cm_shooter-userdebug

22. cm_shooteru-userdebug

23. cm_smb_a1011-userdebug

24. cm_tenderloin-userdebug

25. cm_toro-userdebug

26. cm_wingray-userdebug

Which would you like? [full-eng]

then i select 20--- get this

Which would you like? [full-eng] 20

============================================

PLATFORM_VERSION_CODENAME=REL

PLATFORM_VERSION=4.0.3

TARGET_PRODUCT=cm_pyramid

TARGET_BUILD_VARIANT=userdebug

TARGET_BUILD_TYPE=release

TARGET_BUILD_APPS=

TARGET_ARCH=arm

TARGET_ARCH_VARIANT=armv7-a-neon

HOST_ARCH=x86

HOST_OS=linux

HOST_BUILD_TYPE=release

BUILD_ID=MR1

============================================

king@king-Inspiron-One-19T:~/android/system$

then should i just type... make?

or? make CC=gcc-4.4 CXX=g++-4.4 -j# otapackage??

need this last command correct

please!!!
[HTC Sensation] sparksco:
Yes make CC=gcc-4.4 CXX=g++-4.4 otapackage
[LG Revolution] Silicon Knight:
So every post or site i find thru google, including the main post on here, that tells you how to do it, and gives you the zip with all the files in it that oyu need, the link to download that zip no longer works, i've tried so many different links, all of them thru multiupload and it always errors. So can someone help me find a working link, or just tell me everything that is in the zip so i can download it individually ! The help would be much appreciated !
[LG Revolution] Silicon Knight:
well after lots of frustration i finally found the right files and my phone is rooted. I installed Busybox (super user was auto-instsalled when rooted) and i put CWM on there. SO now that i have clockworkrecovery, how exactly do you boot into recovery mode on the LG ? I kno how to do it with the droid x and droid 2 global, but this is my first non-Motorola android phone.
[LG Revolution] Silicon Knight:
apparently, when i was in CLockworkMod, i selected the downlaod rom option so i could see what roms where there, and it says I need to install clockworkreocvery first (thought it was already installed) and so i click install, but the list of phones that pops up does not have my phone on it, the only LG phone it has is the Esteem. So how do i get ClockWorkRecovery to install and work ?
[LG Revolution] spc_hicks09:
What you are using is an app called ROM Manager and you cannot install Clockworkmod Recovery from that app. No features on that app are compatible with the Revolution.

You need to go to this thread to download and install Clockworkmod Recovery. Just follow the instructions in this post and it will get you Clockworkmod Recovery:

http://xdaforums.com/showthread.php?t=1348557
[LG Revolution] Silicon Knight:
yea i already had it installed, ClockWorkMod just seems to think it isn't, but if i click the reboot into recovery option from within ClockWorkMod, it does indeed boot into ClockWorkReocvery just fine. But I wasn't aware that clockworkmod didn't work for LG Revolution. Why is that ? I loved using it when I had my Droid X. They should fix that !

and so where can i find the ROMs for the LG Revolution ? I would also like to find some themes and what not.
[LG Revolution] spc_hicks09:
There are only 2 ROMs currently available:

Rooted Stock Gingerbread:

http://xdaforums.com/showthread.php?t=1348637

Gingervolt v1.3 (Gingerbread ROM):

http://xdaforums.com/showthread.php?t=1326542

All themes can be found here:

http://xdaforums.com/forumdisplay.php?f=1181

We also have an overclockable kernel (up to 1.9gHz) that can be found here:

http://xdaforums.com/showthread.php?t=1371022

Hope all that helps! If you need any help with anything, just reply back here and let me know!
[LG Revolution] Silicon Knight:
Theres like 5 roms available on theunlockr.com. Thanks for the help bro. I was stoked to hear there is a overclock kernal. Not sure how to use it tho. Ive always used apps like droidoverclock in the past
[LG Revolution] spc_hicks09:
The other ROMs listed on theunlockr.com are most likely Froyo builds. There are only 2 Gingerbread builds. Just flash the kernel, then you can use an app like SetCPU or CPUtuner or ROM Toolbox Pro (recommended) to adjust the kernel settings.
[LG Revolution] Silicon Knight:
How do you flash the kernel ?

Sent using my rooted LG Revolution
[LG Revolution] spc_hicks09:
Just like you would a ROM, then grab some kind of CPU tuning app so you can overclock or underclock, whichever you want.
[Legend Q&A, Help & Troubleshooting] cofface:
Howdy, I tried clockwork unofficial cm9 on my legend and it was great. the only draw back was that there was no way to mount the sd card on my mac. I know this functionality has been removed with ICS but wondered if the devs were going to try and put it in? is it even possible any help would be great.

I can't wait for cm9. Keep up the good work
[Legend Q&A, Help & Troubleshooting] ranger4740:
Deleted
[Legend Q&A, Help & Troubleshooting] Asovse1:
Why not boot into CWM and use USB mass storage? That or use the MicroSD card adapter that came with your SD card, and plug that into your Mac.
[Legend Q&A, Help & Troubleshooting] cofface:
Hello. I've downloaded setCPU today, and I wanted to overclock my CPU from 600 to 800MHz. But when i start up the setCPU it shows 600MHz as the max. freq, and I saw my friend overclocing his ZTE Blade to 1GB. My phone has the same CPU, and of course it's ROOTed. Please help!
[Legend Q&A, Help & Troubleshooting] ranger4740:
Depends on the rom your using. Not ALL rom's support OC, or should I say kernel's.

Btw legends will NEVER OC to 1ghz, best you can expect is about 800mhz or so.
[Legend Q&A, Help & Troubleshooting] Nuxil:
Yep, can confirm that. My Device already crashes with about 768Mhz. The only ROM where overclocking worked for me was B 0.8.4.
[Legend Q&A, Help & Troubleshooting] QUBiCA:
NewSense RC4b has overclocking build in. (19,2 - 768Mhz) You don't even need an app. :D CyanogenMOD also has this build in: Settings -> Cyanogenmod settings -> Performance
[Legend Q&A, Help & Troubleshooting] Nuxil:
I know. But if i use these settings my device keeps rebooting until ich set CPU to 600Mhz. As i said, only Blayo's Rom worked with overclocking.
[Legend Q&A, Help & Troubleshooting] MarkInDaPark:
Overclocking is set in kernel i think. So switch kernel and try again.
[Legend Q&A, Help & Troubleshooting] atahanacar:
I have your answer! Your rom is stock so the kernel was set to 600 mhz max. freq. Just install a rom which supports OC.
[Legend Q&A, Help & Troubleshooting] cofface:
Any chance of an easy flashable way to change my boot animation to the latest cm7 boot animation. Thanks in advance.

sent from CM7 Tbolt using tapatalk
[Legend Q&A, Help & Troubleshooting] Asovse1:
Flashable? You might have to look around lots to find that.

Just push it via ADB. Search this forum for further details, honestly.
[Legend Q&A, Help & Troubleshooting] MarkInDaPark:
http://xdaforums.com/showthread.php?p=14383699
[Legend Q&A, Help & Troubleshooting] cofface:
Placement of icons in adw launcher's dock contained in the default_workspace.xml file is confusing me.

First icon is launcher:container="-300"

Last icon is launcher:container="-400"

How do I specify the icons in-between? Negative values between -300 & -400 don't seem to work (-325,-350,-375).
[Kindle Fire General] ctohang:
My Kindle Fire suddenly power off, I try to turn on again, but no luck.

I try to hold the power button for 20 second, then release and press power button again, it still can't turn on.

May I have any other idea?

Thanks!
[Kindle Fire General] dieandromeda:
try connect usb charger.
[Kindle Fire General] ctohang:
I tried to connect USB with computer and Power supply, result is the same.....
[Kindle Fire General] ctohang:
Please noted that when I connect with any power source, the charging light on power button, which doesn't turn on too...
[Kindle Fire General] MikeGolfW:
Try doing an overnight recharge. There was a post at mobile reads that described a similar issue.
[Kindle Fire General] ryantrax:
Do you have a programming cable? It might charge with one of those. I made my own when I had a similar problem. Just Google it.
[Kindle Fire General] aprsguy:
I experienced a similar situation with my kindle fire. the problem I had is the kindle went into a sleep of death and the battery died. Nothing I tried would wake it up. Plugging in the charger would result in no charging. LED status would not change or even light up.

Solution:

Connect the kindle to the factory charging cable and while it connected perform a hard reset by pressing the power button for longer than 20 seconds. Once this happened the kindle started charging again and once it had about 3% it would power up again.

Hope this helps.
[Kindle Fire General] ctohang:
I tried on last night, still the same.

Thanks!
[Kindle Fire General] ctohang:
I will try it tonight.

Thanks!
[Kindle Fire General] ctohang:
It doesn't work...

Need to submit RMA to Amazon?

Thanks!
[Legend Q&A, Help & Troubleshooting] cofface:
Hi.

Just wondering what metod of flashing you guys normally use. I have used rommanager to do it for me (CM9) and done it "myself" via CWM recovery and install from zip. Is any metod better than the other?

Spanks!
[Legend Q&A, Help & Troubleshooting] MarkInDaPark:
No difference. I flash my ROMs manually in CWM 5.0.2.0 and it's working flawlessy.
[Legend Q&A, Help & Troubleshooting] Stevemotto:
I use rom manager, simple and easy.
[HTC Amaze 4G] Totòòò:
I just received a new back cover. so excited! any tips how not to damage it? thank you!
[HTC Amaze 4G] Double0EK:
Really? Put a case on it.

Sent by accident from my Amaze using Tapatalk :)
[HTC Amaze 4G] glacierguy:
:D
[HTC Amaze 4G] fuego77:
Put it in the microwave.
[HTC Amaze 4G] stratax:
Ghost armor. Or did that company die? I remember them being the ****, haven't heard anyone talking about them in a while lol
[HTC Amaze 4G] Jessfox:
Lol interested thread, op. A case will prevent damage, definitely. Also, ghost armor is still really great. My other half has it on his sgs2.
[Legend Q&A, Help & Troubleshooting] cofface:
Ok, so I don't like ADW, so I decided to build CM7 for my legend without it, no problem, it then includes "Launcher2", the stock launcher, one problem ...

The app drawer animation found on the Nexus S isn't there (where the top and bottom fade to the "back"). The animation is there when I install Launcher2 from the mod found on this forum, but not if I compile it as part of CM7, any ideas?
[T-Mobile Samsung Galaxy S II SGH-T989] Imnice777:
I am new to the root world but am good with things of the sort, just more used to it on a computer as opposed to on a phone. I am new to this site but it's pretty clear that this is the place to go for help. I have followed instructions to a T and the root simply did not work for me. Basically I followed the instructions here http://xdaforums.com/showthread.php?t=1311194 and superuser just didn't show up in my apps. I read around and saw that if you get an error message at the end (which I did) that the root still worked and superuser should be there but not for me. I'm on build number UVKL1 if that helps. Any advice or help would be appreciated or at least point me in the right direction. Thanks in advance.
[T-Mobile Samsung Galaxy S II SGH-T989] blkbltwrestler:
try downloading superuser from the market
[T-Mobile Samsung Galaxy S II SGH-T989] fenrry:
>>>>

*On ODIN, Select the PDA button and browse to the recovery-cwm-hercules.tar

*Select Start and see the magic do its thing.

*It should flash the file to Recovery and reboot the phone.

*Take the battery out again and now boot into recovery

*Power off phone, unplug USB, Hold Both Vol up + Vol down and Hit power

>>>>

Between those 2 lines, u must have the phone without the back cover so u can pull the battery as soon as the phone restarts and u c the Samsung screen where it says T989, also u must unplug the phone before u put the battery back in.

Btw, u should install Samsung Kies so the pc gets the proper USB drivers, and it may not work at first try, I got my phone bricked the first time, would not go beyond the Samsung screen, it will show a corrupted OS and will ask me to restore using Kies, so I try the steps again and it worked, don't get scared cause it doesn't work, get scared cause it worked!!!
[T-Mobile Samsung Galaxy S II SGH-T989] jtroye32:
Are you sure you are using the right superuser file? You can't use the one they link in the OP if you are on 2.3.6. If you are on 2.3.5 it should work.

For 2.3.6 you need:

su-3.0.7-efgh-signed.zip

Also if you plan on flashing a ROM right away there's no point in giving the stock rom root, just flash a custom ROM which will come with superuser.
[T-Mobile Samsung Galaxy S II SGH-T989] sarni84:
Listen bro once u have recovery installed it is easy listen to the guy a few post up about installing recovery first! Its easy select PDA make sure phone is connected then start. Now for root it is super easy!!!! Download file from computer put it on the root of sdcard. That means no folders. Just click the file and drag it over to ur internal sdcard. I repeat internal........now on ur phone once u disconnect from computer boot into recovery u want to go to install zip then install from internal zip and flash it. Now it might fail the first time DO NOT LEAVE RECOVERY stay in and flash that file til it says complete it might take 3 or 4 times. Now this works for 2.3.5 and 2.3.6 so u good to go bro. Trust me this file works.
[T-Mobile Samsung Galaxy S II SGH-T989] bobby3306:
Su.3.0.5-efgh-signed.zip will work on 2.3.6 as well...but gives you a failed alert in recovery but upon reboot actually installed. worked for me perfect, it failed, rebooted, there it was first attempt