yashsingh1/xdaforums huggingface dataset:
[ZenFone 2 Android Development] OfficerJimLahey:
Hello,

Get gpstest from the play store to see if you can access any satellites. If you can, but cannot lock on, this tweak is for you. If no satellites are coming up, then there are underlying problems.

I'm away from my PC the next few days, so if this tweak is for you and want to try it, check out post two to make your own (or I can make one for India in about a week).

Hope this helps.

Sent from my ASUS_Z00AD
[ZenFone 2 Android Development] abhimanyu.singh:
Dude i tried the app you mentioned but it showed no Satellite and it was just showing no GPS fix.
[ZenFone 2 Android Development] OfficerJimLahey:
Just what I thought would happen. Your Roms GPS has underlying issues that this tweak cannot fix.

Sorry.

Sent from my ASUS_Z00AD
[ZenFone 2 Android Development] android lover 2000:
India.... please do that too
[ZenFone 2 Android Development] OfficerJimLahey:
Added to the archive.

Hope this helps. :cowboy:
[ZenFone 2 Android Development] Hastaloego:
used the germany gps.conf (cause living in germany :D ), just replaced the old one, now i dont get any fix at all anymore.
[ZenFone 2 Android Development] OfficerJimLahey:
Sounds to me like the file cannot be found or is unreadable. Is the new file in /system/etc with permissions rw-r--r-- (644)?
[ZenFone 2 Android Development] Hastaloego:
its all ok with the file, just the content doesnt work.

tried several other settings too.

this is what worked:

NTP_SERVER=de.pool.ntp.org

XTRA_SERVER_1=http://xtra1.gpsonextra.net/xtra.bin

XTRA_SERVER_2=http://xtra4.gpsonextra.net/xtra.bin

XTRA_SERVER_3=http://xtra2.gpsonextra.net/xtra.bin

XTRA_SERVER_4=http://xtra5.gpsonextra.net/xtra.bin

XTRA_SERVER_3=http://xtra3.gpsonextra.net/xtra.bin

SUPL_HOST=supl.google.com

SUPL_PORT=7276
[ZenFone 2 Android Development] OfficerJimLahey:
I did a little pinging, looks like some of the time servers have moved or are just unavailable. I guess it's understandable, since the conf files are approaching 2.5 years of age. :silly:

So "NTP_SERVER=ntp1.fau.de" should be "NTP_SERVER=ntp1.rrze.uni-erlangen.de", and et cetera, and might as well remove the "NTP_SERVER=ptbtime2.ptb.de" line altogether.

May as well want to give preference (move to top of list) for the NTP_SERVER=de.pool.ntp.org ones as well (since they worked for you, if you want to maintain BlackICE Team's version).

Hope this helps.
[ZenFone 2 Android Development] Hastaloego:
i tried a bit.. even if the phone finds up to 14 sats. none of them are used.. i quess its something with the other settings.
[ZenFone 2 Android Development] abhimanyu.singh:
No problem. Thanks for trying to help me.
[ZenFone 2 Android Development] max997:
fix italy gps
[ZenFone 2 Android Development] OfficerJimLahey:
Added. :cowboy:
[ZenFone 2 Android Development] laulau42400:
[MENTION=5720423]OfficerJimLahey[/MENTION]

Possible france gps.config?

Thank
[ZenFone 2 Android Development] preeansh2175:
Getting attached error while flashing GPSFix-India.zip

Error:updater process ended for error=255

M i doing somethng wrong.?

Cheers.
[ZenFone 2 Android Development] OfficerJimLahey:
The BlackICE team does not have one for France, please try the Italy or Switzerland fix (as you are relatively close to their borders).

May have something to do with the new TWRP. If you are not on Marshmallow, I would try older TWRP (2.8.3.x IIRC). If you are on MM, you could take the long way around and change the file via root explorer (extract the conf file from the zip, copy gps.conf to /system/etc, check permissions, then reboot).

I couldn't find a match to the error message. Could you try again and post the recovery.log (e.g via pastebin)?
[ZenFone 2 Android Development] preeansh2175:
Replacing config file did nt help.

Im on MM. Battery saving mode works fine. Problem is seen only in High accuracy.
[ZenFone 2 Android Development] OfficerJimLahey:
Try the GPSTest app to see if you get any satellites, with either config files. Don't worry about locking on for now. If you are not detecting any satellites with either file, then there is an underlying issue (best then to do this again, while taking a logcat). If you are getting a few satellites, just not enough to get or maintain a lock, then your gps.conf may still need tweaking.
[ZenFone 2 Android Development] felixleonard:
[MENTION=5720423]OfficerJimLahey[/MENTION] could you please help to make Indonesia config?

Thanks...
[ZenFone 2 Android Development] OfficerJimLahey:
Done! :)
[ZenFone 2 Android Development] felixleonard:
Thanks [MENTION=5720423]OfficerJimLahey[/MENTION] :)
[ZenFone 2 Android Development] Lemax1995:
Russia.

