yashsingh1/xdaforums huggingface dataset:
[Onetouch Idol 3 Android Development] vknecht:
Based on Demetris' LOS 14.1, with :

Android security patch level updates, currently 2020-02-05

tracking LA.BR.1.2.9 from CAF, currently 1.2.9_rb1.44

WIP upstream with linux-stable, currently upgraded from 3.10.49 to 3.10.68 3.10.75

SELinux enabled (better security, SafetyNet & PlayStore should be ok, if not check [MENTION=9355018]tess1[/MENTION] clear caches post )

2018 fixes : MTP, battery consumption, camrecorder crash, wifi, OpenGL ES version, dualsim 6045K (update to MM first), lid & proximity sensor

known problems :

camrecording low brightness

mobile internet connectivity loss and battery drain after a while (days) : toggle airplane mode and back, or reboot

new problems : none known at the moment, but the ROM is not so thoroughly tested before publication

How to investigate and report problems :

sudo adb shell dmesg > dmesg.txt

sudo adb logcat > logcat.txt

sudo adb logcat -b radio > radio.txt

Credits : [MENTION=6257538]FireLord[/MENTION], [MENTION=1149134]Demetris[/MENTION], [MENTION=4911249]Unjustified Dev[/MENTION] and all the giants whose shoulders we stand upon !

Source code : Kernel | Device | Vendor trees | Local manifest : View attachment 4745687

Changes since previous build : see the build release post

Downloads : lineage-14.1-20200226-UNOFFICIAL-idol3.zip | other releases

Kernel alternative (cam might not work since 20190619 build) : overclocked kernel by [MENTION=7977999]DepressedHedgehog[/MENTION]
[Onetouch Idol 3 Android Development] vknecht:
Reserved
[Onetouch Idol 3 Android Development] upyisfar:
Thanks a lot for sharing this build. Now that the method for restoring our phones to stock has been taken away from us, I'm hoping that more people will jump in and try to solve some of the few remaining issues with this ROM.

Personally I'd like to figure out why the Play Store is installing old versions of certain apps and listing other apps as being incompatible while they can be still sideloaded without any problem. I've found many threads on XDA with people complaining about the same issue but no solution that worked so far. Is this an issue with opengapps, or bad entries in the build.prop? I've compared with the original build.prop from stock 6.0.1 and tried changing values around but no success.

Also battery life seems a lot shorter with Nougat, and there is no way to find out which apps/processes are being power hungry as you have already pointed out.

Issues aside this ROM still makes this phone quite usable and stable compared with other ROM's I have tried so good job and I'm looking forward to testing out new builds.
[Onetouch Idol 3 Android Development] tess1:
new thread - we're open for business!

[MENTION=8963497]vknecht[/MENTION] once again, thanks for your continued efforts... I tried your Sept 12 release with opengapps Sept. 12 as well - the Play store continues to thwart our efforts in the same manner.

[MENTION=9435528]upyisfar[/MENTION] I found that the battery drain during sleep could be reduced to almost nil with the following settings:

- turn off WIFI during sleep - Settings-> WIFI -> Gear Icon -> Keep WIFI on during sleep -> change to....

- turn off Emergency Broadcasts - Settings -> ...More ->Emergency Broadcasts -> Uncheck all
[Onetouch Idol 3 Android Development] vknecht:
20180918 build : add ptt_socket_app for better wifi and battery

This was a complain in the logs, so added it from MM.

There are still batterystats related problems but there's a lead...:

09-19 15:14:35.466 1192 1344 E BatteryStatsService: no controller energy info supplied
09-19 15:14:35.748 1192 1212 E BatteryStatsService: power: Missing API
09-19 15:14:35.762 1192 1344 E BatteryStatsService: modem info is invalid: ModemActivityInfo{ mTimestamp=0 mSleepTimeMs=0 mIdleTimeMs=0 mTxTimeMs[]=[0, 0, 0, 0, 0] mRxTimeMs=0 mEnergyUsed=0}

