yashsingh1/xdaforums huggingface dataset:
[Android Q&A, Help & Troubleshooting] mello73:
All notifications in status bar area and disabled Hisense AppKiller.

Hi, i will post this here because without root all that follow would not have been achieved.

I have created an XPosed/LSPosed module that do the following:

com.hmct.recents

When you close, by X or swipe an application in recents, it is not killed but, as standard Android do, is simply removed from recents and put in background.

com.android.networkcontrol

Disabled firewall so that you can use any other root one as AFWall+ without any nasty conflict

com.android.powermanager

Enabled AutoSwitch in Low Power and Time Schedule.

You can access them using any Activity Launcher/Manager, look for Battery:

ui.AutoSwitchByTime

ui.AutoSwitchLowPower

without my change they are always disabled even if you turn them on!

com.android.systemui

When you press X circle button in recents, instead of killing ALL not white listed application, even the one running in backgronud, it simply remove them from recents like first change.

Be careful that even the white listed/locked one will be removed.

Simply relaunch them to bring in foreground.

com.android.systemui

Allow all application icon notification in status bar.

I have kept the Hisense custom one for:

com.android.mms

com.android.email

dialer wirh different icon for phone_missed_call

Icon for notification created by package android or by packages that begin with com.android or com.hcmt will be replaced by 3dots. This have be done because that packages do not have a proper icon for status bar notification and display a nasty black/white box!

Any other application icon will be showed, look at screenshot.

If someone is interested i can post the module or give you the sources to compile it yourself.
[Android Q&A, Help & Troubleshooting] chatgptfun:
It's really fantastic. I suggest you make an apk app and upload it to apkpure etc and keep the app ownership to yourself and add some paid features in future. Hisense eink devices do not show notification icon either on lock screen or notification bar at very top of the screen and I think your app has added that feature
[Android Q&A, Help & Troubleshooting] ferlanero:
Wow! It's simply stunning! Can you share the module if it is not inconvenient? I'd like to try all those fantastic features
[Android Q&A, Help & Troubleshooting] mello73:
Sure, i attach it.

Another thing related to notifications that i discovered looking at the sources is that there are four system config keys:

com_android_contacts_hs_unread => unread/missed phone calls

com_android_mms_hs_unread => unread ssm/mms

com_hs_qq_mini => unread qq message

com_hs_wechat_mini => unread wechat message

that can be used to trigger the display of notification icons in lockscreen.

If you do not live in China and/or do not use wechat and qq app you can use an automation app to set/unset the last two and associate them to two different apps (Ex one for unread mail notification, another one for unread whatsapp/telegram/signal message notification).
[Android Q&A, Help & Troubleshooting] ferlanero:
Thank you very much! It improves a lot A5 usability!

Could you point an example of this kind of app to control battery, please?
[Android Q&A, Help & Troubleshooting] mello73:
I have made some experiment and do not suggest to use it, it's pretty confusing as it do not switch in the predefined modes: normal, saving, and super but in other kind of fixed battery modes.

As example if i make it switch to smart power saving mode, that should be the same as "power saving mode", and go to the "classic" battery setting i should expect to find selected the switch relative to "power saving mode", but this not happen, and the icon "power saving mode" in the pull down notification drawer is not selected either.

But if you wonna try it anyway, here more info:

screenshot are made using Activity Launcher fork https://f-droid.org/en/packages/de.szalkowski.activitylauncher.rustore_fork/

Power Saving mode activity will show you the power modes available and the current one:

Switch by Time and Switch low Power are self explanatory:

(last line Exit power mode when ...is truncated, but should follow saying "power adapter is connected").

To know how power mode are configured you can look at sqlite3 db:

/data/data/com.android.powermanager/databases/powermanager.db

Here the relevant ones:

(Maybe should be better to create a new post relative to improvements to Hisense A5 Pro CC, to avoid going off topic on this one....)
[Android Q&A, Help & Troubleshooting] ferlanero:
Thank you very much for your explanation, it's very clear!

