Huawei G9 Plus/ Nova Plus mods - Huawei Nova/Nova Plus Guides, News, & Discussion

I bought G9 plus, but for now it is on the way to me. I'm curious is somebody tried to enable camera 2 api? 1080p 60fps video recording? Raw photo? Double tap wake up? Stereo video recording without ugly noise cancellation?
Who wants to try, do it at your own risk, but i will be Grateful if you can check this mods.
Enable double tap wake up, works on mate 8. original theme https://forum.xda-developers.com/mate-8/general/enable-double-tap-to-wake-t3312676
I checked in g9 plus there is hw_easywakeupmotion_config.xml with mentioned lines, so mod should work in g9 plus too.
1) Go into system/build.prop and open it in your favorite text editor. Find the line that says ro.config.hw_easywakeup=false and change the false to true then save your changes.
2) Go to system/emui/base/xml and open up the hw_easywakeupmotion_config.xml in your favorite text editor. Find the line that says <EasyWakeupMotion name="Double_Touch" support="1" value="0" flag="0" keycode="131" /> and change the value=0 to value=1 then save your changes.
3) Restart your phone
4) Go into Settings/Smart Assistance/Motion Control and at the bottom you will now see Double Touch. Turn it on.
5) Restart your phone and you will have Double Tap to Wake enabled and working.
Enable camera2 api
add to bottom of build.prop
string:
persist.camera.HAL3.enabled=1
after saving changes to build.prop i think reboot required to changes take effect
you can test if camera2 api start work with app https://play.google.com/store/apps/details?id=pl.vipek.camera2_compatibility_test&hl=ru
or
1. Open terminal and issue command:
getprop | grep camera
If it's running, you should be able to find a line
persist.camera.HAL3.enabled 1
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Enable RAW capture in the stock EMUI camera app source https://forum.xda-developers.com/huawei-p9lite/how-to/guide-enable-raw-capture-stock-camera-t3623530
1. Ensure your device is rooted
2. Use a root file explorer and navigate to /system/emui/lite/prop/local.prop and open the file as text.
3. Change the value of ro.build.hw_emui_lite.enable from true to false
4. Save the file
5. Reboot the device
6. Open the stock Camera app
7. Enable Pro Photo mode
8. Go to settings and enable RAW.
Happy shooting, happy editing.
If you know some more mods, please post in this thread.

My thoughts about video stereo recording, can some one test it?
1. backup /vendor/etc/mixer_paths.xml
2. in /vendor/etc/mixer_paths.xml
Code:
<path name="camcorder-mic">
<path name="handset-mic" />
change to
Code:
<path name="camcorder-mic">
<path name="speaker-dmic-endfire" />
or
Code:
<path name="camcorder-mic">
<path name="dmic-endfire" />
after saving changes to /vendor/etc/mixer_paths.xml reboot required to changes take effect

Good news!) Huawei NOVA can shoot in HDR+ by simple enabling camera2api and installing gcam.
Sample photos here http://4pda.ru/forum/index.php?showtopic=769885&view=findpost&p=64314965
That is mean Huawei NOVA Plus can this too!!)

"Enable double tap wake up" doesn't supported because lack of kernel and touch driver support.
Enable camera2 api SUCCESS!!)
Enable RAW capture in the stock EMUI camera app failed

Samples G9 Plus Gcam 3.2.045 HDR+ (HAL3) vs ~ default camera (HAL1)​
G9 Plus Gcam 3.2.045 HDR+(HAL3)
Lumio camera = almost default camera (HAL1)

Macro examples HDR+​

Fix Huawei accelerometer tilt
Fix accelerometer tilt​
Video of issue https://yadi.sk/i/fPoYgs3O3N5ssc​In russian language, with history of finding way to manage http://4pda.ru/forum/index.php?showtopic=846874&view=findpost&p=66664464
The instruction for editing the X-axis, similarly can be corrected Y, Z axis too
1. Turn on logcat, it's more convenient through the computer
2. Run any program that uses an accelerometer, wait few secconds
3. Stop the logcat, and look for something like this in it:
10-16 21:30:03.124: I/qti_sensors_hal(1396): read from oem info: data_readback
10-16 21:30:03.124: I/qti_sensors_hal(1396): 0xb3, 0x71, 0x4f, 0xbf
10-16 21:30:03.124: I/qti_sensors_hal(1396): 0x66, 0x92, 0xed, 0x3d
10-16 21:30:03.124: I/qti_sensors_hal(1396): 0xbf, 0xa0, 0x7f, 0x3f
10-16 21:30:03.124: I/qti_sensors_hal(1396): 0x55, 0x0, 0x0, 0x0
10-16 21:30:03.124: I/qti_sensors_hal(1396): 0x0, 0x0, 0x0, 0x0
10-16 21:30:03.124: E/qti_sensors_hal(1396): read from oem info: data_valid_flag=0x55
10-16 21:30:03.124: E/qti_sensors_hal(1396): read from oem info: x_offset=-0.810329, y_offset=0.116002, z_offset=0.998547
10-16 21:30:03.124: E/qti_sensors_hal(1396): Final value: x_offset=-0.810329, y_offset=0.116002, z_offset=0.998547
Click to expand...
Click to collapse
4. Open file /dev/block/platform/soc/7824900.sdhci/by-name/oeminfo through "hex редактор" https://play.google.com/store/apps/details?id=tuba.tools.hexfull&hl=ru
5. Looking for hex values from logcat in oeminfo, in my case this is: b3 71 4f
6. Find right hex values - change, save, start the logcat look at the line E/qti_sensors_hal(1396): Final value: x_offset=-0.810329, if there is a change in the right way - more / less, depending on the nature of accelerometer tilt error of your phone, then continue to change the value until you achieve desired values of x_offset. You can use values from the neighboring Y, Z axes if you think they are right for you. For example, first I inserted values from the line 0x66, 0x92, 0xed, 0x3d and got x_offset about 0.1. But I needed x_offset = 0.0 for this I go further and found out that is b3 39 0 0 is x_offset = 0.0 for me.
7. Enjoy that now you have accelerometer that show correct level
​

