yashsingh1/xdaforums huggingface dataset:
[General Questions and Answers] iAkhil:
It is possible to create the 3D photo without an iPhone

Well it is possible to create the 3D photo without an iPhone. let’s start by looking at the special features of Portrait Mode. It doesn’t just take one photo. It takes your “normal” photo, but also takes another “special” photo. This ‘special’ photo is the depth map, which is created when we take photo from a phone with two cameras. This depth map shows which part of the photo is ‘closer’ to the camera, and which part is ‘further’ from the camera .This works just as our eyes work. When we know which object is near and which object is far, we can construct a 3D understanding of what we see on our brain. Facebook uses this depth data to construct a 3D Photo, relying on it to gain a 3D view of our photo and make a 3D parallax effect with it.

‘Live Focus’ mode on Galaxy Note 9 relies on the same principle as the iPhone X’s Portrait Mode. But its stores depth data differently. The qualty of 3d image is less as compared to iPhone. take a look here : www.facebook.com/nuuneoi/posts/10216478233324532

The main issue is that the depth map data taken from most Android phones with 2 camera has no standard. Every brand uses different formats for their depth data, so it may take a while for Facebook to roll out this feature to the another phone model beside Apple’s iPhones :angel::angel:
[Lenovo P2 Questions & Answers] stanfr0:
Hi all,

I was becoming increasingly concerned by the lack of security patches from Lenovo for the P2. The latest one being November 2017.

I decided to install Lineage OS 15.1 as a way of mitigating these risks and apart from my Barclays banking apps not running because they believe the phone to be insecure. I have been very happy with it, until today when I looked in the Trust section of settings and saw that there appear to be two security patch streams. Platform and Vendor. Platform is "up to date" but vendor is "out of date".

Having done some research it appears that vendor seems mainly to relate to security vulnerabilities in device drivers that have to be implemented by Lenovo (someone please tell me if this is wrong).

Clearly Lineage has addressed the known OS vulnerabilities which must be better than stock having had no updates for over a year.

1 - What vulnerabilities am I exposed to by having out of date vendor updates in Lineage OS?

2 - What are the risks from having an unlocked bootloader?

What can I do to mitigate the above two risks?

The reason I got and love my P2 is the battery life. As far as I can tell there is still nothing on the market that can touch it. However, given the unknowns and complexities around patches and security I am seriously thinking of buying a Pixel 3 and running stock Google.

