Hi everyone,
I recently got a P10 Plus and one of the things I was most excited about was App Twin. I've used this feature previously on a Xiaomi Note 3 Pro I had, but upon searching around I couldn't find any working methods for EMUI 8 (and, matter of fact, the one available here on XDA to add any app you want didn't seem to work. I started to poke around on my own, and am very happy to report I figured a way to enable App Twin for any app you want; unfortunately, at this point, the method I've found requires root access to work, but hopefully someone around will manage to figure a way to make this unnecessary eventually. So, without further ado, here goes.
First off, follow this very helpful tutorial to ensure the feature will be enabled in your phone (I have yet to try out the remaining of this guide without doing this, so if anyone wants to do that, be my guest ).
Next, we need to figure out exactly what the package name for the desired app is. For example, Gmail's is com.google.android.gm, and I figure the easiest way to find out the exact name is to look over Magisk Hide (yeah, I use Magisk for all my rooting needs). If the app's already installed, my piece of advice would be to back it up with Titanium Backup or something, just for the sake of being thorough and specially if it's a system app, which is a subject I'll touch in a few.
Now, for the fun part: Huawei changed how App Twin looks for enabled apps to execute its functionality, so we're gonna need to edit the file /system/emui/base/xml/hw_clone_app_list.xml
Here's the original content of mine:
Code:
<?xml version="1.0" encoding="utf-8"?>
<!-- DTS2016060606663 shiyuanchang/00271386 20160704 created -->
<AppClone>
<package name="com.tencent.mm"/>
<package name="com.tencent.mobileqq"/>
<package name="com.facebook.katana"/>
<package name="com.whatsapp"/>
<package name="jp.naver.line.android"/>
<package name="com.snapchat.android"/>
<package name="com.facebook.orca"/>
</AppClone>
And this part should be fairly trivial to most fellow XDA members: you simply append whatever program you feel like cloning to the list. Like so:
Code:
<?xml version="1.0" encoding="utf-8"?>
<!-- DTS2016060606663 shiyuanchang/00271386 20160704 created -->
<AppClone>
<package name="com.tencent.mm"/>
<package name="com.tencent.mobileqq"/>
<package name="com.facebook.katana"/>
<package name="com.whatsapp"/>
<package name="jp.naver.line.android"/>
<package name="com.snapchat.android"/>
<package name="com.facebook.orca"/>
<package name="com.google.android.gm"/>
<package name="com.amazon.venezia"/>
<package name="com.amazon.mShop.android.shopping"/>
</AppClone>
As you might have noticed, I added 3 apps: Gmail, Amazon Appstore and Amazon Shopping. I added the first two just for the sake of testing, but specifically for Amazon Shopping it'd be helpful for me since I have a US and a Canadian accounts, so... Anyway, beside the point, which was: I added both Amazon apps to the list before installing them, so that was a no brainer - upon installation, they showed up on Settings as clonable, if you wish. The trouble was with Gmail, since it's a system app; when I added the entry to the XML file, it immediately appeared on the list as well, but as already cloned despite no cloned app showing on the launcher, and I also couldn't flip to switch to deactivate/reactivate the functionality. So, what I ended up doing was using a Magisk module called Debloater, which is by the way very neat in allowing anyone to systemlessly debloat your phone. Through the module, I uninstalled Gmail, rebooted the phone, reinstalled it, rebooted yet again and voilà, Gmail clone app showed in the launcher as expected.
Oh, and something I totally forgot to mention: should you use any launcher other than Huawei's default, this method's got you covered without any extra kinks. I'm using Nova and both Amazon Shopping apps show up just as they would on Huawei Home (I also tested it on ADW Launcher and it works, but YMMV).
All in all, this guide shouldn't be overly complicated to anyone. And I know, needing root to achieve this is somewhat of a nuisance, but well... My phone is already rebranded (since my operator has decided to block any and all updates since November) and the bootloader was unlocked, so I would have needed Magisk one way or the other, and getting that extra something from this amazing device just seemed fair after all the trouble I had to go through to install the latest Oreo build into it. Hope you guys enjoy it, and should anyone around decide to experiment a little further (say enable extra apps without modifying the local.prop file, for instance, or finding out how an non-system app already installed would behave when using this method), feel free to give me a shout here and I'll update this guide later on.
Peace and have fun with your devices!
Hello,
Please help, I have followed every single step. I have EMUI 8 installed on Hauwei P10. After appending a new app to the mentioned XML and rebooting the phone, I can see the added app inside the Settings > Twin Apps but when I attempt to enable the twin function for it, nothing happens; when I click the slider nothing happens and it doesn't turn on.
Thank You,
Wal.
waelh said:
Hello,
Please help, I have followed every single step. I have EMUI 8 installed on Hauwei P10. After appending a new app to the mentioned XML and rebooting the phone, I can see the added app inside the Settings > Twin Apps but when I attempt to enable the twin function for it, nothing happens; when I click the slider nothing happens and it doesn't turn on.
Thank You,
Wal.
Click to expand...
Click to collapse
Not sure how can I help you, what with the lack of information you've provided. If you followed the instructions correctly, it should have worked.
GryphonBR said:
Not sure how can I help you, what with the lack of information you've provided. If you followed the instructions correctly, it should have worked.
Click to expand...
Click to collapse
Hello friend,
For example I was trying to add XDA app as twin app. I followed your steps and XDA's app displays in the list of twin apps. But the problem is when I move the slider to enable it, nothing happens... I even tried adding 3 more apps, and the same thing is happening. Are you sure you can enable the twin app successfully ? It seems to me that this tutorial is only adding the app to tge twin app list but doesnt allow creating the actual twin clone of the app.
I hope you understand what is happening.
Thanks.
waelh said:
Hello friend,
For example I was trying to add XDA app as twin app. I followed your steps and XDA's app displays in the list of twin apps. But the problem is when I move the slider to enable it, nothing happens... I even tried adding 3 more apps, and the same thing is happening. Are you sure you can enable the twin app successfully ? It seems to me that this tutorial is only adding the app to tge twin app list but doesnt allow creating the actual twin clone of the app.
I hope you understand what is happening.
Thanks.
Click to expand...
Click to collapse
Well, dunno what to tell you. Just tried adding specifically XDA Labs and it worked as mentioned in my original post.
GryphonBR said:
Well, dunno what to tell you. Just tried adding specifically XDA Labs and it worked as mentioned in my original post.
Click to expand...
Click to collapse
Wow. I saw your screenshot... I will run some troubleshooting to see whether I'll be able to make it run and I'll let you know.
Thanks in advance.
waelh said:
Wow. I saw your screenshot... I will run some troubleshooting to see whether I'll be able to make it run and I'll let you know.
Thanks in advance.
Click to expand...
Click to collapse
Did you follow the whole walkthrough? Including the first bit, the link to an old XDA post where you actually activate Dual Apps within EMUI 8 for the P20 family? Because one of the tests I ran was simply adding XDA Labs to the XML without activating the future, and I got exactly the situation you mentioned - it appeared in the list, but the switch didn't actually generate the dual app.
GryphonBR said:
Did you follow the whole walkthrough? Including the first bit, the link to an old XDA post where you actually activate Dual Apps within EMUI 8 for the P20 family? Because one of the tests I ran was simply adding XDA Labs to the XML without activating the future, and I got exactly the situation you mentioned - it appeared in the list, but the switch didn't actually generate the dual app.
Click to expand...
Click to collapse
Yes I have followed even the first bit of the tutorial which contains the below lines:
fw.max_users=1 to 2
fw.show_multiuserui=0 to 1
ro.config.hw_support_clone_app=false to true
GryphonBR said:
Did you follow the whole walkthrough? Including the first bit, the link to an old XDA post where you actually activate Dual Apps within EMUI 8 for the P20 family? Because one of the tests I ran was simply adding XDA Labs to the XML without activating the future, and I got exactly the situation you mentioned - it appeared in the list, but the switch didn't actually generate the dual app.
Click to expand...
Click to collapse
Good news. Finally, I figured out what was happening.
So the reason the new cloned app was only showing in the list but I was unable to turn it on, is because the app was already installed before appending it's package name to the xml. So the app needing to be cloned must be removed before appending it to the XML. Then I reinstalled the app normally then I went to twin apps from settings and only then it allowed me to move the slider to ON.
By the way, the instructions posted in "first bit" link aren't necessary since the rest of your tutorial will work with it.
Thank you,
Wal.
EDIT: Fixed it. Turns out local.prop and hw_clone_app_list.xml had their permissions automatically changed to rw------- for some reason. Changing them back to rw-r--r-- and then rebooting did the trick.
Original post:
This doesn't seem to be working for me at all, could someone please check my steps and see if I'm doing something wrong here?
I'm using a Huawei Honor 9 running Android 8.0, EMUI 8 (rooted), here are my steps:
1. Accessed /system/emui/lite/prop/local.prop
2. Changed fw.max_users=1 to 2, fw.show_multiuserui=0 to 1, and ro.config.hw_support_clone_app=false to true
3. Saved the changes
4. Rebooted device, checked file again to make sure the changes had been saved correctly
5. Accessed /system/emui/base/xml/hw_clone_app_list.xml
6. For testing, I used this app by adding its bundle name to the list
7. Checked and confirmed that the contents read:
Code:
<?xml version="1.0" encoding="utf-8"?>
<!-- DTS2016060606663 shiyuanchang/00271386 20160704 created -->
<AppClone>
<package name="com.tencent.mm"/>
<package name="com.tencent.mobileqq"/>
<package name="com.facebook.katana"/>
<package name="com.whatsapp"/>
<package name="jp.naver.line.android"/>
<package name="com.snapchat.android"/>
<package name="com.facebook.orca"/>
<package name="ru.olemilk.pixelcoloring"/>
</AppClone>
8. Opened Settings > Apps > App Twin
9. The list is empty
I have also tried rebooting and reinstalling the test app, it never shows up in the App Twin list. Additionally, I have tried adding other apps too, and none of them have ever appeared in the app list. Even when I install something that's supposed to be officially supported like WhatsApp, the list still shows up as empty.
I managed to get dual viber with simple edit of hw_clone_app_list.xml via ES Explorer, after root ofcourse.
I didn't do any of steps except adding onr line with viber package name to xml. Viber must not be installed on the device. After adding a new line, save and reboot device, install viber and activate it. After that simply start twin app
Please give me your xml code for viber, thanks in advance.
EDIT:
I managed, code for viber: <package name="com.viber.voip"/>
is there any way to enable twin app for device that is not rooted?
Tried this on my P9 Lite with EMUI 5.0.4 and Works excellent. After updating I couldn't get new apps to work and this solved my problema! Big thx!
her3814 said:
Tried this on my P9 Lite with EMUI 5.0.4 and Works excellent. After updating I couldn't get new apps to work and this solved my problema! Big thx!
Click to expand...
Click to collapse
hi i have p9 lite Emui 5.0.4
but i can't find /system/emui/base/xml/hw_clone_app_list.xml
what's wrong why i can't find it
App twin error
Well my problem is that i was succesfully using whatsapp 2 on App twin for 2 days! But after the emui update to 8.0 npw app is giving error that i can't open whatsapp nd i need to delete and make new one. But its not easy to loose all ur chats and join all gropus again. Plz suggest a solution. thanks
Feroza Noor said:
Well my problem is that i was succesfully using whatsapp 2 on App twin for 2 days! But after the emui update to 8.0 npw app is giving error that i can't open whatsapp nd i need to delete and make new one. But its not easy to loose all ur chats and join all gropus again. Plz suggest a solution. thanks
Click to expand...
Click to collapse
Dear,
First of all, I would say that you should start doing Google drive backups of your WhatsApp chats + media (that way if you ever had to uninstall the app, you will have a way to restore you data back to the new installation).
Could you please share the error message that you were facing in WhatsApp after the upgrade to EMUI 8 ?
Regards,
Wael
Yes i had backup but since it was on weekly i couldn't backup in one day. Anyways my problem is solved now, i called huawei service center nd deleted my account only after they assured groups won't be left. The error said"app twin is not working, ypu have to delete all acounts and make them again, lost data won't be recovered " tge wordings are exactly not these not the msg it gave was like this.
Related
Alright everyone, I'm Trailblazer101, an Android Developer who likes to take advantage of, and make better, the unique features of the phones I purchase. I started off with the Samsung Continuum back in 2010, which had a ticker ahead of its time, and went from there. I work 2 jobs, so time is tight sometimes, but I still manage to work on these things, a fun passion/hobby.
Status Updates
Code:
5/12
--- I got my patch working, and tested it out with a simple demo that takes advantage of the new capabilities. I've posted a Guide below!
5/10
--- Now that Verizon users have root, I will begin testing this myself :) Thanks to those who helped me figure out what we'd have to do, so I can get started right off the bat! I'll keep you posted.
What is this?!!
Okay, so by default the Feeds that you can make are restricted to the capabilities of a RemoteView. This severely limits what you can do with the Feed. Take a look here to see what exactly is supported, by default: http://stackoverflow.com/a/16089389
However, any Samsung App (which includes a few signed by Samsung on the Galaxy Apps Exclusives page) has the ability to put whatever it wants on the screen, just like a regular App. I've now extended that invitation on over to you/us!
Guide
The steps to take advantage of this is a little convoluted, so let me break it down for you easy!
STEP 1:
You have to flash my patch to allow this development to actually work. You can download it here: View attachment Trailblazer101_S6Edge_Advanced_Feeds_Patch.zip. Then flash it using FlashFire, or extract the zip and put everything where it needs to go, making sure to set the permissions appropriately!
STEP 2:
Now you can start developing your new Custom Feed! I would suggest using my simple demo project as your base, and going from there! You can find that here: View attachment EdgeScreen-BACKUP.zip. Extract it and take a look at the source!
STEP 3:
From here on out is where things get tricky... Without changing a thing, if you build from source and try to debug, it won't work. Why? Because the API that Samsung gives developers, like us, is different than the one they use for themselves. So Here's what you gotta do-- without changing a thing, build the Project. The best way to do that without debugging within Android Studio is to go to Gradle Projects -> :app -> Tasks -> build -> assembleDebug. This'll make the built apk and put it within "..\.EdgeScreen-BACKUP\app\build\outputs\apk\app-debug.apk".
STEP 4:
I'm assuming you have the latest Java Development Kit, and Android SDK, installed and configured properly, with their paths in the PATH variable, accordingly. You should also know how to use apktool for decompilation, at least a little I've compiled a toolkit folder based off of the test Project I shared above, which includes apktool, the NEW Samsung API files, the original built apk, and the already modified decompiled source/apk. You can download that here: View attachment Decompilation_Data.zip. Then, open a Command Prompt window and "cd" to the extracted folder.
STEP 5:
Decompile the built apk, which should be the same as the one in the extracted folder, using apktool like this:
Code:
.\apktool\apktool d -f TestFeed_orig.apk
STEP 6:
Compare the decompiled folder "TestFeed_orig" with my already modified "TestFeed_modded" one. I suggest using WinMerge! You'll see that the 'TestFeed_orig\smali\com\samsung\android\sdk' folder is very different. That's what I was talking about before, how Samsung Feeds have more options in their API. So delete the 'TestFeed_orig\smali\com\samsung' folder, and replace with the one in the '---SAMSUNG API---' folder.
STEP 7:
Continue comparing the two folders. Basically the rest of the changes are just getting our application to call the new Samsung API properly, instead of the stubs I was using in the Project. There aren't many changes you have to make, but they're all important!
STEP 8:
Once the two folders are the same, recompile it using apktool, like so:
Code:
.\apktool\apktool b TestFeed_orig
STEP 9:
Sign the new compiled apk stored in 'TestFeed_orig\dist' using your signing key. You can make your own, then use it to sign the app, following the instructions here: Official Instructions for Manual Signing.
STEP 10:
Install the newly signed apk, and enable the Feed by going to: Settings-> Edge screen -> Information stream -> Manage Feeds -> *ENABLE* FeedsCocktailExample! You may have to restart, or just hit 'reorder' in the top left. That sometimes fast-triggers it. Now turn off the screen, do the Feed Gesture to get it to turn on, and you should see our Custom Feed! It doesn't look like much, but it's using a custom view, HorizontalTextView, that would not work otherwise.
From here the options are endless. You can follow these steps and my Sample Project to play a video for a feed, if you wanted! Whatever strikes your fancy!
If you followed these steps and appreciate the help, show this thread some love, and maybe. Well i'd say buy me a beer, but it'll probably go to textbooks instead
Developer/Advanced Information!
We can make our own Feeds no problem, without root, they are just forced to use a RemoteView directly, which for all intents and purposes, is a pain in the kiester. Instead, it would be a lot nicer/convenient, without even mentioning the more advanced functionality we could bring, to use our own Views. However the version of SlookCocktailManager.UpdateCocktail that allows this is only found within a more advanced API, one I/no typical user don't have access to directly. BUT, I can still access it by decompiling for example the Edge RSS app from the Samsung AppStore, and putting/replacing the "sdk" folder from that into my own decompiled app, and recompiling. Easy enough, with apktool! (Of course with the headache of adding in my own temporary shell classes, in the project, so that I can actually write the calls, and just change the reference within the smali code once that sdk is replaced) The problem is, even when you do this, and it builds fine, installs great, and even begins initializing properly, we get an error from within CocktailBarService, the file I'm having you replace. More specifically, I tracked down the actual problem, and it comes back to "CocktailWhiteList", a class within CocktailBarServices, then checks the signature of the calling application, our Custom Feed, and sees if it comes from Samsung. This none of my expertise can fix, without being rooted, but trust me I tried. Now that we are rooted I was able to patch said apk, and get my own apps to work! Hurray!
cocktailbar service crashes when going into 'edge screen' option in settings menu.
logcat attached
Edit: sorry didn't rename cocktail bar (cocktailbarservice_signed to cocktailbarservice)
now it doesn't visibly crash, it just wont let me go into 'edge screen' option in settings menu
new log cat uploaded
This man looks promising! You have my S6 edge as soon as I have an official TWRP with working backup and restore
ktetreault14 said:
This man looks promising! You have my S6 edge as soon as I have an official TWRP with working backup and restore
Click to expand...
Click to collapse
I will help as well, when these tools are out for us..
Thanks for bringing cool stuff like this to the phone at this early date!
ktetreault14 said:
This man looks promising! You have my S6 edge as soon as I have an official TWRP with working backup and restore
Click to expand...
Click to collapse
How deep are you willing to go? Because it would be awesome if you could clear dalvik-cache, since I see this, right off the bat:
Code:
: Failed to find OatDexFile for DexFile /system/priv-app/CocktailBarService/CocktailBarService.apk ( canonical path /system/priv-app/CocktailBarService/CocktailBarService.apk) with checksum 0xfbfcb9f7 in OatFile /data/dalvik-cache/arm64/[email protected]@[email protected]@classes.dex
EDIT: could you also make sure that you set the right permissions for the apk? I'm getting the impression that they might be off with:
Code:
msg=audit(1429397519.049:355): auid=4294967295 uid=10001 gid=10001 ses=4294967295 subj=u:r:untrusted_app:s0 pid=12605 comm="ktailbarservice" reason="memory violation" sig=11
EDIT2: We might have to disable SELinux... That's rather unfortunate/puts a rather large damper on things, until custom kernels come out at least... After starting a root shell, can you try:
Code:
setenforce 0
I don't know if it'll work, but if that goes through successfully try and launch the Edge Settings Screen again!
EDIT3: Do'h. It may have been something really simple *crosses fingers* Could you please re-download the CocktailBarService, and try doing the same thing you did last time, with right permissions, and maybe a dalvik-cache wipe if it doesn't work!?
Tried the new apk you uploaded. Getting a force close still when trying to open. I changed SELINUX to permissive, wiped dalvik, even tried deleting arm64 folder as well. No luck.
04-19 00:25:09.907 E/AndroidRuntime(15867): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.samsung.android.app.cocktailbarservice/com.samsung.android.app.cocktailbarservice.settings.EdgeScreenSettingsMain}: java.lang.SecurityException: Permission Denial: get/set setting for user asks to run as user -2 but is calling from user 0; this requires android.permission.INTERACT_ACROSS_USERS_FULL
Was searching through logcat and found this. May this have something to do with the issue?
wase4711 said:
I will help as well, when these tools are out for us..
Thanks for bringing cool stuff like this to the phone at this early date!
Click to expand...
Click to collapse
Don't mean to hijack thread, but "Tool" is already available here:
NB: Chrome and IE don't translate into "Save file" - Use Mozilla which does > copy to phone and flash.
https://blck.io/twrp-2.8.6.0-zeroltetmo.img
Perfectly working on T-Mobile S6 Edge
Will
RoM_Addict said:
Don't mean to hijack thread, but "Tool" is already available here:
NB: Chrome and IE don't translate into "Save file" - Use Mozilla which does > copy to phone and flash.
https://blck.io/twrp-2.8.6.0-zeroltetmo.img
Perfectly working on T-Mobile S6 Edge
Will
Click to expand...
Click to collapse
that version doesn't work properly for me and many others; waiting for an "official" version from the TWRP folks..
trailblazer101 said:
How deep are you willing to go? Because it would be awesome if you could clear dalvik-cache, since I see this, right off the bat:
Code:
: Failed to find OatDexFile for DexFile /system/priv-app/CocktailBarService/CocktailBarService.apk ( canonical path /system/priv-app/CocktailBarService/CocktailBarService.apk) with checksum 0xfbfcb9f7 in OatFile /data/dalvik-cache/arm64/[email protected]@[email protected]@classes.dex
EDIT: could you also make sure that you set the right permissions for the apk? I'm getting the impression that they might be off with:
Code:
msg=audit(1429397519.049:355): auid=4294967295 uid=10001 gid=10001 ses=4294967295 subj=u:r:untrusted_app:s0 pid=12605 comm="ktailbarservice" reason="memory violation" sig=11
EDIT2: We might have to disable SELinux... That's rather unfortunate/puts a rather large damper on things, until custom kernels come out at least... After starting a root shell, can you try:
Code:
setenforce 0
I don't know if it'll work, but if that goes through successfully try and launch the Edge Settings Screen again!
EDIT3: Do'h. It may have been something really simple *crosses fingers* Could you please re-download the CocktailBarService, and try doing the same thing you did last time, with right permissions, and maybe a dalvik-cache wipe if it doesn't work!?
Click to expand...
Click to collapse
Hi trailblazer, I set the permissions the same as the original apk ,
right lets try again: I've downloaded the new version and set permissions, wiped dalvik-cache but when trying to disable SELinux i get
tmp-mksh: 0 : not found.
and when going into 'edge screen' settings i get unfortunsatly cocktailbar service has stopped.
Catlog attached:
I used this to modify SELINUX. For anyone else who is helping out, try this.
[4/19] QuickLaunch Demo And Advanced Feed Development Request For Rooted Users
b-reezy said:
I used this to modify SELINUX. For anyone else who is helping out, try this.
Click to expand...
Click to collapse
I sent you a PM! I explicitly declared that permission for each activity, so let's see how it goes now! I put the same apk I sent you now on the OP, so the other testers can try it! In the mean-time, I do have something real for you guys to play with! It's the QuickLaunch window, customizable and all (from hitting the Feeds Settings Icon). I'll put that in the OP with the tag "WORKS(Kinda)"!
One thing, which is a big reason why I'm trying to do it this way-- clicking the icons launches the app, it just doesn't turn the screen back on! I've tracked it down, and it seems as if when the Feed Screen is on, it has the SCover flag set to on, manually, but when a user clicks a button from another Feed, it turns that flag back off, thus turning the screen back on. The easiest/cleanest way for us to do that too would be our Custom Feed Panel implementing the same OnClickHandler that the others do, just can't without doingwhat we're trying to do!
EDIT: Please still use the QuickLaunch apk with the tag "Signed" though for testing the replacement of CocktailBarService! My new one just does it the bad way, and had to get rid of the code for trying the good.
(There's other ways to turn the screen on, but the way I'm trying to do it does it easily, and allows for more advanced functionality!)
FOR DEVELOPERS:
If you are interested in taking what I have and running with it/collaborating, I am more than willing to send all sources of what I have so far, my resources that I've been using, along with all information gathered so far. Just ask!
Hopefully this will become available for non-rooted. I am DIEING to get more functionality out of the Edge API for this phone. The feed is an awesome option, but having to swiping finger is a pain in the @$$. A double tap on the edge or an automatic turn on would be AWESOME when Texts or missed calls are there.
b-reezy said:
I used this to modify SELINUX. For anyone else who is helping out, try this.
Click to expand...
Click to collapse
BTW.. can be disabled in the kernel source also.. I did that in m8 times
trailblazer101 said:
I sent you a PM! I explicitly declared that permission for each activity, so let's see how it goes now! I put the same apk I sent you now on the OP, so the other testers can try it! In the mean-time, I do have something real for you guys to play with! It's the QuickLaunch window, customizable and all (from hitting the Feeds Settings Icon). I'll put that in the OP with the tag "WORKS(Kinda)"!
One thing, which is a big reason why I'm trying to do it this way-- clicking the icons launches the app, it just doesn't turn the screen back on! I've tracked it down, and it seems as if when the Feed Screen is on, it has the SCover flag set to on, manually, but when a user clicks a button from another Feed, it turns that flag back off, thus turning the screen back on. The easiest/cleanest way for us to do that too would be our Custom Feed Panel implementing the same OnClickHandler that the others do, just can't without doingwhat we're trying to do!
EDIT: Please still use the QuickLaunch apk with the tag "Signed" though for testing the replacement of CocktailBarService! My new one just does it the bad way, and had to get rid of the code for trying the good.
(There's other ways to turn the screen on, but the way I'm trying to do it does it easily, and allows for more advanced functionality!)
FOR DEVELOPERS:
If you are interested in taking what I have and running with it/collaborating, I am more than willing to send all sources of what I have so far, my resources that I've been using, along with all information gathered so far. Just ask!
Click to expand...
Click to collapse
Liking the Quicklaunch app , are you still needing testers? or have you got all the info you need?
Alex-V said:
BTW.. can be disabled in the kernel source also.. I did that in m8 times
Click to expand...
Click to collapse
Exactly and imo its better if its done this way..
for anyone interested
you need to edit the security/selinux/selinuxfs.c file from source
FIND:
Code:
selinux_status_update_setenforce(new_value);
#else
ADD RIGHT BELOW "#else":
Code:
new_value = 0;
So it becomes:
Code:
selinux_status_update_setenforce(new_value);
#else
new_value = 0;
or use this one (from the G925F source)
friedrich420 said:
Exactly and imo its better if its done this way..
for anyone interested
you need to edit the security/selinux/selinuxfs.c file from source
FIND:
Code:
selinux_status_update_setenforce(new_value);
#else
ADD RIGHT BELOW "#else":
Code:
new_value = 0;
So it becomes:
Code:
selinux_status_update_setenforce(new_value);
#else
new_value = 0;
or use this one (from the G925F source)
Click to expand...
Click to collapse
yeah.. that's the one I used.. I'm still for and back to root or not..means for me.. develop roms and kernels ..or use it as it is.. lol..
friedrich420 said:
Exactly and imo its better if its done this way..
for anyone interested
you need to edit the security/selinux/selinuxfs.c file from source
FIND:
Code:
selinux_status_update_setenforce(new_value);
#else
ADD RIGHT BELOW "#else":
Code:
new_value = 0;
So it becomes:
Code:
selinux_status_update_setenforce(new_value);
#else
new_value = 0;
or use this one (from the G925F source)
Click to expand...
Click to collapse
Hii my friend, i also still , have a non rooted S6 Edge :thumbup:
Hey guys, I finished the QuickLaunch Feed and posted it in the Apps Folder here:
Click Me!
I did manage to get it to turn the screen on, then, with the clicking of the shortcuts, and it still launches it once unlocked (if you have a lockscreen). I am going to begin work on a music player Feed, now
I will continue development on more advanced Feeds, and also delve into enhancing the edge in other ways, once we Verizon users get root (or until I win the lottery and get a Sprint version ). I see all these great opportunities to make it better, I just can't do anything with it until I'm rooted, since this didn't go as well as I planned. Where we are stuck at now is this, and where it would be too much of a pain for me to do without a phone of my own to test one:
We need to re-sign the system with a signature key we have access to. This includes framework, apps, and the priv-apps signed with the samsung key. Then I can go about doing what I wanted to do, but otherwise, it's a no go.
A developer who does have a Sprint or T-Mobile version with root, I can tell you the information I gathered so far. I have seen where the 'turn screen on gesture' is stored, and all these other great things, I just can't right now
trailblazer101 said:
Hey guys, I finished the QuickLaunch Feed and posted it in the Apps Folder here:
Click Me!
I did manage to get it to turn the screen on, then, with the clicking of the shortcuts, and it still launches it once unlocked (if you have a lockscreen). I am going to begin work on a music player Feed, now
I will continue development on more advanced Feeds, and also delve into enhancing the edge in other ways, once we Verizon users get root (or until I win the lottery and get a Sprint version ). I see all these great opportunities to make it better, I just can't do anything with it until I'm rooted, since this didn't go as well as I planned. Where we are stuck at now is this, and where it would be too much of a pain for me to do without a phone of my own to test one:
We need to re-sign the system with a signature key we have access to. This includes framework, apps, and the priv-apps signed with the samsung key. Then I can go about doing what I wanted to do, but otherwise, it's a no go.
A developer who does have a Sprint or T-Mobile version with root, I can tell you the information I gathered so far. I have seen where the 'turn screen on gesture' is stored, and all these other great things, I just can't right now
Click to expand...
Click to collapse
very nice.. thanks my friend ?
This is just sounding AWESOME! I am on AT&T so will have to wait as well for Root. I was wondering if there is a possability for the edge to just turn on, on its own without the need to swipe the screen? Like when a new notification comes in it will just scroll across the edge (or maybe the icon will blink on and off until you see it and swipe).
I still feel the swipe is to hard to do consistantly and would rather use a double tap or something if the auto on isn't possible.
Hi,
I tried to find root cause, but unfortunately without success. Is there anybody, who using Tasker or another application for automatization of your phone without any issues?
My issue is, Tasker is still "delayed" - but same rules I used before on LG G3 (Android 6.0) - but now on P9 (DualSIM) didn't work.
I have task for Calendar Entry, where if I have appointment in my work calendar, during this time Sound mode is deactivated (only Vibrate).
Some suggestion? I tried white lists, etc. or another app with same bad behavior.
Thank you!
Well, I tried to deactivate power management app from Huawei over ADB and looks good now finally! Its workaround, but tasker now working very well as expected.
adb shell pm hide com.huawei.powergenie
Did you have "Run in Foreground" selected in Tasker's preferences?
My Tasker works fine with that selected, although I also have trusted the app in permissions manager, allowed it to auto launch & activated it as a device administrator in advanced settings/security.
Yeah, I tried every tip over Tasker or phone (EMUI settings) and only deactivate power management helps me.
I had the same problem with IFTTT. It worked perfectly with my LG G3, but was hopeless on the P9. No amount of white-listing or settings would work.
I even had the app in memory, with Google maps running, on GPS, screen on, and it still wouldn't trigger a location based profile.
I've had to revert to manually arming and dis-arming my home security system. Annoying.
I translate from spanish so I'm sorry if your phone shows menus with other name.
You must go to adjust > advanced adjusts > memory and store and at bottom of page "space clean". On new screen push on upper-right wheel, and now on last option "white list of memory clean". Finally look for your app and activate it.
If you don't include app here, clean system will close it on background and timers won't work. It solved my problems.
aidrabmol said:
I translate from spanish so I'm sorry if your phone shows menus with other name.
You must go to adjust > advanced adjusts > memory and store and at bottom of page "space clean". On new screen push on upper-right wheel, and now on last option "white list of memory clean". Finally look for your app and activate it.
If you don't include app here, clean system will close it on background and timers won't work. It solved my problems.
Click to expand...
Click to collapse
"Settings>Advanced settings>Memory & storage>Storage cleaner" and "Memory cleanup whitelist".
Using Agama, I can get an app to start following a reboot. However, I would like to start the App at every Startup. Does Automate or any other app let you do that?
carroamer said:
Using Agama, I can get an app to start following a reboot. However, I would like to start the App at every Startup. Does Automate or any other app let you do that?
Click to expand...
Click to collapse
Why would you need Tasker for that simple.
Settings, type in the Search Autostart and add your app to the list of apps to be started on every reboot.
You may also need to disable Battery Optimization for your app (to make sure it would still work in background when the phone sleeps with dark screen)
That should generally work for all Androids. I don't have Huawei P9 now for years, I remember that EMUI might have had specific Settings organization but there was also Autostart (or Auto start)...
zgfg said:
Why would you need Tasker for that simple.
Settings, type in the Search Autostart and add your app to the list of apps to be started on every reboot.
You may also need to disable Battery Optimization for your app (to make sure it would still work in background when the phone sleeps with dark screen)
That should generally work for all Androids. I don't have Huawei P9 now for years, I remember that EMUI might have had specific Settings organization but there was also Autostart (or Auto start)...
Click to expand...
Click to collapse
When I search 'Autostart' it produces 'No results'
carroamer said:
When I search 'Autostart' it produces 'No results'
Click to expand...
Click to collapse
I had P9 for three years (if you don't believe, you can find tons of my posts here back from 2017-2018)
Now, you have that phone, not me (I got rid of my last Huawei almost three years ago) - I cannot show you and I cannot look into the EMUI settings because I don't have the EMUI phone anymore
But I KNOW that there was a way in EMUI how to control which apps will be automatically started on boot - I know because I played with all that back in those years, II did need for many apps like AdAway, Find My Device and similar that required to be auto-started to operate correctly
Take your time and google and you'll find. Sorry, I tried to help you but I will no more waste my time on that. Huaweis are past time for me
And take your time, use your imagination, If not Autostart, google for EMUI startup manager or something similar to find the answer for your question on the Net
Update 09.12.17: The methods below may not fully work on the latest OS versions. There is an ongoing discussion in the last pages so I hope it gets cleared out eventually, sadly I've been busy with my studies and haven't touched my phone since initially making this thread (it's on OOS 4.0.2). I write this just to make sure I don't waste your time accidentally, so please check the latest replies if you're on newer OS versions.
Hello everybody,
*the undermentioned methods and app(s) require root*
I have asked you guys in the AKT thread if you would like to see a small tutorial on how to stop the constant "com.google.android.gms/.measurement.PackageMeasurementService" and "net_scheduler" wakelocks that might or might not be responsible for the device waiting longer than it should before dozing off.
Please keep in mind that this method does work for me, and might or might not work for you, as everybody uses different things/apps so in case you see unwanted behavior, just revert back and sigh that the method has failed you.
I am not responsible for any hardware-/software damage that may occur upon using these settings.
So, now that we've got all the generic stuff out of the way, first few words about why this might bother you:
1) You don't like your device doing stuff you didn't make it do.
2) You want to minimize wakelocks
3) You're here because you just saw the two beforementioned wakelocks and already decided you want to get rid of them.
So, regarding the first one, all I can say is I got the method from this reddit post , which briefly explains which services are doing the waking and what they are. Starting with "At the heart of Firebase is Firebase Analytics, a free and unlimited analytics solution. .." got me raising an eyebrow, as I don't like handling control of my device to other people, without me even knowing.
UPDATE: I have merged the two approaches into just using one app and making the changes on a global level, so you can just do them in like 5 minutes and forget about it, but in case you have problems with disabling package measurement you can also check the hidden text just below for instructions using another app, which was basically "the old way".
So to get rid of the "snooping", as already described in that post, you need to download MyAndroidTools.
Disclaimer: Disabling some services/receivers may "crash" the app. I found it is normal, just go back to where you were and check if you managed to disable the thing you wanted, if yes, then it was successful.
1. Open the app
2. Click on the top left to open the panel, click on Broadcast Receiver.
3. On the menu that opens go to the right column named System. Click search on the top right, type "Play" and choose the Google Play Services option.
4. In the search bar there type at least "ana" and disable the two found results with the names "AnalyticsReceiver" and "AnalyticsSamplerReceiver"
5. Hit x and search again for at least "meas". You will see three results with the names "AppMeasurementInstallReferrerReceiver", "AppMeasurementReceiver" and "PackageMeasurementReceiver*". Disable all three.
****Update 15.02.17*** Apparently this one resets every once in a while, I blame this again on Google's efforts to have their spying on, but anyways. Go to services->system->Google Play Services->search "meas"->disable both "AppMeasurementService" and "MeasurementBrokerService". The third one (PackageMeasurementService) will restart too so don't bother. This should do the trick though.
6. There was discussion about "Campaign Tracking" . I only found it in the same System menu, in Android Pay, by searching at least "cam" you get the result "CampaignTrackingReceiver". Disable it if you feel you want to. I don't use Android Pay and cannot say if it breaks something there, but otherwise have it disabled and haven't noticed any problems so far.
7. Search for Google Play Store in System. In that option, search for at least "app" and disable "AppMeasurementReceiver". Hit x and search for at least "fir", then disable the two results with names "FirebaseInstanceIdInternalReceiver" and "FirebaseInstanceIdReceiver"
8. Done. All the setttings are now global for any sort of app measurements, as far as I know.
This is the "old way" of dealing with app measurement. If you have done the steps above just ignore (hide) this part and continue with disabling net_scheduler below.
So to get rid of the "snooping", as already described in that post, you need to download Root Package Disabler or equivalent alternative.
ATTENTION: As per the last version of the app, I see there might be a bug which reverts some settings when you use the search bar, so please try and find the services by hand in stead of searching, as it is more reliable.
1. Open the app
2. Start with the left-most pane, e.g. "Installed". There you can see all your installed apps
3. Click on the first app on the list, it will display a small menu. Apps that use services will have the bottom-left option named "SERVICES" available, click there. This will take you to the services list that this app uses.
4. Click on the searching icon on the top-right in order to filter the services we need disabling.
5. Write at least "appm" . If the AppMeasurementService is used by this app, it will now be displayed.
6. Tick that off (the switch will turn gray)
7. Hit x, and search again for at least "fireb". This will display all services that use the Firebase SDK. You may also check under the name of the service and see the word is contained in the "executable name", so it might not always have "an official" name that states Firebase, but still use one of their "executables" (sorry for lack of detail)
7.1 Check for any other services that have "analytics" in their description, although I haven't checked if this stops something useful, but I doubt it.
8. When you're done with the current app, it will no longer call these services and cause wakelocks as long as the services remain stopped. To my experience the settings stay after reboot, it's just the above mentioned bug you have to keep in mind since it happened to me now while making the guide, and I know it came with the latest update.
9. Go back to the installed pane and maybe tick on the star next to the app in question. It will be added to the "favourite" list where you can have all those apps and don't bother to search them again if needed.
10. Repeat from step 1 for the next app and go through all your apps. If not you will still get calls to this service from the apps that still have these services on. Also a reminder here, you have to remember and check every new app you install, as most apps do have the service enabled.
11. After you're done with all apps in "Installed", check out bloatware (I think I haven't found anything there, but it's worth checking).
12. "System" apps that I know have some of those services: Calendar, (probably) Chrome (I have that disabled so dunno), Drive, Duo, Gboard, Google Play Services, Google Play Store, Google VR Services.
Here are two pictures how an app's services list looks like, and one with some of the services disabled:
all services on
some services off
After doing these steps, you should charge your battery to 90% to reset the battery statistics and you should see that the "com.google.android.gms/.measurement.PackageMeasurementService" wakelock no longer occurs (or stays really, really low, and not thousands like before). If you still have it after all this, then you probably have an app you haven't disabled the services for.
The second approach will get rid of the "net_scheduler" wakelock. Thanks to @denon480 for the idea, it's post #34 in this thread It involves installing (again) MyAndroidTools or equivalent alternative.
1. Open the app
2. Click on the top left corner to open the menu panel.
3. Click on Broadcast Receiver
4. Navigate to the System pane
5. Click on search on the top right. Search for Google Play Services. Click on them when they show up
6. In the search top right, write at least "sche" and you will see the two receivers responsible for the "net_scheduler" wakelock, "SchedulerInternalReceiver" and "SchedulerReceiver" . Here's a picture how it looks
7. Switch the first one off. The app will quit, don't worry.
8. Go back to where you were (steps 1 to 6) . You will see that you indeed managed to swtich that receiver off.
9. Switch the second one off. The app will quit, again no worries.
10. Check if you managed to switch the second one as well. After that you're done!
I hope I could help you guys out. I know there is nothing fancy in these methods but felt a thread might be useful as I saw a good number of requests when I mentioned it in the AKT thread.
Also sorry for misleading the guys I already told it was going to be a short guide, I honestly thought it would take way less words than it did. But I think it is for the better.
Have fun.
* Reserved *
Going through this guide, I was able to get the services disabled through root package disabler, bit my android tools kept force closing for some reason.
*edit* uninstalled, rebooted, reinstalled, and was able to get the app to stay open, and got them disabled. I'm curious to see what my wake locks are going to look like tomorrow. This is pretty much the nougat answer to amplify, huh? =)
MeggaMortY said:
* Reserved *
Click to expand...
Click to collapse
I think Everything is fine or?
tzbigworm said:
Going through this guide, I was able to get the services disabled through root package disabler, bit my android tools kept force closing for some reason.
*edit* uninstalled, rebooted, reinstalled, and was able to get the app to stay open, and got them disabled. I'm curious to see what my wake locks are going to look like tomorrow. This is pretty much the nougat answer to amplify, huh? =)
Click to expand...
Click to collapse
Hope it gets rid of those for you too. If I remember correctly I noticed the problem since Nougat, but then again I've been on Android since only a few months, coming from a big pause. Last time I was around we were rocking the HTC HD2 and had to deal with very different problems.
1+3_FA said:
I think Everything is fine or?
Click to expand...
Click to collapse
Yup looks great.
MeggaMortY said:
Hope it gets rid of those for you too. If I remember correctly I noticed the problem since Nougat, but then again I've been on Android since only a few months, coming from a big pause. Last time I was around we were rocking the HTC HD2 and had to deal with very different problems.
Click to expand...
Click to collapse
Crazy how much of a beast that phone was. People forget it's actually a windows phone, Android was put on it so much lol!
Thanks for the tips. Works great!
Thank you for your awesome work!
I have two more questions:
1. What about CampaignTrackingService? Could we disable this one as well?
2. In MyAndroidTools under Broadcast Receiver there are lots of receivers like AppMeasurementReceiver or FirebaseInstanceIdReceiver. They also need to be disabled or disabling the corresponding service is sufficient?
Thank you very much
youknownothing said:
Thank you for your awesome work!
I have two more questions:
1. What about CampaignTrackingService? Could we disable this one as well?
2. In MyAndroidTools under Broadcast Receiver there are lots of receivers like AppMeasurementReceiver or FirebaseInstanceIdReceiver. They also need to be disabled or disabling the corresponding service is sufficient?
Thank you very much
Click to expand...
Click to collapse
1. I initally disabled that in a few apps and didn't have problems System-wide or with the apps. So you can give it a go and in case of apps not functioning you can revert those back.
2. No for now it's okay to just use the Package Disabler for that. Like I said both apps have similiar functionality, there's probably a way to find the right service/receiver and disable it globally from MyAndroidTools, then we won't need the Package Disabler. But since it did work for me and I don't install new apps more than like once a week, I just didn't bother figuring it out. I can only say that disabling certain services/activities in MyAndroidTools can brake functionality or even bootloop your device, so be very careful in case you wanna find out if it's possible.
MeggaMortY said:
1. I initally disabled that in a few apps and didn't have problems System-wide or with the apps. So you can give it a go and in case of apps not functioning you can revert those back.
2. No for now it's okay to just use the Package Disabler for that. Like I said both apps have similiar functionality, there's probably a way to find the right service/receiver and disable it globally from MyAndroidTools, then we won't need the Package Disabler. But since it did work for me and I don't install new apps more than like once a week, I just didn't bother figuring it out. I can only say that disabling certain services/activities in MyAndroidTools can brake functionality or even bootloop your device, so be very careful in case you wanna find out if it's possible.
Click to expand...
Click to collapse
Thank you for your quick response. I'll give it a try, if anything goes wrong I'll let you know.
Is there any difference between Package Disabler and Disable Service app? I've tried the former, but it was really buggy. Scrolling was so glitchy and with lots of stutters that I've accidentally disabled few services. So I've used Disable Service with success. Now I only wonder whether both apps have the same functionality. Do you happen to know that?
Thanks in advance
youknownothing said:
Thank you for your quick response. I'll give it a try, if anything goes wrong I'll let you know.
Is there any difference between Package Disabler and Disable Service app? I've tried the former, but it was really buggy. Scrolling was so glitchy and with lots of stutters that I've accidentally disabled few services. So I've used Disable Service with success. Now I only wonder whether both apps have the same functionality. Do you happen to know that?
Thanks in advance
Click to expand...
Click to collapse
Assuming you're disabling services, which we are lol (should've been more obvious for me too I guess), I'd say you should be fine, and even say maybe the same goes for just using MyAndroidTools, just scroll through the Service menu in Table Third-Party and you'll see the same settings you applied with the other app/Package Disabler. I guess I was lazy to realize that since I liked I can favourite the apps I need to keep an eye on in the Package Disabler.
So all in all you should be okay, but even better you may try and just use MyAndroidTools for both. I have some exams coming so I won't be able to test those things but will make sure to update the tutorial if indeed that turns out to be right (for the app you suggested or even just MyAndroidTools).
Give a shout in case you find out something more. And thanks for the info
Followed the guide, thanks for this like said before kind of amplify for nougat. But as I was disabling net.schedule I noticed "my android tool" can do the fire base and app activity. Under service activity and press <...>
I suppose that this two methods doesn't compromise any function of the device right? For example loosing notifications or similar
Sent from my OnePlus 3
Mr.Jay said:
I suppose that this two methods doesn't compromise any function of the device right? For example loosing notifications or similar
Sent from my OnePlus 3
Click to expand...
Click to collapse
Like mentioned, it works fine for me, and probably depends on personal usage. I don't use Google Pay for example, and Chrome, and Google Music.... but besides those I haven't had problems anyway.
Disabled everything that is said to do in this thread and it worked great while I was at home while on wifi. I had drain of .5% an hour at times. However today while at work and on LTE, drain went up to 2.6% an hour, plus wakelocks from play services was waking up the device on average over 3 times a minute. When I looked into it further there was one service under play services where all the alarms were coming from. I do have a screenshot of this. Anyone have any insight to this? For the record, I do keep location off on my device.
Edit: I wonder f it comes from moving around a lot, as I'm always on the move as I manage a restaurant. Its not really a major drain, but still makes me wonder.
NJGSII said:
Disabled everything that is said to do in this thread and it worked great while I was at home while on wifi. I had drain of .5% an hour at times. However today while at work and on LTE, drain went up to 2.6% an hour, plus wakelocks from play services was waking up the device on average over 3 times a minute. When I looked into it further there was one service under play services where all the alarms were coming from. I do have a screenshot of this. Anyone have any insight to this? For the record, I do keep location off on my device.
Edit: I wonder f it comes from moving around a lot, as I'm always on the move as I manage a restaurant. Its not really a major drain, but still makes me wonder.
Click to expand...
Click to collapse
Have you disabled location history in the Google App? The problem is this guide fixes only one concrete aspect of the whole "Google stalking experience" shenanigans. Please check for the thing I mentioned and also in Settings -> Backup & Reset, make sure Back up my data is off if you haven't logged in an account and intend to use that - these two things were also draining battery for me when I was on the go as far as I can remember.
LMcR92 said:
Followed the guide, thanks for this like said before kind of amplify for nougat. But as I was disabling net.schedule I noticed "my android tool" can do the fire base and app activity. Under service activity and press <...>
Click to expand...
Click to collapse
I did some checking on that list and am currently testing a way to only use MyAndroidTools for the whole aproach. If it turns out to be working the whole guide would get reduced to like 10 clicks, since the settings are global. I'll post more info after a day or so to make sure it is working, but as for now I see promising results.
Anyone used Franco's Servicely app to do this?
Up, I have updated the guide to just using MyAndroidTools and disabling the receivers on a global scale. So now you just have to do it once and (hopefully) forget about it.
MeggaMortY said:
Up, I have updated the guide to just using MyAndroidTools and disabling the receivers on a global scale. So now you just have to do it once and (hopefully) forget about it.
Click to expand...
Click to collapse
Will Doing like #1 post notifications from Gmail?
techusthad said:
Will Doing like #1 post notifications from Gmail?
Click to expand...
Click to collapse
Don't know what you mean by #1 - disabling the AppMeasurement stuff, e.g. first set of instructions? I haven't had problems with Gmail and I use it with two accounts on there.
So here is a short Huawei Mate 10 Pro guide. It might work for other Huawei's as well. If so pls let me know.
How to kill ads on Huawei Mate 10 Pro without Rooting the phone
What does the good people of XDA think is the way to go to kill ads without rooting?
NB: These tips and tricks are not my brain work. It is a collection of problems, issues and solutions to things I've experienced with the Mate 10 Pro, and the solutions are the great work of this forum and various contributors. My only contribution is to try to gather them all here in post one so people don't need to read the whole thread. In particular i would like to thank Pretoriano80 for his contributions in this thread. He made my life easier. Thank you.
-------------------------------------------------------------------------------------------------------------------------------------------------------
Recap:
Remove Ads from browsers:
This solution worked well for removing ads from browsers, so I bought it from playstore to show my support. Thx to Pretoriano80 for resolving most of my ad problems.
This solution also takes care of the in-apps ads!
Pretoriano80 said:
Hi mate, i also hate aggressive ads, so after many trials and errors, i finally found the best (and also free and no Root) solution.
I'm using an app called "Virtual Hosts" which is blocking ADS by creating a local VPN and loading a host file.
The app is open source and you can get the apk for free, downloading it from here - > https://github.com/x-falcon/Virtual-Hosts/releases < - or from Playstore by paying it (both versions are identical).
Once installed, you can downloaded and use the "host" file from here - >
http://adblock.mahakala.is/ <- or use another one of your choice (i got the file from this thread - >
https://forum.xda-developers.com/showthread.php?t=1916098 )
Click to expand...
Click to collapse
Youtube without ads:
A youtube version that is slightly altered to filter out ads. Works on non rooted devices and can be installed alongside the original youtube. Notice the modified MicroG apk on the second quote for using this modified youtube with your google account.
Pretoriano80 said:
Yes, you can try the latest x64 version from here - > https://androidfilehost.com/?w=files&flid=236411 - > it doesn't need root and can be installed alongside YouTube, as a secondary YouTube. [emoji6]
Click to expand...
Click to collapse
Pretoriano80 said:
Yeah, in-app ads are also gone. [emoji16]
BTW, if you want to use your Google account with the modified YT app, then you will also need a modified MicroG apk, which is specifically designed for it.
Click to expand...
Click to collapse
How to root Huawei Mate 10 Pro:
Some of you looking into this thread might wanna have full control over your Mate 10 Pro by rooting. There are various ways but the MAGISK seems really nice, and you can choose which apps shall see root or not. Read more here; https://forum.xda-developers.com/apps/magisk
A short video of Magisk; https://www.youtube.com/watch?v=iFJVoIjKZJw
Pretoriano80 said:
Rooting with Magisk is possible on Mate 10 pro, so you can use banking app or any other app that requires a "stock" device. As long as you pass SafetyNET verification and you hide root from the eyes of those apps, than you can use them with Root.
Click to expand...
Click to collapse
Huawei Mate 10 Pro apps loosing 4G and Wifi connection
When I first started to use the Huawei Mate 10 Pro I noticed that every once on a while an app would not work when I tried to restart the app. Suddenly I got an error saying their was no data connection, meaning no 4G or wifi. It was faulty error because I could use data in other apps. For me typically the problem was related to Spotify and Audible. The only fix I could find right away was a full reboot. It always took care of the problem and apps would work properly. Reboots are not welcome in a busy day. So I've looked around and found that I could manually control the power saving management for each app in >setting>battery>Launch. By taking back the control apps worked flawless once again.
A few weeks ago we had a yet another firmware update. And behold, once again the problem started. Only this time even in manual mode in >Launch the apps would still loose their 4G connection randomly, or even wifi if at home. It seemed like a reboot was the only choice to get things working. Until I by pure luck tried to enable the Ultra Battery Saver from the pull down menu. Enable it, then exiting it somehow resolves any power saving issues. Apps they work fine, they get their data connection, both 4G and wifi. The quick fix takes only seconds to complete, and there is no need to do a full reboot in order to have apps fully working.
I'm using adguard. To avoid some popup that coming from browser. And in the same time, if the apps have ads and i use the app continuesly, I'll purchased it, as im supporting the developer.
joppy said:
So I got a new phone, after years with a LG G3 it finally tanked. Today the replacement came. Huawei Mate 10 Pro.
And what a strange experience it was to fire up the unrooted phone. So much ads. Everywhere. Overwhelming.
I've been on a custom ROM rooted G3 for the past 4 years or so. I forgot about the ads.
The plan was to keep this phone stock, no root. In order to comply with all the crazy folks that try to force us to not use rooted devices. But as many of you have seen too, there are so many services that we use daily that will not work with rooted phones. I've worked around that before and have been happy.
But for now I am not ready to use a custom Rom or to root.
how can I kill ads? Ad guard, DNS66 or maybe block-this?
Maybe I am getting old, have a touch of paranoia or are just not brave anymore. But adding APK from sources I don't know much about feels well not good. There are so many scams and ****ware floating around. I would hate to end up with crapware for trying to get some peaceful surf time without ads. Apps are for the most part OK, because I pay for almost all those apps I use, and by paying I support and avoid ads. But even using a browser to read news I get littered in ads. Man ads really take the fun out of internet. I would easily pay good money as yearly fee to avoid ads. IS there anything out there that will work as a paid app?
What does the good people of XDA think is the way to go to kill ads without rooting?
Click to expand...
Click to collapse
Hi mate, i also hate aggressive ads, so after many trials and errors, i finally found the best (and also free and no Root) solution.
I'm using an app called "Virtual Hosts" which is blocking ADS by creating a local VPN and loading a host file.
The app is open source and you can get the apk for free, downloading it from here - > https://github.com/x-falcon/Virtual-Hosts/releases < - or from Playstore by paying it (both versions are identical).
Once installed, you can downloaded and use the "host" file from here - >
http://adblock.mahakala.is/ <- or use another one of your choice (i got the file from this thread - >
https://forum.xda-developers.com/showthread.php?t=1916098 )
P. S : Let me know how it works for you. Here is working perfectly and with almost no battery drain.
In regards to browsers. I used to use Dolphin browser, which has a good ad blocker, but, ever since Oreo, it crashes when I enable the ad blocker. Anyone have luck using Dolphin? Firefox also has a pretty good ad blocker but I find it slow.
A while back I had to send the much beloved Lg G3 to change screen, and the week it took before it was returned I had a loaner phone, a G5. Phone was not rooted so I added a adblock by DNS can't remember the name of it, but that thing ate battery as well as cpu. One could feel phone starting to bog down while surfing. That being said, I didn't put any time and effort into the loaner phone so I didn't try to tweak anything so the sluggish result could be my mistake also.
As soon as I have made a complete backup I will start trying these, and the virtual host one by one and put a small review here in this thread. I just learned that twrp should now also work for unrooted devices. That makes me very happy as it is familiar to use. Got to check out to see if maybe even Titanium now will work for unrooted phones as well. That would be really sweet.
Forgot how much work it is to get a new phone. Nothing is the same, and every brand UI got their own take on small bits and pieces just so we get our heart rate going
If others have other suggestions for anti-ad apps I will make time to try those as well. Thx you all for your input. Much obliged.
I'm using adclear. Helps a lot.
joppy said:
A while back I had to send the much beloved Lg G3 to change screen, and the week it took before it was returned I had a loaner phone, a G5. Phone was not rooted so I added a adblock by DNS can't remember the name of it, but that thing ate battery as well as cpu. One could feel phone starting to bog down while surfing. That being said, I didn't put any time and effort into the loaner phone so I didn't try to tweak anything so the sluggish result could be my mistake also.
As soon as I have made a complete backup I will start trying these, and the virtual host one by one and put a small review here in this thread. I just learned that twrp should now also work for unrooted devices. That makes me very happy as it is familiar to use. Got to check out to see if maybe even Titanium now will work for unrooted phones as well. That would be really sweet.
Forgot how much work it is to get a new phone. Nothing is the same, and every brand UI got their own take on small bits and pieces just so we get our heart rate going
If others have other suggestions for anti-ad apps I will make time to try those as well. Thx you all for your input. Much obliged.
Click to expand...
Click to collapse
Root was never required for TWRP to work, only unlocked bootloader. Anyway, there's no TWRP available yet for Mate 10 Pro.
Titanium Backup will never work without root cause is the only way it can write on the /data partition.
Oh ok I thought that no-root-needed was a new feature for twrp. I guess as Titanium will not work with un rooted phones neither will any other apps similar to Titanium?
Is there any apps similar to twrp that will work with Huawei Mate 10 Pro?
No matter what I guess I just have to start testing adblockers this weekend. Because I can't take all the ads I struggle with now. Too bad I didn't start out with the new phone by testing, before I sat up the phone they way it is now, with all apps, settings etc. Cos now if I would like a fresh start after testing various adblockers I will need to do the whole process of installing and tweaking all over again unless I find something like twrp for the Mate Pro 10.
Btw the xda app named my device BLA-L29, is that a name that is widely used for the Mate 10 Pro? Never seen this name before.
joppy said:
Oh ok I thought that no-root-needed was a new feature for twrp. I guess as Titanium will not work with un rooted phones neither will any other apps similar to Titanium?
Is there any apps similar to twrp that will work with Huawei Mate 10 Pro?
No matter what I guess I just have to start testing adblockers this weekend. Because I can't take all the ads I struggle with now. Too bad I didn't start out with the new phone by testing, before I sat up the phone they way it is now, with all apps, settings etc. Cos now if I would like a fresh start after testing various adblockers I will need to do the whole process of installing and tweaking all over again unless I find something like twrp for the Mate Pro 10.
Btw the xda app named my device BLA-L29, is that a name that is widely used for the Mate 10 Pro? Never seen this name before.
Click to expand...
Click to collapse
Installing the app i recommended has no risk, you don't need to backup anything. If it works and you like it, then you keep it, if not, just uninstall the app simple as that.
That app is open source, so no bloatware or any hidden stuff, it doesn't use DNS to circumvent ads and doesn't track anything, all it does is pointing Internet traffic to your "host" file, it's nothing like AdGuard and similar apps that also sell your data to third parties.
It only takes 5 minutes to test and decide, without any harm. [emoji6]
@Pretoriano80 thx a lot. That worked great, so great I had to support by buying the app.
Next step is to make youtube clutter free.
joppy said:
@Pretoriano80 thx a lot. That worked great, so great I had to support by buying the app.
Next step is to make youtube clutter free.
Click to expand...
Click to collapse
No problem, i knew it would work perfectly. Battery drain is also low and it doesn't throttle net performance.
I think that for YouTube the only alternative with no root is to use a modified version (look here on XDA if interested).
@Pretoriano80 Not sure I follow you, modified youtube? Search came up blank.
Is that an app/apk to replace the default youtube app? Because when I try to uninstall youtube from phone I get an error msg saying "system app can not be uninstalled". Should I just overwrite?
joppy said:
@Pretoriano80 Not sure I follow you, modified youtube? Search came up blank.
Is that an app/apk to replace the default youtube app? Because when I try to uninstall youtube from phone I get an error msg saying "system app can not be uninstalled". Should I just overwrite?
Click to expand...
Click to collapse
You should be able to deactivate the app and install the modded apk.
Ok, will retry. Seems that iYTBP - injected YouTube Background Playback might be a solution worth trying?
https://forum.xda-developers.com/android/apps-games/app-iytbp-injected-youtube-background-t3560900
If you have tried other ones that works well for you feel free to share and recommend.
joppy said:
Ok, will retry. Seems that iYTBP - injected YouTube Background Playback might be a solution worth trying?
https://forum.xda-developers.com/android/apps-games/app-iytbp-injected-youtube-background-t3560900
If you have tried other ones that works well for you feel free to share and recommend.
Click to expand...
Click to collapse
Yes, you can try the latest x64 version from here - > https://androidfilehost.com/?w=files&flid=236411 - > it doesn't need root and can be installed alongside YouTube, as a secondary YouTube. [emoji6]
joppy said:
Ok, will retry. Seems that iYTBP - injected YouTube Background Playback might be a solution worth trying?
https://forum.xda-developers.com/android/apps-games/app-iytbp-injected-youtube-background-t3560900
If you have tried other ones that works well for you feel free to share and recommend.
Click to expand...
Click to collapse
You Can use newpipe. You Can download it for free on f droid open source market. Works very well
Thx again @Pretoriano80. Now I got a phone that is very usable and responsive and it is still not rooted. I will quote your ad free youtube solution in the first post so others find what they need easily.
Now lets hope all them crazy people out there stops with the root discriminating behavior, so that people in the future damn well self decide to root or not without being locked out from using services, apps or whatever.
joppy said:
Thx again @Pretoriano80. Now I got a phone that is very usable and responsive and it is still not rooted. I will quote your ad free youtube solution in the first post so others find what they need easily.
Now lets hope all them crazy people out there stops with the root discriminating behavior, so that people in the future damn well self decide to root or not without being locked out from using services, apps or whatever.
Click to expand...
Click to collapse
Yeah, in-app ads are also gone. [emoji16]
BTW, if you want to use your Google account with the modified YT app, then you will also need a modified MicroG apk, which is specifically designed for it.
One more thing to get sorted, and that is a backup. I would prefer to find a custom recovery image that works with Huawei Mate 10 Pro, and that will also work well for non-rooted devices.
I have only used twrp myself, but twrp will not work with Mate 10 Pro. I also know about cwm recovery, have not tried it yet but that one will only work for rooted devices. So neither twrp or cwm will work for the BLA-L29/Mate 10 Pro.
Any suggestions?
joppy said:
One more thing to get sorted, and that is a backup. I would prefer to find a custom recovery image that works with Huawei Mate 10 Pro, and that will also work well for non-rooted devices.
I have only used twrp myself, but twrp will not work with Mate 10 Pro. I also know about cwm recovery, have not tried it yet but that one will only work for rooted devices. So neither twrp or cwm will work for the BLA-L29/Mate 10 Pro.
Any suggestions?
Click to expand...
Click to collapse
For backup use Huawei Backup on your phone, or HiSuite on PC... works just fine.
I already have 2 versions of screen2auto displayed inside android auto. The 2nd one is a cloned one of the original. So I have 2 icons of screen2auto with the same name.. Anyone know what I should change in apk editor or other alternative app to change the name of the cloned? To have for example screen2auto and screen2autoB, or something.. If possible to change the icon also..
If anyone ask himself why to do that. One reason is to run different apps by one click. For example in cloned version of Screen2auto I have select in the settings to run youtube at start.. If i change the name and the icon of Screen2auto to : "YouTube" then I will have inside android auto launcher a YouTube icon which will auto launch YouTube with just 1 click. You could actually do the same by cloning 3rd time screen2auto by name IPTV and an iptv icon, and have 1 click run your iptv app. Etc for every app you want.
If you actually try this, you will find that after running the cloned app you have problems eg freezing (because you started original app screen2auto before), but you can solve this by calling a tasker script to kill screen2auto app every time you go back to android auto launcher..
I have tried all this and are working. I just miss what I ask, a way to change name and icon inside android auto original launcher. If anyone knows post a solution.
I have done this at past, changing name and icon but not in screen2auto but alternative mirroring app that was the main mirroring app then.. So it can be done probably in screen2auto.
Thanks,
I guess you will have to decompile the app. There are instructions online.
Afterwards you can change the Manifest file and look for the icon within the decompiled files.
In the end you can compile the app again and probably you will have to sign it.
But noone will guarantee that your app will work afterwards...
Therefore in my opinion this is a lot of work with no guarantee that the result will be fine in the end.
My proposal is to ask the developer to provide you all 3 apps with mods. I think if you buy him a coffee it will be possible.
SOFO888 said:
I guess you will have to decompile the app. There are instructions online.
Afterwards you can change the Manifest file and look for the icon within the decompiled files.
In the end you can compile the app again and probably you will have to sign it.
But noone will guarantee that your app will work afterwards...
Therefore in my opinion this is a lot of work with no guarantee that the result will be fine in the end.
My proposal is to ask the developer to provide you all 3 apps with mods. I think if you buy him a coffee it will be possible.
Click to expand...
Click to collapse
You are probably right.. There is apk editor, which do mods like this easily but it's true that is not working well with screen2auto.. In previous mirroring app it was working good. Perhaps i may try some other tool, to see if it works better.. Also i don't know where in the code is the information for name (inside AA) and the icon. Someone who create AA apps should know.
I may send a developer a mail, if he wants to support something Iike the above, i describe.