Thanks [MENTION=9435528]upyisfar[/MENTION] [MENTION=9355018]tess1[/MENTION] for the feedback, keep us posted with your findings...
[Onetouch Idol 3 Android Development] tess1:
[MENTION=8963497]vknecht[/MENTION]

1. Just tried something... reinstalled 7/18 build where all of the play store program installations were working and then overlayed it with OTA 9/18 which then led to PLay Store blocking installation of many apps ("device isn't compatable" error) - I recall that the build after 7/18 included 25 fixes/commits. Not easy to track it down but could the problem be from one of those fixes/commits?

2. The proximity sensor (tsl2772-ps) error was earlier reported as either missing a driver or needing a shim. Is this a file that can be pulled from Marshmallow and put into this ROM?

Battery updates to follow
[Onetouch Idol 3 Android Development] upyisfar:
Interesting. How do we know if those changes were merged into the LineageOS's code repo?

I've installed your new build last night and I've set my kernel to run in permissive mode (Magisk SELinux Manager module) and safetynet basicIntegrity test still passes just so you know. Battery life now feels more comparable to what I get in stock MM. Not sure if this due to SELinux being switched to permissive or the the changes that you have made.

What build environment are you using to build your ROM's, I'm trying to build on Debian stable following your instructions here and keep getting compilation errors.
[Onetouch Idol 3 Android Development] vknecht:
I thought the 20180905 build ruled out the august kernel updates as the breaker but in fact I should and will retry kernel from july with SELinux enabled ; if it's still not OK then I guess the cause is LOS august update...

iiuc the hint is that we need either a HAL/framework wrapper OR reuse stock Lollipop driver+shim.

I'm sorry I don't know much about this low-level androidy stuff yet and don't have much time atm to focus on it.
[Onetouch Idol 3 Android Development] vknecht:
I think if it was in LOS it should appear here : https://github.com/LineageOS/android_system_extras/commits/cm-14.1/ext4_utils

I'm using Fedora 28 ; note that you'd have to update the local manifest ($ANDROID_ROOT/.repo/local_manifests/idol3.xml) using given kernel/device/vendor trees as linked in OP, so at the moment it should look like :

<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project name="vknecht/android_device_alcatel_idol3"	path="device/alcatel/idol3"	remote="github" revision="fix-ptt_socket_app" />
<project name="vknecht/android_kernel_alcatel_msm8916"	path="kernel/alcatel/msm8916"	remote="github" revision="upstream-lxstable-cafrb144" />
<project name="vknecht/proprietary_vendor_alcatel"	path="vendor/alcatel"	remote="github" revision="fix-ptt_socket_app" />
<project name="LineageOS/android_device_qcom_common"	path="device/qcom/common"	remote="github" revision="cm-14.1" />
</manifest>

(to use july kernel change revision to "upstream-lxstable").

For idol3 build environment setup help, feel free to send me private messages or join #idol3 on Freenode, or maybe even create a thread, for the more we are able to build, the better...
[Onetouch Idol 3 Android Development] tess1:
1 Just tried the 9/05 build --> same play store issue --> August updates maybe problematic

2 Fair enough... I don't know enough but am willing to beta test along the way :)

It is all in progress...
[Onetouch Idol 3 Android Development] vknecht:
I've tried the july 3.10.68 kernel (used in 20180718 and 20180905 builds) with current device/vendor trees, and still G compat problems, so it leaves the Android/LineageOS diffs from 2018-06-05 to 2018-08-05 patch levels (afaik there was no 2018-07-05 for LOS 14.1 and there's no 2018-09-05 yet).
[Onetouch Idol 3 Android Development] vknecht:
20180924 build : 2018-09-05 android security patch level

Only change is Android/LineageOS framework (repo sync) for 2018-09-05 update

Too sad, it doesn't seem to solve the some-apps-in-proeminent-vendor-store incompatibility problem...

[MENTION=9435528]upyisfar[/MENTION] : I've wondered about "the method for restoring our phones to stock has been taken away from us", what did you mean ?

