yashsingh1/xdaforums huggingface dataset:
[Elephone P8000] vladoots:
It would seem so, yes. Sorry about that.

From your description it seems to be the ”ghost bug” which plagues Android 5.0 + and affects with the exact same symptoms cellular data, Wi-Fi or both - with or without an exclamation sign over their corresponding icon(s). There's no permanent fix at the moment, but you must know that Google itself rolled out 5.1, 5.1.1 and 5.1.2 trying to weed it out (and other bugs as well, but especially this one). It can affect any device, irrespective of the brand.

Another possible explanation would be a hardware fault - such as a bad antenna connection or worse.

There may very well exist an app like the one you're describing, but that function is built-in Android since at least 2.2. Check it yourself by entering system settings/Wi-Fi, then from the menu (the three dots) tap Advanced. Then tap ”Keep Wi-Fi on during sleep” and check ”Always” if it isn't already so. Note that if you have installed any power saving app, those too can disable Wi-Fi while the screen is off. Android itself does exactly that (and more), cutting off any radio data when the power is too low.

You may want to post this in Troubleshooting too. Let us know how it went! Best of luck! :)
[Elephone P8000] charliepie:
Thanks for your suggestions, it does sound a bit like the ghost bug but it is annoying that there is no fix...my wifi during sleep was set to always so I've just changed it(a few hours ago) to never but I don't think that will make a difference somehow, a hardware fault is possible I guess but the random nature is weird? I am looking for an app that kinda toggles wifi off during sleep then on when screen wakes up - don't know if this will help(if hardware fault then I guess not!) perhaps I should stick it in troubleshooting as it is driving me nuts!
[Elephone P8000] skeleton1911:
I had the same. Solved it by changing my Router. XD. (I had one from o2 , now i use a speedport and it works)

Try to change your signal channel in router

Gesendet von meinem Elephone P8000 mit Tapatalk
[Elephone P8000] Satbeginner:
Hi,

I had this using the Elephon ROM's up to 20150815.

After I flashed the 20150907, and now 20150909 ROM I have not seen it anymore.

In the 0909 not just the BT phone profile, but also the audio profile started working in my VW Golf mk6.

Un saludo,

Satbeginner
[Elephone P8000] skeleton1911:
i have send v3 beta to my beta testers just now. hope i dont forgot one user. :)
[Elephone P8000] charliepie:
hmm, seems like a strange thing to have to do but I may give it a try if I get hold of another router - I'm using the Virgin super hub 2 & an old wrt54g linked by homeplugs to cover other side of the flat as I have thick walls! Changing channel number would be easy though. I may also try the wifi fixer app mentioned on the other thread or I came across the smart network module on xposed which can turn wifi off when screen off and then reconnect when on so there are a few options to pursue....hope the beta testing goes well this weekend, I will put a small donation your way now:)
[Elephone P8000] rbt07:
An where can I find 2.0.1 gueste kernel?
[Elephone P8000] skeleton1911:
In p8000 android original development ;)

Gesendet von meinem Elephone P8000 mit Tapatalk
[Elephone P8000] rbt07:
Thanks...
[Elephone P8000] IM7:
I use Delayed Lock app from play store for smart lock features because in P8000 it's kind of not there. Use it with home WiFi, car Bluetooth and Huawei watch to remove pin code.

https://play.google.com/store/apps/details?id=de.j4velin.delayedlock2.trial&hl=en
[Elephone P8000] Okalash:
Hi! Nice work,skeleton!)

I have one question: can you add the smart lock in settings?

Smart lock must be in settings- security,but it is not peresent there(he is present in trust agent or etc.) Can you fix it?

https://support.google.com/accounts/answer/6160273?hl=en
[Elephone P8000] skeleton1911:
Thanks [MENTION=7206910]IM7[/MENTION]

Look one post above and try that app if it works;)

Gesendet von meinem Elephone P8000 mit Tapatalk
[Elephone P8000] Okalash:
By the way,this is don't work with fingerprint and graphical code,they work only with pin and password

