yashsingh1/xdaforums huggingface dataset:
[Nexus 6 Android Development] garyd9:
hrmm.. I've never seen this before:

E/HAL ( 957): load: module=/system/lib/hw/lights.shamu.so
E/HAL ( 957): dlopen failed: empty/missing DT_HASH in "lights.shamu.so" (built with --hash-style=gnu?)

Of course, the obvious thing would be to edit device/moto/shamu/liblight/Android.mk and add "LOCAL_LDFLAGS := --hash-style=both", but that's giving me a compiler error:

arm-linux-androideabi-g++: error: unrecognized command line option '--hash-style=both'

Now, why is an LD flag being passed to the c++ compiler and not to the linker? For that matter, why is it using g++ instead of gcc? hmm... This should be easier than this.
[Nexus 6 Android Development] bradputt:
I figured I should thank you for doing all these
[Nexus 6 Android Development] GreenXSniper:
I believe in you Gary! Seriously though thanks for taking the time to work on this.
[Nexus 6 Android Development] garyd9:
I appreciate the support, but I hope everyone remembers that I have a full time job that takes priority. That generally means that most of my android "fun" work gets deferred during the working week.

The task will get done, but please be patient...

Take care

Gary
[Nexus 6 Android Development] crypt0kiddie:
We definitely appreciate everything you and the other devs do! I'm very much enjoying the AOSP Email! I did not want to use Gmail for my work email. I know it might have some benefits but I just needed the basic email app so that was very much appreciated!
[Nexus 6 Android Development] scothern99:
So how did you get the email app to work? I am seriously needing this. LOL
[Nexus 6 Android Development] garyd9:
Wrong thread. Look here: http://xdaforums.com/nexus-6/themes-apps/aosp-email-exchange-sync-apps-t2956736
[Nexus 6 Android Development] garyd9:
ah! a bit of progress!