While, too bad, the Sugar utility (which had my preference) now fails on a "site not found" error (maybe should try a fresh install, why not in Wine), I still could reset by using the "Panasonic Eluga Switch" utility then the "Mobile Q upgrade" (~1 hour total, with 100Mbs connection) to go back to stock.

lineage-14.1-20180924-UNOFFICIAL-idol3.zip | or OTA zip
[Onetouch Idol 3 Android Development] upyisfar:
Q

The Sugar utility was what I was referring to. Haven't had any success with the Mobile Q though, I always get a "check your internet connection" message or something like that. The MM 6.0.1 ROM posted by The Marionette is close enough though. I don't expect Alcatel to push more OTA updates for this device anyway.

I'm sticking with your build of Nougat now that the battery drain issue has gone away. I don't mind manually transfering the APK's from another device to my phone, for now at least. I have managed to set up my build environment (was missing a dependency) and will be producing a test build soon to see if I can fix a thing or two. In the mean time I will happily upgrade to the new build that you have just posted. Thanks!
[Onetouch Idol 3 Android Development] tess1:
[MENTION=9435528]upyisfar[/MENTION]

Just 3 weeks ago, I was able to restore (in Canada) my Idol 3 to stock MM using Mobile Upgrade (I think it was version 5.1.7 as 5.1.8 would not do anything).

Here is an upload link:

5.1.7:

https://mega.nz/#!KmogkYAa!e5y6ZSM987quN6bTYRNWnZuNQSBnCjANMglrhB4rtHo

5.1.8:

https://mega.nz/#!OuhEGaaQ!g6mH6RE7v7MEGSI5-uWsr_t4MZCX3qh1fmCtHzhHptI

I put the phone into download mode and it took about 30 minutes.

---------- Post added at 10:45 PM ---------- Previous post was at 10:39 PM ----------

[MENTION=8963497]vknecht[/MENTION]

re: add ptt_socket_app for better wifi and battery

Would it be possible for you to list the (hopefully few) files and any edited files that you put into this build and the corresponding locations so that I can graft them onto my 7/18 build?
[Onetouch Idol 3 Android Development] upyisfar:
OK. I was wondering if Alcatel was geo-blocking some countries seeing how some people have success and others don't. I'm in Canada too so I guess that isn't the issue. For now I'm more interested in trying to find a solution to the opengapps compatibility problem.

---------- Post added at 11:04 PM ---------- Previous post was at 10:51 PM ----------

See these commits https://github.com/vknecht/propriet...mmit/f84888778905c179e0d49d7587bc5467248e4b01 and https://github.com/vknecht/android_...mmit/dc64e2c79616e33640a2680451e2fe5ab0152d89

... and the workaround for disabling the bogus 3rd camera mode

https://github.com/vknecht/propriet...mmit/b57afd7960943e0dc8f0c593ae25cb74b5351a3f
[Onetouch Idol 3 Android Development] vknecht:
6045K / dualsim / multisim

idol3:/ # setprop ctl.start ril-daemon1

Does it make it better for you too ? (dunno if there's a non-root or GUI equivalent...)
[Onetouch Idol 3 Android Development] upyisfar:
Good news!

I have found the fix for the opengapps store compatibility issue. :D

I noticed in CPU-z that the reported OpenGL ES version was 1.0 so I added a line to my build.prop:

ro.opengles.version=196609

And now CPU-z reports version OpenGL ES version 3.1 and all my apps are available for download in the G store.

the value "196609" is decimal for hexadecimal 30001 (OpenGL ES 3.1). Ive seen a commit on github that says support for 3.2 was added but when I change the value to "196610", CPU-z still reports 3.1 not sure why..
[Onetouch Idol 3 Android Development] upyisfar:
Appears to be working since the 2 latest builds, with SELinux set to enforce:
[Onetouch Idol 3 Android Development] tess1:
[/COLOR]

SECONDED - Confirmed fixed! and the Play Store also reports that my Device is Certified under Play Protect Certification.

:)

