yashsingh1/xdaforums huggingface dataset:
[G2 General] 6ril1:
It's a [MENTION=5232783]dr87[/MENTION] script http://xdaforums.com/lg-g2/development/4-4-kernel-automatically-detect-panel-t2800626

[MENTION=2376110]dorimanx[/MENTION] in this post, where he gave a script for bumping kernel, put it inside his zip : http://xdaforums.com/showpost.php?p=57109988&postcount=376 (look at loki.sh in /RECOVERY/bumped_recovery/temp/loki.sh in the script).

The detection is made during flash, not in the kernel (During the flash process, before kernel injection, the script detects phone panel, and search in the kernel that we want to flash, if settings for others panel exists inside it, and if yes, replace in the kernel these bad settings by the right settings )

lcdmaker=$(grep -c "lcd_maker_id=1" /proc/cmdline)
if [ $lcdmaker == 1 ]; then
echo "JDI panel detected"
find /tmp/loki/recovery.img -type f -exec sed -i 's/console=ttyHSL0,115200,n8 androidboot.hardware=g2 user_debug=31 msm_rtb.filter=0x0 mdss_mdp.panel=1:dsi:0:qcom,mdss_dsi_g2_lgd_cmd/console=ttyHSL0,115200,n8 androidboot.hardware=g2 user_debug=31 msm_rtb.filter=0x0 mdss_mdp.panel=1:dsi:0:qcom,mdss_dsi_g2_jdi_cmd/g' {} \;
elif [ $lcdmaker == "0" ]; then
echo "LGD panel detected"
find /tmp/loki/recovery.img -type f -exec sed -i 's/console=ttyHSL0,115200,n8 androidboot.hardware=g2 user_debug=31 msm_rtb.filter=0x0 mdss_mdp.panel=1:dsi:0:qcom,mdss_dsi_g2_jdi_cmd/console=ttyHSL0,115200,n8 androidboot.hardware=g2 user_debug=31 msm_rtb.filter=0x0 mdss_mdp.panel=1:dsi:0:qcom,mdss_dsi_g2_lgd_cmd/g' {} \;
else
echo "lcd_maker_id doesn't exist. Something went wrong."
fi

# Install BUMPED Recovery
dd if=/tmp/loki/recovery.img of=/dev/block/platform/msm_sdcc.1/by-name/recovery || exit 1
rm -rf /tmp/loki
exit 0
[G2 General] fix-this!:
tried this guide many times this morning and i always get errors at make -j4 command. same with the make -j5 command. maybe the guide is incomplete? im a total noob here to this. shouldn't we start fresh from cm12 kernel source or is that what the OP has already given us is his guide? im also still unsure at what point in this guide i would start to add the cherry pick features i want?
[G2 General] :
If you do not have Linux skills you're probably not enabled for it. The guide is not incomplete, if you go back a bit see what some people have managed normally. This guide is not meant to show how to add features.
[G2 General] GalaticStryder:
Wrong... guide, section and panel. But the TOOL woks great ;)

Disagreed, "If you do not have Linux skills you're probably not enabled for it". People need a point to start, an anchor point, if you're not able to help them with their beginning you shouldn't even be posting a "GUIDE".

[MENTION=4595889]fix-this![/MENTION] to add features to your based kernel you need the environment setup, I would recommend you look at this:

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

A good written tutorial to set it up. I would also recommend you use Ubuntu instead of another distro, or Ubutu based ones, like Mint with it's friendly UI if your starting on Linux now.

Here are some basic commands with explanation: http://www.comptechdoc.org/os/linux/usersguide/linux_ugbasics.html

You need to setup git as well with SSH and etc but it's in the first link.

https://www.siteground.com/tutorials/git/commands.htm some commands for git.

Read this whole website helps a lot as well http://think-like-a-git.net/sections/graph-theory/seven-bridges-of-konigsberg.html

After all these you can start a git clone or use your own manifest to fetch things.

You need to cd to the location and run git status to see if your in the right place.

Then git fetch https://github.com/SaberSunset/kernel_lge_msm8974 the URL of the commits you want.

