yashsingh1/xdaforums huggingface dataset:
[Nexus 6  General] Swanseatom:
Thanks for the link!

Can anyone answer a question that is puzzling me. When you cherry pick a commit at what point do the changes show in your local repo?

For example I believe I have cherry picked the commit for reboot menu above. However after the git cherry pick and git commit commands, both with no error's. I still cannot see the changes in the files mentioned in the commit. I am hoping that these will only show once I have done a new build, otherwise I think I've gone wrong somewhere and missed a command.

Any help appreciated, Thanks!
[Nexus 6  General] Xileforce:
The changes should appear as soon as you start the cherry-pick. Even if it has a conflict. It will still make the changes temporarily until you either abort the cherry pick or continue it. Does the cherry pick show if you run git log ?
[Nexus 6  General] Swanseatom:
Yeah I thought so, I'm not really sure where I went wrong the first time. I repeated what I think was exactly the same process and it worked.

Thanks!
[Nexus 6  General] Scott:
Look at the SimpleAOSP repo. Or at Grogg88's repo.

They both have exactly that and screen record. However I never got the screen record to work. All the reboot and screenshot did work.

Isnt it kinda cool to run your own ROM, lol :highfive:
[Nexus 6  General] Scott:
Roger that!!!

AS far as the Red errors, not all are really errors. You will understand when you do things like turn the screen for the first time and get an error about orientation sensors. But you will soon learn a real error from a system error.

Like for example... The browser edits... Dont make those then go to settings in the browser and choose any of them and watch the error. It will be pretty verbose and will lead you right to the problem.
[Nexus 6  General] Stephen:
I have been hunting around the last couple of days and found nearly all the code I need for my next rom. There are a couple of things I am still looking for. I am looking to replace the battery icon with text only eg 100% and centre the clock. I have found these in GIT, but the problem is they all require an app in settings to configure them. I just want to have them hard coded into the ROM. I don't know if that is possible.

Also had to wipe my build and download the source again! This time before I make any changes, I remembered to make a copy of it! Saves me having to download again!!!
[Nexus 6  General] Xileforce:
If you manually make changes to a file and don't commit the changes you can always CD to that repos directory and then run git status. That will show all the modified files. Then you can run git checkout filename to revert the changes back to before you changed them. If you cherry picked you can run git log. And then find the cherry pick and run git revert commitsha replacing commitssha with whatever the sha for the commit is. Additionally if you want to just reset everything you have done back to a certain commit. You would do git reset --hard commitsha that would reset all your changes and commits back to right after you made the commit you chose.
[Nexus 6  General] Stephen:
Good to know! I didn't know you could do a reset like that!
[Nexus 6  General] Xileforce:
Bro...the amount of times I've used reset....its a life saver...not sure what it says about me as a Dev tho xD
[Nexus 6  General] Scott:
Damn, this entire time I have two Repo's. One completely untouched and the other one I work out of. I need to start using the reset command. [MENTION=3667193]GROGG88[/MENTION] explained it in the other thread but I just havent had the time to play.

Says you are not afraid to try new things!
[Nexus 6  General] mwebb34:
Getting a nexus 6 in 2 days and I can't wait...is there any kitkat ROMs for the nexus. Sorry if thats a dumb question
[Nexus 6  General] Scott:
The entire point of the Nexus 6 was to Showcase Lollipop. I doubt you will see any KK ROMS for it.
[Nexus 6  General] Stephen:
I wiped my build folder as I messed it up. I then copied my backup build folder into my main folder, so I could start over. Am I right in thinking that if I go into my root folder then do:

repo init -u https://android.googlesource.com/platform/manifest -b android-5.0.2_r1

repo sync

It should then scan my build folder and see that everything is there and then set it up for use, as if it was a new download?

Odd thing is, when I am trying to run the repo sync I am seeing a lot of these errors:

fatal: unable to access 'https://android.googlesource.com/platform/packages/wallpapers/LivePicker/': Could not resolve host:
[Nexus 6  General] Scott:
Was the repo initialized to that base first before you moved it? Also you may want to wipe the hidden .repo folder to remove any manifests that are in there and then resync.

Im just guess on this so if anyone else has any idea's feel free to chime in.
[Nexus 6  General] Stephen:
@scrosler Just wanted to say thank you for your help so far! i have learnt loads because of this thread. I have one successful build running on my phone and currently building my second build!