[MENTION=5720423]OfficerJimLahey[/MENTION]

Hello,

I would ask you to add GPS config for Russia. If it is possible, please add config to the south-west part of Russia. If it is not possible, general Russian config is okay.

Thank you very much.
[ZenFone 2 Android Development] OfficerJimLahey:
Added. Unfortunately, the provided gps.conf on box does not split up Russia. So all that was there was a country-wide version. Hope this helps.
[ZenFone 2 Android Development] hiimpig1:
hi ! can u make zip file for Vietnam !
[ZenFone 2 Android Development] MagnumPOS:
Hello, thank you much for this thread, may I ask you which flashable zip file made for the Ohio region, and would this be compatible with my touchwiz samsung android 5.1.1 based custom rom I'm willing to give it a try anyways since I have a backup system and data but It'd be appreciated if you take a look at my attached here system file gps.conf file found in the zip file and tell me if I'd help and how? Thank you.
[ZenFone 2 Android Development] MrHellRider:
will this fix work for Samsung Galaxy grand 2 running resurrection remix 5.7.1 android MM .:confused::confused::confused:
[ZenFone 2 Android Development] OfficerJimLahey:
Wow, looks like I have not seen any of these come in for...several months?

At any rate, the updater-binary is for x86 devices (only tested on ZF2), so no, this would not work. You could package your own, using an updater-binary from one of your own ROM zips and kludge from there (see post two for packaging instructions).

As with anything, make a backup first. Hope this helps.
[ZenFone 2 Android Development] Mike Yap:
please add Malaysia , hope this helps

Thanks!!!:)
[ZenFone 2 Android Development] Eduardo Claro:
Z008 GPS issues after flash

Hi, After I flashed Resurrection ROM into my ZF2 ZE550ML (Z008D), the GPS is very erratic. It takes a lot of time to fix, and sometimes it just doesn't fix. When I use GPS Test, it finds some satellites but as I told, almost never fix, and when fixes, loses signal very often.

I tried to flash your zip, but it appears it didn't work.

Any idea? Should I flash some cache, reset A-GPS info, anything else before or after applying the ZIP file provided?

I am in Brazil.

Thanks very much in advance.
[ZenFone 2 Android Development] foober:
My way to fix gps. Gps dont get fix. I very hard to see satellites.

1. Install GPS Test from GP.

2. Clean AGPS

3.Update AGPS

4.Reboot device

This hlep me solved problem with dont fix gps. Maybe help you too. ðŸ˜‰

WysÅ‚ane z mojego ASUS_Z00A przy uÅ¼yciu Tapatalka
[ZenFone 2 Android Development] Alfael:
Hello, can you add a gps conf for french people plz =) ?
[ZenFone 2 Android Development] OfficerJimLahey:
I will make one in a few hours (hopefully). However, since you are using stock-based (as opposed to AOSP or CM-based), I don't imagine you will see much benefit. The stock one seems to cover any region as it is.

On second thought...what is your closest neighbouring country? There is no Box gps.conf entry for France, but I do have bordering Italy and Switzerland already made, if you want to try the one closest to your town. :cowboy:
[ZenFone 2 Android Development] Alfael:
I made one and it works pretty well, it is supposed to respect it http://rootzwiki.com/topic/28989-the-end-all-be-all-guide-to-your-gps/