Fix it pls,skeleton

You are the last hope
[Elephone P8000] arnicika:
Spent so much money for huawei watch and than a p8000? Interesting combo. Or another possibility, money was gone after watch purchase and a cheap phone was needed [emoji12]

Gesendet von meinem Elephone P8000 mit Tapatalk
[Elephone P8000] IM7:
I don't like carrying 2 phones - work and private - so got into dual SIM phones years ago. The P8000 has a huge battery which is much better and a big screen for 44 year old eyes.. I now have a habit of changing phones every 6 months. No shortage of money! :D (but wife doesn't approve of it.)
[Elephone P8000] skeleton1911:
well. as i said already. i did not touched the files for it. so they are original elephone. do you know if it works with latest 20151203 stock rom?

would be good to know. but i dont think it will work there too
[Elephone P8000] Okalash:
Don't work ?
[Elephone P8000] skeleton1911:
i thought that. well that will be heavy to fix. because i never used that smartlock. and i dont have something to connect with...

and i cant compare with the original files. because it dont work there too. that means i have to look into original google android 5.1 source , and try to fix it blind. ..
[Elephone P8000] arnicika:
Challenge accepted?! [emoji6]

Gesendet von meinem Elephone P8000 mit Tapatalk
[Elephone P8000] skeleton1911:
Lol. What do you think ? Yes or no?

Gesendet von meinem Elephone P8000 mit Tapatalk
[Elephone P8000] arnicika:
I have miband, tryed it, it stay's unlocked until it's nearby, but can't unlock after being away.

That's my first phone with fingerprint, and it works like a charm, so I keep that, a combination of both would be perfect.

Lirumlarum, for me, you don't have to do so much effort on that.

BTW, 6 hours screen on time and still 40% battery? How did you do that, you wizard. Awesome bro!!!

Gesendet von meinem Elephone P8000 mit Tapatalk
[Elephone P8000] skeleton1911:
:p i will not tell :good:
[Elephone P8000] HC4Life:
Any mod to save camera photos in external SD card?
[Elephone P8000] Stefan Gündhör:
kernel might have helped too ;)

By the way: will be looking into black screen fixer. Is there any source for it? Would be helpful to know what it actually does.

Edit: ok I suppose I know now, what it does. It disables sweep2wake and doubletap2wake on phone calls. Obviously, for it to run automatically, it checks, if sweep2wake is enabled - so even if doubletap2wake is enabled, it won't run, if sweep2wake is not enabled.

So, since beginning with guestekrnl v2.0.1 sweep2wake is disabled in kernel completely by default (as this feature has never worked anyway, and I won't carry around broken features in the kernel - correct me if I'm wrong), the black screen fixer will think there's nothing to fix and won't run automatically.

By the way I also noticed, the blackscreen fixer is no longer located in /system/priv-app/ but in /system/app (which means on dirty flashes/upgrades it is available twice??) but I suppose this does not matter.

So [MENTION=4626501]skeleton1911[/MENTION] the blackscreen fixer could be fixed 2 ways:

If I re-enable the non-functional sweep2wake in kernel or replace it by dummy functionality that can be switched on and off. I don't like this option.

Fix the blackscreen fixer app, so that it will only check, if doubletap2wake is enabled, and not if sweep2wake is enabled. It then should work again and it should work for previous kernels as well. However, if it still fails, because it can't write the sweep2wake sysfs, we would also have to remove this write attempt from blackscreenfixer app. Maybe today in the evening I will look at the smali of the blackscreen fixer, or I can find the original sources to modify them.

Edit: I've contacted the maker of the black screen fixer. Hopefully he can provide us sources or a new build.
[Elephone P8000] MacLaughlin:
I guess nothing is wrong. On prior versions it didn't work either for me.
[Elephone P8000] arnicika:
Settings, storage, SD card

Gesendet von meinem Elephone P8000 mit Tapatalk
[Elephone P8000] Autobahn91:
But neither do I see the storage option and a SD Kart is inserted. Maybe it's too early and I am just to tired to find it.. :D

