yashsingh1/xdaforums huggingface dataset:
[Sony Xperia XZ1 Compact Questions & Answers] seven hole:
Hello I've been happily using L.O. S 7.1 for three month on my XZ1C . But It's been a few weeks that the screen turns off to black when dialling a call, before I put the phone to my ear. It doesn't lit back unless I make a long press on the screen and activate the speaker, or the keyboard icon so that the screen stays accessible while phoning. It looks like a proximity sensor bug.

I've made some tests with "Sensor Readouts app" , and the proximity sensor seems to react normally.. So I've tried to use another Dialer app, or to reinstall the Stock Phone dialer app because it's a very uncomfortable issue. BUt no success so far... Is there a way to reinitalize the Proximity sensor and/ or the Telephone app on LOS 17 /1 ?

Thanks for any hints.
[Android Q&A, Help & Troubleshooting] codenumb:
(Im not sure this is the right place to ask this question, let me know if more relevant thread is available.)

Im an embedded software engineer. currently im working on a qualcomm iot device running on an android kernel. WIFI and GSM are used for the communication to the server. So im using wpa supplicant to control wifi and qmi protocol based utility for gsm connectivity. But the problem is wpa supplicant is very inefficient for my purpose and the provided QMI protocol based utility for gsm is very buggy. I am looking for a more flexible C/C++library or utility to control the interfaces. It should have the ability to give notifications for the connection, disconnection, auth error, bad range etc..any idea or suggestions are highly appreciated
[ZTE nubia Red Magic Questions & Answers] gseinstein:
I tried to install mokee os in my nubia red magic nx609j

but while flashing twrp recovery it always showed an error

target didn't report max-download-size

So when I searched online someone mentioned to perform

fastboot erase recovery

After I did that My phone is stuck at the red magic logo screen

when i reboot to recovery mode it shows Your device is corrupt. It can't be trusted and may not work properly

mine is a chinese version

Someone please help me ?????
[ZTE nubia Red Magic Questions & Answers] abbilaash:
Try stock rom...

Using fastboot commands
[ZTE nubia Red Magic Questions & Answers] CrisatanFerrer:
Did you find any solution?

Did you find any solution?
[ZTE nubia Red Magic Questions & Answers] WizBennyBenn:
FIrst of all the op did some dumb stuff,you should not erase the recovery unless you will flash it again right away.

If you did not erase the bootloader then you can flash it from it,if not then try contacting nubia asking for the recovery tool,it is not hard to fix this problem but if you do not know what/how to,then simply ask nubia for help and wait.
[Sony Xperia 1 Questions & Answers] madshark2009:
hello guys, I love using the gesture navigation but when I watch netflix or play games horizontally, I still see a long black bar across the bottom of the screen and I seriously wish I can get rid of it! its so annoying cuz its bad enough the screen is narrow enough with this bar it makes the screen look sooo tall and narrow like an alien and it lowers resolution of the game... can any one suggest anything?
[Sony Xperia 1 Questions & Answers] TrustAugustus:
I use a third party gesture app and use the command to hide mine.

For example:

adb shell wm overscan 0,0,0,-130

The last number is what you want to change.

To return to normal type without quotations: "adb shell wm overscan 0,0,0,0"

