Skip to content

Commit

Permalink
huawei
Browse files Browse the repository at this point in the history
  • Loading branch information
Artaud committed Sep 10, 2019
1 parent fcc5f98 commit 1eefe3f
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 32 deletions.
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ group :jekyll_plugins do
gem 'hawkins'
end


# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem "tzinfo-data", platforms: [:mingw, :mswin, :x64_mingw, :jruby]

Expand Down
38 changes: 19 additions & 19 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
GEM
remote: https://rubygems.org/
specs:
addressable (2.5.2)
public_suffix (>= 2.0.2, < 4.0)
addressable (2.7.0)
public_suffix (>= 2.0.2, < 5.0)
colorator (1.1.0)
concurrent-ruby (1.1.4)
concurrent-ruby (1.1.5)
em-websocket (0.5.1)
eventmachine (>= 0.12.9)
http_parser.rb (~> 0.6.0)
eventmachine (1.2.7)
ffi (1.9.25)
ffi (1.11.1)
forwardable-extended (2.6.0)
hawkins (2.0.5)
em-websocket (~> 0.5)
jekyll (~> 3.1)
http_parser.rb (0.6.0)
i18n (0.9.5)
concurrent-ruby (~> 1.0)
jekyll (3.8.5)
jekyll (3.8.6)
addressable (~> 2.4)
colorator (~> 1.0)
em-websocket (~> 0.5)
Expand All @@ -30,43 +30,43 @@ GEM
pathutil (~> 0.9)
rouge (>= 1.7, < 4)
safe_yaml (~> 1.0)
jekyll-feed (0.11.0)
jekyll (~> 3.3)
jekyll-redirect-from (0.14.0)
jekyll (~> 3.3)
jekyll-feed (0.12.1)
jekyll (>= 3.7, < 5.0)
jekyll-redirect-from (0.15.0)
jekyll (>= 3.3, < 5.0)
jekyll-sass-converter (1.5.2)
sass (~> 3.4)
jekyll-seo-tag (2.5.0)
jekyll (~> 3.3)
jekyll-seo-tag (2.6.1)
jekyll (>= 3.3, < 5.0)
jekyll-target-blank (1.1.1)
jekyll (~> 3.0)
nokogiri (~> 1.8.2)
jekyll-watch (2.1.2)
jekyll-watch (2.2.1)
listen (~> 3.0)
kramdown (1.17.0)
liquid (4.0.1)
liquid (4.0.3)
listen (3.1.5)
rb-fsevent (~> 0.9, >= 0.9.4)
rb-inotify (~> 0.9, >= 0.9.7)
ruby_dep (~> 1.2)
mercenary (0.3.6)
mini_portile2 (2.3.0)
minima (2.5.0)
jekyll (~> 3.5)
minima (2.5.1)
jekyll (>= 3.5, < 5.0)
jekyll-feed (~> 0.9)
jekyll-seo-tag (~> 2.1)
nokogiri (1.8.5)
mini_portile2 (~> 2.3.0)
pathutil (0.16.2)
forwardable-extended (~> 2.6)
public_suffix (3.0.3)
public_suffix (4.0.1)
rb-fsevent (0.10.3)
rb-inotify (0.10.0)
ffi (~> 1.0)
rouge (3.3.0)
rouge (3.10.0)
ruby_dep (1.5.0)
safe_yaml (1.0.4)
sass (3.7.2)
safe_yaml (1.0.5)
sass (3.7.4)
sass-listen (~> 4.0.0)
sass-listen (4.0.0)
rb-fsevent (~> 0.9, >= 0.9.4)
Expand Down
33 changes: 20 additions & 13 deletions _vendors/huawei.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,26 +9,31 @@ position: 1
explanation: "
<div class='caution-box'>
UPDATE: It seems on EMUI 9+ (Android P+) Huawei introduced a new task killer app called PowerGenie which kills everything not whitelisted form Huawei and does not give users any configuration options. See below how to uninstall it.
<strong>UPDATE</strong>: On some phones with EMUI 9+ (Android P+) Huawei introduced a new task killer app called PowerGenie which kills everything not whitelisted by Huawei and does not give users any configuration options. See below how to uninstall it.
<br>
We have mixed reviews on Huawei - the PowerGenie app is present on some EMUI 9+ systems, while on others it isn't.
</div>
Traditionally Huawei and their Android customization called EMUI belongs to the most troubled on the market with respect to non-standard background process limitations.
There are no APIs and no documentation for those extensions. In default settings background processing simply does not work right and apps working in background will break.
There are no APIs and no documentation for those extensions. On default settings, background processing simply does not work right and apps working in background will break.
In some of the EMUI versions (we know about EMUI 4 at and we have some reports about EMUI 5 and now the latest EMUI 9) no user accessible settings can prevent the system to break background processing longer than 60 minutes. This is done by an evil custom service called HwPFWService (and in EMUI 9 this is called PowerGenie) developed and bundled with EMUI by Huawei.
"

user_solution: '
user_solution: "
### EMUI 9+ devices
Huawei is extremely inventive in breaking apps on there devices. It seems on Android Pie, in addition to all the non-standard power management measures described below
they introduced a new task killer app build right into EMUI 9. It is called PowerGenie and you cannot add custom apps on their pre-defined whitelist. This means there is
no other way to fix proper app functionality on Huawei than uninstalling PowerGenie.
they introduced a new task killer app build right into EMUI 9.
It is called <b>PowerGenie</b> and it kills all apps that are not on its whitelist. You cannot add custom apps on their pre-defined whitelist. This means there is
no other way to fix proper app functionality on Huawei than uninstalling PowerGenie.
Expand Down Expand Up @@ -56,13 +61,15 @@ You need to:
`adb shell pm uninstall --user 0 com.huawei.powergenie`
Please still follow the steps below and Huawei does not have a single power saving mechanism but rather multiple.
We did not yet have this confirmed but it is possible you can alternatively just disable PowerGenie in *Phone settings > Apps*. This setting would need to be re-applied every time you reboot your device.
We did not yet had this confirmed but it is possible you can alternatively just disable PowerGenie in *Phone settings > Apps* but this setting needs to be re-applied every time you reboot your device.
<div class=\"caution-box\">
Please still follow the steps below - Huawei phones usually have multiple powersaving mechanisms.
<br><br>
Also, you may not have PowerGenie on your phone, but your apps may still get killed by another mechanism.
</div>
### EMUI 6+ devices (and some EMUI 5 devices)
Expand All @@ -80,21 +87,21 @@ We did not yet had this confirmed but it is possible you can alternatively just
* *Phone settings > Apps > Settings > Special access > Ignore battery optimisation >* select allow for your app.
### Huawei P20
### Huawei P20, Huawei P20 Lite, Huawei Mate 10
* *Phone settings > Battery > App launch* and then set your app to “Manage manually” and make sure everything is turned on.
Alo for reliable background processes you need to uninstall PowerGenie as described above.
Also for reliable background processes you may need to uninstall PowerGenie as described above.
### Huawei Honor 9 Lite, Huawei Mate 9 Pro
* *Phone settings > Battery > Launch* and then set your app to “Manage manually” and make sure everything is turned on.
On EMUI 4 there is no way out, sorry, but you can ask developers of your apps to implement the workaround described in <a href="#developer-solution-section">Developer section</a>
On EMUI 4 there is no way out, sorry, but you can ask developers of your apps to implement the workaround described in <a href=\"#developer-solution-section\">Developer section</a>
'
"

developer_solution: "
Expand Down

0 comments on commit 1eefe3f

Please sign in to comment.