Related

List Of .lnks

Can we get a list of shortcuts going on here...maybe get this stickied...I'll start off with the one for contacts...
23#"\Windows\poutlook.exe" contacts
Please move if this is not in the right section
Links for settings:
Settings>Personal>Password>Password = 20#ctlpnl cplmain.cpl,1
Settings>Personal>Password>Hint = 22#ctlpnl cplmain.cpl,1,1
Settings>Personal>Owner Information>Identification = 20#ctlpnl cplmain.cpl,2
Settings>Personal>Owner Information>Notes = 22#ctlpnl cplmain.cpl,2,1
Settings>Personal>Owner Information>Options = 22#ctlpnl cplmain.cpl,2,2
Settings>System>Power>Main = 20#ctlpnl cplmain.cpl,3
Settings>System>Memory>Main = 20#ctlpnl cplmain.cpl,4
Settings>System>Memory>Storage Card = 22#ctlpnl cplmain.cpl,4,1
Settings>System>Memory>Running Programs = 22#ctlpnl cplmain.cpl,4,2
Settings>System>About>Version = 20#ctlpnl cplmain.cpl,5
Settings>System>About>Device ID = 22#ctlpnl cplmain.cpl,5,1
Settings>System>About>Copyrights = 22#ctlpnl cplmain.cpl,5,2
Settings>System>Backlight>Brightness = 20#ctlpnl cplmain.cpl,6
Settings>System>Backlight>Battery power= 20#ctlpnl cplmain.cpl,6,1
Settings>System>Backlight>External power = 20#ctlpnl cplmain.cpl,6,2
Settings>System>Screen>General = 20#ctlpnl cplmain.cpl,7
Settings>System>Screen>Clear Type = 22#ctlpnl cplmain.cpl,7,1
Settings>System>Screen>Text Size = 22#ctlpnl cplmain.cpl,7,2
Settings>Personal>Input>Input Method = 20#ctlpnl cplmain.cpl,8
Settings>Personal>Input>Word Completion = 22#ctlpnl cplmain.cpl,8,1
Settings>Personal>Input>Options = 22#ctlpnl cplmain.cpl,8,2
Settings>Personal>Sounds & Notifications>Sounds = 20#ctlpnl cplmain.cpl,9
Settings>Personal>Sounds & Notifications>Notifications = 22#ctlpnl cplmain.cpl,9,1
Settings>System>Remove Programs = 21#ctlpnl cplmain.cpl,10
Settings>Personal>Menus>Start Menu = 21#ctlpnl cplmain.cpl,11
Settings>Personal>Menus>New Menu = 23#ctlpnl cplmain.cpl,11,1
Settings>Personal>Buttons>Program Buttons = 21#ctlpnl cplmain.cpl,12
Settings>Personal>Buttons>Up/Down Controls = 23#ctlpnl cplmain.cpl,12,1
Settings>Personal>Today>Appearance = 21#ctlpnl cplmain.cpl,13
Settings>Personal>Today>Items = 23#ctlpnl cplmain.cpl,13,1
Settings>Connections>Beam = 21#ctlpnl cplmain.cpl,15
Settings>System>Clock & Alarms>Time = 21#ctlpnl cplmain.cpl,16
Settings>System>Clock & Alarms>Alarms = 23#ctlpnl cplmain.cpl,16,2
Settings>Connections>Network Cards = 21#ctlpnl cplmain.cpl,17
Settings>System>Regional Settings>Region = 21#ctlpnl cplmain.cpl,18
Settings>System>Regional Settings>Number = 23#ctlpnl cplmain.cpl,18,1
Settings>System>Regional Settings>Currency = 23#ctlpnl cplmain.cpl,18,2
Settings>System>Regional Settings>Time = 23#ctlpnl cplmain.cpl,18,3
Settings>System>Regional Settings>Date = 23#ctlpnl cplmain.cpl,18,4
Settings>Connections>Connections>Task = 21#ctlpnl cplmain.cpl,19
Settings>Connections>Connection>Advanced = 23#ctlpnl cplmain.cpl,19,1
Settings>Personal>Phone>Phone = 21#ctlpnl cplmain.cpl,20
Settings>Personal>Phone>Services = 23#ctlpnl cplmain.cpl,20,1
Settings>Personal>Phone>Network = 23#ctlpnl cplmain.cpl,20,2
Settings>Personal>Phone>More = 23#ctlpnl cplmain.cpl,20,3
Settings>System>Certificates>Personal = 21#ctlpnl cplmain.cpl,22
Settings>System>Certificates>Root = 23#ctlpnl cplmain.cpl,22,1
Settings>Connections>Bluetooth>Mode = 21#ctlpnl cplmain.cpl,23
Settings>Connections>Bluetooth>Devices = 23#ctlpnl cplmain.cpl,23,1
Calendar agenda view
21#:MSCALENDAR -va?outres.dll,-100002
Calendar day view
21#:MSCALENDAR -vd?outres.dll,-100002
Calendar month view
21#:MSCALENDAR -vm?outres.dll,-100002
Calendar week view
21#:MSCALENDAR -vw?outres.dll,-100002
Calendar year view
21#:MSCALENDAR -vy?outres.dll,-100002
(Edit: Calendar must be already running in the background for these to work)
MMS
20#"\Windows\tmail.exe"-service "MMS"
email
20#"\Windows\tmail.exe"-service "ActiveSync"
SMS
20#"\Windows\tmail.exe"-service "SMS"
sms open inbox
20#"\Windows\tmail.exe" -service "SMS" -open "inbox"
straight away compose
20#"\windows\tmail.exe" -service "SMS" -to ""
Thanks folks, nice thread, been looking for some of these.
How do you edit the shortcuts?
daverage said:
How do you edit the shortcuts?
Click to expand...
Click to collapse
You can use notes on your PPC or Notepad on your desktop.
Maknificent said:
Can we get a list of shortcuts going on here...maybe get this stickied...I'll start off with the one for contacts...
23#"\Windows\poutlook.exe" contacts
Please move if this is not in the right section
Click to expand...
Click to collapse
Gives me a folder icon?
blazingwolf said:
You can use notes on your PPC or Notepad on your desktop.
Click to expand...
Click to collapse
Thanks!! That is perfect
Sorry but ...
This is useful for...?
Thanks in advance!!!
mikhe69 said:
Sorry but ...
This is useful for...?
Thanks in advance!!!
Click to expand...
Click to collapse
...
This is very usefull if you want to create, for intance, quick "send message to..." and stuf like that daaah
In conjuntions with QuickMenu and programs like that, this is most usefull
Anyone has shortcut for phone to <number>?!?!?
this one give me a prompt to confime....
20#"\Windows\cprog.exe"-url tel:<number>
...
Ok- Ive tried all these to get a lnk for email to contact to work for NewMenu..
20#"\windows\tmail.exe" -service "activesync" -to "xxxxx" xxxxx=contact
Will open outlook inbox. If I leave -service off it will ask me for the type of messaging service to select then it inserts the contact correctly. Thats the closest Ive got it to work.
23#"\windows\poutlook.exe" -service "activesync" -to "xxxxx" xxxxx=contact
Any ideas??? I'm pulling my hair out on this one and dont have much left.
These should be posted to WIKI
This is very useful for some of the new themes....ie the iPhone theme, or both of the Cube themes that have been created. Thanks to all who have contributed.
Tried the wiki... keep getting this error...
lib/WikiDB.php:468: Fatal[0]: <br />/var/www/phpwiki/lib/WikiDB.php:468: : Assertion failed <br />
does anyone know the file for launching the programs folder like in the start menu? I'd like to map that to one of my softkeys. i have the HTC home plugin which has a launch programs folder icon that works, but cant find the lnk from that anywhere either. many thanks for the help and great idea for a thread.
You can get the folderview.exe from HTC Home Plugin. That .exe opens up Programs folder from start menu
dferreira said:
You can get the folderview.exe from HTC Home Plugin. That .exe opens up Programs folder from start menu
Click to expand...
Click to collapse
that was no luck, unfortunately. I have WA3 installed, which must have done something, because when running folderview.exe it is all blank with 1 folder- programs, and when I click that i get something entirely blank. the programs launcher button on the home plugin works perfectly though, blunders wonders.
----------------
Now playing: Pink Floyd - Hey You
via FoxyTunes
how do you add icon images for these shortcut files/
Shortcut Creator
bowlopho said:
how do you add icon images for these shortcut files/
Click to expand...
Click to collapse
Shortcut Creator could be interesting for you....
another easy option to create a shortcut is QuickMenu (nice tool ):
When you select QuickMenu > Execute you can run a command including an parameter and also create a shortcut:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
cheers

