yashsingh1/xdaforums huggingface dataset:
[Nexus 4 Android Development] androidfr33k:
Ah ok look in the device then. Well I think its unrooted but can I view the device tree with adb? WOuld have to go into an adb shell correct then look for it?

I had not problem building grouper brunch. Just unsure how to do this with linaro. The cherry pick script does not seem to work for me. I thought the envsetup.sh needed to modified along with a couple other files to be able to build the linaro correctly?

EDITED:

From adb shell

THis is all I found under /system/vendor/firmware

fw_bcmdhd.bin

fw_bcmdhd_apsta.bin

fw_bcmdhd_p2p.bin

libpn544_fw.so
[Nexus 4 Android Development] OCmylife:
Yeah I have downloaded a few grouper roms and haven`t found these files under /system/vendor/firmware. It doesnt matter if stock, odexed or deodexed, modded AOSP firmwares... I havent found a rom. Sorry

The script doesn`t work for me either. I have tried a few locations, but it would be nice if he could specify the location where we have to run the script ;) Maybe ~/android/system/ or under the linaro folder?

I`ve edited the envsetup.sh with nano too and change the line to the linaro folder and build the rom once again. But it goes too fast(maybe 3 min?) and I doesn`t feel any major difference in terms of speed, so I think it doesn`t work as it is supposed to.

But we will do it :highfive:
[Nexus 4 Android Development] trailblazerz11:
The script should run from the top of your source directory (/android/system). I'll check it out, sorry it should be changing envsetup.sh and build directory along with it 15 other directories.

Does the script error or anything?

Sent from my Nexus 4

EDIT: The cherrypicks in the script work fine for me, hmm perhaps its not switching to directories correctly.

Try replacing DIR=$(pwd) with DIR='your/cm/directory'
[Nexus 4 Android Development] OCmylife:
The Script does completeley not work and you get an error message. So the top oft my source directory means ~/android/system/ if I followed the wiki step by step, right?

No problem I have made a backup from the envsetup.sh before I changed it

Edit: Thanks I will do it
[Nexus 4 Android Development] trailblazerz11:
What's the error message?>
[Nexus 4 Android Development] OCmylife:
I couldn`t tell you anymore, as I`ve cleaned the folder to start with a completely clean environment. But maybe androidfr33k remember the message exactly as he has the same problem.

But just to be sure this time: When I follow the CM-wiki and set everything up in ~/android/system you mean that I have to execute your script in this folder?
[Nexus 4 Android Development] trailblazerz11:
Yes, the same directory you repo sync

Sent from my Nexus 4
[Nexus 4 Android Development] OCmylife:
Ah ok thanks. So nothing could get wrong anymore :) Would give you a real thanks for your help, but I`m limited right now :rolleyes:

Building with linaro right now. tackleberry_crash`s tutorial is just great.
[Nexus 4 Android Development] yukkio:
I think sabermod has done a rom with 4.8 There're people talking about it in trinity thread.

http://xdaforums.com/showpost.php?p=40444610&postcount=12546

BR.
[Nexus 4 Android Development] OCmylife:
If someone would like to test the rom I`ve build with the tutorial from trailblazer and tackleberry_crash.