Thank you upyisfar
[Onetouch Idol 3 Android Development] upyisfar:
6045I single-sim here, can't test this, sorry.

BTW can you add "low brightness in camera video capture mode" to list of known issues in the op? thx
[Onetouch Idol 3 Android Development] sbruda:
Unfortunately I don't know what is going on. Those fastboot commands being absent means that your bootloader is the most recent one and there is nothing that needs to be done in this respect. Other than a wipe to factory settings I have no idea what to suggest, and I am sure that you have already tried that. Sorry...
[Onetouch Idol 3 Android Development] thebigworld:
Hi,

Did you follow the steps I mentioned?

Especially with the driver for fastboot and the version of google sdk tools?
[Onetouch Idol 3 Android Development] vknecht:
To force Alcatel tool to detect the phone has to be upgraded, you can use the Panasonic Eluga Switch offline firmware.

It seems the link I got it from (and referenced in other posts) is dead, so here's a copy (1.27 Gb)...
[Onetouch Idol 3 Android Development] ramelco:
Thanks to all that had replied, I gave it back to my friend, it's all working except the statusbar. The only "solution" that I found was using an app that lets use it from below ?
[Onetouch Idol 3 Android Development] vlevi:
Sent my newer phone to service, temporarily i switched back to the Idol3.

Previously the 2019.09 Lineage was installed.

Today I flashed the newer 20200226.