Please can anyone give me the facts so I can make a decision (I'd rather stay with the P2 as it meets my needs better).

Best regards,

Robert
[Galaxy S 5 Q&A, Help & Troubleshooting] AD FOX:
Hello everyone

I have S5 g900f 16GB on Stock marshmallow ROM and an unknown baseband

I managed to be run aosp 6.0 and 7.1 as well as 8.1 ROMs smoothly without any problems, but when it comes to 9.0 ROMs things start getting ugly. I get stock on the first boot screen showing Samsung Galaxy ST and then reboots to the same screen again

I tried dirty flashing and clean flashing too but with no luck I tried with and without gapps and root but again same result

ROMs I have tried are Los16 by haggertk and AOSP Extended

Please help.
[Galaxy S 5 Q&A, Help & Troubleshooting] AD FOX:
Managed to have it working by flashing boeffla kernel 15.1 ???
[General Topics] mike freegan:
Hi guys! Haven't been on here for ages! This week my new WM6 I-mate Ultimate 9502 came, so I ditched Symbian and I'm back on Windows Mobile!

I have tinkered a fair bit, but there are a couple of things I can't figure out.

1. I bought the device sim free, and I'm having trouble setting up MMS. When I put my UK voda sim in it automatically downloaded some settings, but I think they're wrong because whenever someone sent me an MMS, I'd just get an SMS telling me to go and collect it off the voda website. I fiddled with it, and now it doesn't do anything at all so if anyone could give me a step by step guide it'd be great. I tried using this guide, but it didn't work:

http://www.3g.co.uk/3GForum/showthread.php?t=74503

I think maybe I need more info on setting up the MMS application options themselves.

I remember my Wizard used to do this, but I somehow managed to set it up in the end.

2. My pal has a Toshiba G900 and I have seen him viewing normal Youtube/myspace with all the embeded flash working. I can't remember what browser or flash plugin he used. Does anyone know how to view flash content within a browser?

3. What app can I use to overclock? I used to use Omapclock on my wizard, but the 9502 uses a Qualcomm processor.

Cheers,

Mike
[General Topics] mike freegan:
No takers eh?

I think I have asorted the MMS settings by using the HTC installer.

I also now realise that the reason I couldn't find a qualcomm CPU overclocker is because they don't exist.

Still looking for a flash-in-browser solution if anyone can help?
[Android Q&A, Help & Troubleshooting] iTzFoxe:
Hey guys i need to learn how can i get right rom to my phone and how i unlock google acc ..

(sorry my english very bad)
[Google Pixel 3 Questions & Answers] Aanze:
So I have this weird issue where my volume slider is only partially visible when playing a fullscreen video on my pixel 3 (see screenshot hereunder).

Any idea how to fix this ?
[Google Pixel 3 Questions & Answers] PuffDaddy_d:
Are you using a gesture navigation app?
[Google Pixel 3 Questions & Answers] Aanze:
Indeed, using OnePlus Gesture... Good call, might be the faulty guy :-/
[Google Pixel 3 Questions & Answers] PuffDaddy_d:
Yes, it uses screen overlay to detect gestures and it blocks the volume bar in landscape
[LG V40 Guides, News, & Discussion] blueworld2000:
Hi all,

I have the korean version of the v40...I would like to change the version to us, waiting for the european one.

Can I do that?

thanks all :)
[LG V40 Guides, News, & Discussion] Einsteindks:
May be possible if the firmware is released, AND bootloader unlocked. I'd wait until developers get a little work done first. Until then, you'd risk bricking it.
[Android Q&A, Help & Troubleshooting] zussman99:
Hi there,

I have recently started flashing new ROMs into my old Motorola X Play. At the moment, i am using Lineage OS 14.1 but i feel like my battery's draining faster. So i am looking to switch to another ROM possibly with better battery life. I wanna know which ROM is the most stable and used one for lux devices. I have looked up on other websites and a lot of them say Lineage/RR/Viper but i want to know which is best for battery life. If there's a way to stop a fast battery draining issue, that would be helpful as well. Thanks!
[Treble-Enabled Device Guides, News, & Discussion] king1990:
Thanks for the guide [MENTION=9494965]minadzuki[/MENTION]

but i'm getting this error after step 10:

(core dumped) aapt package -f -F ${name}-unsigned.apk -M $path/AndroidManifest.xml -S $path/res -I android.jar

even when i try to build for existing devices I got the same error
[Treble-Enabled Device Guides, News, & Discussion] minadzuki:
Oh...I forgot this, sorry.

Because I haven't encountered this error, so I don't have a way to solve it, either. (I tried to built it on three remote servers only)

And...is it cause segment fault?

Or you can try to install google-android-build-tools instead of aapt. (because I can't find aapt on archlinux but found this)
[Treble-Enabled Device Guides, News, & Discussion] phhusson:
Very nice guide, thanks!

I'll link it as part of a "how to contribute"

For aapt, there is an aapt included in the git. If it doesn't work for you (like [MENTION=4896610]king1990[/MENTION]'s segfault), know that the one included in the git has the lowest priority. It will pick up aapt from the system first.

(but then you'll need to have a system-wide aapt).

Or if you have an Android SDK somewhere, you can set your PATH to include it.

Edit: I just realized that what I just described might actually be the issue. If there is a system-wide aapt, it will use the libc++ in the git, which would explain the crash.

I fixed this case in my current git.

If there is a system-wide aapt it will use it.

If for some reason, system-wide aapt isn't suitable, you can run build.sh with --local-aapt to force the use of the in-git aapt (i.e. it will have higher priority than system's so no conflict should happen)