git cherry-pick f10fe349135881496035dc092a8ae9eb9f9029cc the commit https://github.com/SaberSunset/kernel_lge_msm8974/commit/f10fe349135881496035dc092a8ae9eb9f9029cc

git status to be sure it merged with not conflicts

For conflicts, this may help http://xdaforums.com/showthread.php?t=2763236 generally.

For changing default toolchain to SaberMod this thread is a very good place: http://xdaforums.com/chef-central/android/guide-switching-to-custom-toolchain-t2927662

Now you can continue using this guide.

export ARCH=arm
export CROSS_COMPILE=~/Android/veneno/arm-cortex_a15-linux-gnueabihf-sm_4.9/bin/arm-eabi-

I prefer to use the Makefile in Kernel, but I compile ROM + Kernel so it's quite easy for me to set things up on Vendor pointing paths.

make veneno_d802_defconfig

make -j5 in my case I use make -j32 otapackage but my computer is very overpower, for normal CPU use -j5 as he said.

If you have problems you can PM me.

[MENTION=5859397]ferreirawax[/MENTION] the tutorial needs some adjustments and don't need to be in Development section, no sense since we have a Developing section for those who want to know more, there we have other G2 developers support. The TOOL is quite good, I tested it quickly, no problems with it.
[G2 General] bender_007:
Great post m8:)
[G2 General] :
I felt a bit of banter in his words, To go forward you do have to have a minimum of skills in Linux, I also pointed out that the thread from beginning (What do you not read). And you also do not realize that the title is "How to build" rather than "How to build and add features", however and went against myself and gave tips on how to do this.
[G2 General] GalaticStryder:
Sorry if I gave a bad feelin' in my works, the point is that with some adjustments this guide will be fine, and the section like general will make it more worthy, or even in Development section because here all ROMs are posted and when they BUMP UP your tutorial won't be seen. However I'm sure this will help some people on future, mainly the tool :angel:.
[G2 General] :
I'm fixing the guide right now, I even thank me for having pointed. But if you really have something to talk to me about any tips, Do this in a more mature way (PM). :)
[G2 General] :
Fixed all the errors in the guide, The only thing that I owe is to improve DCC to work correctly with LG ROMs. Sorry for the inconvenience, I bought my G2 recently and I have no skills with this device yet. :)
[G2 General] :
Updated thread and DCC, now works well with LG ROMs. Please report any error :)

DCC changes found on Github. I also added a kernel and RAM disk suitable for LG ROMs on my Github.
[G2 General] Norside:
When I try to install the environment I get this:
[G2 General] :
What distro are you using?
[G2 General] Norside:
ElementaryOS freya beta 2
[G2 General] :
Probably the repository list is broken , so do not find the packages. You have to search in the forums ElementaryOS is resolving this issue or try to add the repositories list (EOS is based on Ubuntu 14.04):

sudoedit /etc/apt/sources.list

Place in end:

CTRL + X, Y, ENTER

sudo apt-get update

And try again :)
[G2 General] Norside:
Sweet it worked! Thank you so mutch!

When I write "CD msm8974" I get "no such file or directory" whats wrong?

When I type "ls" to see which directories there is in "mykernel" I only see "arm-cortex.....linaro4.9, executables, out, and ramdisk

What have I forgotten?
[G2 General] :
cd is a command to move between directories, if the directory does not exist it has this error, you have to take the logic. With the file manager try to look if that directory exists even and if the path is right. ;)
[G2 General] Norside:
Should have formulated it better my fault..what is it in that folder, cause I can't find it so it must be something I have forgot to clone or install?
[G2 General] :
msm8974 is the kernel source code, it is cloned in the selection "Setting Up the Environment kernel".
[G2 General] Norside:
Thanks! I had forgot to download that, now lets start the compiling..
[G2 General] :
The -jNUM refers the processor of your PC and not the LG G2. This error happens when you try to run a 64-bit file into a 32-bit, you are using a 64-bit system? (Amd64/x64)
[G2 General] Norside:
Will check that when I come home, I am using a x32 OS