When I updated the google camera from play store, it does not work anymore :(

The app starts, the UI shows up, but after 1-2 seconds, the camera app closes itself.

When I uninstalled the camera software update, and disabled it's automatic updates, it works fine.

Tapatalkkal küldve az én SM-T590 eszközömről
[Onetouch Idol 3 Android Development] vknecht:
Can't say anything certainly about G Camera... what about LineageOS cam app ? Same thing ?

Would be interesting to check if it's due to SELinux policy denial, either looking for cam_socket in dmesg log or perhaps logcat output.

Or test with SELinux set to permissive...

Got that when re-flashed LOS recently, and wiping/formatting (iirc system/cache/dalvik but not userdata) before flashing helped.

On a general note, there were no new builds these last months because I got unstability (freeze+reboot) esp. after using camera,

and did not get any useful message to debug it. Might publish one later for people to test if they get the same...

Also I've been busy with adapting the mainline Linux kernel for idol3 and so far it's only a little success since I only could get

USB networking + wifi + framebuffer (non accelerated graphics), so not very useful... Plasmamobile works but very slow...

If I can get the display to work I'll make a post about it... goal would be to get phosh working (same graphical env as Librem5 phone) with postmarketOS...

But there's no guarantee yet we could get sound / phone calls / sms / bluetooth tho there's some chance since our idol3 5.5" msm8939 SoC

is not too different from msm8916 for which postmarketOS people got those to work.

Maybe an opportunity for idol3 4.7" which has msm8916...
[Onetouch Idol 3 Android Development] vlevi:
When I installed LINEAGEOS, the play store updated the camera app, which was in the system.

Tapatalkkal küldve az én SM-T590 eszközömről
[Onetouch Idol 3 Android Development] PF4Public:
I had issues with battery statistics, looked through this thread and had an impression, that they were fixed at some point, so I wiped everything and flashed 20200226. But battery still reports only hardware and all the software has "recalculated battery usage: 0 mAh".

@vknecht, please advise, do I have to do something specific for battery statistics to work? Thanks!
[Onetouch Idol 3 Android Development] vknecht:
Battery stats look ok to me, here. Did you get it fully charged, then gave it some time (ie. use it for a while) ?

If so, you could check logs (dmesg and logcat) to see if there are some obvious warnings/errors about that.

Another thing which might be interesting to test is to physically disconnect the battery for 30s or one minute, then reconnect it.

Main problems I saw are :

the cover-screen (clock on blue square, supposedly only used with cover) sometime kicks in, and one has to use a magnet to simulate cover opening, or hard reboot

double tap to wake doesn't work

It's not likely I'll make new LineageOS 14.1 build soon with fixes or new features since :

I got progress since last post wrt. recent kernel, to run mainline Linux

I got side-tracked looking into idol347 too
[Onetouch Idol 3 Android Development] PF4Public:
Thanks for the answer. In logcat I see this repeated:

07-16 18:09:58.353 1042 2442 E BatteryStatsService: no controller energy info supplied
07-16 18:09:58.353 1042 2442 E BatteryStatsService: no controller energy info supplied
07-16 18:09:58.376 1042 2442 E BatteryStatsService: modem info is invalid: ModemActivityInfo{ mTimestamp=0 mSleepTimeMs=0 mIdleTimeMs=0 mTxTimeMs[]=[0, 0, 0, 0, 0] mRxTimeMs=0 mEnergyUsed=0}

Is it an indication of an issue or are mere harmless warnings?
[Onetouch Idol 3 Android Development] sbruda:
To what version is this applicable? I am on the latest (20180924), I have applied the fix (so that my OpenGL version is reported as OpenGL ES 3.1) but still Chrome (and other apps) are deemed incompatible with the device by the Play Store. This is on a devices set up anew with the ROM flashed followed by Open Gapps mini 20180926 amd64, followed by addonsu 14.1 arm64.

Advice is much appreciated.
[Onetouch Idol 3 Android Development] upyisfar:
I have the 6045I, clean flashed with lineage-14.1-20180924-UNOFFICIAL-idol3.zip, rooted with the latest Magisk zip from TWRP and

used the opengapps aroma installer to install the G components that I needed. I did not install Chrome however but it does shows up for installation in the G store.

Are you able to install Firefox from the store? That is one application that wouldn't install before and now works for me.
[Onetouch Idol 3 Android Development] vknecht:
It's a great finding :good:

Looks like /init.qcom.opengles.sh is not executed because load_system_props_action is never triggered.

With this change (then "make bootimage" then flash the new boot.img over boot partition) I now see 3.2.
[Onetouch Idol 3 Android Development] sbruda:
Hmm, I have almost the same setup (except for the opengapps, but this difference does not seem likely to be the cause) and I am still unable to install many apps from the Play Store including Firefox.

For what it is worth, before the OpenGL fix the incompatibility message was green, after the fix it is red. I have no idea how to diagnose further, so any advice you might have is appreciated.
[Onetouch Idol 3 Android Development] tess1:
for those people still having difficulty with the Play Store after applying Upyisfar's build.prop fix, this is what worked for me:

1. clear the cache and dalvik from TWRP

2. In settings --> APPS --> 3 vertical dots --> Show System --> Google Play Store --> Storage --> Clear Data & Clear Cache

3. Reboot
[Onetouch Idol 3 Android Development] sbruda:
Spot on (or at the very least seems to be working for me as well). Thank you. :)
[Onetouch Idol 3 Android Development] upyisfar:
Is this script supposed to add the ro.opengles.version=196610 entry to the build.prop?

I built lineage-14.1-20180927-UNOFFICIAL-idol3.zip today using your fix-opengles branch and I still had to edit build.prop myself after flashing. But CPU-Z does show 3.2 now :good:.
[Onetouch Idol 3 Android Development] vknecht:
It doesn't touch the props files, it sets ro.opengles.version dynamically during startup (each and every boot, not just the first one).
[Onetouch Idol 3 Android Development] vknecht:
20181009 build : OpenGL ES version & 6045K / dualsim fixes

lineage-14.1-20181009-UNOFFICIAL-idol3.zip | or OTA zip file

Fixes the OpenGL ES version problem found by [MENTION=9435528]upyisfar[/MENTION] and the RIL configuration for 6045K dualsim phones :)
[Onetouch Idol 3 Android Development] vknecht:
20181014 build : proximity sensor fix

OTA zip file | or lineage-14.1-20181014-UNOFFICIAL-idol3.zip | See OP for source links with detailed changes