Could you check again with latest git?

If it still doesn't work, can you try to call build.sh --local-aapt ?
[Treble-Enabled Device Guides, News, & Discussion] king1990:
[MENTION=1915408]phhusson[/MENTION] Thanks now it working fine and building without faults

I have few questions regarding the AndroidManifest.xml :

1- for android:requiredSystemPropertyValue how do I know which name to use ? is it trial and error ?

2- for android:priority does matter which number I choose ?

3- some vendors have this overlay (framework-res__auto_generated_rro.apk) under "vendor/overlay". Does is affect the device overlay in system/overlay ?

4- to install the overlay is it just as [MENTION=9494965]minadzuki[/MENTION] says ?

and thanks again for your great work
[Treble-Enabled Device Guides, News, & Discussion] minadzuki:
1. For example, Xiaomi Mi 6X has this fingerprint:

xiaomi/wayne/wayne:8.1.0/OPM1.171019.011/8.7.12:user/release-keys/

So you can take xiaomi/wayne to use, and android:requiredSystemPropertyValue will be: +xiaomi/wayne*

2. it will affect to build images, or affect the detection on System. If you got this:

F: .xxx/AndroidManifest.xml: priority xx conflicts with another manifest

You just take next number and try again, until now priority 53 has been taken (without pull request), you can take priority since 54.

3. Sorry, I don't know for this.

4. Yes, just simply copy and permission change.
[Treble-Enabled Device Guides, News, & Discussion] phhusson:
Cool

overlays in /system/overlay and /vendor/overlay are the same thing, and on my GSI both are loaded, so yes it affects it.

But if your vendor has a framework-res__auto_generated_rro.apk, you probably don't need an overlay file for your phone, because it's already there.

(Please note that /system/overlay doesn't exist in AOSP, that's a change specific to my ROM, and custom ROMs based on it. AOSP only has /vendor/overlay)
[Treble-Enabled Device Guides, News, & Discussion] king1990:
[MENTION=9494965]minadzuki[/MENTION] Thanks for answering my questions. [MENTION=1915408]phhusson[/MENTION] its clear now , I don't know if this is related to your treble approach or not but some GSI ROMs refuse to go the minimum value in the brightness curve no mater what value I set in the curve, it never achieved.

is this treble or ROM related ?
[Treble-Enabled Device Guides, News, & Discussion] phhusson:
Brightness is a bit complex on Android Pie... (well it already was before, but it got even worse)

Do you have a link to your current overlay, so I can take a look at which code path you'd go to?

What's the lowest backlight value you get in /sys/class/backlight/panel0-backlight/brightness or /sys/class/leds/lcd-backlight/brightness?

Also what's your device? Does it have extended brightness range? (what's the value of getprop persist.sys.qcom-brightness // is it a samsung device?)
[Treble-Enabled Device Guides, News, & Discussion] king1990:
for overlay this the extracted files from the overlay apk (my device is Axon7)

The lowest backlight is 10 (once manually edit it to 1 it goes to really dim brightness)

what I don't understand that I already built two GSI ROMs one is DU13 & other Liquid pie both report the same backlight light value at 10 at minimum value but in DU its very dim and in liquid its still bright ?!

The command did not give back any information so I assume we don't extended brightness range.

Thanks

Edit : it was overlay problem , fixed after modifying it
[Treble-Enabled Device Guides, News, & Discussion] Copperhead100:
I tried to create an overlay for my Honor View 10 (Berkeley)

Is there a list of recommended settings to copy over from the stock ROM? I started with copying everything listed in tests/knownKeys and it seems to work

There's a power_profile.xml in the framework-res.apk I dumped from my stock ROM but the battery capacity is set to 1000 instead of 3750. Is that right?