(I know the screenshot is German but you see there is no SD Option and there are no more settings)
[Elephone P8000] aaron.hossain75:
Any progress on that test ?? Icon...
[Elephone P8000] skeleton1911:
Einstellungen/Speicher/...

Not in the camera mate. Lol

Gesendet von meinem Elephone P8000 mit Tapatalk
[Elephone P8000] skeleton1911:
Started already to build ..

Gesendet von meinem Elephone P8000 mit Tapatalk
[Elephone P8000] Autobahn91:
Awkward...

Thanks.. :D
[Elephone P8000] skeleton1911:
1. We could test this:

Compile your kernel with sweep2wake codes. But leave them disabled. Like blueflame did. Then it could work with the black screen fixer..

2. in a few hours i can look into the smali files, to change the path to dt2w.

(If thats possible, if not, hopefully the app creator will have the src for it )

Gesendet von meinem Elephone P8000 mit Tapatalk
[Elephone P8000] Stefan Gündhör:
Yeah, I'm sure that 1.) would work.

The question is, whether this is a kernel issue or an app issue (of blackscreen fixer app).

In my opinion it is an app issue, which is why I would prefer to fix the app instead of enhancing the kernel with non-functional dummy functionality, only for a single app to work properly.

In the evening I can look into the smali as well - have done much smali hacking back in the days.
[Elephone P8000] skeleton1911:
Yep..I.agree.

only wrote it because its one of the solutions.

I can look into the smalis in 2 hours.

Then let's talk via hangouts about that all

( I know you are only available in the evening/night) [emoji14]

Gesendet von meinem Elephone P8000 mit Tapatalk
[Elephone P8000] Stefan Gündhör:
Perfect! If the app can be fixed, we just need to test it with one earlier kernel as well. If it still works, then it's the solution :)

Else I'll just go with option 1)
[Elephone P8000] skeleton1911:
:good: great . i will let you know if i found soemthing in the smali codes
[Elephone P8000] skeleton1911:
ok look at it. and there is also dt2w in it.

.class public Lflar2/s2wphonecalldisabler/ShellHelper;
.super Ljava/lang/Object;
.source "ShellHelper.java"

# static fields
.field private static final BUFF_LEN:I = 0x200

.field private static final DT2WPATH:Ljava/lang/String; = "/sys/android_touch/doubletap2wake"

.field private static final S2WPATH:Ljava/lang/String; = "/sys/android_touch/sweep2wake"

so i dont think it will fix it..

iget-object v2, p0, Lflar2/s2wphonecalldisabler/ShellHelper;->prefHelper:Lflar2/s2wphonecalldisabler/PrefHelper;

const-string v2, "prefDT2W"

const-string v3, "/sys/android_touch/doubletap2wake"

invoke-virtual {p0, v3}, Lflar2/s2wphonecalldisabler/ShellHelper;->getValue(Ljava/lang/String;)Ljava/lang/String;

move-result-object v3

invoke-static {v2, v3}, Lflar2/s2wphonecalldisabler/PrefHelper;->setPrefString(Ljava/lang/String;Ljava/lang/String;)V

move-result-object v4

const-string v5, " > "

invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

move-result-object v4

const-string v5, "/sys/android_touch/doubletap2wake"

invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

move-result-object v4

invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

move-result-object v4

aput-object v4, v2, v3

invoke-static {v2}, Leu/chainfire/libsuperuser/Shell$SU;->run([Ljava/lang/String;)Ljava/util/List;

i know just think about the fully removed wake delay. ....mhhh maybe im wrong but could it be related to that. that the app dont know if dt2w is active or not ??

sry i dont know much about kernels.. its your part . xD
[Elephone P8000] aaron.hossain75:
Cool :) Will be waiting patiently
[Elephone P8000] Stefan Gündhör:
I could imagine that the checker gets an exception once it tries to read the value for sweep2wake (because the sysfs path for sweep2wake is not available in 2.0.1) and then just aborts the checking due to the exception.

