yashsingh1/xdaforums huggingface dataset:
[HTC One X+] Aust S5:
Thanks Pippo.

I keep getting the following problem at the end, the worktree stops then says I should run init??? I re did the init command from before and then resynced but it keeps failing. Any ideas?

Here is the terminal transcript

Fetching projects: 100% (433/433), done.

Syncing work tree: 17% (74/433) error: manifest required for this command -- please run init

ben@ben:~$ . build/envsetup.sh

including device/generic/armv7-a-neon/vendorsetup.sh

including device/generic/mips/vendorsetup.sh

including device/generic/x86/vendorsetup.sh

ben@ben:~$ lunch

You're building on Linux

Lunch menu... pick a combo:

1. mini_armv7a_neon-userdebug	2. mini_mips-userdebug	3. mini_x86-userdebug
[HTC One X+] PippoX3:
Seems you don't have the device/htc/enrc2b and neither tegra3-common folders (and vendor/carbon I suppose)... something wrong into your local manifest:

Do you have a folder "local_manifests" into CarbonDev/.repo (begins with dot 'cause is hidden)?

Do you have a RoomService.xml inside local_manifests with the copy/pasted manifest?
[HTC One X+] Aust S5:
Yes I have the local_manifest folder and RoomService.xml file with the pasted code. All the fetch project goes through fine. Do I need to delete something and redownload?
[HTC One X+] PippoX3:
The folder MUST calls "local_manifests", ends with "s"...

And of course, inside CarbonDev/.repo you have a link to manifest.xml and a folder called manifests, right? There you don't need to modify nothing.
[HTC One X+] Aust S5:
Yeah they are all there. I started again from the beginning and it seems to have four more objects that it is downloading this time. Maybe I missed something before. Not sure how though. Fingers crossed again!

Also which folder are we supposed to start the building from? The CarbonDev folder or another one?
[HTC One X+] Aust S5:
Right, Rom build seemed to go fine but how do you flash the raw files? Do you just put them into an archive and flash that or is there more to it? Mine didn't come out with a zip file anywhere that I can see. The folders look like they are the partitions waiting to be written....
[HTC One X+] Lloir:
You are meant to run make -j# otapackage or brunch <device name>
[HTC One X+] Aust S5:
Thanks Lloir. I had been googling everywhere trying to figure out how to change it.

Time to Clobber and rebuild. Any point in learning the ccache (?) at this time or wait till a bit more used to it?
[HTC One X+] Lloir:
No need to clobber, just run one if those commands.

What's your build times? Do time brunch enrc2b or time make -j9 <otapackage>
[HTC One X+] Aust S5:
Will try it next time. So if I wanted to use the second one, do I need to type "time make carbon -j9 <otapackage>" ? Can I use mka and do I need to type the "carbon" part on there?
[HTC One X+] PippoX3:
:eek:

Take it easy, in the folder CarbonDev/out/target/product/enrc2b you'll find a lot of files, included your flashable rom (Carbon unofficial etc etc.). Pick up it and use it as usual!

The other are the folders uncompressed (you can't just put in a zip, you'll need to zip-align) and the image partitions. Included boot.img which is the kernel image. You can use it to flash, or better give the one inside the zip. :good:

The CarbonDev platform recognize the "make carbon" (after lunch) as a common "make bacon", it creates (after the system folders) a OTA package and a flashable ROM zip.
[HTC One X+] Aust S5:
I'll have to re-try. Each time there hasn't been a .zip file in there that I recognize as a rom file. Even looked at the file sizes to see in case it wasn't named the way I was looking. Third time lucky eh. Fingers crossed. For the record here are my commands.

cd ~/Carbon

make clean

. build/envsetup.sh

lunch

#select the carbon userdebug encr2b option

make carbon -j16
[HTC One X+] PippoX3:
Should be in:

CarbonDev/out/target/product/enrc2b a file named e.g. CARBON-KK-NIGHTLY-20140217-1613-enrc2b.zip

BTW the procedure, when it ends, reports if successully create the rom zip file or if was an error.
[HTC One X+] Aust S5:
Thanks PippoX3 will see if it works this time. If not I'll scrap this VM and make another one, redo the environment and try again. Failing that I guess I'll repartition and dual boot. Last time I did that though the distro didn't work too well for me. New lappy now so new hardware, might have to give it a go anyway :)
[HTC One X+] PippoX3:
Yes. But when the prompt comes back, when it stops... let me know what it tells. Thanks. ;)
[HTC One X+] PippoX3:
Unfortunately, sometimes maybe happens. Especially when we're across an update of sources, seems an error that don't depend from you.