Here`s the link:

http://d-h.st/gyk

Stock Linaro CM-10.1 build from this morning.

Seems pretty stable and fast to me. Thanks to the guys that made this possible. Now I have only to learn how to include kernel and patches :)
[Nexus 4 Android Development] shmizan:
anyone else having "security" (settings) force closing in the 19th build?

clean install. doesn't fc in latest CM nightly
[Nexus 4 Android Development] OCmylife:
Does anyone have a nice tutorial how I could learn to include kernels and patches like the Pie-feature? That would be nice :)
[Nexus 4 Android Development] androidfr33k:
[MENTION=3908838]trailblazerz11[/MENTION]

Sorry for late reply. I get a permission denied. I looked through the script and I don't see anywhere in the script where it modifies the envsetup.sh? I must be overlooking something but all I see is mostly fetch and cherry-pick. I also see toward the end of the script you fetch /lge/mako. Is this script targeted more for the mako nexus 4? One more question, will this build both kernel and ROM linaro?

Thanks
[Nexus 4 Android Development] tackleberry_crash:
Someone mentioned same thing about apr 19 official nightly fc ing on security settings in my thread too.

Did not happen on my builds though.
[Nexus 4 Android Development] DesertVelo:
Your build is clean.... but I had the same issue with Trailblazer's ROM.

Sent from the singletrack...
[Nexus 4 Android Development] shmizan:
hmm so I guess the 19th build trailblazerz11 made was before they reverted the patch that made the security fc.
[Nexus 4 Android Development] DesertVelo:
Yes, I believe you are correct.

Sent from the singletrack....
[Nexus 4 Android Development] darkbasic4:
No, but I have the same problem with the clock app which don't want to start :(

Anyone else? Both tackleberry and Trailblazer.
[Nexus 4 Android Development] trailblazerz11:
Hmm. I did build earlier than CM that time. They moved their build time back recently.

Sent from my Nexus 4
[Nexus 4 Android Development] trailblazerz11:
Just change the scripts permission to executable? Though I though a tar.gz would preserve permissions.

Theres a couple cherry-picks to to android/system/build that will modify to build with linaro. The mako modifications are mostly some flags for optimizations, it won't affect other devices.

Yes it should be building the kernel with linaro too.
[Nexus 4 Android Development] androidfr33k:
chmod a+x cherrypick.sh

./cherrypick.sh or sh cherrypick.sh <<< either command executed from my ~/android/system terminal yelded the same result.

Permission denied (publickey).

fatal: The remote end hung up unexpectedly

Permission denied (publickey).

fatal: The remote end hung up unexpectedly

keeps going won't stop until I kill it.

I did everything step by step with cm wiki and was able to build no problems a cm 10.1. I did a make clobber at the end to clean it up then started this tutorial.

I downloaded the linaro package renamed it and put it in the path you showed.

Not sure if I need to run this script so I did "repo start linaro --all"and since I ran that does it mean I need to repo sync and brakfast grouper again? I did not!!

I ran the cherry pick script and thats what happened above.

Thanks
[Nexus 4 Android Development] hoseth0711:
And me too i also got FC when im using speech in Google Now :/

Sendt fra min Nexus 4 med Tapatalk2
[Nexus 4 Android Development] androidfr33k:
[MENTION=3908838]trailblazerz11[/MENTION],

Is it possible we need to import the key from your repository?

sudo add-apt-repository ppa:somethingsomething>
[Nexus 4 Android Development] tackleberry_crash:
That should not be necessary to read from his repos
[Nexus 4 Android Development] androidfr33k:
should I try "sudo ./cherrypick.sh"?

Since I got you to reply I have another question. Is increasing the ccache to 50-100G going to speed up thebuild?

From:

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

Using ccache

ccache is a compiler cache for C and C++ that can help make builds faster. In the root of the source tree, do the following:

$ export USE_CCACHE=1

$ export CCACHE_DIR=/<path_of_your_choice>/.ccache

$ prebuilts/misc/linux-x86/ccache/ccache -M 50G

The suggested cache size is 50-100G.

You can watch ccache being used by doing the following:

$ watch -n1 -d prebuilts/misc/linux-x86/ccache/ccache -s

I have a 16GB Ram and a 130GB linux swap. I screwed up and made it too large but would that help in any way of speeding up the build with a larger linux swap and the expanded ccache command above?
[Nexus 4 Android Development] trailblazerz11:
I think you need to configure ssh access to github. Guthub has a guide. Don't use sudo

EDIT: Try using this script, uses http instead of ssh; https://dl.dropboxusercontent.com/u/33930055/cherrypick-http.tar.gz

Let me know how it works.

I only have less than 10 GB cached right now from building for mako grouper and my desktops kernel. I set my max to 30gb. Adding more cache wouldn't help, it only needs more when new code is generated.

I have 16gb ram, I didn't mess with swapiness but it barely uses swap if at all when I compile. Most of ram used during compilation is for caching files.

Sent from my Nexus 4
[Nexus 4 Android Development] androidfr33k:
I don't understand? I am able to get through the cm 10.1 tutorial and there are parts where I need to execute the github and no issues?
[Nexus 4 Android Development] trailblazerz11:
I don't know either, but the errors you were getting were ssh related.

Sent from my Nexus 4
[Nexus 4 Android Development] yukkio:
I dont know how this works but It will be great for this rom:

https://play.google.com/store/apps/details?id=com.cyandelta
[Nexus 4 Android Development] androidfr33k:
Well it ran but a lot of errors. Here are the last few with fatal:

fatal: bad object 812a1a8db4d1968bbe15fe92f1cb372af2be87ee

From https://github.com/trailblazerz/lge-kernel-mako

* branch HEAD -> FETCH_HEAD

fatal: bad object 6dd7528ace3a51233171a45e585bb1dddd97c523

From https://github.com/trailblazerz/lge-kernel-mako

* branch HEAD -> FETCH_HEAD

fatal: bad object e1eee5688ed854a414d71e988a606cff88b7c58d

From https://github.com/trailblazerz/lge-kernel-mako

* branch HEAD -> FETCH_HEAD

fatal: bad object e80cca22399e32415d7f427baf1bfb6c0821384f

fatal: Couldn't find remote ref linaro

Unexpected end of command stream

Edited:

Here is some script before the end to:

Your name and email address were configured automatically based

on your username and hostname. Please check that they are accurate.

You can suppress this message by setting them explicitly:

git config --global user.name "Your Name"

git config --global user.email you@example.com

After doing this, you may fix the identity used for this commit with:

git commit --amend --reset-author

2 files changed, 8 insertions(+)

From https://github.com/trailblazerz/android_frameworks_compile_libbcc

* branch HEAD -> FETCH_HEAD

[linaro d9cdaa2] fix no endif derp

Author: trailblazerz <juston@uoregon.edu>

Committer: androidfr33k <androidfr33k@androidfr33k-G74Sx.(none)>

Your name and email address were configured automatically based

on your username and hostname. Please check that they are accurate.

You can suppress this message by setting them explicitly:

git config --global user.name "Your Name"

git config --global user.email you@example.com

After doing this, you may fix the identity used for this commit with:

git commit --amend --reset-author

1 file changed, 1 insertion(+)

From https://github.com/trailblazerz/android_kernel_asus_grouper

* branch HEAD -> FETCH_HEAD

fatal: bad object e5f026d6f5a72349d9b995bc224fd8828c75062b

From https://github.com/trailblazerz/android_kernel_asus_grouper

* branch HEAD -> FETCH_HEAD

fatal: bad object 4519c54c8aeaa2f1d95b993edb201784cb1e16cc

From https://github.com/trailblazerz/android_kernel_asus_grouper

* branch HEAD -> FETCH_HEAD

fatal: bad object c38ba83d828feb7e7fdb50574971f6d4ea43fede

From https://github.com/trailblazerz/android_device_asus_grouper

* branch HEAD -> FETCH_HEAD

[linaro 2ce414a] Set global flags and arm optimizations

Author: juston <juston@uoregon.edu>
[Nexus 4 Android Development] trailblazerz11:
I believe the errors have to do with that they were cherry-picks of cherry-picks.

I'll try to edit and use the original cherry picks on the script.

Thanks for testing these out.
[Nexus 4 Android Development] androidfr33k:
I should thank you for helping get this to work. I'm going to bed now. Will try again tonight or if I can right before I go to work first thing when I get up if I see the updated file.
[Nexus 4 Android Development] markd0wn:
Looks like the forced close when going to settings->security is happening in every build since 0417 or so, including today's (0422). Does that still happen in the official builds as well?
[Nexus 4 Android Development] trailblazerz11:
Still...? I thought it was just bad timing with a sync.

Sorry I've been too busy to flash since 17

Sent from my Nexus 4
[Nexus 4 Android Development] markd0wn:
I thought the same, that it was synced prior to a revert or something like that, but I've been flashing every new build since then and it still happens. Tried a full wipe as well.
[Nexus 4 Android Development] trailblazerz11:
The only personal change I've made past several days was removing cmupdater. Odd.. Hopefully have some time to check it out.

Sent from my Nexus 4
[Nexus 4 Android Development] tackleberry_crash:
If you can post the logcat of the FC, I can try to help pinpoint the general vicinity of the error to help trail with the legwork.
[Nexus 4 Android Development] markd0wn:
Hopefully enough lines are included.. http://pastebin.com/adqkSd4U
[Nexus 4 Android Development] trailblazerz11:
Quick googling to find this http://www.reddit.com/r/nexus4/comments/18mzix/setting_crashes_after_updating_to_android_422/

Quite odd, considering I thought there must be some issue with my source to affect multiple people using this ROM but that issue is very similar.

I apologize though guys, I am on 4/17 still and can't test. and really pressed for time writing a 15 page essay /facepalm
[Nexus 4 Android Development] markd0wn:
I attempted that solution, however...

su - fine

mount -o rw,remount /system - fine

cd /vendor/firmware/keymaster - No such file or directory
[Nexus 4 Android Development] alsheron:
Me too..... Should this directory be there?
[Nexus 4 Android Development] trailblazerz11:
I don't have it either on 4/17 with security working so that's not it then.

Thanks

Sent from my Nexus 4
[Nexus 4 Android Development] tackleberry_crash:
No such directory on my Rom too. Folder may be there on an AOSP Rom, dunno.

But my Linaro Rom did not suffer from this Settings Bug. I have done 5 builds since 17th and no FC whatsoever.

Trail,

Did you push all your local changes to you github?

If you did that I can compare some files from your build an mine to see if repo was not merged correctly at some point even it said it all merged w/o conflicts (which happened to me just yesterday)

---------- Post added at 08:54 PM ---------- Previous post was at 08:22 PM ----------

Strange error indeed, appears to be settings/security app asking the state of the keystore if unlocked or locked but switch statement spills out the default case which is an assertion exception.

It can be because of the stuff below but It can be consequence of very seperate issue...

KeyStore.State state = KeyStore.getInstance().state();

returns form here;

execute function is the culprit. I dunno how.

public State state() {
execute('t');
switch (mError) {
case NO_ERROR: return State.UNLOCKED;
case LOCKED: return State.LOCKED;
case UNINITIALIZED: return State.UNINITIALIZED;
default: throw new AssertionError(mError);
}
}

execute function is this code; so unless it hits a snag on the way to the bottom and returns null and does not set the mError var to any of the 3 above. So state func. returns the default case...

private ArrayList<byte[]> execute(int code, byte[]... parameters) {
mError = PROTOCOL_ERROR;

for (byte[] parameter : parameters) {
if (parameter == null || parameter.length > 65535) {
return null;
}
}

LocalSocket socket = new LocalSocket();
try {
socket.connect(sAddress);

OutputStream out = socket.getOutputStream();
out.write(code);
for (byte[] parameter : parameters) {
out.write(parameter.length >> 8);
out.write(parameter.length);
out.write(parameter);
}
out.flush();
socket.shutdownOutput();

InputStream in = socket.getInputStream();
if ((code = in.read()) != NO_ERROR) {
if (code != -1) {
mError = code;
}
return null;
}

ArrayList<byte[]> values = new ArrayList<byte[]>();
while (true) {
int i, j;
if ((i = in.read()) == -1) {
break;
}
if ((j = in.read()) == -1) {
return null;
}
byte[] value = new byte[i << 8 | j];
for (i = 0; i < value.length; i += j) {
if ((j = in.read(value, i, value.length - i)) == -1) {
return null;
}
}
values.add(value);
}
mError = NO_ERROR;
return values;
} catch (IOException e) {
// ignore
} finally {
try {
socket.close();
} catch (IOException e) {}
}
return null;
}
[Nexus 4 Android Development] donpopiel:
Hi, I'm building CM with Linaro 4.7 with tackleberry tutorial. I think I made everything good but I have this error. Could anybody help me with that?

libui <= frameworks/native/libs/ui/Fence.cpp
/home/tomasz/android/prebuilts/gcc/linux-x86/arm/linaro-4.7/bin/../libexec/gcc/arm-linux-androideabi/4.7.3/real-ld: error: DIV usage mismatch between /home/tomasz/android/prebuilts/gcc/linux-x86/arm/linaro-4.7/bin/../lib/gcc/arm-linux-androideabi/4.7.3/libgcc.a(unwind-arm.o) and output
/home/tomasz/android/prebuilts/gcc/linux-x86/arm/linaro-4.7/bin/../libexec/gcc/arm-linux-androideabi/4.7.3/real-ld: warning: shared library text segment is not shareable
collect2: error: ld returned 1 exit status
make: *** [/home/tomasz/android/out/target/product/mako/obj/SHARED_LIBRARIES/libexpat_intermediates/LINKED/libexpat.so] Error 1
make: *** Waiting for unfinished jobs....
[Nexus 4 Android Development] trailblazerz11:
The error is from the tool chain needing a fix. Kszaq has it on his github

Sent from my Nexus 4
[Nexus 4 Android Development] trailblazerz11:
Didnn't seem to relate but I reverted removing CMUpdater and also some small dalvik changes, neither fixed the securiy FC.

I am using OpenJDK 7 but not sure why the would cause issues now...

I updated my github, I didn't really see anything related with a quick glance.
[Nexus 4 Android Development] darkbasic4:
I confirm the force close problem with the clock app started with build 17 and is still present in this rom and in the tackleberry_crash one too.

P.S.

I have no problem with settings-->security.
[Nexus 4 Android Development] tackleberry_crash:
I have no FCs on clock app in my phone just checked with my last build. Can you take a SS of the last screen it FCs.
[Nexus 4 Android Development] gianton:
No problem with the clock app here too, but I get a FC of settings/security running 04/22 build.
[Nexus 4 Android Development] tackleberry_crash:
Can you try to clear data for clock app and try again, I am pretty sure it is a data related problem.
[Nexus 4 Android Development] calvinbui:
not working for me, security still FC's when trying to open
[Nexus 4 Android Development] trailblazerz11:
My day off from classes, I think I figured out the security issue, seems I'm simply missing the keymaster file in system/vendor/firmware ( Ichecked official CM which includes it)

TheMuppets added it to proprietary 5 days ago, too much of a coincidence so I'm fairly confident this is issue, just need to update blobs.

Compiling now to test.

Updated the cherry-pick script, Uses http rather than ssh now and hopefully fixed some broken items, I think the issue was they would refer to cherrypicks of cherrypicks which would change when I update, causing bad items. Should be fixed by find the original commits.

Let me know if there are any issues.
[Nexus 4 Android Development] trailblazerz11:
Confirmed no FC in Security now, Upload in a bit
[Nexus 4 Android Development] tackleberry_crash:
Good, you were able to solve it.

But something bothers me my builds haven't suffered from this FC (my phone does not have those keymaster files either), no one reported that bug in my thread too. Last time I looked into your FC, I neglected checking propriety files since I had not done any updates earlier.

I am gonna try to include them anyway but any thoughts...
[Nexus 4 Android Development] trailblazerz11:
I don't understand either. Since key master blobs were only recently added something in CM must have changed that required it.

Looking through gerrit now, think it was between 17-18

Further weird you don't have this issue either, /confused but happy its fixed
[Nexus 4 Android Development] tackleberry_crash:
Can you pass me gerrit link?
[Nexus 4 Android Development] trailblazerz11:
Didn't find anything that seemed related at first glance :( Though seems like only mako needed it added..
[Nexus 4 Android Development] tackleberry_crash:
Yepp, nothing on gerrit...
[Nexus 4 Android Development] darkbasic4:
That's the first thing I tried, it didn't help :(

Here is the screenshot you asked:

http://files.linuxsystems.it/files/orologio.png
[Nexus 4 Android Development] tackleberry_crash:
Without clean install it is hard to tell, I have got no reports of this, probably neither trail got any clock related FCs

Can you get a logcat of the crash?

---------- Post added at 07:04 AM ---------- Previous post was at 07:03 AM ----------

are those keymaster files the only ones that added/updated?

I am just gonna drop them to my folder anyways though I have no problems at all.
[Nexus 4 Android Development] trailblazerz11:
Yesh, then just add them to the blobs to be exported file (forgot name)

Yeah I've given up on figuring it out....just glad it works.
[Nexus 4 Android Development] instinctkiller:
Juste tried your ROM, I flashed over the official CM 10.1 => it's just AWESOME !

Smoother and snappier than the original CM.

Using FAUX Kernel it's just perfect :)

I'll see if the battery life is the same... i'll keep you updated !

Thanks again for your work !
[Nexus 4 Android Development] tackleberry_crash:
So cherry-picking this commit will do

https://github.com/TheMuppets/propr...cac3d775ae256d46fd46b5b54bcb5dd958a362ce#mako
[Nexus 4 Android Development] trailblazerz11:
Yeah should work. I was using it previously so just a git pull for me.

Sent from my Nexus 4
[Nexus 4 Android Development] tackleberry_crash:
thanks I may just add this repo as a remote to track it though it should not change that often when you think...
[Nexus 4 Android Development] OCmylife:
Hey guys.

I`ve tried to add Droidwall to my apps in my rom using the local.manifest file and I got a sync error. Maybe you could help me:

ocmylife@gentoo-workstation ~/android/system $ repo sync

fatal: https://github.com/kechagia/droidwall/droidwall/info/refs?service=git-upload-pack not found: did you run git update-server-info on the server?

Here`s the link from github

https://github.com/kechagia/droidwall

Here`s my droidwall.xml(located in ~android/system/.repo/local_manifests)

<?xml version="1.0" encoding="UTF-8"?>

<manifest>

<remote name="droidwall" fetch="https://github.com/kechagia/droidwall" />

<project path="packages/apps/droidwall" name="droidwall" remote="droidwall" revision="jellybean"/>

</manifest>

And my edited line in device.mk located under ~/android/system/device/lge/mako/

PRODUCT_PACKAGES += \

droidwall

Big thanks in advance :)
[Nexus 4 Android Development] Racing19969:
The one error I see in your manifest is the revision set as jellybean. the only revision on his github is master..
[Nexus 4 Android Development] OCmylife:
Ok so I will delete the revision part in my manifest-file. I hope that I could repo sync now, without errors :)

Big thanks for your help!

Edit: Nope. It doesn`t matter if I change the revision to "master" or if I erase "revision="master""

Edit 2: netchip has found the error: The link in the manifest file was wrong:

It has to be:

<remote name="droidwall" fetch="https://github.com/kechagia" />

<project path="packages/apps/droidwall" name="droidwall" remote="droidwall" revision="master"/>
[Nexus 4 Android Development] eng.stk:
NIce work, CM has always been my fav since CM7 ;)

Gotta love turbo charge Linaro+Bionic stuff. MAybe one of this days I'll try to compile, meanwhile I'm trying one of your builds.

Very nice that you do nightlies but also M releases, so the choice is wider.

Very nice job :good:
[Nexus 4 Android Development] androidfr33k:
I mentioned this key master folder in one of my posts earlier. What I find odd is the daemon_DL file is in the nvidia folder on muppets but the one from my blobs are in the Asus folder. Other than that, this is the only folder that never extracts using the sh script with an adb connection to the nexus 7
[Nexus 4 Android Development] trailblazerz11:
Was about to go out, then Oooo see voice activated shutter merged. Started a build,Should be up within an hour if no errors, hopefully. Really wanna mess around with it.