Its a 11 year old PC so might have something to do with that...
[G2 General] :
Yes, this is the problem, I mentioned earlier that we need an x64 system.
[G2 General] Norside:
I understand, and the "make -j4" command is for the PC CPU? So if I have a quad core x64 PC I write "make -j5" ?

Thanks for awesome support, this cleared things a lot up!

Sorry!
[G2 General] :
Yes, that's right :)
[G2 General] Norside:
One more question, every time I shut down the PC or log out, do I have to recompile the kernel if I ain't finished?
[G2 General] :
When you get a compilation, are stored cache of each file (not all) processed, if the compiler see that there are residues, it will continue where it is more appropriate, Now if you clear the data stored with "make clean && make mrproper" The compilation will start from the beginning. :)
[G2 General] Norside:
This is kind of embarassing but I encountered one more problem. When I was going to copy the dtc file, it didn't seem to exist? I have tried this:

magnus@magnus-HP-ENVY-17-Notebook-PC:~$ cd ~/android/mykernel/executables
magnus@magnus-HP-ENVY-17-Notebook-PC:~/android/mykernel/executables$ ls
dtbTool dtc loki_patch mkbootfs mkbootimg mkbootimg_dtb
magnus@magnus-HP-ENVY-17-Notebook-PC:~/android/mykernel/executables$ sudo cp ~/dtc.zip /usr/bin/dtc
[sudo] password for magnus:
cp: could not fetch information about «/home/magnus/dtc.zip»: No such file or directory
magnus@magnus-HP-ENVY-17-Notebook-PC:~/android/mykernel/executables$ cd ~/Downloads && sudo mv dtc.zip /usr/bin/dtc && sudo chmod +x /usr/bin/dtc
bash: cd: /home/magnus/Downloads: No such file or directory
magnus@magnus-HP-ENVY-17-Notebook-PC:~/android/mykernel/executables$ ^C
magnus@magnus-HP-ENVY-17-Notebook-PC:~/android/mykernel/executables$
[G2 General] :
cd ~/android/mykernel/executables && sudo cp dtc /usr/bin && chmod +x /usr/bin/dtc

If it fails, use the nautilus :)
[G2 General] irevhard:
I just a got a used d802 yesterday and I've been figuring out how to make my kernel boot. Thanks to this guide and for your tools, man.