We'll see - there are only 3 commits different between 2.0.1 and 2.0, so the definitive cause will be found.
[Elephone P8000] skeleton1911:
wait. (one user reports that it is working on v2.0 for him) but i checked it again after yetserday.

and even on your 2.0 build its the same thing..

so the changes between 2.0.1 and 2.0.0 is not the cause
[Elephone P8000] Stefan Gündhör:
Do you get anything in logcat from blackscreenfixer?
[Elephone P8000] skeleton1911:
Haven't looked at it yet.

Will do asap , but I don't think it will tell something

Gesendet von meinem Elephone P8000 mit Tapatalk
[Elephone P8000] skeleton1911:
https://www.dropbox.com/s/byapv4zqhz22f6u/alogcat.2016-01-15-11-20-21+0100.txt?dl=0

made it with alogcat , because i am not at home atm. so cant use adb

Gesendet von meinem Elephone P8000 mit Tapatalk
[Elephone P8000] skeleton1911:
[MENTION=4311614]Stefan Gündhör[/MENTION]

i tested even v 7.0 and v7.2 with your kernel and visionary..

it seems that you are right.

if the kernel dont have a s2w dummy

sys/android-touch/sweep2wake

it dont work. because the app first search for s2w , if its not present he abort all...

could you make me a test kernel 2.0.1 with a s2w dummy like in visionary kernel?

just to test it. if that works i think we could stick with it.

i know it makes no sense to have things in a kernel , with no need for it. but if that fixes the problems for some users

(like in visio....) its okay. what do you say?
[Elephone P8000] Stefan Gündhör:
I thought you could reproduce the problem in 2.0 as well?

2.0 should have sys/android-touch/sweep2wake I think

but sure I can build a testing version!
[Elephone P8000] skeleton1911:
i was wrong. sorry. in 2.0 it works, that was what a user told me. but you removed the download link from your side and i dont have 2.0.0

but i tested 1.6.2 and there its the same like in 2.0.1

yes please do so , and build a test kernel with s2w

send it to me via pm here or via hangouts.

BTW . install it on your device!! . hahaha.

( I know, i know ... xD )
[Elephone P8000] Stefan Gündhör:
Secret truth is I just hate the BlackscreenFixer app, so I broke it on purpose > : - D
[Elephone P8000] skeleton1911:
:laugh::laugh::silly::silly::silly:-----:eek: THATS COOOOL - sarcasm

:cool:

lets speak this evening ;)
[Elephone P8000] Rizera:
Hi Skeleton! As I have told at the beginning of the year, I have donated a bit. Sorry for small amount, my country and my currency sucks hard, so I am sure you are much better in Germany than I am here :D

Cheers!
[Elephone P8000] skeleton1911:
Don't worry mate. Thank you very much! I really appreciate your donation!!

Take care.

Gesendet von meinem Elephone P8000 mit Tapatalk
[Elephone P8000] vladoots:
@ Stefan & Skeleton: it looks to me that you guys are chasing your tails with this BSF brouhaha.

You're looking in all the wrong places. It's not the app, it's the kernel. BlackScreen Fixer won't even be necessary if the kernel(s) you're using/making were to work right. The stock one doesn't have the active screen during calls problem - that should give you a hint.

I'm in no way, shape or form an Android developer, I'm just using logic. I'm well aware that some of the eventual stock kernel bugs can be carried on (or ironed out) in custom kernels, but a bug that it's present in a custom kernel and it is absent in stock cannot possibly be blamed on stock - it doesn't make sense. The only possible explanation is a custom kernel flop.

As Skeleton stated earlier, taking away the delay wake that is present in stock might also mean taking away the part that kept the screen inactive during calls. So, pretty-pretty please, investigate this aspect first. :)
[Elephone P8000] tcdk:
Hey Skeleton, did you remove the (exchange) email client in 7.5? Or did something go wrong during my update?
[Elephone P8000] skeleton1911:
Yes I removed it since v7.2

But I will add it back into rom in my next version.