There's also a power_profile_test.xml in there with a much more sane value of 3000 mAh. Should I use this one instead?
[Treble-Enabled Device Guides, News, & Discussion] minadzuki:
I don't have any Huawei phones, sorry.

Maybe you can referrer /Huawei/kirin970/CLT or /Huawei/kirin970/EML, Honor V10 maybe have its OEM name and called "BKL"
[Treble-Enabled Device Guides, News, & Discussion] phhusson:
On Huawei, you'll find real power_profile.xml somewhere in /odm or /product. I'd say /product/etc/power_profile.xml
[Treble-Enabled Device Guides, News, & Discussion] Copperhead100:
Thanks. It's actually /product/etc/xml/power_profile.xml

There's a new pull request incoming :D
[Treble-Enabled Device Guides, News, & Discussion] JEANRIVERA:
is it possible to create an overlay in Widows usingGIT for Windows?
[Treble-Enabled Device Guides, News, & Discussion] minadzuki:
Yes, you can write source code everywhere (don't forget to replace CRLF to LF), but maybe you should build it on Linux, or you have a way to build it on Windows (e.g.: WSL, Mingw, etc.)
[Treble-Enabled Device Guides, News, & Discussion] JEANRIVERA:
[MENTION=9494965]minadzuki[/MENTION] I can't find a config.xml in my framework-res.apk, am I missing something? or that gets created somehow in the process?

another question

on step 5 you say to edit AndroidManifext.xml, does that means delete everything in it and copy paste what you put on the code box? or just add that at the end of the xml file?
[Treble-Enabled Device Guides, News, & Discussion] minadzuki:
framework-res.apk doesn't contain config.xml, it split into several files: arrays.xml, bools.xml, fraction.xml, integers.xml. just create config.xml or copy from other devices and find values on these files (to replace it).

and step 5, just replace values which for your device, like what other devices wrote.
[Treble-Enabled Device Guides, News, & Discussion] JEANRIVERA:
thanks for the response but I am really lost here those 4 xml has way to much data in it, should I just copy everything to config.xml?

to be honest what I am trying to fix are 2 things the battery stats not showing and the auto brightness and brightness slider and if the led light is fixable by an overlay that too, I can provide you all the files needed could you build it for me please? my device is an HTC U12+
[Treble-Enabled Device Guides, News, & Discussion] minadzuki:
you can check like this:

https://github.com/phhusson/vendor_hardware_overlay/blob/master/Xiaomi/Mi8/res/values/config.xml

then take values from those 4 xmls.
[Treble-Enabled Device Guides, News, & Discussion] JEANRIVERA:
thanks for all the replies I did try but I am not sure if windows is capable of doing this, I give up, thanks for trying to help me build it myself, I do have all the files reqd. if you find some spare time and want to build it I would really appreciate it, if not I understand ;)
[Treble-Enabled Device Guides, News, & Discussion] yuvarajv952:
Please need help

On step 9 and step 10

Please explain briefly

In step 10 = i am getting therr is no specific file

I executed (chmod u+x /root/Downloads/realme2pro/build/build.sh)
[Treble-Enabled Device Guides, News, & Discussion] minadzuki:
such as your repo is /root/Downloads/vendor_hardware_overlay,

your overlay file should in /root/Downloads/vendor_hardware_overlay/Oppo/Realme2Pro/

and build.sh should in /root/Downloads/vendor_hardware_overlay/build/build.sh

if you can't find, did you clone whole repo to your computer?
[Treble-Enabled Device Guides, News, & Discussion] gilbert32:
Is this guide still relevant?

I tried making overlays for my phone (BlackShark, Global version, SKR-H0). However after moving the resulting APK to /system/overlay, nothing happens.

I can see in logcat it is ignoring it because the overlay section in AndroidManifest requires ro.build.vendor.fingerprint to be +blackshark/skr* (What i set it, also tried device name). It also said something about null value at line 5 while parsing xml.