Last time you repo sync the sources? From your work folder CarbonDev, type repo sync -j16 and after try again lunch and make carbon.

Perform a make clean before start over.

Yesterday some users, in N5 thread, reports impossibility to compile Carbon. Maybe your case too.

Now I'm compiling Carbon, I'll report you...
[HTC One X+] Aust S5:
I just synced and about to try lunch and make.
[HTC One X+] Aust S5:
So after a few more slow attempts on VM box I bit the bullet and dual booted. Now first go compile works. Complete in real 80m31.313s Thanks Pippo and lloir. Now for the flashing! Wowoooooooooo
[HTC One X+] Lloir:
ouch 1hr20min......use ccache
[HTC One X+] PippoX3:
Great News! Good! :good:
[HTC One X+] Aust S5:
Ok will try that now the compiling actually work! Which is the best .zip to flash from the build, the one named carbon enrc2b ota which is bigger, or the Carbon KK nightly which is about 8Mb smaller. Had a quick look through the archive but couldn't see an immediate difference.

Just to make sure, but the googling I did says to use the commands to give 20G ccache with build directory of Carbon

cd ~/Carbon

repo sync -j16

export USE_CCACHE=1

export CCACHE_DIR=/home/.ccache

prebuilts/misc/linux-x86/ccache/ccache -M 20G

. build/envsetup.sh

lunch && time mka carbon -j32

The only part I am not sure about is the prebuilts line, What it does.
[HTC One X+] Lloir:
woah woah woah why are you -j32ing? which i7 have you got? shouldn't do much more than -j9

that will screw with the build times
[HTC One X+] PippoX3:
Don't care OTAs. Pick up the carbon unofficial zip. Is smaller 'cause is optimized!
[HTC One X+] Aust S5:
Interesting, one of the guides said to multiply my thread number by 4. Quad core, eight threads fourth gen i7-4700mq, obviously I can change the option there. Should I test it now to see the time without using ccache and a -j9 option?
[HTC One X+] Lloir:
i7 = quad core + 4threads + 1 = j9

;)

and yes -j9 it :P
[HTC One X+] Aust S5:
How about them apples :confused: think I may have forgotten to make clean or clobber before the build.
[HTC One X+] sorceforge:
Anyways, my problem was solved after I build crDroid, instead of CyanFox, and I found out HALO and other functions were working.