Not a perfect solution as it won't work with the stock gestures.
[Sony Xperia 1 Questions & Answers] madshark2009:
what is the app? do I need to be rooted to install it?
[Upgrading, Modifying and Unlocking] volk17:
I need to increase a program memory. For some reasons I cannot modify my PagePool as the my ETEN x500 is CID locked :( I removed all unnecessary from the Sartup folder.

Someone suggested to switch off Camera, WIFI and bluetooth. I gues the some registery values have to be modified.

But which of them? Or probably anything else?

:mad:
[Android Q&A, Help & Troubleshooting] BADtoBONE:
Using a Q rom on my Sammy note 9 (exynos; with august security update).

On Q, android system notification is limited to 24 per app (on P it was 49).

Notifications beyond 24 are not showing in notification panel.

Anyone knows how to change it to 49 or even higher? What files / code should be modified and how? the 24 limit is unusable...:eek:

Thanks :fingers-crossed:
[Android Q&A, Help & Troubleshooting] BADtoBONE:
:confused::confused::confused:
[Android Q&A, Help & Troubleshooting] Deleted member 1890170:
[MENTION=4718526]BADtoBONE[/MENTION]

The notification limit per app is hardcoded: MAX_PACKAGE_COUNT. You can observe this in the NotificationManagerService.java source code what is part of package com.android.server.notification.
[Android Q&A, Help & Troubleshooting] BADtoBONE:
Thanks!

I can't find the package. Can you verify the location?

Can I change it manually via root explorer to 75 for example? any effects of the phone or OS performance?
[Android Q&A, Help & Troubleshooting] BADtoBONE:
Anyone know a tutorial to allow more than 24 notifications?
[Android Q&A, Help & Troubleshooting] BADtoBONE:
Still stuck with this issue.

Saw this online -
[Android Q&A, Help & Troubleshooting] ajolly:
Hah that was me.

I diddn't find a great way to do it in a way that works generally, but you can use - https://xdaforums.com/t/module-smali-patcher-7-3.3680053/ to make it easier to patch the file yourself. You'd want to patch the enqueueToast function.
[Android Q&A, Help & Troubleshooting] _csd:
I'm having the same problem too, I migrated from iOS to Android in April, and it is incredibly frustrating that notifications from an app are dropped after they reach 50, in iOS there is no limit. I've tried extracting "services.jar" to locate "NotificationManagerService.java" to patch the "MAX_PACKAGE_NOTIFICATIONS" count to higher than 50, but it wouldn't work. I had great difficulty even extracting the .jar to begin with. I tried extracting it to .java, but it kept coming up with errors, so it wouldn't extract it fully. I had to resort to extracting it to the .smali format (using apktool, baksmali etc), which extracted it fully, at least to the best of my knowledge, but it is very hard to read. I was able to locate "MAX_PACKAGE_NOTIFICATIONS", which reported a count of "0x32" (50 in hexadecimal), so I changed it to "0x3e7" (999 in hexadecimal), but it didn't work, it still stopped at 50.

@ajolly

I noticed on Twitter that you seemed to be able to successfully remove the limit:

twitter.com/jolly/status/1201266208944705536

May I ask, how did you end up doing this? You mention using "smalipatcher", but when I run it, it doesn't mention "enqueueToast" anywhere, unless I'm missing a step. Forgive my naiveness, I am still rather new to the whole "Android tinkering" scene.

Any help would be greatly appreciated, as this is driving me up the wall.

Thanks
[Android Q&A, Help & Troubleshooting] provista:
Following.

I run MIUI 12.6 and the limit is set to 9 or 10. I would love to find a way to change the limit as well.

Thanks!
[Android Q&A, Help & Troubleshooting] ajolly:
Smalipatcher will pull the services.jar file for you, then you can decompile it.

The code is something like:

// Limit the number of toasts that any given package except the android

// package can enqueue. Prevents DOS attacks and deals with leaks.

if (!"android".equals(pkg)) {

int count = 0;

final int N = mToastQueue.size();

for (int i=0; i<N; i++) {

final ToastRecord r = mToastQueue.get(i);

if (r.pkg.equals(pkg)) {

count++;

if (count >= MAX_PACKAGE_NOTIFICATIONS) {

Slog.e(TAG, "Package has already posted " + count

+ " toasts. Not showing more. Package=" + pkg);

return;

}

}

}

Warning, at least for me when I put it too high binder would start crashing, I set it to 99.
[Android Q&A, Help & Troubleshooting] ajolly:
For anyone else finding this - the easier way to bypass the limit these days is hooking via xprivacylua or something similar, see here for my script. https://xdaforums.com/t/discussion-...android-privacy-manager.4533999/post-89293692
[Xiaomi Redmi 3 Questions & Answers] InowHateXiaomi:
Mi Unlock status stuck, keeps saying "Connect to network and try again" while net is

I'm trying to activate Mi unlock status on my old redmi3 so I can unlock the bootloader using their tool, but every time I press the button it 1st says "Preparing to add account and device.." then near instantly " Connect to network and try again" (and if I try with no net then the 1st message doesn't show). The phone is tied to the Mi account, I know for sure since now every time I reinstall the ROMs it tells me is tied and I need to enter the Mi account password, its only Mi unlock status the doesn't and keeps the Mi unlocker from unlocking my bootloader.

Backstory:

So I have a redmi3 (ido) with android 5.1.1 bought in 2016, finally decided to try and update my phone from the ****ty vendor ROM (MIUI 6.9...smt) that had the updater bugged (the app couldn't also connect to net to check) and Mi unlock status missing, flashed MIUI 9.6.2.0 from the official site using their tool which fixed the updater (but now I can't downgrade) and now has Mi unlock but as I said it doesn't work.

What I tried so far:

-Log off Mi account and log in through the Mi unlock status (also tried using phone number as id)

-Change location to China or Indonesia then try again (tried both)

-Make sure the phone is the only device tied to the Mi account

-Enable "Find device" then use it to locate the phone (it was very accurate)

-try while having only Wi-fi or while having only mobile data on (tried both)

Here is some more info of the phone:

MIUI version: MIUI Global | Stable 9.6.2.0(LAIMIFD) (can also flash 9.6.1.0)

Android version: 5.1.1 LMY47V

Android security patch level: 2017-01-01

Baseband version: FAAANUZM-1.56482.1.63385.1_V013

Kernel version: 3.10.49.perf-g13b30f1

It also lets me enter in fastboot and EDL mode.
[Xiaomi Redmi 3 Questions & Answers] Aalard_:
I had the same problem recently, after many tries I succeeded unlock bootloader.

Step by step guide:

1. Download xiaomitool and install.

2. Reboot phone to recovery.

3. In recovery menu choose Mi assistant, and connect to PC through USB.

4. Run xiaomitool and choose "My device is bricked and i want to unbrick it" and continue.

5. Xiaomitool will download chinese rom, this may take a while.

6. When its finish, in xiaomitool you can see message to set usb debugging, NOW you must power off phone, and enter to recovery again and select Mi assistant, like in step 2, and connect phone to pc throught USB, if you dont see this message xiaomitool should run next step.

7. Now Xiaomitool install chines rom, after reboot log into you account, unblock developer mode and click on mi unlock status when your wi fi is disable and mobile data is on.

9. Now unlock phone with mi Unlock.

10. AND DONE!!!!!
[Xiaomi Redmi 3 Questions & Answers] InowHateXiaomi:
Buddy I'm the one you talked with on the Mi community forum so you already helped me : D

Only reason these are still up is that I couldn't find a delete button here : )) . Appreciate trying to help others in our similar situation tho
[Xiaomi Redmi 3 Questions & Answers] RadoslavGatev:
I am facing the same issue. The version of the ROM is exactly the same as the InowHateXiaomi's.

However, the method above doesn't seem to work. The XiaoMiTool V2 doesn't download the Chinese ROM.

I tried whatnot but cannot add the device to my account so that I can unlock it.
[Xiaomi Redmi 3 Questions & Answers] Soul_Gamerz:
have tried this method..it tries to download the ROM but failed. dunno what wrong with my devices anymore.
[Xiaomi Redmi 3 Questions & Answers] wenyendev:
Have you tried to

- install adb and fastboot;

- enter fastboot mode and fastboot oem unlock to unlock bootloader first?
[Xiaomi Redmi 3 Questions & Answers] kamerek:
it is not working, toker error or something...
[Xiaomi Redmi 3 Questions & Answers] kamerek:
I have latest 12 miui poco f1 with all updates done ok , CE (for EU) and tried many thing from the net - but nothing is working - this error (token error in fastbook when want to fastoot oem unlock) and unlock MI status - connect.. err try again..... cant unlock this phone,

even did accident the phone reset to factory defaults by fastboot lock and then window appeared to enter xiaomi account pass , thx god i had backups in google etc.

anybody help???
[Xiaomi Redmi 3 Questions & Answers] truelies1:
Same here, where to report this problem?
[Xiaomi Redmi 3 Questions & Answers] kamerek:
change Your region to asia close to china or china, and then register once again using vpn set as You were in asia - then it should be ok, no waiting for old phones, I noticed they are blocking central EU or even west but asia is treated differently
[Xiaomi Redmi 3 Questions & Answers] beltza001:
i use this method but still dont solve anything, its say missing coockies or anything
[Xiaomi Redmi 3 Questions & Answers] Valwex:
That's what I did, but it still doesn't work on my Redmi 3 (Android 5)...
[Huawei P40 Pro Guides, News, & Discussion] lazerbourne:
Due to my company's policy, we need to register the mobile phones using MS Intune Company Portal and can use only Outlook app for the official mails and calendar. Both these apps can be downloaded via Aurora Store but the registration of the device fails due to the Google Play Protect check during the enrollment of the device. The 2nd step during enrollment fails with an error message regarding the network connection or something similar. After struggling with this for almost a week, I finally found some workarounds. Hope this is useful for someone.

For Mails:

I use Blue Mail for all my other mails and was using this with my official mails (Office 365) as well, till about a year ago when the company admins introduced a strict check of Outlook app with Intune Portal as the only way to receive the official mails. Since then I had been using both the MS apps for my official mails in my previous Samsung phone. But this stopped working after I moved over to Huawei due to the GPP check mentioned above. Here's the workaround for it:

This will work only if you have web access to your official emails i.e. you are able to use the a broswer to check your official emails.

In Blue Mail, add new account (instead of using Office 365, use Exchange).

Enter full email address and password.

Check Automatic.

Uncheck ActiveSync. Click Next.

For the Exchange Server setting, use the exchange server URL being used by your company. Typically, it is the 1st 3 in the url of your web access to the outlook email. In a lot of cases, this would be outlook.office365.com

Security - SSL/TLS.

If you see a dropdown Access Type, select EWS (Exchange Web Services). Do not select Automatic or ActiveSync.

That should work. The office365 outlook emails should be visible in Blue Mail. The calendar is not synced with this workaround. The needs a different route in.

For Calendar:

I use Google Calendar for all my other activities and so I wanted to add my outlook entries to GCal to have them all in one place.

The easiest way is to publish your calendar from Outlook Office 365 and import it as a URL in GCal.

Steps:

Go to the web view of your outlook.

Click on the Settings icon.

Click "View All Outlook Settings".

Go to Calendars->Shared Calendars.

Click on the ICS Link and click "Copy Link".

This can now be imported in the google calendar as a separate new calendar but the issue is that any updates to your outlook calendar are synced 1-2 times a day only. If that is fine go ahead and import it. I wanted the sync to happen every 5-10 min.

For this, you can use the GAS-ICS-Sync script from GitHub (https://github.com/derekantrican/GAS-ICS-Sync)

Follow the installation and run instructions on the site. You can configure how often the calendar should sync etc in the code.gs file.

Hope this helps someone :)
[Huawei P40 Pro Guides, News, & Discussion] avivasaf:
I have outlook working great with google account on it, i didnt had any problem to sign in to google account via outlook
[Huawei P40 Pro Guides, News, & Discussion] lazerbourne:
Yes. Outlook works without issues for google, yahoo, hotmail, live etc. The post was for people trying to configure their official office365 outlook emails e.g. abc@xyxcompany.com
[Huawei P40 Pro Guides, News, & Discussion] Ouatedephoque:
Hi all,

I was using my Huawei P40 lite with my company's Intune app and everything was working perfectly fine.

A few days ago, it seems like Intune underwent a major update, and it now requires Google Mobile Services and Google Play Store to download the apps and securize corporate data. It would also now duplicate all apps on your phone's to create a pro environment separated from the normal private environment. Hence now all apps used for pro and private purpose should be duplicated (pro securized outlook app VS private outlook for private mails / one securized google Play store to download a limited set of certified pro apps VS the complete Google play store for private use.

Since my company is forcing to update to the new Intune, looks like the enrollment will fail in Intune on P40 phone with GMS ban. I get the process started, but it will freeze after a few steps, probably when trying setup the Pro environment and installing the Pro Google Play Store on the phone...

- Do you know if this new version of Intune with Google Play Store to securize the company's apps and data is standard or only tailored for my company ?

- If standard, is there any workaround for phones without GMS, or is Huawei/Microsoft working on an alternative for Huawei's P40s ?

I have not found anything so far and I just dont feel like changing to another phone.

Thanks very much for your time.

Jul
[Huawei P40 Pro Guides, News, & Discussion] lazerbourne:
I was exactly in your situation and stuck at the same place as you mention, that is why I posted the above workaround. You don't need Intune Portal or Outlook if you follow the steps in my post. The only precondtion being that you have access to your web outlook mails through a browser. For now, this is what is working for me. I'm hoping MS and Huawei will work out a permanent solution soon, but haven't heard anything specific regarding this.
[Huawei P40 Pro Guides, News, & Discussion] xchatter:
My wife's company also uses Intune. She can't complete the setup. :( Somewhere in the last step, the setup freezes on some "getting company resources" or something. She submitted a ticket to their IT department but for now there is zero activity over there. I guess this requirement for the GMS is breaking everything. :/ I will try your suggestion, I hope it works. Thanks for the hints.
[Huawei P40 Pro Guides, News, & Discussion] Ouatedephoque:
Thanks Lazerbourne.

I havent tried yet. But i cannot access my company's email login to outlook.com from a non-corporate PC. It says my company does not allow.

I learned a bit more about this issue. Turns out it is not only about having Google Mobile Services on your phone or not. Actually Intune now provides the option to the admins to to block Android enrollments by device manufacturer. My company is British, they apprently blocked Huawei devices in their settings... you got the story... so dumb... Not sure something can be done until politics get back to normal.
[Huawei P40 Pro Guides, News, & Discussion] lazerbourne:
Most welcome. Hope it worked for your wife. Mine is going good 2 weeks into it.
[Huawei P40 Pro Guides, News, & Discussion] lazerbourne:
Exactly!! Mine too had blocked access to Huawei devices in the enrollments that is what was preventing the access. The web access though works from any OS and browser so the above workaround should work for you (presuming the admins have allowed the access to outlook web mail. This too can be blocked in the config settings of the mail server but most companies allow it since it doesn't store anything locally on the phones). Give it a go and see if it works for you.
[Huawei P40 Pro Guides, News, & Discussion] xchatter:
Hi again,

To report back - I was able to set the BlueMail emails using your method. The only thing I was having as a problem was that there were no notifications on new email. I had to switch from "Push" to "fetch on some interval" and the phone started getting the notifications. I excluded the app from all battery things but the "Push" method didn't work. :/ If you have some hints it would be great - I am not sure does this fetch method on 3 mins impact battery so much? If not then let it be. :D

I haven't still tried the solution for the calendar but I have to try it soon.

P.S.

My wife's P40 Pro is HMS+microg setup.

Thanks again for your insights.
[Huawei P40 Pro Guides, News, & Discussion] lazerbourne:
Fantastic!! :good:

I would suggest to leave the Fetch on for a day and see how the battery is impacted. The Fetch normally wakes the app in the background and sends a fetch request to the mail server. Theoretically, it shouldn't be a big battery drain.

For my phone, the push notifications are working fine since I'm using the Freeze GSF method (with GMS) to get the notifications working for all the apps. My config HMS+GMS+Frozen GSF.

I've read about conflict issues if you have microG and GMS together on the same phone, so this method may not work for you.

If in the future, you decide to reset the phone, then give it (HMS+GMS+Frozen GSF) a try. That way, all the apps are updated via Aurora Store+Huawei Store, all the notifications and location services for all the apps are working fine. All Huawei updates and Google Play Services updates too work.
[Huawei P40 Pro Guides, News, & Discussion] schtirtliz:
Tried as per this method. Via EWS the error is "Cannot connect to the server". With ActiveSync it works but downloads just one message saying I must enroll via Portal. .. :(

I have installed Intune Portal. For that, I needed to downgrade my firmware to .131, install googlefier as per the instructions, upgrade the firmware once again to .157, periodically suppressing series of annoying notifications "Your device is not certified for Play Protect, Google services will not run" (despite I have registered my GWS Device ID with this account and disabled all notifications from Play market already!).

Now Google Services work moreless OK (Play Market works, so do all apps, but the annoying messages keep popping up).

But then Intune only able to create work profile, when going to "Activate your profile" step it generates a lot of "Device not certified for Play Protect" and then finally says "Could not connect to the server, network may be down" etc. No certificate is created on server, nothing. After that, Intune disables itself.

UPDATE: Here Microsoft writes something on the matter. I understand the problem is driven by some specific corporate policies configured in a way to rely on GMS (whilst it can potentially be also delivered without them). Will check with admins if this can be amended somehow.

https://docs.microsoft.com/en-us/mem/intune/apps/manage-without-gms
[Huawei P40 Pro Guides, News, & Discussion] lazerbourne:
[MENTION=11206781]schtirtliz[/MENTION] - That is correct. Its due to the reliance on GMS which in some ways is mitigated by using the sideloaded GMS (using Googlify etc.). The main problem is with the Google Play Protect for which there is no workaround yet. Updating the policies on the main server is an option, another could be to ask the admins to enable the web access (EWS). EWS will sooner or later be made obsolete so this workaround may not last too long. Hopefully by then MS would have figured out a way :)
[Huawei P40 Pro Guides, News, & Discussion] schtirlitz:
Admins won't change the policy :( I am receiving some reassuring comments on other forums, from people who managed to get it working with some instructions like this

хттпс://youtu.be/HBnst3IgFlA

But nothing worked for me yet...