01-16-2013 11:07 PM
1,060 ... 1415161718 ...
tools
  1. JerryScript's Avatar
    I know everyone is busy trying to get ICS working, just wanted to give a headsup about a recent CM commit that breaks the video camera recording. It's a revert of the commit that fixed it in the first place, so just revert the revert and you should be good to go.

    http://r.cyanogenmod.com/#change,10339
    BobZhome, mrg666 and bigsupersquid like this.
    12-07-2011 12:17 PM
  2. joshgee's Avatar
    I'm sorry if this question has been asked before, but I've been through the first 15 pages and couldn't find anything on it.

    Question is: Has anyone built in Arch Linux with any success?

    If not i'll have to take a hit on Ubuntu.

    Sent from my LG-VM670 using Tapatalk
    12-13-2011 12:14 AM
  3. bigsupersquid's Avatar
    haven't tried that flavor.
    actually had problems learning to build kernels with the old recommended Ubuntu (10.04 i think) so i migrated to debian squeeze. that was before trying to build android.
    i've successfully built iho with squeeze but have never tried Ubuntu to build android.
    12-13-2011 08:23 AM
  4. LeslieAnn's Avatar
    I tried Arch, if I remember right, it's missing several dependencies not addressed with the guides here, but I didn't dive into troubleshooting it.

    Jerry, I think it was Ubuntu 11 that was problematic (and possibly the last 10.x).
    Using the classic interface on 11 fixes some of the problems.


    Regardless, you pretty much have to go through every page of this guide and still struggle to get a working build box at this point even with Ubuntu 10 or 11 (at least for me). Every time I got mine going again after we lost kernel.org it lasted about 3 days before another problem arose. I gave up for now, it's simply not worth the hassle.
    12-13-2011 04:41 PM
  5. joshgee's Avatar
    Thanks for the info... Im gonna start setting up and see what dependencies are still missing. I'll list out the dependencies from Ubuntu and see where I can go.

    At this point I have all the (most) of the libraries set up.


    Gave up on Arch.

    Sent from The Hubble Space Station
    12-13-2011 05:30 PM
  6. joshgee's Avatar


    Syncing now!
    12-14-2011 01:54 AM
  7. JerryScript's Avatar
    While the rest of you are busy with ICS, I've been adding some customization options to my repository.

    I just added these two commits to allow users to change the status bar background:
    https://github.com/JerryScript/andro...4c0fdd557658c2
    https://github.com/JerryScript/andro...7616bc99e74001

    And recently I added these to allow centering the status bar clock and changing it's color:
    https://github.com/JerryScript/andro...0ba60733eff4d5
    https://github.com/JerryScript/andro...4dc7f1984f65b6

    I'm working on other customization mods as well. Happy Holidays!
    12-16-2011 06:12 AM
  8. thekraven's Avatar
    Hey Jerry, Is the Date view not working with the latest status bar changes? I see that the Statusbar Date view is commented out in the notification drop down. Will that be worked back in?
    12-17-2011 04:57 PM
  9. JerryScript's Avatar
    Hey Jerry, Is the Date view not working with the latest status bar changes? I see that the Statusbar Date view is commented out in the notification drop down. Will that be worked back in?
    Yeah, now that I have the center clock animating properly, I can add the date back without overlay issues.
    thekraven likes this.
    12-17-2011 05:09 PM
  10. JerryScript's Avatar
    I added this commit last night to fix the date overlay issues with the notification icons. Please note the comment at the bottom of the commit, if you are not using my transparency modifications, you only need to add the last few lines of the commit. What it does is adds an animation to the notification icons when the date's animation is called, both out an in.
    https://github.com/JerryScript/andro...b8aeb#comments
    12-21-2011 01:03 PM
  11. sellers86's Avatar
    I added this commit last night to fix the date overlay issues with the notification icons. Please note the comment at the bottom of the commit, if you are not using my transparency modifications, you only need to add the last few lines of the commit. What it does is adds an animation to the notification icons when the date's animation is called, both out an in.
    https://github.com/JerryScript/andro...b8aeb#comments
    How do I use these commits. do i repo sync with the url?
    12-21-2011 09:02 PM
  12. JerryScript's Avatar
    You would either need to repo sync with my repository, git@github.com:JerryScript/android.git -b gingerbread, or cherry-pick the commits and then merge them in using git. If you haven't set up your local repository with branches and remotes, it would be best for you to sync from my repository.

    While I'm getting the hang of git, the only cherry-picking I do is via gerrit with c&p. You'll have to read the git documentation to understand how to cherry-pick what you want. Of course, you can always apply the changes manually, something I've resorted to in the past, but what a pita!
    12-21-2011 11:41 PM
  13. Whyzor's Avatar
    I was just going to ask a similar question (building CM7 for the MT), and want to get the upstream latest CM7 updates. Can I just 'repo -init cyanogenmod -b gingerbread' and it'll pull in newer changes, while keeping the same files as my first init to inferiorhumanorgans (or in my case another developer, who stopped updating the CM7 branch). And is there a way to revert these updates in case something doesn't work?
    12-22-2011 10:34 AM
  14. JerryScript's Avatar
    No, you need to use git branch, git fetch, and git merge to pull in changes from CM.

    git branch mybranch
    (create a new branch)
    git remote add cyanogen git://github.com/CyanogenMod/PACKAGE_NAME_HERE
    (add a new upstream remote)
    git fetch cyanogen
    (grab the latest change from the remote)
    git merge cyanogen mybranch
    (merge those change into a new branch)
    git checkout mybranch
    (loads the files from mybranch, will overwrite any non-commited changes)

    Branching allows you to have mutliple repositories changes without overwriting them.
    Whyzor likes this.
    12-22-2011 12:27 PM
  15. sellers86's Avatar
    You would either need to repo sync with my repository, git@github.com:JerryScript/android.git -b gingerbread, or cherry-pick the commits and then merge them in using git. If you haven't set up your local repository with branches and remotes, it would be best for you to sync from my repository.

    While I'm getting the hang of git, the only cherry-picking I do is via gerrit with c&p. You'll have to read the git documentation to understand how to cherry-pick what you want. Of course, you can always apply the changes manually, something I've resorted to in the past, but what a pita!
    Fetch error when syncing your repo
    12-22-2011 03:52 PM
  16. tdm's Avatar
    @JerryScript: I think I've found all the bloat in the ROM that I built.

    Half seems to be in the extra languages. I found a commit in your git tree that switches to languages_small.mk.

    The other half is in files that you removed: half a dozen apk's, many ringtones, etc. Sorry if this is a noob question, but how do you remove those? Do you disable them via the build system, or do you do an unzip/delete/rezip?
    12-22-2011 05:07 PM
  17. thekraven's Avatar
    Here's the webkit accelerator. Testing it right now. Here's what it is supposed to do.


    In the BoardConfig.mk add:

    WEBCORE_ACCELERATED_SCROLLING := true

    And in device_thunderc.mk add

    vendor/lge/thunderc/proprietary/$(SUB_MODEL)/system/lib/libwebkitaccel.so:system/lib/libwebkitaccel.so \
    vendor/lge/thunderc/proprietary/$(SUB_MODEL)/system/lib/libwebkitaccel.so:obj/lib/libwebkitaccel.so


    Then place the libwebkitaccel.so in your vendor/lge/thunderc/proprietary/VM670/system/lib folder.

    Grab the file from [MOD] HW Acceleration for CM7/AOSP Browser [Tested working] - xda-developers.
    12-24-2011 04:51 AM
  18. JerryScript's Avatar
    @JerryScript: I think I've found all the bloat in the ROM that I built.

    Half seems to be in the extra languages. I found a commit in your git tree that switches to languages_small.mk.

    The other half is in files that you removed: half a dozen apk's, many ringtones, etc. Sorry if this is a noob question, but how do you remove those? Do you disable them via the build system, or do you do an unzip/delete/rezip?
    I disable them in the build, for audio files, you have to delete from 5 different AudioPackage mk files. They are located in frameworks/base/data/sounds
    12-24-2011 05:46 AM
  19. thekraven's Avatar
    CM7 testing: Handset mic with no-mic headphones. Getting closer, I can make calls with normal headphones with no mic, and use the phone mic. Regular headset with mic functions properly.

    • Currently works with the modification of the headsetobserver.java in the frameworks, resides in the Services.jar. Testing a few kernel fixes too with htc_headset.c and msm7x30.c patches, but may not be necessary.
    • known issue with Skype calls, when it connects the sound routes to the phone ear speaker. Just unplug and plug in the headphones/rca adapter. I might need help with this one.
    • Once I get organized, maybe after Christmas, I'll share what i got.
    12-24-2011 04:40 PM
  20. tdm's Avatar
    I disable them in the build, for audio files, you have to delete from 5 different AudioPackage mk files. They are located in frameworks/base/data/sounds
    Thank you sir i think I'm just about ready to start hacking
    12-25-2011 01:15 AM
  21. thekraven's Avatar
    In building for the headset fix. THis comes from the CM6 HTC magic peeps. They just about had it all worked out till CM7 came out and I lost track of the development after that. Issue 1582 - cyanogenmod - On Phone Mic Not Working with 3.5mm Plugged Into Line Out with No Built in Mic, Unplugging Jack In-Call Mutes Mic on Phone (MT3G 1.2) - CyanogenMod Android ROM - Google Project Hosting


    Just two lines need changing in the file frameworks/base/services/java/com/android/server/headsetobserver.java

    Code:
    private static final int BIT_HEADSET = (1 << 0);
    private static final int BIT_HEADSET_NO_MIC = (1 << 1);
    
    //change to
    
    private static final int BIT_HEADSET = (1 << 1);
    private static final int BIT_HEADSET_NO_MIC = (1 << 0);
    That's it for building Cm7. We still need kernel work. I'll upload what i compiled over the 3.4 BobZhomes kernel for testers.

    This is the starting point. We still need to work on getting CM7 to recognize the icon change in the status bar, but this properly allows the handset mic to work with regular headphones. And headsets with mic work.

    Then for the kernel building. Thanks to the work of Ksatta. Grab msm7x30.c from franco's https://github.com/franciscofranco/u.../msm/msm7x30.c

    And grab htc_headset.c from below.. just rename htc_headset.zip to htc_headset.c and place in /arch/arm/mach-msm/ folder . Still looking for the correct source of this file. Will update the link.

    edit here's the link https://github.com/CyanogenMod/cm-ke.../htc_headset.c
    BobZhome and mrg666 like this.
    12-25-2011 01:55 AM
  22. BobZhome's Avatar
    I pushed thekraven changes: https://github.com/BobZhome/android_...815cfc96660f11
    You can grab the new kernel here: VM670_kernelv3.5.zip to test your builds.
    mrg666, JerryScript and thekraven like this.
    12-26-2011 09:36 AM
  23. JerryScript's Avatar
    Here's the webkit accelerator. Testing it right now. Here's what it is supposed to do.


    In the BoardConfig.mk add:

    WEBCORE_ACCELERATED_SCROLLING := true

    And in device_thunderc.mk add

    vendor/lge/thunderc/proprietary/$(SUB_MODEL)/system/lib/libwebkitaccel.so:system/lib/libwebkitaccel.so \
    vendor/lge/thunderc/proprietary/$(SUB_MODEL)/system/lib/libwebkitaccel.so:obj/lib/libwebkitaccel.so


    Then place the libwebkitaccel.so in your vendor/lge/thunderc/proprietary/VM670/system/lib folder.

    Grab the file from [MOD] HW Acceleration for CM7/AOSP Browser [Tested working] - xda-developers.
    So you have not added the libwebcore.so from that mod package? And it works fine with our libwebcore.so? Or did you replace ours with the one from the modified package?
    12-26-2011 05:26 PM
  24. thekraven's Avatar
    Not yet. Been testing the single file for a few days. I will push the 2nd file and test it tonight. Any website suggestions to test?
    12-26-2011 07:53 PM
  25. JerryScript's Avatar
    Well my first attempt built a borked webkit, nothing that calls a webview works, email, browser, etc. It seems as if both libraries would be necessary, but you have no issues with just the one?

    I'm building right now with both libraries added, will report in about an hour.
    12-26-2011 07:58 PM
1,060 ... 1415161718 ...
LINK TO POST COPIED TO CLIPBOARD