Even if I am now using Nexus 5, without your help (including Lloir's, too.), I could not think of building a rom, so, thanks for your effort. :D
[HTC One X+] Aust S5:
Ok, so the building is going well now. Where should I start looking to find things to cherry-pick? Is it any git source that has the encr2b or can it be from other models as well, also does it have to be just from the current build environment or can you cherry-pick from aokp if using carbon???
[HTC One X+] PippoX3:
http://xdaforums.com/showpost.php?p=50642657&postcount=27
[HTC One X+] panpjp:
Very helpful guide, thanks!

FYI: the something -j6 part, I read on Gentoo wiki and it said the number should be your cpu cores + 1 just in case :)
[HTC One X+] PippoX3:
Everyone has an opinion... mainly you can read (from who builds android) that the practical and safe rule is to stay below the double of your available processor cores. Today you can read about Dev. who set up to -j16 (the double of an i7 processor's cores).

E.g. on dual core I know it's safe to use -j4 or -j5... above that, my PC will cry.
[HTC One X+] panpjp:
Thanks for the info! Hopefully this will speed up my 2-core-4-thread laptop :o
[HTC One X+] Aust S5:
Mine seems to depend heavily on the the repo sync. I keep using -j9 on a quad core 4th gen i7 and have had build times vary between 18 minutes and 80 minutes. Not sure why as I clear the build path each time. I think sometimes it just depends on how many build issues it finds. But I also miss how much I time I used to spend on xda. Now I am building my own, I seem to spend more time learning and compiling than I do on xda. MASSIVE cudos to all the real devs here who build and publish. So much work that I knew was done, but didn't really appreciate until I started trying my own. Start throwing in fixing bugs and picking. That's a lot of time invested. To all the devs from my old dhd days onwards. Everyone from Lord and Cappy through now to PippoX3. So many people have either built or developed or tweaked. Thank you guys!
[HTC One X+] panpjp:
^

Try sudo apt-get install m4 flex? Just guessing
[HTC One X+] PippoX3:
Hi which tegra3-common/kernel projects are you using? In case use mine on github.com/STELIX

Try a repo sync and build again. Often at second/third build after an error, become more detailed.

Let me know.
[HTC One X+] Aust S5:
I had to re install all the library files from the guide. Something like 130 different libs and dependencies were missing??? About 600Mb re downloaded and a quick repo and working again! Don't know how they became uninstalled during the update though. Seems weird.
[HTC One X+] Ghand0ur:
So How different it is to build normal AOSP ?
[HTC One X+] Lloir:
Similar to this, just a bit more of a pain in the ass.
[HTC One X+] PippoX3:
Setup-ing your PC is same for alls (or so...), the different part is fetching the sources... you choose what prefer.
[HTC One X+] Lloir:
you've obviously not compiled on Arch :P hahahaha
[HTC One X+] Lloir:
Because of the AOSP work that has been done we have a repo for AOSP.

https://www.github.com/pure-aosp

to grab the source there's

repo init -u git://github.com/Pure-Aosp/android.git -b 4.3 <---- stable

and

repo init -u git://github.com/Pure-Aosp/android.git -b 4.4 <----- not tested with updated changes properly yet

and then there's https://github.com/aospplus

which was [MENTION=2404769]tombriden[/MENTION]s modified Pure-Aosp source with things like NFC UNLOCK and so on, which never saw daylight for the X+ so that 4.4 source is very unstable but the 4.3 source from there should be fine to use.
[HTC One X+] Ghand0ur:
Cool, I'm actually finishing my exams next week and will fool around with developing a bit.. getting my hands dirty.. Getting the feel of it
[HTC One X+] Lloir:
Just an FYI if you are planning to build on a mac, PURE-AOSP will need modifications because I've ripped all those toolchains out to make the source smaller. Will be interesting what you put out :)

The whole point of this was to make a clean source which will compile and work for the X+ and then people can create their own thing with it.

Right now Pure-AOSP 4.4 won't compile until I make a few changes.
[HTC One X+] Ghand0ur:
Nah, will use ubuntu 14.04
[HTC One X+] Lloir:
oh yeah and DON'T USE BRUNCH with PureAosp it's broken, so just do

make -j# otapackage
[HTC One X+] Ghand0ur:
Alright. I am currently setting up the environment.

2 Questions though, will oracle JDK 8 work?

And what happens if there was a power outage or there was an internet disconnection during downloading sources?
[HTC One X+] Lloir:
No use OpenJDK or Oracle 6 for AOSP 4.3

and OpenJDK / Oracle 6 or 7 for AOSP 4.4

also it will just carry on from where It left off. Usually
[HTC One X+] Ghand0ur:
Is that a recommendation or due to changes in the libraries?

So that means with Lollipop we will use Oracle 8?
[HTC One X+] Lloir:
due to it won't build properly. And I don't know I haven't really looked at the L source.
[HTC One X+] Ghand0ur:
Alright, my laptop's almost ready to sync repos.. (That's what happens with a 2mbps connect :') Fastest DL 200kb.. )

Alright, I just wanna make sure that I understand this well.

When building stuff like CM or AOKP, the "nightly"s are made just by syncing the repo again, which just merges/updates the changes but doesn't redownload the 20GB again.

When building a brand new rom that ENRC2B is not supported yet, I fork the repo of the rom, then I fork

"android_device_htc_tegra3-common" & "android_kernel_htc_enrc2b" & "proprietary_vendor_htc"

and put them in a manifest.xml file I create.
[HTC One X+] Lloir:
no need to do that, PURE AOSP has them all ready to download when you repo sync dude as does AOSP+
[HTC One X+] Ghand0ur:
Yeahhh dude I know.. Awesome job with that ^^ I meant in general , before a ROM is supported .. That's the process that occurs
[HTC One X+] Lloir:
oh yeah, usually I just make a local_manifest.xml and do it.
[HTC One X+] Ghand0ur:
Repo Syncing --Wooot!!--
[Windows Mobile Development and Hacking General] vijay555:
VJDeviceLock

Guys,

This is a small app in response to a request to this request:

http://xdaforums.com/viewtopic.php?t=45007

I'm not sure what it's compatible with, but if you've got the new Universal rom (and maybe the Wizard?), you should have the "Device Lock" plugin installed by the ROM.

This app can be used to instantly lock the device using that plugin.

NOTE - it only works with that plugin, it's not a standalone lock. I may write my own device lock one day, but this is just for that plugin.

So assign it to a hardware key to lock your phone instantly. Or put it in your notification queue to lock the device every time it wakes up. Use your imagination!

Let me know if it works.

Available on my website!

V

PS - if it does or doesn't work, can you please post your hardware and ROM details so people can know if it's compatible. I've only tested it on my Universal with the Imate ROM.

Release Info:

2006.08.29 - Version 0.3: updated to not require today plugin to be loaded. Also shrunk down!

2006.09.04 - Version 0.4: added display off & lock (for when listening to music etc), go to Today & lock, and control to toggle the screen on and off (just in case!)
[Windows Mobile Development and Hacking General] hamsup1o:
Thanks for the app as usual! :)

