[Open-Source project] Smart makes meizu Smartbar Smart and smartbarsmart
The latest version is Smart 1.1 beta.
0. Known issues
A) Currently, I only have mx3 testing machines and have tested them on flyme 3.3.2,
B) There will be white lines in the flyme3.6 + version of smartbar. Please wait.
C) Some applications that have been adapted to smartbar will also be removed) (will be fixed in version 1.2beta)
1. Why Smart?
Because it is Smart and its function is Smart to go to the Bar of SmartBar, it is called Smart.
2. What are the prerequisites for installing it?
A) It must be android4.0.3 or above and not in the ART mode (that is, android4.4 is not supported). Due to the limitations of the xposed framework (rovo89 is under great efforts)
B) install the xposed framework (root permission required)
3. How to install
A) download and install the xposed framework
B) activate the framework (requires restart)
C) install Smart
D) In the xposed-module, attach Smart to the hook.
F) Restart
Simply put, two apps are installed, and the app can be restored to normal after being deleted without refreshing the machine.
4. free or freedom?
Free and open-source
5. Are there any risks?
Installing xposed is risky, and root is risky. Be careful
6. Intelligent smartbar determination Principle
A) First, determine whether actionbar is supported. Do not remove smartbar (such as letv TV and sogou phone numbers)
B) If actionbar is supported, check whether windows's UiOptions are splitActionBarWhenNarrow. If not, remove smartbar (for example)
C) if both of the preceding conditions are met, determine the number of items in the menu. If the value is greater than 0, there are additional back operations in smartbar, so the smartbar cannot be removed, otherwise, the smartbar will be removed directly (for example, several apps that come with the system)
7. Smart principles
Yesterday I saw some ways to go to smartbar, see a classmate to share the tutorial http://garth.im/2014/04/decompile-app-to-disappear-smartbar/
I decomcompiled SmartBarUtil. smali and used a piece of code.
public static void Hide(View decorView) { if(!HasSmartBar()) { return; } try { Class[] arrayOfClass = new Class[0x1]; arrayOfClass[0x0] = Integer.TYPE; Method localMethod = View.class.getMethod("setSystemUiVisibility", arrayOfClass); Field localField = View.class.getField("SYSTEM_UI_FLAG_HIDE_NAVIGATION"); Object[] arrayOfObject = new Object[0x1]; try { arrayOfObject[0x0] = localField.get(0x0); } catch(Exception localException1) { } localMethod.invoke(decorView, arrayOfObject); return; } catch(Exception e) { e.printStackTrace(); } }
The main idea is to use the xposed framework to hook the onCreatePanelMenu of each app activity,
After the menu is generated, perform the smartbar judgment and operation.
Prior to this, we will determine whether actionbar is supported to process apps compiled earlier (letv TV and sogou phone numbers)
8,
Http://pan.baidu.com/s/1hqHwH1M
9. Run
10. Open Source Address
Https://github.com/ashqal/SmartbarCracker
11. Graphic installation instructions
What is the smart bar automatically adjusted by meizu mx3?
That is, the distance between the two sides of the Smartbar?
This is certainly the answer to those who have read the 9.2 press conference.
The distance between the two sides of Smartbar is 140px ~ 160px indicates that the two sides of the Smartbar are 140 pixels away from the edge of the screen ~ 160 pixels.
Automatic Adjustment means that when you are at a point of 140 pixels, your hand will always fail to be reached, and the point is to the right of the Return key. The system automatically recognizes 140px, which is a little far away. We recommend that you use 150 or PX on the machine, this makes it easier to click.
:
Meizu enterprise Platform [Official Certification]
How to enable the menu key for a game after meizu MX2 removes the smart bar
Smartbar is compatible with Android 4.0 and above, and this is a trend! More and more software will meet the 4.0 standard in the future!
However, some software is currently developed based on the android 2.0 specification, so there will be a pain in the double-Bottom Bar!
Therefore, for users, it is the standard development that expects the software to be updated to 4.0 as soon as possible! If smartbar is removed, it can be understood as degradation! As the times go forward, meizu's smartbar seems a little radical, but soon, this year, more and more mobile phone manufacturers will remove the return key and menu key and integrate it into smartbar! At that time, if the software is not updated and supports smartbar, there will be a dual-bottom column, I am afraid you will say that this spam software is actually a dual-bottom column!