For now : look into post #2 there is the email.zip . just download and flash it in recovery

Gesendet von meinem Elephone P8000 mit Tapatalk
[Elephone P8000] HC4Life:
LOL...so easy and i didn't find it.

Thx bro :)

Enviado do meu Elephone P8000 através de Tapatalk
[Elephone P8000] tcdk:
Ah, thanks. I probably added it back from a titanium backup in 7.2.

Thanks for the quick reply (and the rom)
[Elephone P8000] Stefan Gündhör:
Well, reverse-engineering the blackscreen-fixer app confirmed what I was suspecting: It's relying on the availability of sweep2wake in sysfs.

Responsible for the broken blackscreenfixer should be the part

if (!fileExists("/sys/android_touch/sweep2wake")) {
return;
}

In a first step, I'll fix the black screen fixer app.

In a second step, I'll attempt to fix the kernel itself, so blackscreenfixer won't be necessary anymore.
[Elephone P8000] skeleton1911:
(!fileExists("/sys/android_touch/sweep2wake")) {
return;
}

THAT BUGER!!

ok thank you very much. but if you want i do the app and you the kernel ?
[Elephone P8000] IM7:
For me it does work:

1. Set up fingerprint(s) which involves also setting a PIN

2. set Screen Lock to Fingerprint

3. Using Delayed Lock "Disable PIN/password lock" allows me to swipe without entering the fingerprint PIN or scanning finger when connected to something

When I had my HTC M7 Dual SIM the inbuilt Smart Lock worked OK. As I've already stated it's broken in the P8000 - you might get asked when you pair a BT device to set as trusted device something but it's a bit random. It does seem impossible to set trusted WI-FI etc. That's why a went the 3rd party route.
[Elephone P8000] Wombat:
My 2nd sim keeps disappearing when the phone sleeps, and when I wake it up it come back on after 10 seconds or so???

Is there somthing broken in 7.5??
[Elephone P8000] skeleton1911:
You are the only one with that issue.

Look in first post. There is a link to a FAQ I made. Look there for the imei thing..

Gesendet von meinem Elephone P8000 mit Tapatalk
[Elephone P8000] Wombat:
Hi thx, says the link deleted by Administrator for the tips&FAQ.

I have 2 separate imei numbers already and when the sim comes up it can send and receive fine, just sleep wakeup sim2 is 'empty'...
[Elephone P8000] skeleton1911:
mhh weird. i dont know what its the cause.. wipe cache and dalvik . maybe then it is fixed

btw the link is not dead. you have to use the pc to open it

http://xdaforums.com/elephone-p8000/general/tips-tricks-android-tips-infos-p8000-t3278730

try that with the imei ....in the thread
[Elephone P8000] skeleton1911:
OTA v7.6.0 is available

check eragon updater / rom

after download the ota_Eragon.v.7.6.0.zip is in your download folder

reboot to recovaery and flash it

ONLY FLASH THIS IF YOUR ARE ON V.7.5.0 !

v7.6
-Fixed black screen response in calls / in gueste kernel (thx Stefan Gündhör)
*enable black screen fixer
[Elephone P8000] MTIH1992:
It's definitely in the Elephone, and is in Eragons rom somewhere, but the only issue is there's no button in Settings to access it.

In a frequent location (my house!) it realised I was there and prompted me to add it as a trusted location in the notification panel on android. When I tapped the notification, Trusted Locations settings came up.

Same with Bluetooth, on first connection to my car it asks if I want to add it as trusted. If I tap the notification, it takes me to trusted devices list.

So the feature is there, it works, but there's no way to access the settings menu without android giving a notification first.
[Elephone P8000] skeleton1911:
i will check it again!. i thought because a user told me, that it is not possible in stock rom too.
[Elephone P8000] Brewn:
I also noted this. If you type "Smart Lock" into the search field in the settings menu you will get a result that you can tap on - but it simply leads to the security-settings. Maybe they just messed up some translation keys in the original rom so that that menu is never displayed. Or they disabled it for some other reason (which would be a dirty hack).