I now have (Steady) LED's using a program like "https://play.google.com/store/apps/details?id=com.coolbeans.ledtester". They don't blink (and I'm not really concerned about that right now.) As well, I can't enable them in settings (no option for it) and (so far) no apps are using the LED for notifications (or charging.)
[Nexus 6 Android Development] poczynek:
Yes there is an XDA thread where people have got it going using Light Flow.
[Nexus 6 Android Development] garyd9:
LOL. I'm embarrassed. I can do all kinds of stuff, but when it comes to cracking open framework-res.apk to change a couple config values, I suddenly realized I'm a bit lost.

So...

Anyone want to give me a step-by-step on opening framework-res.apk (from the device, of course), changing some xml values, and then putting the damn thing back together?
[Nexus 6 Android Development] garyd9:
Completely different beast. lightflow is being forced via root to write to the sysfs. I'm trying to get things to work properly. Please don't respond if you don't know what your talking about.
[Nexus 6 Android Development] garyd9:
oooooooohhhh..

I just got an email notification (with LED). Hey, [MENTION=4732713]poczynek[/MENTION], while you might not have a clue what I'm doing, your reply triggered an email message which in turn caused gmail to give me a notification.... which made my notification LED illuminate. So... I guess you did help in some way. Heh.

Oh, but this excuse for a tricolor LED that motorola uses really sucks. Badly. Set for white (0xFFFFFFFF), it looks red from one angle, white from another angle, etc. ugh.

Gary
[Nexus 6 Android Development] poczynek:
See I did help!
[Nexus 6 Android Development] wowthatisrandom:
edit just realized you said from device ... sorry ill leave the instruction below anyways incase someone else wants needs them.

use apktool

make a copy of framework-res.apk (for when you mess up)

apktool if framework-res.apk

apktool d framework-res.apk

open the folder make ur changes to the xml

apktool b framework-res new-framework-res.apk

open both new-framework-res.apk and framework-res.apk in a zip tool (i use 7zip on windows and betterzip on mac)

grab the resources.arsc file from new-framework-res.apk and drop it into framework-res.apk overriding the original resources.apk

profit
[Nexus 6 Android Development] privatekey:
Download apktool rc3

https://bitbucket.org/iBotPeaches/apktool/downloads

Follow steps here

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

No need to sign it.

Once it was done I opened up the original and the new one in winrar (separate windows), select all in new and drag to the old one. If you do this the certs from the old one will allow it to work.

Make sure to chmod 644 and chown root.root the file after you transfer it.

If you have problems with /system R/W while booted:

adb shell

su

mount -o remount,rw /system /system

If you are in recovery just mount /system
[Nexus 6 Android Development] garyd9:
I'll be continuing my work on this issue in the following thread: http://xdaforums.com/nexus-6/devs-only/enabling-charging-notification-led-t2960135
[Galaxy Note 4 Themes and Apps] mac2androidfallininlove:
Good nigth : Sorry for my bad english.

I am from Spain.Took several days trying to modify the sound bad note 4. I found this and it really works.

1. viper4 install apk android 4 and convert to a system apk

2. Choose in settings, sound effect, viper4 android

3. uninstall sound effects and adaptsound via roomtolbox

4. restart

5. go to system / lib / soundfx / and rename using root explorer explorer or these files is: libaudioeffectoffload.so, libreverbwrapper.so libbundlewrapper.so adding a termination "bk" before .so

6. Restart.

7. open vipper. marking the first boxes and equalizer. custom equalizer try forming a wave. select speaker extreme optimization, select inf effect. then select -3 db in the last boxes.

8. TubeMate download the video as an impresive DRUNK LOVE BEYONCE 1080 or 2k or 4k video. Open the samsung stock video player and enjoy.

9. the poweramp and the apk samsung music also work.

10. I uninstalled mx player but I left says player

sorry for my bad English
[Galaxy Note 4 Themes and Apps] sugar 7:
Thanks men for that..u mean change libaudioeffectoffload.bk than .so ? Right ?

Envoyé de mon SM-N910F en utilisant Tapatalk
[Galaxy Note 4 Themes and Apps] mac2androidfallininlove:
my opinion

Its a backup of 3 files
[Galaxy Note 4 Themes and Apps] mac2androidfallininlove:
Somebodys correct?
[Galaxy Note 4 Themes and Apps] mac2androidfallininlove:
need tester which have tried and their results. I have screens throughout the process:rolleyes:
[Samsung Galaxy Grand Quattro] vishal1337:
Hi,

I've a Samsung galaxy grand quattro - GT-i8552

My Phone is not booting up,

When I re-insert the battery it shows me the Samsung logo with a single Vibration and immediately after a few second screen goes black :crying: and nothing works not even Charging :( .

I can not get into Download mode , not even into recovery.

Please help me ASAP :confused:

P.S. I am not sure what all I need to attach here , tell me if You need any kind of Details of my phone, I'll provide.
[Samsung Galaxy Grand Quattro] freitaz:
Did you do something with your phone, such as rooting or flashing another ROM? When it stopped working?
[Samsung Galaxy Grand Quattro] vishal1337:
3435

Thank you For Reply Sir,

Yes I Had Rooted my phone using Kingo Root But a few days Back before it stopped working.

PS. My phone had some other than stock recovery which was installed by Kingo Root at the time of Rooting itself.
[Samsung Galaxy Grand Quattro] freitaz:
Keep trying to get into download mode (VOL DOWN + HOME + POWER). If you succeed, download stock rom from http://sammobile.com and flash it with Odin.

If you really can't get into download mode, you will need to send your device to Samsung service center to repairs.
[Samsung Galaxy Grand Quattro] vishal1337:
Today when I was Searching over the Web about this problem I came to know about the thing known as USB JIG, which is used Unbrick HardBricked Phones, So I was thinking to try it.

What do you Suggest? Should I Give it a try or not?
[Samsung Galaxy Grand Quattro] freitaz:
I, personally, would give it a try. I don't know if it will work. If you are willing to risk, it may work for you.
[Samsung Galaxy Grand Quattro] vishal1337:
Im following this guide to create my own jig and use it for my device to get it to the Download mode.

One more thing I noticed today ..

Today When I reinserted my Battery it was not showing me anything so thought My battery was totally drained out in this phone itself, so I put it on Charging and it didn't show up anything such as charging on the Screen but it did Charge my Phone.

can you tell me What does this suppose to mean??

Does it signal that I still have got some chances to revive my phone??
[Samsung Galaxy Grand Quattro] freitaz:
I would say that this only mean that your device is charging, although it doesn't show any signal of it.

You may have a chance to revive your phone. Also, if you have a custom recovery installed, you could try to flash a custom rom. You can boot on recovery pressing VOL UP + POWER + HOME buttons.
[Samsung Galaxy Grand Quattro] vishal1337:
Thank you for support friend, I got my problem solved.

There was a problem with the power button, I got it replaced from the Samsung service centre nd now it works like a charm. :D
[Galaxy Note 4 General] gekkehenkie11:
*EDIT* This thread is now based upon the work by [MENTION=3041959]fattire[/MENTION] and [MENTION=2457777]slayher[/MENTION], who got it up on the 910T. For that phone see this thread: http://xdaforums.com/note-4-tmobile/development/unoffcial-cm-12-0-t-mobile-note-4-t2964887

This thread is for dev's interested to help out porting CM12 to our device. I've researched for info regarding CM ports and good information is actually quit scarce. A dev might post something like 'hmm stuck at boot anim' and then the next day 'got it, booting now !' without explaining what he did to solve it. I want to change that, so this thread can serve as a guide for other first time porters too (this is also my first porting project), documenting every step as in much detail as possible.

For ROMS: http://xdaforums.com/note-4/snapdragon-dev/unofficial-cm-12-0-910f-note-4-trltexx-t2987412

Please use this thread for R&D/development ONLY !!!
[Galaxy Note 4 General] gekkehenkie11:
Ok, I'm really starting from scratch and never done any phone ROM porting. I've just made a new virtual disk running ubuntu and am currently downloading the CM12 repo. I figured, how to get even started here. I figured that the goals we need to attain in this order:

1) compile the kernel samsung supplied

2) make sure we can boot into kernel

