Hi,
I developed an OTA system and want to integrate it to Settings.
I found android.settings.SYSTEM_UPDATE_SETTINGS is the intent broadcasted when user clicks Settings->About Phone/Tablet->System Update
I add a intent filter for this intent and my activity can be started correctly from the Settings, if the GMS packages is not installed.
But if GMS is installed, the Settings always starts the Activity com.google.android.gsf.update.SystemUpdateActivity.
The package GoogleServiceFramework.apk of GMS packages also contains the intent filter for android.settings.SYSTEM_UPDATE_SETTINGS.
If I remove GoogleServiceFramework.apk, then my activity can be called again.
My questions is:
Is it possible to let the Settings call my activity, not com.google.android.gsf.update.SystemUpdateActivity, even when GoogleServiceFramework.apk is installed?
Thanks
Related
First public beta release!
Play store: https://play.google.com/apps/testing/com.edotassi.amazmod
Watch's service installer (only for Windows): https://github.com/edotassi/AmazMod/releases/download/1277/Amazmod.service.installer.ver.1277.exe
Watch's service apk: https://github.com/edotassi/AmazMod/releases/download/1277/AmazMod-service-1277.apk
Amazmod – the missing link for Pace and Stratos.
Thought that your watch can't do more? Well, it sure can!
Amazmod is a completing application for the Amazfit Client, compatible with the Store/Mi store versions, based on server/client configuration for your Amazfit watches, and is capable of working in two configurations:
1. No additional software on the watch – no installation is needed on your watch, just few specific settings changes in the Amazfit app.
2. Service component running on the watch – no root required for additional functionality, a manual installation is required on the watch with the provided semi-automated user friendly installer.
What you will your watch learn to do with Amazmod?
No service on the watch – stock configuration:
• Disabling all notifications – co-existence with the stock Amazfit app
• DND consideration – no notifications will be pushed to watch in DND mode
• Control over timeout of the notification screen
• Voice call notifications from your IM apps
• Local system notifications – Weather, Google cards, Calendar events and etc.
• Notification ungrouping
Service "additional" features - service installed on the watch:
• Pre-defined notification replies - set your own responces to IMs/emails/SMSs
• Battery usage chart of your watch with an estimated remaining time of the battery
• Tweaking – Manual brightness control of your watch
• Much much more to come
Stats:
Statistics regarding your notifications
Notification testing basic tool provided under the About menu, for a quick connectivity test with your watch.
The ongoing development of the AmazMod will provide more and more features, more control and optimizations both for your Smartphone and your Amazfit companion on your wrist!
** no goats were harmed during development, one goldfish ran away and joined the circus.
FAQ:
A- What's AmazMod app?
R- AmazMod is app that work parallel with the stock Amazfit Watch app to add advance feature to your Pace and Stratos.
A- What's the most feature of AmazMod?
R- AmazMod is born to increase the stock notification system with possibility read entire message without the limits of stock app, to reply a notification directly from watch, and more features like battery history graphics and other.
A- How to use AmazMod?
R- You need to have a working Amazfit Watch app paired with your Pace or Stratos and then install AmazMod from playstore. For advance feature, like notification reply, you need to install the AmazMod Service app on your watch using the installer provide in the description (PC is need for this step).
A- How is the battery impact of AmazMod?
R- AmazMod is studied to have advace feature like other app but with no more battery usage!
A- Why I don't receive any notification?
R- First be sure to restart both phone and watch to make connections work correctly and than see to have add the desired app in "selected app" menu of notifications options
A- After I install AmazMod, I can remove the stock app?
R- No, AmazMod need to have stock Amazfit app installed to can communicate with your watch
some screenshots:
I have been following this process on telegram... Where is the download link though ...
Gesendet von meinem Redmi Note 4 mit Tapatalk
endrancer said:
I have been following this process on telegram... Where is the download link though ...
Gesendet von meinem Redmi Note 4 mit Tapatalk
Click to expand...
Click to collapse
They are still testing for stability according to OP.
Sent from my Pixel XL using Tapatalk
endrancer said:
I have been following this process on telegram... Where is the download link though ...
Gesendet von meinem Redmi Note 4 mit Tapatalk
Click to expand...
Click to collapse
you can test the app by compiling it from the code on github, there is not yet a public build of the new version
the old releases can be found in the github section
Brilliant work OP!
Are there dual notifications using amazmod like with the normal app? And ist my sport data the same after installing AmazMod? So i need the official app after installing AmazMod?
Thanks!
noideaforaname said:
Are there dual notifications using amazmod like with the normal app? And ist my sport data the same after installing AmazMod? So i need the official app after installing AmazMod?
Thanks!
Click to expand...
Click to collapse
No. Yes. Yes.
Dear OP, thanks a lot for the app. I installed mod app on phone and apk service on my stratos. I could see nightscout appearing which is a proof that service is installed. I don't notice any change in the notification ui in the watch though. Its appearing same as old. I have unchecked the option original notifications option under mod settings. Are those changes implemented or is upcoming?
vijaysimhahr said:
Dear OP, thanks a lot for the app. I installed mod app on phone and apk service on my stratos. I could see nightscout appearing which is a proof that service is installed. I don't notice any change in the notification ui in the watch though. Its appearing same as old. I have unchecked the option original notifications option under mod settings. Are those changes implemented or is upcoming?
Click to expand...
Click to collapse
It is an old version, pre-alpha. The new version is being tested, please be patient.
amazmod_service.apk download
And where to find the amazmod_service.apk download? It is not on github...
attfarkas said:
And where to find the amazmod_service.apk download? It is not on github...
Click to expand...
Click to collapse
It is currently on alpha/beta stage so you will not find it compiled. What you can do is compile the sourced, found on github, with Android Studio. Hint, you will be missing a file that you need to generate, search on google how to
I'm an Amazfit-newbie As I understand this app is the successor of Amazfitmod? The app used to work without an app on watch but the new version (also?) has a watch-app? So the new version (Amazmod) needs the watch-app to be installed or is it optional? If so, what is the lastest version (Amazfitmod or Amazmod) which doesn't need the watch-app (because it isn't finished yet)?
bemoo said:
I'm an Amazfit-newbie As I understand this app is the successor of Amazfitmod? The app used to work without an app on watch but the new version (also?) has a watch-app? So the new version (Amazmod) needs the watch-app to be installed or is it optional? If so, what is the lastest version (Amazfitmod or Amazmod) which doesn't need the watch-app (because it isn't finished yet)?
Click to expand...
Click to collapse
It needs the original app because it uses it as a communication bridge
hi, today i try to install android studio and build the two apk and install on phone and pace but i can't give notification access (i really give it) i can't close the tutorial but i see when close the app in background the app is sync and connected
bjtmosfet said:
hi, today i try to install android studio and build the two apk and install on phone and pace but i can't give notification access (i really give it) i can't close the tutorial but i see when close the app in background the app is sync and connected
Click to expand...
Click to collapse
Phone model? Logcat? Thanks
Tomorrow I try to pick the logcat, Is my first time playing with Android studio so I could do a mistake. I try on s7 with oreo and virtual nexus 5 with 8.0 oreo too....I try to disable the startup guide but without success.
Ps Sono italiano
edotassi said:
Phone model? Logcat? Thanks
Click to expand...
Click to collapse
i try to launch directly on S7 with ADB and this is the logcat from android studio section "error"
07-06 18:07:32.115 1372-1372/? E/Zygote: isWhitelistProcess - Process is Whitelisted
07-06 18:07:32.115 1372-1372/? E/Zygote: isWhitelistProcess - Process is Whitelisted
07-06 18:07:32.115 1372-1372/? E/libpersona: scanKnoxPersonas
Couldn't open the File - /data/system/users/0/personalist.xml - No such file or directory
07-06 18:07:34.585 1372-1453/com.edotassi.amazmod E/Fabric: Failed to retrieve settings from https://settings.crashlytics.com/spi/v2/platforms/android/apps/com.edotassi.amazmod/settings
07-06 18:07:34.590 1372-1458/com.edotassi.amazmod E/Answers: Failed to retrieve settings
bjtmosfet said:
i try to launch directly on S7 with ADB and this is the logcat from android studio section "error"
07-06 18:07:32.115 1372-1372/? E/Zygote: isWhitelistProcess - Process is Whitelisted
07-06 18:07:32.115 1372-1372/? E/Zygote: isWhitelistProcess - Process is Whitelisted
07-06 18:07:32.115 1372-1372/? E/libpersona: scanKnoxPersonas
Couldn't open the File - /data/system/users/0/personalist.xml - No such file or directory
07-06 18:07:34.585 1372-1453/com.edotassi.amazmod E/Fabric: Failed to retrieve settings from https://settings.crashlytics.com/spi/v2/platforms/android/apps/com.edotassi.amazmod/settings
07-06 18:07:34.590 1372-1458/com.edotassi.amazmod E/Answers: Failed to retrieve settings
Click to expand...
Click to collapse
you have to enable crashlytics
edotassi said:
you have to enable crashlytics
Click to expand...
Click to collapse
I think installed successfully but nothing change, yes don't give the error when build but the app work in the same mode
EDIT 1:
Found the problem, is a bug of the android 8.0 system. i try to emulate with android 7.0 and working without the "grant notification access" bug
EDIT 2:
I noticed that I received app on my pace and in the stock app the notification are disabled so your app is in communication with my pace and push notifications but I can't setting nothing because I can't close the start tutorial. How to build without the starting tutorial?
EDIT 3:
i found how to bypass the start tutorial and now i can try your app i put a "false" to can close tutorial without completing it (because it don't detect i do all the step)
Code:
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
super.onActivityResult(requestCode, resultCode, data);
if (requestCode == Constants.REQUEST_CODE_INTRO) {
if (resultCode == RESULT_OK) {
PreferenceManager.getDefaultSharedPreferences(this).edit()
.putBoolean(Constants.PREF_KEY_FIRST_START, false)
.apply();
} else {
PreferenceManager.getDefaultSharedPreferences(this).edit()
.putBoolean(Constants.PREF_KEY_FIRST_START,[COLOR="Red"] false[/COLOR])
.apply();
//User cancelled the intro so we'll finish this activity too.
finish();
Mi 9T, MIUI 11/Android 10 (11.0.4.0 QFJEUXM), rooted Magisk), installed Adaway (ofc, must use systemless hosts)
I found that I was unable to connect to the public hotspots - it was not opening the hot-spot accept conditions/login page
By examining a logcat I found:
-ActivityTaskManager(1598): START u0 {act=com.miui.action.OPEN_WIFI_LOGIN dat=http://connect.rom.miui.com/...
...
-OpenWifiLogin(30894): IOException: java.net.ConnectException: Failed to connect to connect.rom.miui.com/::1:80
Upon whitelisting connect.rom.miui.com, phone successfully opens the login page again and I can connect to the public hot-spots
You may or may not have this login to hot-spot problem (with AdAway, DNS66, Blokada...) depending on which hosts sources you use
However, if you don't block connect.rom.miui.com (or you don't use an ad blocker), be aware that MIUI sends some data to its server every time you are connecting to a public hot-spot (?!)
Btw, http://connect.rom.miui.com is valid site (Welcome to nginx! - see a screenshot), and I found a similar report on the Net:
https://www.reddit.com/r/Xiaomi/comments/bk6viy/redmi_note_7_issues_with_public_wifi_networks/
zgfg said:
Mi 9T, MIUI 11/Android 10 (11.0.4.0 QFJEUXM), rooted Magisk), installed Adaway (ofc, must use systemless hosts)
I found that I was unable to connect to the public hotspots - it was not opening the hot-spot accept conditions/login page
By examining a logcat I found:
-ActivityTaskManager(1598): START u0 {act=com.miui.action.OPEN_WIFI_LOGIN dat=http://connect.rom.miui.com/...
...
-OpenWifiLogin(30894): IOException: java.net.ConnectException: Failed to connect to connect.rom.miui.com/::1:80
Upon whitelisting connect.rom.miui.com, phone successfully opens the login page again and I can connect to the public hot-spots
You may or may not have this login to hot-spot problem (with AdAway, DNS66, Blokada...) depending on which hosts sources you use
However, if you don't block connect.rom.miui.com (or you don't use an ad blocker), be aware that MIUI sends some data to its server every time you are connecting to a public hot-spot (?!)
Btw, http://connect.rom.miui.com is valid site (Welcome to nginx! - see a screenshot), and I found a similar report on the Net:
https://www.reddit.com/r/Xiaomi/comments/bk6viy/redmi_note_7_issues_with_public_wifi_networks/
Click to expand...
Click to collapse
its same with every vendor, like apple does it to captive.apple.com
anirudhks said:
its same with every vendor, like apple does it to captive.apple.com
Click to expand...
Click to collapse
Probably most send some data one way or another (btw, I don't use iPhones for that and several other reasons), but it is good to know for some who encounter a similar problem with ad blockers, when trying to connect to the public hotspots
Btw, some hosts sources for AdAway/DNS66 also block miui.com or update.miui.com, but update.miui.com is repository for downloading firmwares - eg, open (enable Desktop site):
https://c.mi.com/oc/miuidownload/detail?guide=2
and try to download some firmware - if you cannot, whitelist:
update.miui.com
EDIT:
Also, for Mi Account, to login and sync (backup/restore) the following two must not be blocked:
api.micloud.xiaomi.net
sgpac.account.xiaomi.com
Hey. I had the same issue. Make sure your DNS is set to automatic.
For some reason Xiaomi does not let you access DNS settings directly. You have to install quick shortcut make and access com.android.settings.Settings$NetworkDashboardActivity from the setting.
I didn't take into account your rooted phone. You may have the option right away or it may be one of the apps you installed.
tkiafar said:
Hey. I had the same issue. Make sure your DNS is set to automatic.
For some reason Xiaomi does not let you access DNS settings directly. You have to install quick shortcut make and access com.android.settings.Settings$NetworkDashboardActivity from the setting.
I didn't take into account your rooted phone. You may have the option right away or it may be one of the apps you installed.
Click to expand...
Click to collapse
As described above, access was blocked due to one of host source lists for AdAway (and solved as described above)
Im not using Private DNS, but you can set Private DNS (easier than by shortcut maker apps) through Hidden Settings for MIUI app, available from Playstore, root not required
To login and use Mi Account two more URLs must be whitelisted:
api.micloud.shaomi.net
sgpac.account.xiaomi.com
All together, I white-list four of them, i.e. these two also (as in the above posts):
update.miui.com
connect.rom.miui.com
This is needed (only) if using a particular hosts source blocking Xiaomi/MIUI analytics:
https://raw.githubusercontent.com/j...ter/Extension/GoodbyeAds-Xiaomi-Extension.txt
This maybe old thread, but if you are rooted/ just use adb from PC, you can change the default captive portal back to original/stock :
adb shell settings put global captive_portal_https_url https://google.com/generate_204
adb shell settings put global captive_portal_http_url http://google.com/generate_204
In Xiaomi devices, 'Show over lockscreen' and 'Show popup dialogs' permissions are considered special perms. Now in previous question there are some methods to ask user to manually allow them BUT there is no default way to enable them.
When you install Skype or similar apps from Google Playstore, by default these permissions are turned on for those devices. I need Show over Lockscreen permission to show my app when I am getting a VOIP call.
Code:
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O_MR1)
{
setShowWhenLocked(true);
setTurnScreenOn(true);
KeyguardManager keyguardManager = (KeyguardManager) getSystemService(getApplicationContext().KEYGUARD_SERVICE);
if(keyguardManager!=null)
keyguardManager.requestDismissKeyguard(this, null);
}
else
{
getWindow().addFlags(WindowManager.LayoutParams.FLAG_DISMISS_KEYGUARD |
WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED |
WindowManager.LayoutParams.FLAG_TURN_SCREEN_ON);
}
I have allowed showOverLockedScreen in manifest.xml file and also setShowWhenLocked(true); but none of them enables those special permissions.
I have asked this similar question on multiple forums but I am unable to find the answer. Any help would be highly appreciated. I need to solve this issue to show my app over lockscreen when I am getting an incoming call.
devwaleed said:
In Xiaomi devices, 'Show over lockscreen' and 'Show popup dialogs' permissions are considered special perms. Now in previous question there are some methods to ask user to manually allow them BUT there is no default way to enable them.
When you install Skype or similar apps from Google Playstore, by default these permissions are turned on for those devices. I need Show over Lockscreen permission to show my app when I am getting a VOIP call.
Code:
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O_MR1)
{
setShowWhenLocked(true);
setTurnScreenOn(true);
KeyguardManager keyguardManager = (KeyguardManager) getSystemService(getApplicationContext().KEYGUARD_SERVICE);
if(keyguardManager!=null)
keyguardManager.requestDismissKeyguard(this, null);
}
else
{
getWindow().addFlags(WindowManager.LayoutParams.FLAG_DISMISS_KEYGUARD |
WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED |
WindowManager.LayoutParams.FLAG_TURN_SCREEN_ON);
}
I have allowed showOverLockedScreen in manifest.xml file and also setShowWhenLocked(true); but none of them enables those special permissions.
I have asked this similar question on multiple forums but I am unable to find the answer. Any help would be highly appreciated. I need to solve this issue to show my app over lockscreen when I am getting an incoming call.
Click to expand...
Click to collapse
I also have the same issue. I tried every possible solution available on the internet. but still no success.
I want to use Xposed Module to display an AlertDialog and warn user whenever the target application is executed on the background, so how can I do that. I was using a thread to display dialog; however, it didn't work.
Hello Everyone, My name is Kaliswaran, I am a Image customizing Developer, actually I was trying to update Win 11 21H2 version with recent February patch update and sysprep the machine, but when I try to boot the machine again in Audit mode, I am unable to see some of default applications like calculator, paint, snipping tool etc. But if I try to create any local user profile, there I can able to get all applications without issues. So anyone please kindly help on this. (so as I mentioned, Once I am done with Patch update, then only I am facing with this issue, earlier without patch update I can able to see all applications fine in Audit mode). Can anybody help.
It sounds like you are experiencing an issue with the default applications not appearing in Audit mode after patching and sysprepping the machine. Here are a few suggestions to help troubleshoot the issue:
Check the Sysprep configuration file: The Sysprep configuration file can be found at C:\Windows\System32\Sysprep\sysprep.xml. Make sure that the following lines are set to "true" in the file:
<CopyProfile>true</CopyProfile> <DoNotCleanUpNonPresentDevices>true</DoNotCleanUpNonPresentDevices>
Check the Group Policy settings: The Group Policy settings may be preventing the default applications from appearing in Audit mode. Check the Group Policy settings to ensure that the following policy settings are not configured:
Computer Configuration\Administrative Templates\System\Audit Mode\Remove all Apps from the Start menu Computer Configuration\Administrative Templates\System\Audit Mode\Do not show Windows Store apps on the taskbar User Configuration\Administrative Templates\Start Menu and Taskbar\Remove All Programs list from the Start menu
Reset the Start menu: Try resetting the Start menu to see if it brings back the default applications. To do this, open PowerShell as an administrator and run the following command:
Get-AppXPackage -AllUsers | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"}
After running this command, restart the computer and see if the default applications appear in Audit mode.
I hope this helps! Let me know if you have any further questions or concerns.