You must also change the "SuplServer" line in gps.xml to "supl.sonyericsson.com" and "SuplPort" to "7275"

PS: the NTP_SERVER -> "ntp.u-psud.fr" It is the ntp server of a university of Paris If you live in the south of France use this "ntp.unice.fr"
[ZenFone 2 Android Development] Tampan11:
I can't download file for indonesia on cloud storage. Do you have another link?
[ZenFone 2 Android Development] OfficerJimLahey:
I was able to access my AFH link without issue (if your were talking about that):

https://www.androidfilehost.com/?fid=24399994186369501
[ZenFone 2 Android Development] The_anonymous:
yes same problem goes for me .im from Nepal though.

Same goes for me.Im from Nepal though
[ZenFone 2 Android Development] OfficerJimLahey:
Probably a ROM (particularly device based) bug. This tweak (not applicable for ROMs past MM) only tackled the long lock on wait.

My suggestion... Try out a GPS Diagnosis app or two, take logs, inspect logs for anything weird.
[Galaxy Note 4 Q&A, Help & Troubleshooting] NOZX:
This has always been an issue. Before/after I rooted. Regardless of which rom. My phone was 5.0.1 to start with. Searching everywhere for a fix. Turning wifi off an on does not work. Clearing cache does not work. 4G/lte works great. Tried dr ketans 5ghz wifi app...didnt help. Forgotten and reconnected to network...still the same. Tried on multiple routers...dlink..belkin..airport extreme (old and new). With or without power saving mode its the same.

Only one thing has helped and thats turning phone to flight mode for 5-10secs and back on and it temporarily fixes it.