(so far there was no problem reported specific to OTA zip, so you might prefer this to update without loosing apps/root/settings)

So... after reading [MENTION=9223327]idolowner[/MENTION] analysis and app... and combining this HAL wrapping technique (video)

with this sensor-overriding-code for mako, we now have functional proximity sensor :)
[Onetouch Idol 3 Android Development] andrejchern:
Thank you very much for the update, the sensor works fine. I would like, if it is possible to add a vibration intensity adjustment.
[Onetouch Idol 3 Android Development] upyisfar:
Awesome! You are the best [MENTION=8963497]vknecht[/MENTION], merci beaucoup!

I can also confirm that the ota file works fine.
[Onetouch Idol 3 Android Development] tess1:
This is big. Wow. On a functional level, I was holding the phone away from my face. Quite amusing!!

[MENTION=8963497]vknecht[/MENTION] Thank you for the energy that you have given this community. I appreciate it.
[Onetouch Idol 3 Android Development] HiR3x:
Great news thanks for fixing the proximity sensor :) but is any improvements on the battery ?
[Onetouch Idol 3 Android Development] upyisfar:
Battery life has been as good as stock for me since the build from September 18. I can go at least a day or two without charging depending on my phone usage.

---------- Post added at 01:01 PM ---------- Previous post was at 12:48 PM ----------

Neither the full zip or the ota should touch your recovery partition, sounds like a hardware failure to me. Also, nothing you flash on the phone should be able to prevent it from entering Download mode (power + volUp + volDown).
[Onetouch Idol 3 Android Development] vknecht:
You're welcome, it's a pleasure to make the ROM better, at least once the head-scratching is finished and the fix is found :)

[MENTION=942905]andrejchern[/MENTION] : would you know where the vibrator setting should be done, and which value(s) to set ?

[MENTION=7398274]xdan8r[/MENTION] : don't know what's going on ; in this situation I'd first try to flash recovery again.

Can you enter Download/EDL mode by powering-off, (then wait ~15 second), the press both volume buttons, then plug USB in ?

If ADB is working, you can try "sudo adb reboot edl".

Then use Alcatel Flasher or emmcdl to flash TWRP.

If all this fails, maybe you'll have more luck resetting back to stock with MobileUpgradeQ (use the PanasonicElugaSwitch utility first if MobileUpgradeQ says there's nothing to do)...

[MENTION=8472019]HiR3x[/MENTION] : it shouldn't be too bad, but it probably could be improved...

Some leads : turn off wpa_supplicant debug/verbose mode, better CPU/GPU/governor/ settings, updating wlan and gpu drivers maybe...
[Onetouch Idol 3 Android Development] andrejchern:
Thanks for the reply, 13.0 in the sound settings, now set to a maximum of 100%,if you can then with a slider from 100 to 0, thank you for all your efforts, if my language was English then the answer would be more accurate.
[Onetouch Idol 3 Android Development] vknecht:
Adding a slider widget in the settings app to change vibrator intensity ?

Hmm, I wouldn't know where to start but if you find examples of how to do that, I'll look at adding it...
[Onetouch Idol 3 Android Development] andrejchern:
I do not know exactly how to add this option to the settings, if there was such an instruction that would show (perhaps he would have added) can only show a screenshot CM 13 of where it is not know.
[Onetouch Idol 3 Android Development] vknecht:
I got some bits of the puzzle, but doesn't seem to work for now...

Searching for « vibr » using the magnifying glass in settings app shows

a vibrator intensity setting but it only opens "other sound settings" panel :(

Since I may not have time to dig this issue in the near future, here's where I'm at

(some commits I integrated might not be appropriate or needed, so this is experimental...)

Basically there's a VibratorHW.java taken from [MENTION=4150512]The Marionette[/MENTION] CM12.1 and

kernel mods from kiwi device to add sysfs entries so as to read and write the values.

Kernel : enable-vibrator branch

Devices : add-vibratorintensity branch

(2018-10-18 commits, only the two most recent in devices repo)