Regarding the blackscreen-fixer "code": oh my god.
[Elephone P8000] skeleton1911:
haha . oh my god. NO . well its java and smali. its fine for me and stefan :D

so in stock rom it also dont work for you?
[Elephone P8000] aaron.hossain75:
Cool :) great indeed waiting for that update ...you know :p
[Elephone P8000] skeleton1911:
flash this.

(that are some stock apps and missing apps from the stock rom)

i dont think that will do the trick , but its just the first test

https://www.dropbox.com/s/911qf54i1ub2w2g/test1.zip?dl=0
[Elephone P8000] MTIH1992:
Thanks - its definitely there because my car and my house are now set up as trusted devices/locations. Problem is, now I've set them as trusted (from the notification) I can't get into the settings to change it!
[Elephone P8000] Brewn:
I have been running your rom for ages, but I think it was the same on stock regarding Smart Lock.

As for blackscreen fixer: Let's just hope nobody does a PrefHelper.setPrefString("prefDT2W", "; shutdown -r now\n;"); sometime before this code is run (or put some even nastier code in there). Same goes for the content of sys/android/doubletap2wake, but of course root is needed to modify that file ;).

Cheers,

Dan
[Elephone P8000] skeleton1911:
well i will explain it to you.

it need root to flash or install system files.. nothing more..

to change an apk . its not needed. everyone can download free software to pc , to decompile and modify an apk

. that lines you see here in thread are little parts of the decompiled black screen fixer app, nothing more...:silly:
[Elephone P8000] Brewn:
I know... Just saying that putting an arbitrary string into Shell.SU.run(XXX) is pretty dangerous, especially if that string is taken from more or less global scope. ;)

Nevermind.
[Elephone P8000] skeleton1911:
i have flashed back to fully stock 03/12 latest stock rom.

to see if its the same with smartlock there or not.

and it is! its not eragon rom. in stock rom it also dont work.

please test yourself.

smartlock is not working.
[Elephone P8000] Brewn:
It's only not present in the settings. The link to the smartlock settings is just not there. Smart lock itself is working though. You will see the dialog when pairing a new BT Device. There is just no way to ever get back to these settings after that...

Short: smartlock is there, but elephone forgot to link the settings menu for smartlock
[Elephone P8000] skeleton1911:
yep. i could look into the settings to maybe add or enable that option tomorrow. but i dont promise that it can be done..
[Elephone P8000] skeleton1911:
next rom version will have a working app2sd optional​
[Elephone P8000] RoterHugo:
Sounds good
[Elephone P8000] mark2410:
Anyone else had a dramatic plunge in battery life on 7.5?
[Elephone P8000] HC4Life:
What do you mean by that? :confused:
[Elephone P8000] aaron.hossain75:
Hi I'm unable to understand the changes ..flashed that but what are the details which stock apps ? I don't see any changes also no FP new icon :)
[Elephone P8000] skeleton1911:
I thought so. That are some missing apps from the system.. Open the ZIP and you will See what apps i mean.. And btw. Look some posts above. I flashed pur stock 03/12 Rom and there it also dont work.. That means it can not work in my Rom too. Because it is based the stock one..

Gesendet von meinem Elephone P8000 mit Tapatalk
[Elephone P8000] aaron.hossain75:
Ohh that ! Alright will see let me know about the future tests :)
[Elephone P8000] drdedus:
hello

I am with stock 20151105 and I have terible problems.

the phone stucks without reason and many times is getting hot.

If I install this rom I will bypass the problems?
[Elephone P8000] skeleton1911:
Yep

Gesendet von meinem Elephone P8000 mit Tapatalk
[Elephone P8000] Stefan Gündhör:
Hi,

I'm with Eragon and have no problems.

What can I do? :o
[Elephone P8000] drdedus:
thank you first of all for your work.

I have only one old computer with "xp" here.

so first I will install cwm.

is there any instuctions for cwm?

sorry for the questions but i am new to flashing.