Now I have another question. Your LSPosed disable any firewall, it's recommendable to use any kind of Firewall when installing your LSPosed module?
[Android Q&A, Help & Troubleshooting] mello73:
no i just disabled the one integrated in custom Hisense app "com.android.networkcontrol".

(Looking at sources it seems derived from no longer mantainded "DroidWall" app)

You can disable whole app but than you loss other features as example set limit/warning on data than can be downloaded in a month or day (the options under settings -> more -> traffic monitor).

So i just disabled feature than involve executing "iptables" commands.

This way i can just use any other root firewall.

(You can use other firewall even without my module, but i do not like that two firewalls both iptables based are executed at the same time, there can be conflict, and iptables chains are longer)

I have blocked network access on some Hisense app as contacts, notes, gallery etc...
[Android Q&A, Help & Troubleshooting] diejuse:
@mello73 Does your module work in Hisense A5 (no Pro)?
[Android Q&A, Help & Troubleshooting] mello73:
doubt, code, class names and methods should be the same to let it work.

At the moment, for example, the part that keep Hisense custom icon for dialer, mms and email work only on A5 Pro CC, on non CC version it will show different icons.

This is because i have still not found a way to refer icon by resource name, so i had to hardcode the resource icon id, and it differ between CC and not CC version.

Look inside /system/priv-app/ and /product/priv-app/ for files named like:

Vision_SystemUI.apk and Vision_Recents.apk

If you find them you can upload them somewhere (Vision_SystemUI.apk is over 70MB!) and post a link here.

I will give a look at the sources and will tell you if they can work (custom icon apart).
[Android Q&A, Help & Troubleshooting] mello73:
Updated XPosed module MelloSystemUI to 3.1:

now it get resource id of Hisense custom icons by name, this way it will show the right icons for dialer, mms and email even on A5 Pro (non CC version) and will be independent of firmware version.