Now my kernel boots. :D
[G2 General] Boris31:
[MENTION=5859397]ferreirawax[/MENTION] the command: find ~/android/mykernel/msm8974/. -name "*.ko" -exec cp {} ~/android/mykernel/installer/system/lib/modules doesnt work i get find: missing argument to `-exec'
[G2 General] :
find ~/android/mykernel/msm8974/. -name "*.ko" -type f -exec cp {} ~/android/mykernel/installer/system/lib/modules \;
[G2 General] :
Guide updated, minor modifications. I plan on improving DCC with new features, I'm not satisfied.
[G2 General] MicroMod777:
Anybody use this guide for the vs980 yet?
[G2 General] berryman13:
Don't follow that link unless you want to read a bunch of drama over code nobody but LG put down.

The command is:

python open_bump.py boot.img
[G2 General] Pannam:
can i use this tutorial to build kernel for lg g3 snapdragon 805 apq8084 . I am trying to build a cwm recovery so i have to build kernel too i guess.
[G2 General] rafitcu:
I have this same error.

I've followed these steps but does not fix me.

Any more ideas?

Thanks in advance
[G2 General] :
Tried this guide today but the git repos dont seem to exist.
[G2 General] StonebridgeGr:
Hello, can i create a kernel for lg 3 s mini with this steps?
[Nexus 5 Q&A, Help & Troubleshooting] tonyt3rry:
I've tried using light flow but never had it working properly or they would conflict is there any app out there that just works or works good after a little bit of messing about.

I hated not having it with my nexus S then when i got my 5 I thought I'd be able to use them :( the stock ones are not that good.

Sent from my Nexus 5
[Nexus 5 Q&A, Help & Troubleshooting] Cueball666uk:
Cyanogenmod 12 has really good notification led support built in... But flashing a custom ROM just for that would be crazy ... ?
[Nexus 5 Q&A, Help & Troubleshooting] tonyt3rry:
Haha prob yeah I usually stick to stock on nexus but I do want to install cm once theme engine is fixed, I like lollipop but it doesn't have material everywhere
[Nexus 5 Q&A, Help & Troubleshooting] emilioaponte:
Check out this one.
[Nexus 5 Q&A, Help & Troubleshooting] experience7:
Theme engine fixed? They put a lot of work into CM12 theme engine and I don't experience any bugs since the latest nightlies :)
[Nexus 5 Q&A, Help & Troubleshooting] Ben36:
Ledblinker pro no question is the best
[Nexus 5 Q&A, Help & Troubleshooting] tonyt3rry:
thank you anythink i need to mess with in settings or does it just work
[Nexus 5 Q&A, Help & Troubleshooting] experience7:
Most likely you will have to grant notification access under settings :)
[Nexus 5 Q&A, Help & Troubleshooting] tonyt3rry:
Can I have a gplay link please so I know what one to buy thanks
[Nexus 5 Q&A, Help & Troubleshooting] zagorteney:
deleted
[Nexus 5 Q&A, Help & Troubleshooting] experience7:
There you go: https://play.google.com/store/apps/details?id=com.ledblinker.pro :)
[Nexus 5 Q&A, Help & Troubleshooting] zagorteney:
Best one. No doubt.
[Nexus 5 Q&A, Help & Troubleshooting] tonyt3rry:
Thanks the screenshot earlier in the thread isn't the same as that one that's what threw me off
[Nexus 5 Q&A, Help & Troubleshooting] tonyt3rry:
Thanks just bought it now do I need to disable the led notification on the phone its self so it doesn't conflict or is it ok
[Nexus 5 Q&A, Help & Troubleshooting] experience7:
Well that's just the link of LED Blinker PRO. Don't know wether Light Manager Pro is better though since im using CM and don't need such an app :)

But you can get your money refunded if you don't like the app and uninstall it after testing :)
[Nexus 5 Q&A, Help & Troubleshooting] zagorteney:
There is also ad supported version: https://play.google.com/store/apps/details?id=com.koo.lightmanager
[Nexus 5 Q&A, Help & Troubleshooting] tonyt3rry:
Yeah I find with add supported usually you can't add custom apps , really appreciate everyone replying glad I can use my phone to its full potential now ..... Minus the rom users and root ;)
[Nexus 5 Q&A, Help & Troubleshooting] zagorteney:
Actually, you can.
[Nexus 5 Q&A, Help & Troubleshooting] tonyt3rry:
The app is great I'm more than happy supporting the developer/s isn't hit and miss like light flow
[General Topics] ahmed blue:
this my phone info anyone help me!

C:\fastboot>fastboot getvar version-main

version-main: 6.07.1540.2

C:\fastboot>fastboot getvar all

(bootloader) version: 0.5

(bootloader) version-bootloader: 1.57.0000

(bootloader) version-baseband: 4T.28.3218.04

(bootloader) version-cpld: None

(bootloader) version-microp: None

(bootloader) version-main: 6.07.1540.2

(bootloader) version-misc: PVT SHIP S-ON

(bootloader) serialno:

(bootloader) imei:

(bootloader) meid: 00000000000000

(bootloader) product: m7_u

(bootloader) platform: HBOOT-8064

(bootloader) modelid: PN0711000

(bootloader) cidnum: HTC__038

(bootloader) battery-status: good

(bootloader) battery-voltage: 4238mV

(bootloader) partition-layout: Generic

(bootloader) security: on

(bootloader) build-mode: SHIP

(bootloader) boot-mode: FASTBOOT

(bootloader) commitno-bootloader: dirty-6d8a0b9b

(bootloader) hbootpreupdate: 11

(bootloader) gencheckpt: 0

all: Done!

finished. total time: 9.039s

C:\fastboot>
[Android Q&A, Help & Troubleshooting] seanspotatobusiness:
I want to edit /system/etc/gps.conf on my Hudl 2 tablet. I have rooted the tablet. I am currently unable to save changes with the following error message given by X-plore file manager:

Error!
Can't write file: /system/etc/gps.conf
open failed: EROFS (Read-only file system)
[Galaxy Note 4 Q&A, Help & Troubleshooting] 1980aksoy:
I've had the note 4 since november 2014, i was able to play 1080p video and 1440p video, now for some reason i can't play a youtube video above 720p that's the highest res option it will give me.
[Galaxy Note 4 Q&A, Help & Troubleshooting] filthydani112:
Have you tried updating? Maybe the video isn't available at resolution above 720p
[Galaxy Note 4 Q&A, Help & Troubleshooting] 1980aksoy:
I have lates version and videos mostly 1080p /1440p on desktop computer I can watch same videos on nexus 7 1440p but not on note 4
[Galaxy Note 4 Q&A, Help & Troubleshooting] mklass:
Yep, Google has again done something to stop us viewing 1080P and 1440p videos.

I read in another thread on here that its something to do with Lollypop and Google are only enabling 1080p and 1440p on Lollypop
[Advantage X7500, MDA Ameo General] SITS:
I've just been to my local T-Mobile UK shop to have a look at the Ameo before buying it. I was asking about the prices and the assistant (I think he must have been the manager) showed me the printed price list for the various tariffs. The one that stuck out was Flext 35+ (I think - it was £47.50 pm) with the cost of the handset at £119. It was completely at odds with the prices on the other plans - ie the ones costing more per month were much more expensive. The guy said it was probably a typo but he would put it through as that and override it if necessary. It was and it should have been £309. As you can imagine I was well pleased and I bought it on the spot!

I won't say which T-Mobile shop as I don't want to get him into trouble but if you are interested I think it would be worth going down to your local shop and see what they could do...
[Advantage X7500, MDA Ameo General] rhedgehog:
thats the same deal i got it for online. they obviously made a mistake cos they changed it online two days later!

still, I'm not complaining!
[Advantage X7500, MDA Ameo General] Digital.Diablo:
God damn it, I could have saved myself £200!!! :mad: :) Well done for baggin the bargin though!
[Advantage X7500, MDA Ameo General] ice_coffee:
I got mine from T-mobile online, I paid £240 for the phone but im only paying £37.50 for the FlexT35 + web and walk for the entire life of the contract (min 18 months)
[Advantage X7500, MDA Ameo General] spzero:
Yeah i got mine cheep too on same deal had to override system when putting it thru and i just kept my moth shut was a bargain now i just want WM6....
[Advantage X7500, MDA Ameo General] ice_coffee:
I dont understand why you guys think this is such a good deal, even though I paid more for my phone (£240) over the 18 month minimum contract, I am paying less @ 37.50 per month. My deal is still available direct from the T-mobile website !!
[Advantage X7500, MDA Ameo General] bond007:
I have been into T-mobile today and this is definitly still avalible and is a pricing mistake picking mine up tommorow £119 for the handset flex35 + £7.50 web and walk £42.50 should be £219 or more for the handset
[Advantage X7500, MDA Ameo General] wout:
Hi

have a look at this !!!!

T-Mobile Zakelijk 1 Jaar 2 Jaar

Optimaal 2x € 299.00 € 25.00

(www.smartphonestunts.nl)

This is a dutch website (at which I bought my universal)

This is with a so-called business plan, which is 2x dataplan. at 12,50 each per month.

so 12months x12,50 x 2 x 2years + 25 phone = 625,- euro for a brand new Athena

and with a nice spread "payment" plan.

nice huh. ?

greetings,

Wout

ps. who can not afford 25euro per month ? ;)
[Advantage X7500, MDA Ameo General] wu5262:
is it a 12 month or 18 month contract?
[Advantage X7500, MDA Ameo General] bond007:
18 but you can reduce the tariff after 6 months
[Advantage X7500, MDA Ameo General] rhedgehog:
To be honest there's very little in it. you save £5 a month over 18 months. you save £90 on the contract, i saved £120 on the purchase price. By my crappy maths, that means I still save £30 less over all than you. but then, I didn't have £240 to spend on the phone so I am happy. and I certainly couldn't afford the £700-750 that places are charging for the HTC branded one. So for me, this was a great deal.

I treat contracts like H.P. I cant get credit, but i can get phone contracts, so i simply use them to spread the cost.

plus if I remember right, you dont get HSDPA on web and walk standard. unless you find a gormless t-mobile drone to add it for you without upping you to pro which is what came with this price mistake.

If this thing had a dvd drive and could rip dvd's, my PC would be in the freeads quicker than you could say 'HTC'!

In the end, for me it was a great deal cos otherwise i wouldn't have been able to get the thing. maybe you earn more than I do and have more disposable income and can pay more for the initial payment, and so it doesn't strike you as such an amazing a good deal. But to me and the others who may not have been able to afford one without this screw up on the initial price, its f'ing superb!!
[Advantage X7500, MDA Ameo General] imaginarynumber:
err... i got the 119 price as well but had to pay a higher rate for the web n walk pro so that i could use the phone as a modem. thd said they could tell the difference- was i duped???

i guess they could tell if i was doing voip due to port number and i do get a higher d/l limit
[Advantage X7500, MDA Ameo General] Pyrofer:
You werent "duped" if they sold the service for the use you stated.

Of course that doesnt mean a lots of people dont use it as a modem anyway without telling T-Mobile, but that is T-Mobile getting 'duped' really.

It sucks that T-Mobile price this way, but considering the data plans from everybody else, count yourself lucky.

I just wish T-Mob had usable signal and working voice. My wife now refuses to phone me on this number because of the 95% failure rate of calls.
[Advantage X7500, MDA Ameo General] wu5262:
are you sure about that? I recently change from Vodafone to T-mobile, and two thing i am sure is T-mobile phone signal is much better then Vodafone (at least in London), and their internet works really well, you will never want to use Athena with Vodafone.....!
[Advantage X7500, MDA Ameo General] Pyrofer:
Vodafone must REALLY suck then, because I normally get 1 or maybe 2 bars signal on UMTS, with frequent dropping to GPRS when out and about. (Central London).

When i visit family outside of London I am forced onto GPRS only and sometimes lose signal completely.

The quality of the internet isnt really an issue, it works. Its quite good for what you pay, but the voice service on T-Mobile is terrible.

I had people complaining my phone was never on, when it always is. So I did an experiment, I had my phone on, with full signal. The person STOOD NEXT TO ME tried to call me on speakerphone, and we both heard a failed call claiming my phone was not available.

Often the call completes, but nobody can hear anything or only one-way voice or it just cuts off for no reason.

Outgoing calls often fail for no reason, just drop after dialing as if there is no network when there is.

I dont consider this to be good by any stretch of imagination, if your telling me Vodafone is worse, we are all in trouble. At least Orange are joinging the "all you can eat" data bandwagon soon! Ill be swapping back to them as soon as my T-Mob contract is nearly up.
[Advantage X7500, MDA Ameo General] wu5262:
btw, you haven't activate the always on Internet tweak right? i think your experience is very strange and not normal, i have lots of T-mobile friends, and they don't report such an issue, is it possible by your setting?

And also, i don't use GPRS at all, i force my device to only connect to 3G network, and i still get good signal all the time.
[Advantage X7500, MDA Ameo General] spzero:
It is a good deal i got the web and walk + tariff so i can use my ameo as a modem at no extra cost with unlimited usage so if i wana do some serious browsing or on line gaming on my laptop whilst on way to work this price plan is great i was with o2 for about 7 years previous i thought they were great and always had a nice new xda device to try after my contract expired but t mobile is so much better i use my athena way more than any other because of the unlimited internet and i also get text reminders to let me know how many inclusive flext minutes/texts i have at least once a week im as happy as pie with my tarrif and price of phone as i managed to sell a crap old Nokia N80 on ebay to cover the cost so i didnt even feel the purchase,,