Question..is it possible to use the app w/o having the Device Lock plugin on the today screen? I got an error msg asking if it's installed when I unselect it from the Today Items. Maybe next version? :)

Thanks again!
[Windows Mobile Development and Hacking General] BeyondtheTech:
You do not disappoint, Vijay.

Quick question... what about those who don't have the Device Lock Today plug-in... can you include it/force it into a device such as my HTC Apache? The Sprint PPC-6700 in the new ROM update supposedly has it, but not the darn Verizon xV6700 ROM yet... :(
[Windows Mobile Development and Hacking General] vijay555:
Guys, as I've said, that app interacts with the plugin included in the new rom, and uses that for the lock.

Thus, using it without that plugin would make no sense - it uses that plugin to do the locking. As I've said, one day I might make my own lock, but for now, if if you use that plugin, I hope this app helps.

BeyondtheTech: I know this is a question that's been asked for a while, whether the plugin can be extracted. I've not really paid any attention because I only just upgraded to the new rom, and thought I might as well make this app because it was requested a while back and I can see that it would be useful. But I guess the plugin hasn't been extracted as a standalone yet then?

If not, I'll try to have a look into it :D

Did it work ok for anyone so far? It's using a technique I'm going to put back into VJToggleToday II, so need to know if it functions correctly for those who do have the plugin. Is it locking ok?

V
[Windows Mobile Development and Hacking General] XDA II:
Works like a charm here! Great app! Thanks a lot!
[Windows Mobile Development and Hacking General] black88mx6:
This works VERY GOOD!
[Windows Mobile Development and Hacking General] black88mx6:
This program works fantastic... I used memmaid to put a task in the notification que to run at startup. This way I power off the system as normal, and everytime it "wakes" up it will lock. Only other item on this that would be nice is the option not to use memmaid but to put itself in the notification que by itself.

Sprint PPC6700 AKU 2.0
[Windows Mobile Development and Hacking General] hamsup1o:
Hi VJ, it works great with the Sprint Apache. What I meant was if it's possible to use this app w/o the Device Lock plugin being active on the today screen? The app would still interact with the plugin but somehow have it interact while it's not selected Start > Settings > Today > Items. I much rather use the extra space for another plugin. :) Hope this makes a little more sense. :)
[Windows Mobile Development and Hacking General] armstrom:
Looks like you beat me to it :) I was about to release the same application this morning. It's a good thing I checked this thread ;) I'm assuming you are doing the same thing I am by enumerating the windows looking for "LockPlugin" then posting a WM_KEYDOWN message to the window.

I added a few extra options to mine such as suspending the device after locking it and the ability to run a program after locking so you can see your task list, contacts, etc.. without having to unlock the phone.

Perhaps I gave away too much in my thread from yesterday: http://xdaforums.com/viewtopic.php?t=45626 ;)
[Windows Mobile Development and Hacking General] vijay555:
armstrom: hey, release yours too! I didn't see your post, but it was the obvious way to do it, to enumerate the plugins and then lockdevice.

One question - how are you differentiating the two worker children (the tray and the plugins)? PM me to discuss. I'm not sure if my way is fullproof, which is why it's out for test..

I programmed this yesterday because it's been a busy week at work, and I wanted to program something simple to relax. I spent more time thinking of a name and an icon! In the end, VJDeviceLock was just easy. I wanted VJAnulus, but it looks too much like anus :)

Your version sounds much better though. I'd be interested to see it!