(Link to post explaining module features: https://xdaforums.com/t/hisense-a5-pro-cc-how-to-root-unlock-bootloader.4109021/post-89078019)
[Android Q&A, Help & Troubleshooting] ferlanero:
Since I've been using it on the A5, the whole system works as it should. Thank you for this great contribution!
[Android Q&A, Help & Troubleshooting] ferlanero:
I'm wondering if it would be possible to change the lock screen unlock behavior with this LSPosed module. Switch from swipe up in lockscreen to double tap to unlock to be more consistent with the double tap to lock that already exists from the notification bar
[Android Q&A, Help & Troubleshooting] mello73:
Dunno if this is possible, as far as i know, the double tap in lockscreen is used to cycle between pinned images (you switch from lockscreen image to pinned by double pressing e-ink button, and to work you must have a pinned image).
[Android Q&A, Help & Troubleshooting] Admiral AnimE:
Hello, good people. I have stock rom A7CC with version N1771.6.11.06.00. I unlocked the bootloader and rooted it. Now it wants to update to N1771.6.12.00.00. Is it possible, or it will break something?
[Android Q&A, Help & Troubleshooting] ferlanero:
From my experience, you will lose root access and have to go through the whole process again
[Android Q&A, Help & Troubleshooting] Admiral AnimE:
Uh. Annoying. Do you know if every version can be unlocked and rooted with the same method?
[Android Q&A, Help & Troubleshooting] ferlanero:
Yes, no problem following the same steps
[Android Q&A, Help & Troubleshooting] frankbaba:
hi,,,why i check your link for boot.img ,it not work ? where the link now ?i want the a5 pro and a7 ,,
[Android Q&A, Help & Troubleshooting] jeff_Eink:
Hi everyone,

Could someone put the link for the boot images back please ? It seems dead now
[Android Q&A, Help & Troubleshooting] ferlanero:
For the A5 Pro CC?
[Android Q&A, Help & Troubleshooting] Admiral AnimE:
Umm.. I did a stupid thing. I updated Magisk. Now my A7CC is stuck on the loading screen. I can't turn it off. I can only restart it with Power+VolumeUP, but it does the same thing. Can anyone tell me how to fix it? Maybe how to hard reset or enter download mode? I do not care about the data, as long as it works.
[Android Q&A, Help & Troubleshooting] ferlanero:
Here you have all what you need to unbrick phone:

https://xdaforums.com/t/hisense-a5-pro-cc-how-to-root-unlock-bootloader.4109021/post-88968819

https://github.com/TomKing062/CVE-2022-38694_unlock_bootloader/issues/19

https://github.com/TomKing062/CVE-2022-38694_unlock_bootloader/issues/18
[Android Q&A, Help & Troubleshooting] Admiral AnimE:
Thank you!! I have a phone again. Now Magisk wants to update again. It says that the application is 26.3, but is installed 26.1. I cannot install application 26.1, because it is older. Is it safe to uninstall and install the old application? Or I should just let it be like this, nevermind the update it wants?
[Android Q&A, Help & Troubleshooting] ferlanero:
Upgrading Magisk is really easy and without trouble. Just follow these steps:

1. Get boot.img from phone:

adb shell

su

dd if=/dev/block/by-name/boot of=/sdcard/boot.img

2. Patch boot.img with latest Magisk app -> Select and patch a file: boot.img. You'll get: magisk_patched-*.img

3. Copy magisk_patched-*.img to your PC (I use Linux)

4. Get AIK from: https://forum.xda-developers.com/t/...kernel-ramdisk-win-android-linux-mac.2073775/

5. Use AIK to decompress the IMG generated by Magisk (magisk_patched-*.img) and get image-new.img file:

./unpackimg.sh magisk_patched-*.img

./repackimg.sh

You'll get image-new.img file

6. Download avbtool (https://github.com/zhuzhizhan/avbtool#avbtool)

7. Download RSA4096_VBMETA.pem (https://github.com/unisoc-android/u...io/raw/master/subut/assets/rsa4096_vbmeta.pem) and keep it in the Avbtool folder

8. Copy image-new.img file from AIK into Avbtool folder and sign it:

python2 linux-avbtool add_hash_footer --image image-new.img --partition_name boot --partition_size 36700160 --key rsa4096_vbmeta.pem --algorithm SHA256_RSA4096 --salt 5F55215FD2302D021F850B55912ED48D176784678692DC012E054B1ECD0BE025

9. After signing image-new.img with avbtool, just save it to /sdcard in phone and:

adb shell

su

dd if=/sdcard/image-new.img of=/dev/block/by-name/boot

Reboot. Magisk is now updated
[Android Q&A, Help & Troubleshooting] Training Dummy:
I finally got Google Play installed on my A5 Pro CC. Let's freaking go. The last few commands I needed are below, which come after installing the patched image-new.img file.

adb push image-new.img /sdcard/Download

adb push [MAGISK]LiteGapps_arm64_10.0_v2.9_official.zip /sdcard/Download

Open Magisk on the phone (downloaded earlier with adb install)

Click Update on the Magisk tab and select Select and Patch a File

Choose the image-new.img file we copied from the computer, then click Let's Go

The Modules tab, which was previously grayed out for me, should now be selectable

Click Modules, then Install from storage

Select the [MAGISK]LiteGapps_arm64_10.0_v2.9_official.zip file we downloaded earlier

Reboot when prompted

And that's all, folks! Should be smooth sailing from there. Hope this helps!
[Android Q&A, Help & Troubleshooting] shenmuz:
Thanks to all! I successfully root my A5Pro CC & install Google Services and Google Play!

About mello73 notifications bypass, I use Automate App and when notification posted from specific app, I run Superuser shell command:

settings put system com_hs_qq_mini 1 -> shows qq message notification

settings put system com_hs_qq_mini 0 -> hide qq message notification

Maybe this can help someone else.
[Android Q&A, Help & Troubleshooting] mello73:
I am working on a way to directly add the icon of the application that posted the notification (always using my custom xposed module), i case of success will notify further .....

(i have already made some progress)
[Android Q&A, Help & Troubleshooting] mello73:
at the moment it get the application list from a monitored new system key "my_app_notify" (a string of application names semicolon separated).

Whenever the key value change it rebuild the notification icons.

I can display up to 6 icons this way.

To create and change the key value when a notification arrive i will use AutomagicPremiun:

Base Concepts

Will inform further on the progress....
[Android Q&A, Help & Troubleshooting] mello73:
Here the final result:

for calls and mms i have kept the original icons, i have just added the number of missed call/mms.

The AutomagicPremiun script skip any notification from apps name that begin with "com.android" or "com.hmct" or named "android", this should avoid showing notifications of system app.

Anyway it need to be customized to intercept notifications only from desired apps.

(during the experiment capturing all apps notifications, there have been problems for app like Aurora Store that, during download, continuously send notification for download progress).

During the following days i will begin to test it with real usage.

Then if someone is interested i can post/attach the updated xposed module and the AutomagicPremiun script.
[Android Q&A, Help & Troubleshooting] shenmuz:
Hello mello73,

I'm really interested by your module and AutomagicPremium script. Now I only use script in order to link other app notifications to wechat and qq notifications on lockscreen. Getting real icons sounds good.

If you can share your work I really appreciate.

Thanks
[Android Q&A, Help & Troubleshooting] mello73:
Compared to the last version i posted on XDA, the Xposed module include the following changes (work on standard and color A5 Pro):

Memo (com.hmct.hsmemo): always open in cardView mode.

VisionLauncher (com.hmct.vision): for Activity APPWIDGET_CONFIGURE use startAppWidgetConfigureActivityForResult instead or normal start activity to avoid AccessDenied error if configure activity is not exported.

This solve error when adding some widget to VisionLauncher that instead work on the EInkLauncher one (Ex: https://f-droid.org/en/packages/de.beowulf.wetter/).

SystemUI (com.android.systemui): monitor system settings key "my_app_notify" for a list of apps name (semicolon separated).

For every app in that list a relative app icon, up to 6 in total, will be displayed on lockScreen using Android TextView "space" reserved by wechat and qq notification (if interested i can give more details on internals).

For missed call and mms, the number of missed calls/sms is displayed.

I attach Automagic Premimium script to populate "my_app_notify" key.

You should modify the trigger settings to change the apps to intercept (currently:

com.azure.authenticator,com.fsck.k9,com.microsoft.office.outlook,com.Slack,com.microsoft.teams,org.telegram.messenger,com.whatsapp).

Another change that you may want to do is in the script section.

I have added condition to put the notifications from telegram and k9-mail in the first position to avoid missing them if there are more than six; you can replace them with your preferred ones.
[Android Q&A, Help & Troubleshooting] Konno Ryo:
Hey, I think I borked my A7CC :-( . I compiled the binaries from github and used them with the Zip for my device and ran the first command in the manual_command_fdl1.txt and it gave an error and did not output any file. I tried to hold power and disconnect the battery but I see no signs of life other then my pc does show that it is plugged in. BTW I am using linux.

user@MXlinux:~/hisense_a7cc
$ ./spd_dump exec_addr 0x3f28 fdl fdl1-dl.bin 0x3f28 fdl uboot-mod.bin 0x9efffe00 exec read_part boot 0 35M boot.img reset
current exec_addr is 0x3f28
Waiting for connection (30s)
libusb_control_transfer ok
CHECK_BAUD bootrom
BSL_REP_VER: "SPRD3\0"
CMD_CONNECT bootrom
timeout reached
user@MXlinux:~/hisense_a7cc
$ ./spd_dump exec_addr 0x3f28 fdl fdl1-dl.bin 0x3f28 fdl uboot-mod.bin 0x9efffe00 exec read_part boot 0 35M boot.img reset
current exec_addr is 0x3f28
Waiting for connection (30s)
libusb_control_transfer failed : LIBUSB_ERROR_TIMEOUT
$ sudo ./spd_dump exec_addr 0x3f28 fdl fdl1-dl.bin 0x3f28 fdl uboot-mod.bin 0x9efffe00 exec read_part boot 0 35M boot.img reset
[sudo] password for user:
current exec_addr is 0x3f28
Waiting for connection (30s)
libusb_control_transfer failed : LIBUSB_ERROR_IO
user@MXlinux:~/hisense_a7cc
$ adb reboot
error: no devices/emulators found
user@MXlinux:~/hisense_a7cc
$ ./spd_dump --wait 5000 --verbose 1 exec_addr 0x3f28 fdl fdl1-dl.bin 0x3f28 fdl uboot-mod.bin 0x9efffe00 exec read_part boot 0 35M boot.img reset
current exec_addr is 0x3f28
Waiting for connection (5000s)
libusb_open_device failed
[Android Q&A, Help & Troubleshooting] fl0w:
It shows that you are in Bootrom mode, you can flash your stock ROM using SP Flash Tool from there.
[Android Q&A, Help & Troubleshooting] Konno Ryo:
Where can I get the stock rom?
[Android Q&A, Help & Troubleshooting] fl0w:
What's your tablets exact model?
[Android Q&A, Help & Troubleshooting] fl0w:
@Konno Ryo before you answer, your output also shows your device is A7CC, which uses a Unisoc chip. Bootrom normally belongs to MediaTek processors but you can still check if your device is recognized by SPFT.
[Android Q&A, Help & Troubleshooting] Konno Ryo:
It is a HNR320T with a Unisoc Tiger T7510 CPU. And from what I can see it does not show up in SPFT, not that I really know what I am looking for.
[Android Q&A, Help & Troubleshooting] Konno Ryo:
Anyone have a boot img I could try flashing my A7CC to see if that fixes it? I can't continue the rooting since I don't have the dump from SPD_dump. I saw some people sharing some before but the links are dead now.
[Android Q&A, Help & Troubleshooting] pavvmagic:
Where does the "my_app_notify" system key come from? Automagic Premium says that there is no such key.
[Android Q&A, Help & Troubleshooting] mello73:
Automagic Premium will create it, but you need to install Workarounds for Automagic

Workarounds for Automagic - Apps on Google Play

Little helper app required to modify some settings with Automagic on Android 6+.

play.google.com

you can manage system settings keys using

settings command from shell (need to be root)

Ex.

settings list system

or using app setedit:

SetEdit - Settings Database Editor | F-Droid - Free and Open Source Android App Repository

Open source version of the 4A Settings Database Editor

f-droid.org
[Android Q&A, Help & Troubleshooting] RollingMyDice:
hello, I got into the problem there.

same system version as the previous post, rooted, and wanted to update to the newest fw.

after downloaded the update files in the system menu, I clicked the update button.

then the system reboots, and a progress bar is advancing till the half of it, and says updated failed, long press the power button to restart.

soon it restarts without any key pressed

since it maybe the last update, so i wonder how to install it

could you please give me any hints

thanks
[Android Q&A, Help & Troubleshooting] mello73:
I reply to myself just to say that i found that for some app, like whatsapp, if you directly open application from notification and read the message in the app, without "manually" dismissing the notification from notification drawer , notification disappear but for some unknown reason value do not disappear from my_app_notify key.

The final result is that when you look the screen, icon is still present.

To fix it just copy one of the previous flow, and change trigger to "Display State: Off".

This way when screen lock it re-read the real notifications still present and update the my_app_notify key.
[Android Q&A, Help & Troubleshooting] lilletto9546:
Hi guys!

I'd love to buy an Hisense A5 PRO CC, and I know that it could come in chinese ROM or Google ROM.

I'd love to ask, if the google ROM, will keep the Hisense E-ink Refresh Rate Panel Option, and also if the apps which requiere google play services to work (such as Banking, Whatsapp, etc), will work without any problems with the "Google ROM" or if we need to take further steps in order to make it work.

Also, does the unlocking bootloader, rooting method, will let we lose the Hisense E-ink Refresh Rate Panel Option?
[Android Q&A, Help & Troubleshooting] ferlanero:
With rooting you won't lose any previous phone feature
[Android Q&A, Help & Troubleshooting] Eduhc12345:
Hi everyone,

Could someone put the link for the boot images back please? It seems dead now
[Android Q&A, Help & Troubleshooting] Konno Ryo:
Ditto. Or does anyone know how to EDL to factory defaults. My phone seems to be bricked.
[Android Q&A, Help & Troubleshooting] b4betterment:
Yes, the link is dead. I also need the same. Can someone add the file back please? Thank you.
[Android Q&A, Help & Troubleshooting] lillo9546:
Hi there!

I bought an Hisense A5 PRO CC.

Is there a way to check if there is any pre-installed malware or spy thing installed?
[Android Q&A, Help & Troubleshooting] SkingTom:
hi reader added (i recompiled bsp with manually define LPDDR3/4/4X, and the 4X fdl1 booted on hi reader)
[Android Q&A, Help & Troubleshooting] Konno Ryo:
I found out that there is a way to extract the boot IMG from the updates;

[https://fans-hisense-com.translate....uto&_x_tr_tl=en&_x_tr_hl=en-US&_x_tr_pto=wapp]

I am going to see if it will work to EDL flash when I can like in [https://xdaforums.com/t/hisense-a5-info-thread.4101945/#post-82794951]

If I can get it to work I will share the file.
[Android Q&A, Help & Troubleshooting] Ranomez:
Hello! My Q5 seems to be a brick after trying using the bat file can't exit bootloader, what happened is that while working I saw the answer to "chsize spl.bin" was "The file is not sprd trusted firmware".

What can I do now? I'm guessing I'd need to get the spl from someone else to actually get my tablet working again?
[Android Q&A, Help & Troubleshooting] Sosep:
Hi. First of all, I have to say that I'm quite a noob in rooting a phone in this way, so sorry for the inconvenience and thanks for your time. In addition, if I should post more information, please tell me.

I have a Hisense A5 Pro CC version L1732.6.09.02.ML.

I have followed the Windows instructions from TomKing062's repository.

I installed the SPD Driver, entered the phone in fastboot mode (if I'm not mistaken, it's the same as download mode), and launched the "unlock" script. At this point, I see the message "find port failed," so I cannot continue. I have tried to relaunch the script, and it does not change the result.

What did I do wrong.

Thanks for the help
[Android Q&A, Help & Troubleshooting] tydaikho:
My A7 cc bricked, i just booted it to download mode (adb reboot autodloader), then it stucked at that mode forever, hold down power button or keys combine (Pw + Vol+, Pw + Vol+ + Vol-, Pw + Eink key + Vol+), nothing specially, all of the result is device back to ghost mode , iwhale or sprd device on windows. Any ideals, pls. Thank you.
[Android Q&A, Help & Troubleshooting] blau77:
Yeah, we have this, but I am not sure what to make of it: https://www.reddit.com/r/eink/comments/i4okc8/install_gapps_on_hisense_a5pro_cc_hisense_a5pro/

Did the guy succeed in rooting? Is that method now available for everyone?
[Android Q&A, Help & Troubleshooting] flynttt:
It doesn't root. It's just Gapps, playmarket (cutted version) & synchronization.
[Android Q&A, Help & Troubleshooting] timo.helfer:
Any news on that topic?