[Tutorial] How to simply get TRACE output from native dll to managed VS2010 debugger

Hi friends.
There is simple tutorial. We use WP7 DllIprort Project, or another native Dlls, to enable our managed (mostly Silverlight) applications to do any system calling. But, debuging of hybrid applications is difficult. May be, somebody is able to make publicly usable source to use standard Visual Studio way to test and debug native Dlls, but Ultrashot and others have no time, they have important things to do.
Then, I prepared simple library, which export native TRACE macro and managed wrapper too.
Using:
1. Copy all content from attachment NativeDebugTraceVS2008 directory to your VS2008 native dll project directory.
2. Add NativeDebug2008.dll and NativeDebugTrace.h to your native dll project.
3. Add line:
#include "NativeDebugTrace.h"
on top of your native c++ source code.
4. Use TRACE macro in your code. Syntax is usual, example:
...
int nVal = 1+1;
TRACE(L"%s = %d", L"nVal", nVal);
...
Output is showed in "normal" VS2008 Output window too, when you debug under VS2008.
If you have used another TRACE macro in your code, you can rename TRACE macro to ANY_OTHER_TRACE_NAME in NativeDebugTrace.h and call this another macro.
5. Copy all content from attachment NativeDebugTraceVS2010 directory to your VS2010 managed application or dll project directory.
6. Add both NativeDebug2010.dll and NativeDebug2008.dll to your project, set Copy if newer its option.
7. Add reference to NativeDebug2010.dll to your project.
8. Add Initialisation to your App constructor:
Code:
...
public App()
{
...
// Show graphics profiling information while debugging.
if (System.Diagnostics.Debugger.IsAttached)
{
...
NativeDebug.Init();
}
else
{
NativeDebug.RegisterOnly();
}
}
...
I am not sure why, but RegisterOnly() calling is necessary to work without debugging, your native dll will not load properly instead.
9. Add garbage release to your App closing:
Code:
...
private void Application_Closing(object sender, ClosingEventArgs e)
{
NativeDebug.Destroy();
...
}
...
10. Change your VS2010 view to Expert (Menu/Tools/Settings/Expert Settings).
11. Open your Output window on top (Menu/View/Output, click to Window Position/Float).
Now you can see all managed System.Diagnostics.Debug.WriteLine and native TRACE ouput in one Output window. Attention - option "Menu/Tools/Options/Debugging/Redirect all Output text to Immediate window" does not work for me.
You can also write output to TRACE file by standard way (see System.Diagnostics.Debug.WriteLine help).
Attention: Debug Trace Library is fully synchronised, but I did not test it to debug more then one application alternately. May be any deadlock can occure, but I beleive will not. When your managed code use another unicode string prefix then L"...", try to change calling, and write your experience here.
See example picture, follow red text:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Picture is from old version, included to W.I.N.C.O native library. But, yestarday I have got total hard disc crash crying::crying::crying, all my programs from long time are lost. I must programm this feature again today, I believe it is better then last weak.
Note:
Attachment is functional, but will be changed in future. Little COM mishmash and WP7 WatchDog problems occured.
Next code probably solve it, but I am not sure. Do not forget to set HKLM\Software\Microsoft\TaskHost\DehydrateOnPause to 0 first, when you want to debug application calling ShellExecuteEx() etc.
Code:
private void Application_Activated(object sender, ActivatedEventArgs e)
{
NativeDebug.Start();
}
private void Application_Deactivated(object sender, DeactivatedEventArgs e)
{
NativeDebug.Stop();
}
TRACE Output example. MFC integrated to ATL for WP7, registry export to file.
This is output from registry exporting wiht MFC using. Without tracing it woud be very difficult to tune to a flawless running:
'UI Task' (Managed): Loaded 'C:\Program Files (x86)\Microsoft.NET\SDK\CompactFramework\v2.0\WindowsCE\mscorlib.dll'
'UI Task' (Managed): Loaded 'System.Windows.RuntimeHost.dll'
'UI Task' (Managed): Loaded 'System.dll'
'UI Task' (Managed): Loaded 'System.Windows.dll'
'UI Task' (Managed): Loaded 'System.Net.dll'
'UI Task' (Managed): Loaded 'System.Core.dll'
'UI Task' (Managed): Loaded 'System.Xml.dll'
'UI Task' (Managed): Loaded '\Applications\Install\8F4EF9C1-BE29-4252-BE77-EAD8CE2E9D4E\Install\Phonmander.dll', Symbols loaded.
'UI Task' (Managed): Loaded 'Microsoft.Phone.dll'
'UI Task' (Managed): Loaded 'Microsoft.Phone.Interop.dll'
'UI Task' (Managed): Loaded '\Applications\Install\8F4EF9C1-BE29-4252-BE77-EAD8CE2E9D4E\Install\NativeDebug2010.dll', Symbols loaded.
'UI Task' (Managed): Loaded 'Microsoft.Phone.InteropServices.dll'
'UI Task' (Managed): Loaded '\Applications\Install\8F4EF9C1-BE29-4252-BE77-EAD8CE2E9D4E\Install\wxNativeCOM.dll', Symbols loaded.
'UI Task' (Managed): Loaded '\Applications\Install\8F4EF9C1-BE29-4252-BE77-EAD8CE2E9D4E\Install\wlCoreWp7.dll'
Managed ==> Native
RegGetStringSimple dwKey = 80000002, szSubKey = Pokus2012, szValueName = ValStr, lpszValue = 35EF09C
RegGetDwordSimple RegQueryValueEx returns 80070057 Parametr není správný.
RegExportKeySimple(DWORD dwKey = 80000002, LPCWSTR szSubKey = HARDWARE\DEVICEMAP, LPCWSTR szFileName = \Pokus2012.txt)
ExportRegKey(HKEY hroot = 80000002, const CString &root = HKEY_LOCAL_MACHINE, const CString &key = HARDWARE\DEVICEMAP, CFile &out = 45FFFC48)
ExportRegKey BOM
ExportRegKey Editor Version
DumpRegKey(HKEY hroot = 80000002, const CString &root = HKEY_LOCAL_MACHINE, const CString &key = HARDWARE\DEVICEMAP, CFile &out = 45FFFC48)
RegEnumValueW returns 103 No more data is available.
DumpRegKey(HKEY hroot = 80000002, const CString &root = HKEY_LOCAL_MACHINE, const CString &key = HARDWARE\DEVICEMAP\TOUCH, CFile &out = 45FFFC48)
RegEnumValueW returns 0 The operation completed successfully. DriverName
RegEnumValueW returns 103 No more data is available.
DumpRegKey(HKEY hroot = 80000002, const CString &root = HKEY_LOCAL_MACHINE, const CString &key = HARDWARE\DEVICEMAP\TOUCH\BUTTONS, CFile &out = 45FFFC48)
RegEnumValueW returns 0 The operation completed successfully. Count
RegEnumValueW returns 0 The operation completed successfully. Area
RegEnumValueW returns 103 No more data is available.
DumpRegKey(HKEY hroot = 80000002, const CString &root = HKEY_LOCAL_MACHINE, const CString &key = HARDWARE\DEVICEMAP\TOUCH\BUTTONS\3, CFile &out = 45FFFC48)
RegEnumValueW returns 0 The operation completed successfully. VKey
RegEnumValueW returns 0 The operation completed successfully. VKeyPuvodni
RegEnumValueW returns 0 The operation completed successfully. Area
RegEnumValueW returns 0 The operation completed successfully. Name
RegEnumValueW returns 103 No more data is available.
DumpRegKey(HKEY hroot = 80000002, const CString &root = HKEY_LOCAL_MACHINE, const CString &key = HARDWARE\DEVICEMAP\TOUCH\BUTTONS\2, CFile &out = 45FFFC48)
RegEnumValueW returns 0 The operation completed successfully. VKey
RegEnumValueW returns 0 The operation completed successfully. Name
RegEnumValueW returns 0 The operation completed successfully. Area
RegEnumValueW returns 103 No more data is available.
DumpRegKey(HKEY hroot = 80000002, const CString &root = HKEY_LOCAL_MACHINE, const CString &key = HARDWARE\DEVICEMAP\TOUCH\BUTTONS\1, CFile &out = 45FFFC48)
RegEnumValueW returns 0 The operation completed successfully. VKey
RegEnumValueW returns 0 The operation completed successfully. Name
RegEnumValueW returns 0 The operation completed successfully. Area
RegEnumValueW returns 103 No more data is available.
DumpRegKey(HKEY hroot = 80000002, const CString &root = HKEY_LOCAL_MACHINE, const CString &key = HARDWARE\DEVICEMAP\KEYBD, CFile &out = 45FFFC48)
RegEnumValueW returns 0 The operation completed successfully. Status
RegEnumValueW returns 0 The operation completed successfully. CurLang
RegEnumValueW returns 0 The operation completed successfully. RingerState
RegEnumValueW returns 103 No more data is available.
RegExportKeySimple ExportRegKey lRes = 1)
...