I have to say though - I still have concerns about the Today plugin itself, because it doesn't entirely block the screen; eg I use SmallMenu and it's still usable :( Quite silly. But, it's better then nothing. I'll try to write my own lock someday. Bruce from PocketMax has one out as well, but I've not tested it on WM5.

hamsup1o: I think there might be a way to lock the device without showing the plugin. If I get time to implement it, I'll try to. That way it won't take any space on the screen. But no guarantees :wink:

V
[Windows Mobile Development and Hacking General] armstrom:
Yeah, I didn't think you had seen it, just having some fun ;) Sure, I'll upload a CAB in a few minutes. I might as well release it since I went through all the trouble of creating a control panel applet for it and all. I'll PM to share my technique with you. I can supply source code if you're interested.

-Matt
[Windows Mobile Development and Hacking General] sas90850:
Tested on 818pro / Prophet. I need to put the

Device Lock

on Today Plugin in order to get it work.
[Windows Mobile Development and Hacking General] hamsup1o:
Sounds good VJ! :)
[Windows Mobile Development and Hacking General] jkimrey:
Will this allow voice dial to work via bluetooth with the new sprint ROM?

Currently, after upgrading my ROM, when I use the default lock on the Today screen, if I press voice dial on my Plantronics 600, it will light up the screen, but the voice dial app will not display/load.

Will this fix that issue?

Thanks!
[Windows Mobile Development and Hacking General] armstrom:
Ok, finally released mine. I don't want to clutter up your thread so here's the new one I started: http://xdaforums.com/viewtopic.php?t=45953

Enjoy!

-Matt
[Windows Mobile Development and Hacking General] tweakradje:
Don't wanna spoil your party but doesn't this work then on the new roms?

[HKEY_LOCAL_MACHINE\Software\Microsoft\Today\Items\"Lock Device"]

"Flags"=dword:00000000

"Options"=dword:00000000

"Selectability"=dword:00000001

"Type"=dword:00000004

"Order"=dword:00000000 (changed)

"Enabled"=dword:00000001

"DLL"="shutil.dll"

Cheers
[Windows Mobile Development and Hacking General] vijay555:
tweakradje: doesn't what work to do what?

V
[Windows Mobile Development and Hacking General] tweakradje:
Uhhh lock your device buttons? On WM5 that is.
[Windows Mobile Development and Hacking General] vijay555:
tweakradje: The program I've posted interacts with the Lock Device plugin to allow you to lock it from a shorcut, hardware key, or automatically when you switch the Phone on.

If this can already be done without the program, no problem, nothing to see here...

V
[Windows Mobile Development and Hacking General] armstrom:
What you posted simply adds the today item to lock the device (this is required for both of the programs described here).

However, it does not allow you to lock the device with a hardware button. You have to go back to your today screen and click that little icon.

Both my software and this one allow you to map a hardware button to this device lock capability. Thus allowing you to lock the device while in another application, or without using the sylus. Yes, I know it's possible to hit the little today item with a finger, but it's tough on the smaller devices.

In addition, my software allows you to suspend the device after locking it (same as hitting the power button) and even launch an application after locking. This is useful for launching things like your calendar, task list, or other applications that you may want to glance at without having to unlock the phone. I will probably develop a full-screen clock application to launch every time I lock the phone. That way I can see the time quickly without having to unlock the phone.

-Matt
[Windows Mobile Development and Hacking General] tweakradje:
OK I see. I have my today screen on a button and use it often. That's why I wondered...

Personally I don't like the idea of having too many apps and util running besides the builtin code. They always consume more battery. Eating too much clock cycles so to speak.

Thanks for your explanation.
[Windows Mobile Development and Hacking General] vijay555:
It doesn't run resident. Just launch it when you need it. No extra processing except when run.

V
[Windows Mobile Development and Hacking General] vijay555:
Guys, I've posted a new version.

This has new command lines:

-about

-install

-remove

-pwroff

Install will install a notification so that it's launched every time you switch on. Use Remove to remove.

Use pwroff to lock and poweroff at the same time. Not wise to use this with install, or you'll never be able to use the device.

Available on my website.

Hopefully some more updates to come.

V
[Windows Mobile Development and Hacking General] armstrom:
V,

I have managed to eliminate the need for having the today item loaded. The CAB I linked to in my other thread has been updated.

-Matt
[Windows Mobile Development and Hacking General] Mandingo:
Thank you both Vijay and Matt for putting these together - the absence of a usable device lock on my JAMin has been a huge disatisfaction issue for me.

Feedback - both apps work great in terms of being able to lock the device with a mapped button. THANK YOU!

However on my JAMin none of the power off/on events are reliable - Vijay's app won't automatically lock on power on even after using the Install option and while Lock+Power Off does lock the device and turn it off, the device wakes up again one seocnd later (?!!?).

I have a bad feeling it is a bug in the imate AKU2 ROM more than anything.

Keep the good work going - there are hundreds (thousands?) of people on the boards looking for this type of functionality.