3) get ADB up and running

4) get CM12 starting up, even the bootanim alone would be a nice goal to reach

5) Booting into homescreen

6) Fixing all stuff like modem, wifi etc etc etc

Anyway, I'm currently downloading CM12 sources as we speak ...
[Galaxy Note 4 General] gekkehenkie11:
This is by the way a link I found very useful: http://www.androidenea.com/2009/08/init-process-and-initrc.html It describes the Android init process, cause I was wondering, how to even start all this ? How to get from kernel to CM booting: that's where init.rc should come into play of course :)
[Galaxy Note 4 General] KaptKeefmenneke:
Good luck this is a long project. I build carbonrom for another phone where everything for cm was allready fixed. I would start with a phone that allready has support to learn how the process goes. You can brick your phone and it's a process of trail and error... But I hope you manage good luck!
[Galaxy Note 4 General] gekkehenkie11:
I'm not sure I understand what you mean ? If the phone already has support, then what's there to port ? Or do you mean building CM itself ? That I've done quite a few times already, did quite a bit of work on the i9500, fixing RILD issue's, kernel issue's and other stuff.
[Galaxy Note 4 General] spleef:
soo...maybe m wrong (has been a while snce ive ported) but im goin to drop a few lines anyhow......

porting is very different from source building.....the only reason you would need to dl the cm sources would be to compile the rom using sources...and right now the note 4 has none we would need device,kernel,common,vendor sources for that....so... we cant source build right now only port....sp what we need to do is research which device officially or unofficially that has cm with same specs as the note4 things like screen size, board, things of that nature....and would highly recommend using the same carrier as well.....but once we have that info....dl that phones cm rom zip....dl one of our phones rom zips.....now for the fun....ill lay out a way i did it maybe is the same still ...

place both cm zip and note 4 zip on desktop..

create a new folder call it new

drag all files from the cm zip into the new

open the new and open the note 4 zip have them side by side

now your going to drag pretty much all folders/files from the note 4 system folder into the new sytsem folder one folder at a time excluding:

app,priv-app,etc,fonts,media,framework,xbin (im probably forgetting one or two but has been a long time)

now the fun begins....time to edit some xmls and trial and error on pretty much everything until it is working right

you are also going to want to change out the kernel and have to edit the updater-script in the meta-inf....

im positive im forgetting a few things but this is pretty much what i can remember......from off the top of my head...some of the guides ill link in a bit will go into greater detail and explain things more in depth

a few links ive had bookmarked that will help ya

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

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

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

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

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

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

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

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

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

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

all of these links in one way or another have helped me during my porting phase hope they do the same for you ...like ive said before im more of a source builder so thats what imgoing to be trying to do is getting a working tree... but if you need help just hit me up ill do what i can
[Galaxy Note 4 General] jdidtht:
Shouldn't this thread be in general?
[Galaxy Note 4 General] spleef:
yes it really should being as there is no development only discussion...but thats the moderators job not mine
[Galaxy Note 4 General] gekkehenkie11:
Threads regarding R&D belong in development, so I guess it really belongs here. Even more so cause if it's moved to general, tons of n00bs will join in and destroy the thread. please keep this developers only.

Anyway thanks to see you join in Spleef, much appreciated !! Still setting up my environment myself ...
[Galaxy Note 4 General] gekkehenkie11:
Great addition to the thread ! Hmm I haven't done any porting myself. I figured once we have a kernel up (compiling it should be easy), then what's stopping us from booting CM ? I mean of course RILD won't work if we don't have a JNI (or what's it called on ART, ANI ? :) ) interface to the modem. Of course we won't have NFC, internet, telephony, all that. But merely booting a graphical interface that should be doable with Nexus 6 source code, right ? I mean all we need is SoC sources so we have cpu & graphics working, right ? So That was what I had in mind myself but your approach actually is quite the same now I think of it :)
[Galaxy Note 4 General] gekkehenkie11:
Thread is moved to general AGAIN. Hehe. Starting a development thread ON XDA and have it in the developer section seems harder than porting CM12 :) Anyway I guess it doesn't matter in which section it is, as long as n00bs and trolls stay out and we can focus on development only.