[Guide][tut] Animations Speed (Transition/windows/duration) control

Today again a new mod ( i collected this from great cataclysm rom )
You should be having Stock deodexed settings.apk
1. Decompile the settings
2. Open settings.apk/res/values/attrs.xml
Add this code
Code:
<attr name="type" format="integer" />
3. Open settings.apk/res/values/strings.xml
Add this code
Code:
<string name="window_animation_scale_title">Window animation scale</string>
<string name="transition_animation_scale_title">Transition animation scale</string>
<string name="animator_duration_scale_title">Animator duration scale</string>
4. Add this code to any of your settings like (display_settings.xml or as you wish )
Code:
<PreferenceScreen android:title="@string/animation_speeds_title" android:key="animation_speeds" android:summary="@string/animation_speeds_summary" android:fragment="com.android.settings.AnimationSpeeds" />
5. Add these ids in settings.apk/res/values/ids.xml
Code:
<item type="id" name="seek_bar_pref_unit_right">false</item>
<item type="id" name="seek_bar_pref_value">false</item>
<item type="id" name="seek_bar_pref_unit_left">false</item>
<item type="id" name="seek_bar_pref_bar_container">false</item>
6. Now download this View attachment settings.zip
and merge codes
Main Part Continued in Post #2
Final part and Result
Here comes a critical Part but not difficult
We had added new integer so we have to define in setting activity
i will explain in simple code just follow it
7. Now open settings.apk/smali/com/android/settings/R$styleable.smali
Find this code
Code:
.field public static final IntentPreference:[I
Below this add
Code:
.field public static final MySeekBarPreference:[I
Now look for
Code:
sput-object v0, Lcom/android/settings/R$styleable;->PercentageBarChart:[I
Below Add this code
Code:
.line 12360
new-array v0, v3, [I
const v1, 0x7f010044
aput v1, v0, v2
sput-object v0, Lcom/android/settings/R$styleable;->MySeekBarPreference:[I
So here you had define the integer
8. Compile and decompile so you get new public ids
From that in R$styleable.smali
Replace the Public code :- 0x7f010044 #<public type="attr" name="type" id="0x7f010044" />
and in MySeekBarPreference.smali and in AnimationSpeeds.smali compare with my public ids and replace them
9. Oh god... just compile and replace your settings.apk and enjoy the mod ( check the below image on what mod you did........... )
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Don't forget to mention in if you used my work
Awesome bro ^^
“Sent From MWE V7.0.0 On My Z3”
6. Now download this settings.zip
and merge codes
Click to expand...
Click to collapse
hi venkat, i tried your guide, all is fine except the step mentioned ahead.
i compared the public.xml from the rom i use and your public(compare).xml with WinMerge and there are many differences (on both sides)
So what to do?
Tried to simple copy your xml into the values folder, but then recompiling failed.
And the second thing i don´t understand:
8. Compile and decompile so you get new public ids
Click to expand...
Click to collapse
where is this new public ids?
From that in R$styleable.smali
Replace the Public code :- 0x7f010044 #<public type="attr" name="type" id="0x7f010044" />
and in MySeekBarPreference.smali and in AnimationSpeeds.smali compare with my public ids and replace them
Click to expand...
Click to collapse
i get a new public code and must replace the similar code in R$styleable.smali?
And also in MySeekBarPreference.smali and AnimationSpeed.smali? Right?
Thx for your help.
I love this mod, so i want to try it on my own.
Add new animation?
How can I add the same animation that was on kitkat when you open an app or while you tap thumbnail on multitasking view? This animation in lollipop is missing
Can you help me to know what i did wrong?
dark90 said:
Can you help me to know what i did wrong?
Click to expand...
Click to collapse
You need to define seekbar preferences then you will get all
Another great tutorial from master @venkat kamesh :good:
venkat kamesh said:
You need to define seekbar preferences then you will get all
Click to expand...
Click to collapse
Thanks i got it.
The problem following you tut step by step is that you have 12seek_bar_preference.xml (defined in seekbarpreference.smali) and seek_bar_preference.xml (defined in myseekbarpreference.smali) and we only have seek_bar_preference.xml (defined on seekbarpreference.smali) and Just comparing the public id didnt gonnna work
dark90 said:
Thanks i got it.
The problem following you tut step by step is that you have 12seek_bar_preference.xml (defined in seekbarpreference.smali) and seek_bar_preference.xml (defined in myseekbarpreference.smali) and we only have seek_bar_preference.xml (defined on seekbarpreference.smali) and Just comparing the public id didnt gonnna work
Click to expand...
Click to collapse
In my settings I had 2 to 3 different seekbar bro
For this mod the seek bar out value should be px
The one in tut I have and the one 12seekbar are same brother.. You can compare
Any how it worked for you bro
Happy to hear
for that ppl that cant make it work (just the ppl who did all the things in op), just:
-download, uncompres and copy this file to your settings.apk/res/layout folder
-compile and decompìle to get the new public id
-open you settings.apk/res/value/public.xml and search <public type="layout" name="seekbar_preference" id
-open settings.apk/smali/com/android/settings/rz/myseekbarpreference.smali and go to the line 92 " const v1, 0x7f040103 # type="layout" name="seek_bar_preference "
-change the id for the one you find before in public.xml
-now compile and sign and you got it now working, well i hope xD
Great Job venkat
Sorry I forget modify some lines all works like a charm thanks bro
@dark90 mate
Thanks. Ur solution works like a charm..
dark90 said:
for that ppl that cant make it work (just the ppl who did all the things in op), just:
-download, uncompres and copy this file to your settings.apk/res/layout folder
-compile and decompìle to get the new public id
-open you settings.apk/res/value/public.xml and search <public type="layout" name="seekbar_preference" id
-open settings.apk/smali/com/android/settings/rz/myseekbarpreference.smali and go to the line 92 " const v1, 0x7f040103 # type="layout" name="seek_bar_preference "
-change the id for the one you find before in public.xml
-now compile and sign and you got it now working, well i hope xD
Click to expand...
Click to collapse
@dark90
This aint work bro, when i add your xml and try to compile, i have error cant find the ids in public.xml and i send you a pm btw.
I have it all except the switches
deleted

Rawprogram0.xml and patch0.xml - possible way of create [need testing]

Could someone with working device try this tutorial to create blankflash files for Moto G5?
https://www.youtube.com/watch?v=Yn1TyC20Dh8
we need someone to try this with his motorola xt1672 to see if it works
I've managed to create those files using "PrimaryGPT.bin" - its content is on the screenshot below.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Running that script ("partition0.xml" was used as it was in video tutorial) created a lot of files but I think they're useless even for trying to flash them until we'll get correct firehose programmer file.
I hope you get the long-awaited blankflash.
Hi,
I have this error if i want to analyse the gpt.bin file :
Code:
<?xml version="1.0"?>
<configuration>
<!-- Primary GPT header: -->
<!-- MD5: 7b92019b9b51256cc78760577b3e2860 -->
<!-- Signature: <?xml ve -->
<!-- Revision: 1869181810 -->
<!-- Header Size: 824327534 -->
<!-- WARNING!! CRC32 of header: 2022302E (INVALID) => Real: BBBF9D55 -->
<!-- Current LBA: 0xA3E657069636572 -->
<!-- Backup LBA: 0x6873616C663C2020 -->
<!-- First usable LBA for partitions: 0x6974697472617020 -->
<!-- Last usable LBA for partitions: 0x74726170223D6E6F -->
<!-- Disk GUID: 6F697469-3A6E-2230-2066-696C656E616D -->
<!-- Partition entries starting LBA: 0x6D5F747067223D65 -->
<!-- Number of partition entries: 812542305 -->
<!-- Size of partition entry: 0x6E69622E -->
<!-- CRC32 of partition array: 0x0A3E2F22 -->
<parser_instructions>
<!-- NOTE: entries here are used by the parser when generating output -->
<!-- NOTE: each filename must be on it's own line as in variable=value-->
WRITE_PROTECT_BOUNDARY_IN_KB = 32768
GROW_LAST_PARTITION_TO_FILL_DISK = true
</parser_instructions>
<!-- NOTE: "physical_partition" are listed in order and apply to devices such as eMMC cards that have (for example) 3 physical partitions -->
<!-- This is physical partition 0 -->
<physical_partition>
<!-- NOTE: Define information for each partition, which will be created in order listed here -->
<!-- NOTE: Place all "readonly=true" partitions side by side for optimum space usage -->
<!-- NOTE: If OPTIMIZE_READONLY_PARTITIONS=true, then partitions won't be in the order listed here -->
<!-- they will instead be placed side by side at the beginning of the disk -->
Traceback (most recent call last):
File "GPTAnalyzer.py", line 644, in <module>
main()
File "GPTAnalyzer.py", line 622, in main
fbuf = get_part_table_area(f, gpt_header)
File "GPTAnalyzer.py", line 145, in get_part_table_area
fbuf = get_lba(f, part_entry_start_lba, first_use_lba_for_partitions - part_entry_start_lba)
File "GPTAnalyzer.py", line 49, in get_lba
fhandle.seek(LBA_SIZE*entry_number)
OverflowError: long too big to convert
there is no gpt.img in the moto g5 stock rom.
I've used another file, not a original one.

Spectrum&Morpho for Xiaomi Devices

What is Spectrum? See here
What is Morpho? See here
The Spectrum_SDM625.zip file is for devices:
daisy, tulip, sakura, mido, tissot, oxygen, markw, sakura_india, vince, ysl, tiffany
If there are any other Xiaomi devices with snapdragon 625 let me know.
Use the Morpho_EAS_SDM625 file on kernels that have eas. Example: 4.9 have eas in-built *What is EAS? See here
To see more files related to the spectrum for others snapdragon look at the download link and the groups (mainly the groups).
Morpho FK: - (most recommended)
FK change the profiles based on the app that is being used. (That's the best feature).
Go to Morpho's telegram channel and see the updates and download as you wish.
FK Manager: Link - Screenshot
If you wanted to install the MORPHO_FK manually. (Android 10, Miui, vendor custom and outhers).
Copy file "init.performance_profiles.rc" for your root directory.
Permission: 0755
Note: On android 10 it is recommended to install manually as it may happen that magisk breaks.
"Android 10 users,
There's a issue happening to some of you: magisk root is lost after flashing Morpho FK.
The workaround for it is extracting the file "init.performance.rc" from Morpho FK zip and putting it on the root of the device (/here).
We are already working on a fix to this bug." byojosehenrick
Screenshot
SPECTRUM ALL DEVICES: If you have a non-snapdragon device you can try Spectrum-Injector-v1.zip along with their respective profiles.
PROFILE - copy files to /sdcard/Spectrum/profiles/
Morpho All Devices: Link
Spectrum on Google Play
Add manual spectrum support:
Recommend RootExplorer app.
Edit system/build.prop
Add this:
spectrum.support=1
Or add spectrum support by termux app:
setprop spectrum.support=1
If you wanted to install the spectrum manually:
set_perm(0, 0, 0644, "/vendor/etc/init/hw/init.spectrum.rc");
set_perm(0, 0, 0755, "/vendor/etc/init/hw/init.spectrum.sh");
Outhers:
system/etc/init
Want to know more? Search on:
Round-Robin; HMP; Completely Fair; EAS; SMP.
Example: link
Governors
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Thanks to the authors:
ojosehenrick
frap129
acras1
pawelik
tunasahinn
atiprusma's UnF (UnFaedah - means USELESS)
If there is or is missing someone to thank or put the credits, let me know.
If you see something wrong please let me know.
Sources:
https://github.com/pawelik001/android_device_xiaomi_daisy/blob/superior/rootdir/etc/init.spectrum.rc
https://github.com/tunasahinn/android_device_xiaomi_daisy/blob/dot-p/rootdir/etc/init.spectrum.rc
Telegram:
https://t.me/morphodev
https://t.me/morphoreleases
https://t.me/KampretDarat
https://t.me/A2LiteOfficial - https://discordapp.com/invite/smYbpVx
SDM625 or Daisy: LINK DIRECT
DOWNLOAD: LINK
or
MIRROR: LINK
MAY HAPPEN FROM ENTERING IN BOOTLOOP, I NOT RESPONSIBLE FOR DAMAGE CAUSED OR DATA LOST BY USING THIS ZIP.
Optional - Spectrum for Snapdragon 730/tweaks:
[system/build.prop]
#Spectrum support:
spectrum.support=1
#Spectrum Tweaks
#Balance (default profile)
on propertyersist.spectrum.profile=0
write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor interactive
write /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq 546000
write /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq 1586000
write /sys/devices/system/cpu/cpu4/cpufreq/scaling_governor interactive
write /sys/devices/system/cpu/cpu4/cpufreq/scaling_min_freq 546000
write /sys/devices/system/cpu/cpu4/cpufreq/scaling_max_freq 1586000
write /sys/devices/11400000.mali/max_clock 1001
write /sys/devices/11400000.mali/min_clock 343
write /sys/devices/11400000.mali/power_policy coarse_demand
write /sys/power/cpuhotplug/enable 1
write /sys/module/sync/parameters/fsync_enabled Y
write /sys/kernel/dyn_fsync/Dyn_fsync_active 1
write /sys/kernel/sched/gentle_fair_sleepers 0
write /sys/kernel/sched/arch_power 1
#Performance
on propertyersist.spectrum.profile=1
write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor performance
write /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq 546000
write /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq 1586000
write /sys/devices/system/cpu/cpu4/cpufreq/scaling_governor performance
write /sys/devices/system/cpu/cpu4/cpufreq/scaling_min_freq 546000
write /sys/devices/system/cpu/cpu4/cpufreq/scaling_max_freq 1586000
write /sys/devices/11400000.mali/max_clock 1001
write /sys/devices/11400000.mali/min_clock 644
write /sys/devices/11400000.mali/power_policy always_on
write /sys/power/cpuhotplug/enable 0
write /sys/module/sync/parameters/fsync_enabled N
write /sys/kernel/dyn_fsync/Dyn_fsync_active 0
write /sys/kernel/sched/gentle_fair_sleepers 0
write /sys/kernel/sched/arch_power 0
#Battery
on propertyersist.spectrum.profile=2
write /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor interactive
write /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq 546000
write /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq 1248000
write /sys/devices/system/cpu/cpu4/cpufreq/scaling_governor interactive
write /sys/devices/system/cpu/cpu4/cpufreq/scaling_min_freq 546000
write /sys/devices/system/cpu/cpu4/cpufreq/scaling_max_freq 1248000
write /sys/devices/11400000.mali/max_clock 728
write /sys/devices/11400000.mali/min_clock 343
write /sys/devices/11400000.mali/power_policy coarse_demand
write /sys/power/cpuhotplug/enable 1
write /sys/module/sync/parameters/fsync_enabled Y
write /sys/kernel/dyn_fsync/Dyn_fsync_active 1
write /sys/kernel/sched/gentle_fair_sleepers 0
write /sys/kernel/sched/arch_power 1
#Tweaks for Performance
ro.security.mdpp.ux=Disabled
persist.sys.storage_preload=0
wlan.wfd.hdcp=disable
# Battery save
profiler.force_disable_ulog=true
profiler.force_disable_err_rpt=true
Ro.config.tima=0
#smartview
wlan.wfd.hdcp=disable
#tweaks
echo "persist.sys.scrollingcache=3"
echo "profiler.force_disable_ulog=1"
echo "logcat.live=disable"
echo "ro.kernel.checkjni=0"
echo "ro.config.nocheckin=1"
echo "wifi.supplicant_scan_interval=300"
echo "pm.sleep_mode=2"
debug.composition.type=c2d
debug.egl.hw=1
debug.enabletr=true
debug.overlayui.enable=1
debug.performance.tuning=1
debug.qc.hardware=true
debug.qctwa.statusbar=1
debug.qctwa.preservebuf=1
debug.sf.hw=1
#Support HDR & FHD (example Samsung A80)
sys.display-size=1920x1080
video.accelerate.hw=1
ro.media.enc.jpeg.quality=100
ro.media.dec.jpeg.memcap=8000000
ro.media.enc.hprof.vid.bps=8000000
ro.media.enc.hprof.vid.fps=65
#Tweaks for RAM
ro.config.fha_enable=true
ro.sys.fw.bg_apps_limit=64
ro.config.dha_cached_max=32
ro.config.dha_empty_max=42
ro.config.dha_empty_init=32
ro.config.dha_lmk_scale=0.545
ro.config.dha_th_rate=2.3
ro.config.sdha_apps_bg_max=64
ro.config.sdha_apps_bg_min=16
#Multi User
fw.max_users=30
fw.show_multiuserui=1
fw.show_hidden_users=1
fw.power_user_switcher=1
#Signal Performance
ro.telephony.call_ring.delay=0
ring.delay=0
#Safety Net Pass (for Samsung)
ro.knox.enhance.zygote.aslr=1
#Internet Velocity
net.tcp.buffersize.default = 4096,87380,256960,4096, 16384,256960
net.tcp.buffersize.wifi = 4096,87380,256960,4096,163 84,256960
net.tcp.buffersize.umts = 4096,87380,256960,4096,163 84,256960
net.tcp.buffersize.gprs = 4096,87380,256960,4096,163 84,256960
net.tcp.buffersize.edge = 4096,87380,256960,4096,163 84,256960
net.tcp.buffersize.hspda = 4096,87380,256960,4096,16 384,256960
net.tcp.buffersize.hspa = 4096,87380,256960,4096,163 84,256960
ro.sf.lcd_density=280
ro.zygote=zygote32
outhers:
https://forum.xda-developers.com/mi...giskmodule-t3976283/post80403097#post80403097
Links removed.
updated
I have done, flashing thermal & morph, installed Franco kernel manager, set permissive selinux. Did the manual trick to Android 10.
What should I do to this mod to work and profit

Categories

Resources