Does anyone have any other ideas? Ive searched and found plenty of people with this issue but no solid info :(

Thanks
[Galaxy Note 4 Q&A, Help & Troubleshooting] NOZX:
Any ideas?
[Nexus 4 Q&A, Help & Troubleshooting] YoUnEs DeX:
haw to update binary for superuser

i have 2.49
[Nexus 4 Q&A, Help & Troubleshooting] jd1639:
Do you have a custom recovery? Flash supersu in it. If not, flash a twrp.img file with fastboot.
[Nexus 4 Q&A, Help & Troubleshooting] YoUnEs DeX:
yes i have custom recovery

i have problem with roms blisspop

root not stable or update su

i have the last V 2.49beta
[Galaxy Note 3 Q&A, Help & Troubleshooting] ttayyareci:
Since note 5 has only an exynos version, can we say that it will be a nice period for note3 with exynos?
[Galaxy Note 3 Q&A, Help & Troubleshooting] ithehappy:
Nah, not for a two year old device, devs are probably tired of this phone.
[Galaxy Note 3 Q&A, Help & Troubleshooting] Morningstar:
Perhaps some are, but not all of us. I still prefer the Note 3 over most newer phones, and I know I'm not the only one. I'll probably end up upgrading in the next few months (to what, I'm not sure yet), but even when I do, I'll still develop for/on my N3.
[Moto G Android Development] DoctorStrange96:
KaminariKernel​

#include "std_disclaimer.h"

/*
* Your already voided warranty is now void again.
*
* I am not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about features included in this KERNEL
* before flashing it! YOU are choosing to make these modifications, and if
* you point the finger at me for messing up your device, I will laugh my *** off at you.
* Really hard.
*/

Yo! This thread contains two kernels (regular and SuperLite). If you wanna see what SuperLite is, then go here. You should read everything before moving onto the downloads section.​

Hiya fellas.

This is my modded kernel for our loved Moto G 1st gen. In the beginning I decided to keep it for my personal use only, but then I decided to share it with you guys since there was no custom kernel compatible with the 5.1 stock rom.

XDA:DevDB Information

KaminariKernel (Lollipop-Falcon), Kernel for the Moto G

Contributors

kingkaminari

Source Code: https://github.com/Kamin4ri/KaminariKernel/tree/L

Kernel Special Features: Read above!!!

Version Information

Status: Stable

Current Stable Version: R3

Stable Release Date: 2016-07-07

Created 2015-09-07

Last Updated 2016-07-09
[Moto G Android Development] DoctorStrange96:
F.A.Q.

(Read this before crying!!!!)
[Moto G Android Development] DoctorStrange96:
Kaminari SuperLite (previously "Optimized Stock Kernel")​

Since KaminariLite has been discontinued, and Kaminari has become cleaner regarding features, I've been working on a version closer to the stock kernel, only more optimized.

Enter Kaminari SuperLite!
[Moto G Android Development] DoctorStrange96:
Reserved!!!
[Moto G Android Development] DoctorStrange96:
Reserved again

null
[Moto G Android Development] Akshay7273:
Wow m first...

---------- Post added at 08:25 AM ---------- Previous post was at 08:17 AM ----------

Just flashed it...buttery smooth...smartmax works like charm and yeah happy to see the kcal screen control...thanks kaminari for this amazing kernel...
[Moto G Android Development] kedar512:
So it is only for stock 5.1 right?

Edit: Working smoothly on stock 5.1

Keep it up.
[Moto G Android Development] amarc78:
Working great on XT1031 with stock 5.1. Nice job!
[Moto G Android Development] akshayk01:
[MENTION=5736790]kingkaminari[/MENTION] thanks for kernel. Any chance in future to add support for Aosp roms? that would be great.
[Moto G Android Development] DoctorStrange96:
No, no plans for aosp/cm support yet - mainly because of my limited knowledge. But i'll consider making a version supporting these two
[Moto G Android Development] DoctorStrange96:
New build in the works! Just trying to fix a bug where all CPU cores stay online (needless to say that this causes a gigantic battery drain)
[Moto G Android Development] DoctorStrange96:
New build up!

https://www.androidfilehost.com/?fid=24052804347811341

https://www.androidfilehost.com/?fid=24052804347811344 - "Mori" version - with S2W/DT2W

Changelog here.
[Moto G Android Development] amarc78:
I'm getting an update binary execution error with TWRP, with both new builds. I tried disabling the device check in the anykernel.sh but no go. Also, I noticed in the init.kaminari.rc file in the zip, there is a typo in the power mode lines. It has 2 lines for cpu2 and none for cpu3. I just noticed the same thing with Optimus V41 Prime earlier today.
[Moto G Android Development] DoctorStrange96:
The previous zips i made here worked fine (i flash them through adb sideload). And i just fixed the init.kaminari.sh. Plus i've fixed s2w/s2s in the Mori version (dt2w is still partly broken though).
[Moto G Android Development] DoctorStrange96:
New build up!

Version: 0.96b

Download: Regular Version | "Mori" Version (DT2W)

Changelog here, but for those who don't wanna go there:

- Fixed s2w (dt2w halfscreen is still broken)

- Fixed derp in init.kaminari.sh

GPE users, please test my builds if you can / feel courageous enough to do it :p
[Moto G Android Development] amarc78:
I give up, except for the first build, they won't flash in recovery for me.
[Moto G Android Development] DoctorStrange96:
I'll upload a zip without anykernel later. Btw, which version of twrp are you on? And do you have sufficient space in /system? Because this kernel pushes modules to it. I'm on twrp 2.8.7.0 + a modified stock rom, and i've had zero flashing errors so far
[Moto G Android Development] DoctorStrange96:
For those who are having problems with anykernel, i've uploaded special flashable zips without it.

Version is still 0.96b.

Downloads: Regular | DT2W
[Moto G Android Development] kedar512:
Version 096b flashed without any problems.

Just put the zip in the root of internal storage.
[Moto G Android Development] pico hackr:
cool everything is just superb [MENTION=5736790]kingkaminari[/MENTION] hope you keep updating this kernel
[Moto G Android Development] :
[MENTION=5736790]kingkaminari[/MENTION], here are some new init.d scripts. The first two I uploaded had the wrong minfree values, and I also fixed them so the CPU frequencies and cores aren't maxed all the time. I also fixed a few other things that I think weren't quite right, and managed to get core control turned off. I think interactive is best for performance and relatively decent battery life, mpdecision also works way better than the two hotplugs you added. Try msm_mpdecision next time. Anyone else wanting to try these, just put them in init.d, set permissions to 0775 or 0777 and delete any other script that might interfere.

View attachment 3496459

View attachment 3496460

View attachment 3496461

View attachment 3496462
[Moto G Android Development] himu_joy:
How to back stock kernel??
[Moto G Android Development] DoctorStrange96:
[MENTION=4923135]abhishek943[/MENTION] and [MENTION=4784613]objr[/MENTION]: If you're using kernel adiutor, then disable mpdecision and use either alucard or mako. Then the frequency will stick (i got mine to run at 1344MHz)
[Moto G Android Development] objr:
Doing it now, thanks! I think I'll go with mako!

Anyway there's no option shown for mpdecision so can't disable it but can enable #mako!

Inviato dal mio XT1032 utilizzando Tapatalk
[Moto G Android Development] DoctorStrange96:
New build coming up. I'm gonna upload the zips now
[Moto G Android Development] DoctorStrange96:
Thanks, i'll try these
[Moto G Android Development] DoctorStrange96:
Okay, so... Alpha 7 is up!

Downloads:

- Standard

- Non-AnyKernel

- "Old-School" (Uses a new, raw disk image instead of unpacking/repacking the old one)

Changes:

- Attempt to fix the AnyKernel version not installing

- Replaced previous CPU-Boost driver with Optimus Kernel's version

- Added Bricked Hotplug (aka MSM MPDecision)
[Moto G Android Development] :
# Disable mpdecision

stop mpdecision

echo"1">/sys/kernel/alucard_hotplug/hotplug_enabled

Adding this to the top of the script will disable mpdecision and enable alucard by default. I haven't found the path to mako yet.
[Moto G Android Development] DoctorStrange96:
There's one problem though: init.qcom.post_boot.sh at /system/etc. It'll keep trying to start mpdecision.

Oh, btw, alpha7 has msm_mpdecision now
[Moto G Android Development] :
It should disable mp_decision no problem. That is how it has been done with other kernels, as long as another hotplug is enabled in the script.

Edit: [MENTION=5736790]kingkaminari[/MENTION] I added it to this script and it works just fine.

View attachment 3496669
[Moto G Android Development] DoctorStrange96:
New build up! Very small changes this time.

Downloads:

:

- Regular

- Non-AnyKernel (Now the same thing as "Old-School")

Changes:

- Fully disabled MPDecision since we have Bricked now

- Attempt to add init.d support
[Moto G Android Development] PanchoPonceN:
I just installed version 1.00a8, and my phone doesn't boot anymore. It goes directly to Recovery. :/
[Moto G Android Development] :
It installed OK for me, but the only settings from the script that were activated is mpdecision disabled and msm_mpdecision active.
[Moto G Android Development] PanchoPonceN:
Well, 1.00a7 is the same. So I'll go back to alpha5 which was working just fine for me.

BTW, I'm using GPE 5.1.

EDIT: Now, not even alpha5 lets my phone boot. It goes directly to Recovery. I will try to install ROM first. :(
[Moto G Android Development] :
I'm guessing you used the non-anykernel build. If so, you should reflash your stock kernel and modules or your rom first anyway.

---------- Post added at 07:02 PM ---------- Previous post was at 06:56 PM ----------

@kingkaminari, I think the removing of the mpdecision binary in the non-anykernel build is a problem. The phone needs mpdecision until the hotplug is activated. You should remove that link.
[Moto G Android Development] PanchoPonceN:
I'll try that. Thanks
[Moto G Android Development] :
Here, try flashing this. Instead of your ROM.
[Moto G Android Development] PanchoPonceN:
I already installed the original ROM and is booting fine. Should I install the alpha8 again then your zip? Will that work? :)
[Moto G Android Development] :
I'm 99.9% sure it will work if you try. But don't get mad at me if it doesn't. The system needs mpdecision to boot, and if you put Stop mpdecision in a script, the system will rename the mpdecision binary to mpdecisionbak, and back to normal on every reboot.

Edit: hopefully the init.kaminari.rc doesn't remove it again.
[Moto G Android Development] Bleak3993:
So, I'm on Stock US 5.1, what version of the latest build should I install? the regular or the non-anykernel??
[Moto G Android Development] PanchoPonceN:
I think I'll wait for kingkaminari's instruction before I try the kernel again. Thanks a lot for your suggestions, anyway! ;) :)
[Moto G Android Development] abeloman:
Same here, I'll stick with alpha 6 until I see more instructions :)
[Moto G Android Development] DoctorStrange96:
So here we go again. Alpha 9 has been uploaded.