Anyway, downloading kernel sources as we speak ...
[Galaxy Note 4 General] gekkehenkie11:
BTW, here is Nexus 6 source code: http://www.xda-developers.com/android/google-nexus-6-factory-images/

Going to down that right now too ...
[Galaxy Note 4 General] gekkehenkie11:
Ok, building kernel as we speak. I just installed the arm-eabi-4.7 toolchain, like this:

git clone https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/arm/arm-eabi-4.7/

And then edited the makefile and issued the 3 commands all as specified in README_Kernel.txt from the Samsung Kernel. So far so good
[Galaxy Note 4 General] gekkehenkie11:
And yes, as expected, build breaks:

drivers/scsi/ufs/ufs_test.c:25:19: fatal error: ../sd.h: No such file or directory

compilation terminated.

make[3]: *** [drivers/scsi/ufs/ufs_test.o] Error 1

make[2]: *** [drivers/scsi/ufs] Error 2

make[1]: *** [drivers/scsi] Error 2

make: *** [drivers] Error 2

Hehe, Samsung wouldn't be Samsung if they would supply a kernel that actually builds from the start :) Going to investigate ...
[Galaxy Note 4 General] gekkehenkie11:
Actually that seems like an easy fix, just linked the file correctly
[Galaxy Note 4 General] gekkehenkie11:
And a new break:

In file included from drivers/gud/MobiCoreDriver/logging.c:21:0:

drivers/gud/MobiCoreDriver/main.h:24:22: fatal error: platform.h: No such file or directory

I'd say it's looking for the file in platforms/MSM8960_SURF_STD, going to link it correctly ...

And building again ...
[Galaxy Note 4 General] gekkehenkie11:
n file included from drivers/video/msm/mdss/mdss_mdp_trace.h:255:0,

from drivers/video/msm/mdss/mdss_mdp.c:61:

include/trace/define_trace.h:79:43: fatal error: ./mdss_mdp_trace.h: No such file or directory

Include should point to kernel includes, fixing it again

And building again ...
[Galaxy Note 4 General] gekkehenkie11:
OBJCOPY arch/arm/boot/Image
Kernel: arch/arm/boot/Image is ready
LZO arch/arm/boot/compressed/piggy.lzo
AS arch/arm/boot/compressed/piggy.lzo.o
LD arch/arm/boot/compressed/vmlinux
OBJCOPY arch/arm/boot/zImage
Kernel: arch/arm/boot/zImage is ready

Kernel ready :) Of course that was the easy part, hehe, but still, progress. Tomorrow going to start with the difficult part, getting CM up :)
[Galaxy Note 4 General] :
I've ported before but only tw where it was mainly framework edits. Never worked with cm before but like the op I'm keen to learn. If i can help at all just let me know, I use linux mint myself rather than Ubuntu but they're very similar
[Galaxy Note 4 General] gekkehenkie11:
So, just downloaded Nexus 6 sources. It seems that directory /device/moto/shamu contains the device hardware stuff we need ! Going to research some more today ...

*EDIT* also mind the propietary-blobs.txt in that directory. I'm still waiting for my Note 4 myself (hopefully friday), but this needs to be compared with the files on the device, cause if they exist, they will be blobs of course and we need them.
[Galaxy Note 4 General] suzook:
Wow! That's so smooooth! Can't wait!
[Galaxy Note 4 General] naruto.ninjakid:
edit : its working never mind
[Galaxy Note 4 General] Planet X:
Wow it's looking great so far. Can't wait to rock that thing :D Thanks for all your effort and energy.
[Galaxy Note 4 General] gekkehenkie11:
I've ran, after 5:51:09 hours of building (wtf, lol) into another problem:

frameworks/av/media/libmediaplayerservice/StagefrightRecorder.cpp:65:25: fatal error: QCMediaDefs.h: No such file or directory

(same error later on: frameworks/av/media/libstagefright/ACodec.cpp:62:25: fatal error: QCMediaDefs.h: No such file or directory)

When I search for that I find it in 3 directories :

system/hardware/qcom/media-caf/msm8960/mm-core/inc

system/hardware/qcom/media-caf/msm8960/mm-core/inc

system/hardware/qcom/media/default/mm-core/inc