If you want, i can provide full logcat (which i don't have ATM).
[Treble-Enabled Device Guides, News, & Discussion] minadzuki:
Hello, if you can sure your device make this on ro.build.vendor.fingerprint, can you try to change step 5 and like this?

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="me.phh.treble.overlay.blackshark.shark"
android:versionCode="1"
android:versionName="1.0">
<overlay android:targetPackage="android"
android:requiredSystemPropertyName="ro.build.vendor.fingerprint"
android:requiredSystemPropertyValue="+blackshark/skr*"
android:priority="[Take next number of last used]"
android:isStatic="true" />
</manifest>
[Treble-Enabled Device Guides, News, & Discussion] geepnozeex:
Please make GSIs overlay file for Lenovo S5 PRO

original framework-res.apk
[Treble-Enabled Device Guides, News, & Discussion] borksek:
There is a tutorial telling you how to do it. Don't slack off do it yourself.
[Treble-Enabled Device Guides, News, & Discussion] googlephoneFKLenAsh:
I don't have a Linux machine.

I know this is a tutorial to build it by ourselves but I couldn't due to not having a required machine.

If anyone with a Linux machine have some time, can you build an overly for ZTE visible R2? if not, that's understandable. Just need the overlay to fix the no battery usage bug on gsi.
[Treble-Enabled Device Guides, News, & Discussion] kylek389:
How to verify that specific overlay .apk was loaded?

Hello I'm on Huawei P20 Lite and getprop returns this:

#getprop ro.hw.oemName
ANE-L23

I modified existing Huawei/hi6250/ANE/AndroidManifest.xml and changed the requiredSystemPropertyValue="+ANE*" to "ANE-L23" and recreated treble-overlay-huawei-ANE.apk and uploaded it to /system/overlay/

diff --git a/Huawei/hi6250/ANE/AndroidManifest.xml b/Huawei/hi6250/ANE/AndroidManifest.xml
index c7042cb..5b1850c 100644
--- a/Huawei/hi6250/ANE/AndroidManifest.xml
+++ b/Huawei/hi6250/ANE/AndroidManifest.xml
@@ -4,7 +4,7 @@
android:versionName="1.0">
<overlay android:targetPackage="android"
android:requiredSystemPropertyName="ro.hw.oemName"
- android:requiredSystemPropertyValue="+ANE*"
+ android:requiredSystemPropertyValue="ANE-L23"
android:priority="37"
android:isStatic="true" />
</manifest>

Running pm list packages I was expecting to see com.dil3mm4.huawei.ANE which is the package name of treble-overlay-huawei-ANE.apk

:/ # pm list packages | grep -ie treble -ie huawei
package:me.phh.treble.overlay.telephony.lte
package:me.phh.treble.app
package:me.phh.treble.overlay.xiaomi.mimix3.systemui
package:me.phh.treble.overlay.systemui.falselocks
package:com.huawei.fido.uafclient
package:me.phh.treble.overlay.navbar
package:me.phh.treble.overlay.samsung.s9.systemui

How can I verify that treble-overlay-huawei-ANE.apk was loaded? Do I need to clear dalvik-cache? I already tried wiping cache and it didn't help. Thanks in advance.
[Treble-Enabled Device Guides, News, & Discussion] TheDunedan:
Which keys to include?

I'm currently building my first overlay for a new device (Moto G7 Play) and have a few questions while doing so:

This thread mentions fractions.xml, while https://github.com/phhusson/treble_experimentations/wiki/How-to-create-an-overlay? doesn't. As some keys from fractions.xml are included in tests/knownKeys I guess fractions.xml should be added to the wiki page as well. Is that correct?

Which keys should I include in the overlay? My approach so far has been to copy all keys from the mentioned resource configuration files and then remove any key which matches any of the following criteria:

isn't in tests/knownKeys

has the same value as the AOSP default (I checked https://github.com/aosp-mirror/platform_frameworks_base/tree/android10-gsi/core/res/res/values for that)

refers to something Google Play specific (which has only been config_ephemeralResolverPackage with com.google.android.gms so far)

Is this the correct approach? Did I miss anything there? Is there any less manual way of doing so yet?

What about keys which refer to other vendor specific packages like the following ones:

<string name="config_cameraLaunchGestureSensorStringType">com.motorola.sensor.camera_activate</string>
<string name="config_ims_package">org.codeaurora.ims</string>

Does it make sense to leave them in there?
[Treble-Enabled Device Guides, News, & Discussion] iSon1kz:
Great guide, but i have a little problem.

If i use a config.xml with my values from arrays and so on, nothing happens. If i delete config xml. but use the array.xml bool.xml and integer.xml instead my gsi bootloops :/ Any ideas what the problem could be?

Mi Note 10 / Linage OS GSI
[Treble-Enabled Device Guides, News, & Discussion] veekay:
Did you ever resolve this? I'm in the same boat, but with a different device.
[Treble-Enabled Device Guides, News, & Discussion] tonyo07:
Hello guy im new here i dont know how make and i dont have pc so guy help me for overlay already attach my overlay.

<manifest xmlns:android="http://schemas.android.com/apk/res/android"

package="me.phh.treble.overlay.samsung.j8y18lte"

android:versionCode="1"

android:versionName="1.0">

<overlay android:targetPackage="android"

android:requiredSystemPropertyName="ro.build.vendor.fingerprint"

android:requiredSystemPropertyValue="+samsung/j8y18lte*"

android:priority="[Take next number of last used]"

android:isStatic="true" />

</manifest>
[Treble-Enabled Device Guides, News, & Discussion] Abdullah5490:
Hello. I got overlay present of infinix note7 in THH trebble ROM. But still, the battery consumption is too much and battery usage stats are not available. What should I do, I'm struggling since long. If this is an error in my overlay, could you please help me to rebuild it? My phone also showing fake third sim slot even my device dont support e-sim. Also there is poower network speed on mobile data. I am too much disturbed because not finding any way to handle these issues, trying for several months.
[Treble-Enabled Device Guides, News, & Discussion] pepijndevos:
This is a very nice guide. Only problem is I already flashed a custom ROM, so can't extract framework-res.apk.

Is there a way to extract this apk from the XperiaFirm official firmware, or is that a different thing entirely?

I did also find very similar files in the official Sony repos, but they don't seem to contain any brightness-related values so I'm not sure they are actually the correct files: https://github.com/sonyxperiadev/device-sony-pdx213
[Treble-Enabled Device Guides, News, & Discussion] pepijndevos:
Okay I have a WIP overlay, but can't figure out how to upload it.

I used adb root, adb remount, adb push but the file just disappears after rebooting.

My phone does not have a /system/vendor folder, and no /system mountpoint at all it seems.

It does have /vendor/overlay but when I try to remount that rw it tells me '/dev/block/dm-4' is read-only

How/where can I actually upload this overlay?
[Treble-Enabled Device Guides, News, & Discussion] pepijndevos:
It seems that when you are using Magisk you have to write a Magisk module: https://topjohnwu.github.io/Magisk/guides.html

So I've done that but the file still doesn't show up.

XQ-BT52:/ # ls /data/adb/modules/mystupidoverlay/
module.prop system
XQ-BT52:/ # ls /data/adb/modules/mystupidoverlay/system/overlay/treble-overlay-sony-pdx213.apk
/data/adb/modules/mystupidoverlay/system/overlay/treble-overlay-sony-pdx213.apk
XQ-BT52:/ # ls /system
addon.d app build.prop fonts lib media phh product usr xbin
apex bin etc framework lib64 ph priv-app system_ext vendor
XQ-BT52:/ #
[Treble-Enabled Device Guides, News, & Discussion] pepijndevos:
Heyyyy!!! You just need to put it in /system/vendor/overlay apparently
[Treble-Enabled Device Guides, News, & Discussion] quan3c10:
I got this error when run build script. I have run test script and fix all error. Could anyone help me to solve this issue?