One question. When you are doing the repo sync, can you get it to only pull down one folder?. Say I delete a folder in the packages and I want it back, can I do a repo sync only in the packages folder?

If I do a full repo sync, would it over-ride the changes I have made? Eg in the second build, I have added an APM, quick pull down quick settings and a clear all recent apps button. If I was to do a repo sync, would it revert those all back again?
[Nexus 6  General] Scott:
First question: That would actually tie in with the reverting that was discussed earlier.

Second: As far as a Repo resync, no, it will not over ride your changes. Unfortunately I had learned that the hard way. Unless of course you are updating the repo like maybe android 5.0.3 or 5.1.0. Those could possibly overwrite your changes.
[Nexus 6  General] Milly7:
Your sync will fail at the end if it is going to overwrite your changes. It will list the files that should be deleted for the sync to complete so that you will know which files to remove and modify again to have whatever changes you have made to exist again.
[Nexus 6  General] Stephen:
I managed to get my second build completed! I also have added a couple of commits from GIT into this one. I added a clear all recents button and single swipe pull down for quick settings! I am now looking to see what else I can add. Again a big thank you for this guide, it is awesome.
[Nexus 6  General] Scott:
Glad you are enjoying it...

I also get a lot of PM's from People saying thanks for getting them started.

I expect in another few weeks you will see a lot of new ROMS out in the Dev Section :highfive:
[Nexus 6  General] Milly7:
What commit did you use for single swipe pull down for quick settings?
[Nexus 6  General] Stephen:
Finally managed to get an APM added! Next stage is to trim it down, so it just shows Power off and Reboot options!

EDIT: I have now been able to remove everything from the APM, so that it is just Power off and Reboot!
​

​
[Nexus 6  General] janjan:
How did you add clear all recent button?
[Nexus 6  General] fhem:
see the commits here they work https://github.com/craigacgomez/platform_frameworks_base/commits/lollipopalooza
[Nexus 6  General] Stephen:
The next thing I am trying to sort out is were to add the start up boot animation and were to edit the default ringtones. When I install the rom fresh, I just have the standard android one not the new Google L and the ringtones and notifications are not set. Yes that is the clear all button I pulled. It works well!
[Nexus 6  General] janjan:
Thanks. I will check it out later.
[Nexus 6  General] Scott:
Good job on the APM!

There are many different ways to add Boot Anims... You could cheat like I do and add them to a pre-exisitng folder :p

Or you could create your own Vendor folder (proper way)

I have never done it the proper way but I can sure show you how to "cheat"

LMK! :angel:

-Scott
[Nexus 6  General] Stephen:
As long as it adds the boot animation I would be happy enough. I am only building personal builds at the minute, so I can learn how to do it!
[Nexus 6  General] Scott:
Ok then here is how I do it... I add it to the "device-partial.mk" in the moto shamy folder. Once you see that file it will be pretty obvious what is going on. The deivce directs the files from the folders to be copied to a specific location.

Place the bootanim in proprietary folder there then add a line to the mk file.
[Nexus 6  General] Stephen:
Now that I have had time to sit down and work on it, I have only gone and managed to add in the boot animation, default wallpaper, android L ringtones and set the default ring tones :D

Also been able to add, APM, clear resent apps button, pull down quick swipe and battery text! I also removed a lot of apps, changed the default icon for the dialler app. Only thing I am looking to do now, is to centre the clock. Once I have that I will have a stable build!

@scrosler I am trying to re-add my apm back into the rom. It is the last thing I was adding. I was able to add before as you saw by the screen shots. This time, when I add it, I get a build error, that is un-related to the APM. I am really confused here and not sure were I am going wrong!

I am using the apm from here:

https://github.com/craigacgomez/pla...mmit/548726cfc773899433303849a948bdd074ff9338

When I run the build I get the following error:

Install: out/target/product/shamu/system/lib/libaudiopolicymanagerdefault.so
target Strip: keystore_cli (out/target/product/shamu/obj/EXECUTABLES/keystore_cli_intermediates/keystore_cli)
frameworks/opt/telephony/src/java/com/android/internal/telephony/SmsNumberUtils.java:602: error: cannot find symbol
.config_sms_convert_destination_number_support);
^
symbol: variable config_sms_convert_destination_number_support
location: class array
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error
target Strip: rild (out/target/product/shamu/obj/EXECUTABLES/rild_intermediates/rild)
Install: out/target/product/shamu/system/bin/wpa_supplicant
build/core/java.mk:343: recipe for target 'out/target/common/obj/JAVA_LIBRARIES/telephony-common_intermediates/classes-full-debug.jar' failed
make: *** [out/target/common/obj/JAVA_LIBRARIES/telephony-common_intermediates/classes-full-debug.jar] Error 41
make: *** Waiting for unfinished jobs....
target SharedLib: libaudiopolicymanager (out/target/product/shamu/obj/SHARED_LIBRARIES/libaudiopolicymanager_intermediates/LINKED/libaudiopolicymanager.so)
target Executable: vold (out/target/product/shamu/obj/EXECUTABLES/vold_intermediates/LINKED/vold)
target Strip: libjavacrypto (out/target/product/shamu/obj/lib/libjavacrypto.so)
Warning: AndroidManifest.xml already defines versionCode (in http://schemas.android.com/apk/res/android); using existing value in manifest.
Warning: AndroidManifest.xml already defines versionName (in http://schemas.android.com/apk/res/android); using existing value in manifest.
Note: frameworks/support/v4/honeycomb/android/support/v4/os/AsyncTaskCompatHoneycomb.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

#### make failed to build some targets (35:26 (mm:ss)) ####

If I remove the APM and run the build, it completes with out any errors. As far as I can see, the file it is having issues with is un-related to the APM, so I am at a bit of a loss!
[Nexus 6  General] Scott:
Your right, it doesnt look related at all. Maybe you can get [MENTION=1050103]sykopompos[/MENTION] or [MENTION=3667193]GROGG88[/MENTION] to give some input on this one. I have no shame in saying I think this one is over my head.
[Nexus 6  General] sykopompos:
You need to go up a bit higher in your log, with multi threading, the cause if the error might be back a ways
[Nexus 6  General] GROGG88:
Can you pm me your entire terminal output? Also, are you getting any conflicts that require resolving after cherry picking the apm commit?
[Nexus 6  General] Stephen:
EDIT Got it sorted! It was quite random!!!

I pulled the cherry pick down as before. I then replaced all the xml files in the values folder with the ones from my backup. I then manually edited them and merged the changes from Git Hub.

It only went and compiled. Now I have to trim it down, so it only has the Power off and Reboot options. :D Thanks for the help guys.

Next job is to centre the clock and disable the USB and connected MTP messages when you pull down the notifications tab and I am done!
[Nexus 6  General] tjohnsonjr:
I have searched but couldn't the answer. Does anyone have a fix for the decreasing audio issue?
[Nexus 6  General] sykopompos:
Missing vendor/lib files, I can't remember the exact ones though
[Nexus 6  General] tjohnsonjr:
That's what I figured. I finally got it. I was missing a few files. I got it working now. Thanks
[Nexus 6  General] Stephen:
[MENTION=273512]tjohnsonjr[/MENTION] Hey would you mind letting me know what files are needed? I just want to check and make sure I have them in my rom? Cheers.
[Nexus 6  General] tjohnsonjr:
I just followed this post: http://xdaforums.com/showpost.php?p=58287782&postcount=132
[Nexus 6  General] Stephen:
Guys the APM I have for the phone currently has the following layout:

Power Off

Reboot

-> Reboot

-> Reboot Recovery

-> Reboot Bootloader

When you make your selection you are then prompted to confirm by pressing ok. Would it be difficult to change it so I have one menu that has:

Power off

Reboot

Reboot Recovery

Reboot Bootloader

i also don't want to have any confirmation box either. Here is a link to where I took the APM from:

https://github.com/craigacgomez/pla...mmit/548726cfc773899433303849a948bdd074ff9338

I have been able to strip out all the other options in the APM but, not been able to work out how to have it shown as above.
[Nexus 6  General] Stephen:
@tjohnsonjr I followed the instructions from that post and updated my shamu folder in the vendor folder with his. But I am still getting crackling on the sound and the sound is also decreasing. Any ideas on how to fix it? Youtube is now working properly, but just having the issues with sound still.

Hmm just did it again. Created a second vendor folder cloned the git and it had 422 files, mine had 417. So I'll try that with the new files and see how it goes!
[Nexus 6  General] fhem:
Here's what I did and it worked: from post # 2 https://github.com/Ayysir/android_build/commit/50fc20a72717b924243d03e9741826486e4af39f and look at my github https://github.com/fwhem/platform_vendor. I didn't include adding TimeService, TriggerEnroll, and TriggerTrainingService apk's. I'm waiting to see if I need them. I'm on Verizon network and so far all OK w/o those apk's. Hope this helps.
[Nexus 6  General] sykopompos:
Time service controls setting the time and you will get the annoying incorrect time in some apps. Trigger training is for the google anywhere.

BTW, idk if anyone answered you pm yesterday
[Nexus 6  General] Stephen:
Cool, I'll try cloning your vendor folder. It looks to have even more files. Your has 429 versus mine at 422. Need to get to the bottom of this!
[Nexus 6  General] fhem:
waiting to hear back from [MENTION=3810143]bgill55[/MENTION] - he answered me and said he would take a look. thanks to all.
[Nexus 6  General] Stephen:
I think I have just worked out were I am going wrong! I extracted the 3 vendor files from google. I then went to rascarlo's git hub and cloned the git. I then put the shamu folder in the root of my vendor folder, so I had 4 folders. Am I right in thinking, I need to into the moto folder and delete the shamu folder, then move the one I cloned into the moto folder?
[Nexus 6  General] tjohnsonjr:
The files I used were in the post I linked you to. I also applied the media fix that is posted in the OP. I also edited the mixer_paths.xml to make the sound a bit louder. The original values were 85.

<ctl name="RX1 Digital Volume" value="95" />

<ctl name="RX2 Digital Volume" value="95" />

<ctl name="RX3 Digital Volume" value="95" />

<ctl name="RX4 Digital Volume" value="95" />

<ctl name="RX5 Digital Volume" value="95" />

<ctl name="RX6 Digital Volume" value="95" />

<ctl name="RX7 Digital Volume" value="95" />

Hope that helps
[Nexus 6  General] Stephen:
Ok so this is how I have setup my vendor folder. Created an empty vendor folder in the root of my build folder

Gone to https://github.com/rascarlo/android_vendor_moto and used download as zip file button to download entire contents of vendor folder.

Extracted contents and put into my vendor folder

Deleted build/core/tasks/vendor_module_check.mk

This is how my vendor folder looks now:

Trying fresh build to see how it goes!
[Nexus 6  General] fhem:
it won't work that way - your paths will be wrong
[Nexus 6  General] Stephen:
Is that because of the extra proprietary folder?
[Nexus 6  General] fhem:
No its because his structure is android/vendor/moto/shamu and yours is aosp/vendor look at all his device partial mk files and compare them to the ones in my mine https://github.com/fwhem/platform_vendor. You can just use mine if you want. The only diff is I didn't include the TimeService, TriggerEnroll, and TriggerTrainingService apk's. I will be adding the Trigger apk's in the near future but all is good w/o them right now. I will not include the TimeService. Hope this helps you.
[Nexus 6  General] Stephen:
Ahh ok, it was compiling but not booting so that would explain it then! Will have another look tonight cheers! How difficult would it be to change the folder from aosp to android, with out having to download the source again?
[Nexus 6  General] fhem:
The easiest for you is to do this ------- 1. go to your aosp/vendor directory and delete everthing 2. download zip of my vendor directory https://github.com/fwhem/platform_vendor 3. extract zip into to your aosp/vendor directory and you should be good to go. I have added the stock trigger apks. So the only diff between my vendor dir and rascarlo's is the Timeservice apk which we don't need. Your new vendor dir should look like below. Hope this helps.
[Nexus 6  General] Stephen:
I really appreciate the help! I have a rom up and running with a lot of stuff added from git! I just have been struggling to get the vendor folder setup. I will try that later tonight and let you know tomorrow how I get on!

Edit, I think I need your build/core/tasks/vendor_module_check.mk:61: *** Error: vendor PRODUCT_COPY_FILES file "vendor/proprietary/shamu/proprietary/mdm_helper_proxy:system/bin/mdm_helper_proxy" has unknown owner. Stop.

Getting multiple errors on the vendor folder

Edit: just had a look at yours and saw it wasn't there, so I took a copy of it and removed it from my build folder and it seems to be building now.
[Nexus 6  General] fhem:
thats the one you said you removed is post #231 above and yes it needs to be removed.

if that don't work you also need to remove restrict vendor files by commenting out see this commit https://github.com/fwhem/device_moto_shamu/commit/4c2a1530b59a7e2a62d380e33d8504e39ece694b
[Nexus 6  General] Stephen:
I had removed it in a previous attempt, but since then I had restored my build folder from a backup. I had forgotten about that. It is currently building now. If it does not work I will make that change you suggested. Thanks again for all your help!

EDIT: Only gone and worked! No more sound crackling or sound decreasing thank you so much! I may still make that edit on the aosp_shamu,mk file but I am now well pleased!
[Nexus 6  General] Stephen:
I now have my rom nearly finished. There are only a couple of things more I want to sort out.

I would like to center the clock

Hide the USB debugging and connected as media device notifications.

I also want to clean up the settings so it shows only the build number.

I have seen a few of these in GIT, but they all require an app in settings to do this. I would prefer to do with out an app. I have got rid of the debugging info, but cant get rid of test keys. Any ideas?
[Nexus 6  General] fhem:
Edit your phone build prop and reboot
[Nexus 6  General] Stephen:
That only disables the usb debugging one. I am trying to figure out how to get the media one disabled as well.
[Nexus 6  General] fhem:
I was only refering to the "test keys" -> edit sysem/build.prop ro.build.display.id= <xxxxxxx>
[Nexus 6  General] Stephen:
Ah ok got ya cheers! Am I right in thinking I can edit that in the buildinfo.sh file and set that when compiling the rom? I also think I should be able to add in the persist.adb.notify=0 in there too to at least disable the usb debugging icon.
[Nexus 6  General] fhem:
look at lines 148-157 of the build/core/Makefile re: BUILD_DISPLAY_ID

I think you also need to enable product build prop overrides https://github.com/craigacgomez/platform_build/commit/b341c995ce14a6be1ce03c8a33be7ff0064a19f3
[Nexus 6  General] Anik_khan:
Thanks :)
[Nexus 6  General] Stephen:
I have taken the plunge and decided to stop building AOSP and switch to a CM12 build. It has all of the features I want, including a few extras like charging leds and notifications etc. All I need to do to it is change a few basic things and make it look a bit more like AOSP or stock Android L!

Nearly finished downloading the source now, just running an extra download to make sure it downloaded correctly. I think the only thing I need to work out is how to disable the radio. I can do pretty much everything else I need!
[Nexus 6  General] Scott:
CyanogenMOD was my next step after AOSP. However I found it too buggy and inconsistent. Each daily build something would get fixed... However something else got broke. After playing that game for a few weeks I just stopped. I used to do nightly builds for all my Nexus devices and the HTC M8. As a matter of fact my very first CM Build was for the M8 on the day they broke all audio. I spent hours trying to figure out what I did wrong but come to find out it was a source code problem.

However, I would still say the knowledge gained by building CM builds is worth the time it takes. I also did enjoy some of the feature set of CM builds.
[Nexus 6  General] Stephen:
I am going to try to mess around with it and see how I get on. If and when 5.1 AOSP comes out, I may switch back to it again!
[Nexus 6  General] Scott:
Just so you know you can have both repositories on your machine and build both (not at the same time).
[Nexus 6  General] Stephen:
So far on my CM12 build I have:

Disabled encryption

Changed default wallpaper to Android L wallpaper

Changed default boot animation

Changed icon for MMS to be stock android L icon

Stripped out unwanted ringtones and alert tones and set default tones

Changed locale to UK

Removed stock recovery

Removed unwanted apps

Changed build number

All I have left to do now is remove theming - at least the app for it. I would also like to remove it from the settings menu as well.
[Nexus 6  General] Scott:
You did good! Post your build as I am sure some would like to try it! :good:
[Nexus 6  General] VECTUS:
Yeah Stephen, don't hold out on us... :p
[Nexus 6  General] Stephen:
The problem is I first need to learn how to upload my changes to GIT Hub! I am going to be off on holidays next week, so that is going to be my main job then :D
[Nexus 6  General] Scott:
You dont have to push changed to Github. You only do if you want to. I would like to try your ROM. Compile it and upload! :)

If you need server space PM me. I got plenty of high speed server space!