So no file for the msm8084 ... How did you guys solve that ?

*EDIT* only difference between those 3 files seems to be:

extern const char *MEDIA_MIMETYPE_VIDEO_VPX; //backward compatibility. Going to try with the default one ...

*EDIT* same problem for :

QCMetaData.h

QOMX_AudioExtensions.h

OMX_QCOMExtns.h

QOMX_AudioIndexExtensions.h

And had to copy gralloc_priv.h into frameworks/av/media/libstagefright
[Galaxy Note 4 General] gekkehenkie11:
and now breaks with:

Install: /home/gkh/android/system/out/target/product/trlte/system/bin/showlease

Symlink: /home/gkh/android/system/out/target/product/trlte/system/bin/sleep -> toolbox

Symlink: /home/gkh/android/system/out/target/product/trlte/system/bin/smd -> toolbox

Symlink: /home/gkh/android/system/out/target/product/trlte/system/bin/start -> toolbox

Symlink: /home/gkh/android/system/out/target/product/trlte/system/bin/stop -> toolbox

Symlink: /home/gkh/android/system/out/target/product/trlte/system/bin/su -> /system/xbin/su

Export includes file: frameworks/native/services/surfaceflinger/Android.mk -- /home/gkh/android/system/out/target/product/trlte/obj/SHARED_LIBRARIES/libsurfaceflinger_intermediates/export_includes

Import includes file: /home/gkh/android/system/out/target/product/trlte/obj/EXECUTABLES/surfaceflinger_intermediates/import_includes

target thumb C++: surfaceflinger <= frameworks/native/services/surfaceflinger/main_surfaceflinger.cpp

make: *** No rule to make target `/home/gkh/android/system/out/target/product/trlte/obj/SHARED_LIBRARIES/libqdutils_intermediates/export_includes', needed by `/home/allard/android/system/out/target/product/trlte/obj/SHARED_LIBRARIES/libsurfaceflinger_intermediates/import_includes'. Stop.

*EDIT* this guy suggests it's a prebuilt: http://xdaforums.com/showpost.php?p=51085316&postcount=92

*EDIT2* just went with the suggestion to create the directory (plus empty file), builds again now ...
[Galaxy Note 4 General] gekkehenkie11:
This is a real pain in the ass... Going to find out where to define 'qcom-display' first, that should solve all these issue's ...
[Galaxy Note 4 General] suzook:
Curious as to which version note 4 your building for?
[Galaxy Note 4 General] Beukhof1:
910F
[Galaxy Note 4 General] gekkehenkie11:
Going to grep the whole HLTE sourcecode for this "qcom-display" string ... will take a while but this will yield result.
[Galaxy Note 4 General] gekkehenkie11:
That's odd ... I did a grep for 'qcom-display' on the whole HLTE source directory. It found 13 files but they all only *use* the definition:

$(call project-path-for,qcom-display))

None of the files actually defined it !?!?! I'm puzzled here ...

*edit* the macro itself is defined in build/core/pathmap.mk:

# Returns the path to the requested module's include directory,
# relative to the root of the source tree.
#
# $(1): a list of modules (or other named entities) to find the projects for
define project-path-for
$(foreach n,$(1),$(patsubst $(n):%,%,$(filter $(n):%,$(pathmap_PROJ))))
endef
[Galaxy Note 4 General] vogli:
Could this have to do with caf? Does it probably have to be qcom-display-caf?
[Galaxy Note 4 General] gekkehenkie11:
My macro scripting knowledge just sucks, but maybe this script means that it's looking for a qcom/display directory (that directory does indeed then contain the msmxxx files) ... I guess I need to delve a bit in scripting tutorials to find out :( I hate that high level language stuff, just gimme assembler instead ;) Anyway but then if it were true, how does it know whch msm dir to use ....
[Galaxy Note 4 General] gekkehenkie11:
At this point I think I'll just circumvent the problem by editing the makefiles and just pointing them directly to the msm8084 directory. Wasted too much time on this already ...
[Galaxy Note 4 General] gekkehenkie11:
Ok I just pulled the frameworks directorys that I altered again, made clobber & mproper and now going building everything again... So going to have to wait 6 hours... Damn, I need to buy a bigger SSD, building on a HDD sucks :)
[Galaxy Note 4 General] vogli:
Which msm repo did you sync?
[Galaxy Note 4 General] gekkehenkie11:
? I didn't 'sync' a msm repo, the msm dirs are included in CM12.
[Galaxy Note 4 General] vogli:
The cm.dependencies in device_samsung_hlte-common lists an msm-8974 to be synced. Is this also right for the Note 4?