Downloads:

Standard (recommended if you're using the stock kernel) | AnyKernel (experimental)

Changes are:

- Mpdecision will no longer be disabled (all versions) (powerhal will still be disabled though - AnyKernel version only)

- SELinux set back to enforcing (You can fix that via a su.d script) SELinux causes some weird denials if enforcing, has been changed to permissive again

- Init.Kaminari.sh has been gotten rid of (You can use [MENTION=5768732]amarc78[/MENTION]'s init.d scripts if you want)

For anyone having problems: Try dirty flashing your current ROM + kernel (if you're on the stock kernel, please flash the stock modules too) and then try installing the kernel again. Go find your stock kernel here.
[Moto G Android Development] DoctorStrange96:
Hold on guys, I did **** here. Selinux must stay permissive, actually. Dont download anything!

Okay, **** fixed. You can get back to downloading.
[Moto G Android Development] DoctorStrange96:
IMPORTANT: To anyone who downloaded the old zip, please delete it and download the new one! Adb and mtp wont work with the old one due to selinux denials. This has been fixed in the Rev1 zip
[Moto G Android Development] abeloman:
Now, the one million question... Which hotplug should be the best, talking about battery and don't losing performance?
[Moto G Android Development] DoctorStrange96:
Well... For me, its Bricked. Has good balance between performance & battery life.
[Moto G Android Development] Bleak3993:
What would be the recommended settings apart from Bricked hotplug, like cpu/gpu governors, max/min cpu freq, i/o scheduler, etc.

Thanks for all your work, awesome kernel.
[Moto G Android Development] DoctorStrange96:
Thats very relative, its really up to you, and what do you want (e.g. performance, battery life, or both). But here are my settings:

- Cpu governor: yankactive

- Gpu governor: msm-adreno-tz (with adreno idler enabled)

- Max cpu freq: 1.35GHz (1,344MHz), min freq 249MHz

- Max gpu freq: 533MHz

- I/O scheduler: zen, read-ahead size: 1792kB

If you want more info about the options this kernel offers, see this guide.
[Moto G Android Development] himu_joy:
guys, any way to back stock kernel?
[Moto G Android Development] moscka:
Dirty flash your rom or flash stock kernel by lost101.
[Moto G Android Development] DoctorStrange96:
I'll post the stock kernel + modules here later
[Moto G Android Development] PanchoPonceN:
After dirty flashing the lost101 GPE 5.1 ROM back, I tried with the alpha9 build (standard). It caused the same problem: it boots directly to Recovery and only to Recovery. :(
[Moto G Android Development] abeloman:
You didnt have to reflash the entire ROM, that problem happened to me... I just flash "boot" with fastboot and then flash the non-anykernel and no problems so far
[Moto G Android Development] PanchoPonceN:
Sorry, I don't get what you say. Thanks to the backup, I'm again at the starting point (lost101's GPE 5.1 ROM with its included kernel) and my phone is working. How should I proceed now?
[Moto G Android Development] abeloman:
Do not flash the standard version... Flash the anykernel version
[Moto G Android Development] Valantur:
overclocking on the Moto G (2013)

I thought it had been established that the Moto G can't be overclocked. Its clock values are hardcoded. It shows as if it's running at 1.6ghz, but in reality it's just running at 1.2ghz. Can you confirm that?

Thanks!