[9 Nov 11][Fix]GPS only works once after reboot / RUNNYMEDE 1.05.401.4 - dungphp - HD2 Android NAND Development

Hi all,
i noticed that GPS only works once after a reboot on this ROM.
Please note - This fix may work on any ROM, which uses tytung's GPS Libraries:
[26.Aug.2011][Dev] GPS Libraries v2.1 with AGPS support for HD2 Gingerbread
So even if your don't use dungphp RUNNYMEDE 1.05.401.4 - Android 2.3.5 - Sense 3.5 - it's worth a try to fix it this way.
You can fix it by modifying your gps.conf file from /system/etc/.
Note!
When modifying the file via ADB pull, its nessecary to set correct file permissions when pushed back to device by ADB.
Please note the original file permissions of gps.conf and ensure it has this permission settings when finshed editing the file.
There are alots of guides how to check/change file permissions on XDA/Google, so please read on this if your are not familiar to work on this.
e.g.:
Google: get set file permissions ADB
Google: get set file permissions ES Explorer
Pull your gps.conf file or edit it on device.
Your file should contain the parameter GPS1_CLEANUP_ENABLED=1 which it set to 1 by default.
If this parameter is missing in your file - add it.
Set the parameter to 0 (zero/off) .
It should look like this:
Code:
NTP_SERVER=yourCountryCode.pool.ntp.org
XTRA_SERVER_1=http://xtra1.gpsonextra.net/xtra.bin
XTRA_SERVER_2=http://xtra2.gpsonextra.net/xtra.bin
XTRA_SERVER_3=http://xtra3.gpsonextra.net/xtra.bin
SUPL_HOST=supl.google.com
SUPL_PORT=7276
###########################################
# Enable/disable automatic (periodic) #
# download requests of gpsOneXTRA #
# assistance data to client #
# Range: 0 to 1 #
# Default: 0 (Disabled) #
###########################################
GPS1_XTRA_AUTO_DOWNLOAD_ENABLED=1
###########################################
# Time (in hours) between automatic #
# download requests of gpsOneXTRA #
# assistance data to client #
# Range: 1 to 168 (168 = hr in a week) #
# Default: 24 hr #
###########################################
GPS1_XTRA_DOWNLOAD_INTERVAL=24
###########################################
# Enable/disable to shutdown the gpsOne #
# engine properly on GPS off #
# Range: 0 to 1 #
# Default: 1 (Enabled) #
###########################################
[COLOR="Red"]GPS1_CLEANUP_ENABLED=0[/COLOR]
###########################################
# Time (in seconds) between invoking #
# pdsm_get_position() #
# Range: 2 to 120 #
# Default: 2 seconds #
###########################################
GPS1_SESSION_TIMEOUT=2
Save your file or push it back to device and boot into CWM.
Don't forget to set the correct file permissions!
Thats it - reboot now.
GPS should work now everytime you need it.
Yours, Stephan

Is this just a bug with RUNNYMEDE? Because GPS works fine on HyperDroid with that enabled.

OCedHrt said:
Is this just a bug with RUNNYMEDE? Because GPS works fine on HyperDroid with that enabled.
Click to expand...
Click to collapse
Hi mate,
i tried it on 2 EU HD2 with this ROM - both showed the same behaviour - GPS didn't worked more than once before the fix and after fixing all was fine
I don't know if it's a problem on other ROMS, but it's worth a try when the ROM comes up with this particular symptom.
Greetz, Stephan

Nice man ! Thank you very much...

dungphp said:
Nice man ! Thank you very much...
Click to expand...
Click to collapse
Hi dungphp,
you are welcome
We have to thank you for your hard work on the ROMs!
Yours, Stephan

brush2 said:
Hi all,
i noticed that GPS only works once after a reboot on this ROM.
You can fix it by modifying your gps.conf file from /system/etc/.
Pull your gps.conf file or edit it on device.
Your file should contain the parameter GPS1_CLEANUP_ENABLED=1 which it set to 1 by default.
If this parameter is missing in your file - add it.
Set the parameter to 0 (zero/off) .
It should look like this:
Code:
NTP_SERVER=yourCountryCode.pool.ntp.org
XTRA_SERVER_1=http://xtra1.gpsonextra.net/xtra.bin
XTRA_SERVER_2=http://xtra2.gpsonextra.net/xtra.bin
XTRA_SERVER_3=http://xtra3.gpsonextra.net/xtra.bin
SUPL_HOST=supl.google.com
SUPL_PORT=7276
###########################################
# Enable/disable automatic (periodic) #
# download requests of gpsOneXTRA #
# assistance data to client #
# Range: 0 to 1 #
# Default: 0 (Disabled) #
###########################################
GPS1_XTRA_AUTO_DOWNLOAD_ENABLED=1
###########################################
# Time (in hours) between automatic #
# download requests of gpsOneXTRA #
# assistance data to client #
# Range: 1 to 168 (168 = hr in a week) #
# Default: 24 hr #
###########################################
GPS1_XTRA_DOWNLOAD_INTERVAL=24
###########################################
# Enable/disable to shutdown the gpsOne #
# engine properly on GPS off #
# Range: 0 to 1 #
# Default: 1 (Enabled) #
###########################################
[COLOR="Red"]GPS1_CLEANUP_ENABLED=0[/COLOR]
###########################################
# Time (in seconds) between invoking #
# pdsm_get_position() #
# Range: 2 to 120 #
# Default: 2 seconds #
###########################################
GPS1_SESSION_TIMEOUT=2
Save your file or push it back to device and boot into CWM.
Use the option menu Advanced then option Fix Permissions.
Thats it - reboot now.
GPS should work now everytime you need it.
Yours, Stephan
Click to expand...
Click to collapse
do we add ALL the text here you've written or just GPS1_CLEANUP_ENABLED=1,so sorry for the noob question lol

Ty5982 said:
do we add ALL the text here you've written or just GPS1_CLEANUP_ENABLED=1,so sorry for the noob question lol
Click to expand...
Click to collapse
LOL - hey mate,
of course only the parameter and it's value is required:
GPS1_CLEANUP_ENABLED=0
Btw: You wrote the parameter set to 1, this is the default value and is the reason for GPS failure.
This value must be set to 0 to get it to work!
I pasted the whole modified file here to show how it could/should look in the end.
Now we can see - even posting the whole file did not help in your case
Just kidding - have a nice day.
Greetz, Stephan

brush2 said:
LOL - hey mate,
of course only the parameter and it's value is required:
GPS1_CLEANUP_ENABLED=0
Btw: You wrote the parameter set to 1, this is the default value and is the reason for GPS failure.
This value must be set to 0 to get it to work!
I pasted the whole modified file here to show how it could/should look in the end.
Now we can see - even posting the whole file did not help in your case
Just kidding - have a nice day.
Greetz, Stephan
Click to expand...
Click to collapse
must apologise lol,early mornin here,not fully awake yet lol,was just curious as ive flashed loadsa fixes,even a gps fix apk floating around here and also faster fix that comes pre-installed,i've even edited my build prop,but nothing ever seems to work lol,but i've tried your solution,will use gps test from the market to see if anythings happening
EDIT: after this i get 9 sattelites in view 8 used,as before i didn't get any or if my phone was in a good mood i'd get 1 lol..........SO IT WORKS

Ty5982 said:
must apologise lol,early mornin here,not fully awake yet lol,was just curious as ive flashed loadsa fixes,even a gps fix apk floating around here,i've even edited my build prop,but nothing ever seems to work lol,but i've tried your solution,will use gps test from the market to see if anythings happening
Click to expand...
Click to collapse
Ok mate - good luck.
I hope i didn't promised too much
Would be nice to get some feedback from you - your info may help others!
Greetz, Stephan

brush2 said:
Ok mate - good luck.
I hope i didn't promised too much
Would be nice to get some feedback from you - your info may help others!
Greetz, Stephan
Click to expand...
Click to collapse
IT WORKS,IT WORKS,IT WORKS,IT WORKS,IT WORKS,IT WORKS,IT WORKS....................CAN'T SAY THANK YOU ENOUGH,i've got 4 bars signal as to the usual none and i aint even outside lol,will see when i take my little girl school in 15 min..........will tell u more then,feels like christmas has come early lol

Ty5982 said:
IT WORKS,IT WORKS,IT WORKS,IT WORKS,IT WORKS,IT WORKS,IT WORKS....................CAN'T SAY THANK YOU ENOUGH,i've got 4 bars signal as to the usual none and i aint even outside lol,will see when i take my little girl school in 15 min..........will tell u more then,feels like christmas has come early lol
Click to expand...
Click to collapse
Hugs from germany
Yours, Stephan

So using Dansta's Runnymede rom does that line get pasted at the end of the gps.conf info? Like the last line I mean.

chrisrj28 said:
So using Dansta's Runnymede rom does that line get pasted at the end of the gps.conf info? Like the last line I mean.
Click to expand...
Click to collapse
Hi mate,
maybe; - maybe means of course only if it does not exists upwards. I am not sure how it reacts if the parameter occurs twice with two different values - but i think the last occurence of this parameter in file should "win"
Greetz, Stephan

brush2 said:
Hugs from germany
Yours, Stephan
Click to expand...
Click to collapse
the english aren't suppose to like the germans lol,but u can be an exception lol.........my results using gps test from the market not GPS STATUS & TOOLBOX AS ITS NOT AS ACCURATE........
satellites in view 17
satellites used 15
accuracy(feet) 14.9
speed(mph) 0
NOT TO SURE HOW GOOD THESE RESULTS ARE,BUT THEY ARE 1000% BETTER THAN WHAT I USED TO GET
1 thing i did notice and is VERY IMPORTANT is if you have previously done a fix permissions for anything else,DELETE THE LOG SAVED ON YOUR SD CARD 1ST,add file to gps.config,save,reboot,then clickon fix permissions

Ty5982 said:
the english aren't suppose to like the germans lol,but u can be an exception lol.........my results using gps test from the market not GPS STATUS & TOOLBOX AS ITS NOT AS ACCURATE........
satellites in view 17
satellites used 15
accuracy(feet) 14.9
speed(mph) 0
NOT TO SURE HOW GOOD THESE RESULTS ARE,BUT THEY ARE 1000% BETTER THAN WHAT I USED TO GET
1 thing i did notice and is VERY IMPORTANT is if you have previously done a fix permissions for anything else,DELETE THE LOG SAVED ON YOUR SD CARD 1ST,add file to gps.config,save,reboot,then clickon fix permissions
Click to expand...
Click to collapse
Regarding "love between brits and germans" - i don't understand this is really a topic - damn; ain't there bigger problems in life?
The fix should not touch/change anything about accuracy. It only forces GPS to work as it should - .. more than once after a reboot...
Regarding deleting of fix permission log file - i don't think it has to be deleted to get the fix to work. But fixing the permissions is important to set the correct permissions for gps.conf file after modifying it.
Greetz, Stephan

brush2 said:
Regarding "love between brits and germans" - i don't understand this is really a topic - damn; ain't there bigger problems in life?
The fix should not touch/change anything about accuracy. It only forces GPS to work as it should - .. more than once after a reboot...
Regarding deleting of fix permission log file - i don't think it has to be deleted to get the fix to work. But fixing the permissions is important to set the correct permissions for gps.conf file after modifying it.
Greetz, Stephan
Click to expand...
Click to collapse
it works and that's all that matters

Why bother with CWR fix permissions as it can cause other issues (such as losing contact pictures in Messaging) - why not just edit the file with Root Explorer or ES Explorer, save and then longpress on the file and select properties and set all the permissions there? The file needs all nine boxes ticked for permissions. Also to make sure the file saves if you are using ES Explorer (not sure with Root Explorer) before you edit the file you need to go into settings and make sure you tick 'Mount system as writeable' otherwise it won't save.

Dunc001 said:
Why bother with CWR fix permissions as it can cause other issues (such as losing contact pictures in Messaging) - why not just edit the file with Root Explorer or ES Explorer, save and then longpress on the file and select properties and set all the permissions there? The file needs all nine boxes ticked for permissions. Also to make sure the file saves if you are using ES Explorer (not sure with Root Explorer) before you edit the file you need to go into settings and make sure you tick 'Mount system as writeable' otherwise it won't save.
Click to expand...
Click to collapse
Hi there,
You're right - it's more save only touching the permissions of gps.conf file. I will leave a note in the intial post to ensure people keep this in mind.
Thanks and Greetz, Stephan

OCedHrt said:
Is this just a bug with RUNNYMEDE? Because GPS works fine on HyperDroid with that enabled.
Click to expand...
Click to collapse
Look at the known issues #3 in my GPS thread for the reasons. It's there long time ago.
Some ROMs suffer from the "GPS off-and-on" bug.
Those ROMs can shutdown the gpsOne engine properly when turning off GPS setting using gps_cleanup(), but they cannot restart the gpsOne engine again because gps_init() is never called when turning GPS setting on after turning it off.
It's a Gingerbread bug which is fixed by applying this commit from the source code.
If you cannot modify the source code, the workaround is to set/add GPS1_CLEANUP_ENABLED=0 into gps.conf to avoid doing full cleanup.
Click to expand...
Click to collapse

tytung said:
Look at the known issues #3 in my GPS thread for the reasons. It's there long time ago.
Click to expand...
Click to collapse
I vaguely remember reading that But thanks always for your work.

Related

[26.Aug.2011][Dev] GPS Libraries v2.1 with AGPS support for HD2 Gingerbread

This implementation is based on GPS Library in HTC-HD2 Android Libraries. (Thanks to dan1j3l.)
You can find my modified source code and AGPS development info in the second post.
New Features:
Show the number of satellites before getting a location fix.
Show or hide the GPS symbol in the status bar instantly when you start or stop a GPS app.
Support the leap seconds. (Thanks to arne182.)
Modify the Accuracy (i.e. Error in meter) to be more reasonable.
Add AGPS interface. (Won't see "no AGPS interface in agps_data_conn_open" in logcat now.)
Add the missing functions to receive the NTP, XTRA, and SUPL settings from gps.conf.
Add AGPS implementation including injecting AGPS data (xtra.bin) and NTP time into the gpsOne engine.
Hide Fix/Sats info and make the GPS symbol in the status bar flashing when you go to basement or tunnel.
Show DOP/HDOP/VDOP values in GPS Status.
Show Altitude above Geoid (i.e. mean sea level) and Geoid height. (You will see both of them in GPS Status. The value within parentheses is Geoid height.)
Show correct SNR (Signal to noise ratio) value.
Activate the AGPS data injection. (You can get a cold lock very quickly due to the working AGPS.) (Thanks to qwerty_7564.)
Click to expand...
Click to collapse
Known issues:
Accuracy value is for reference only.
Position Accuracy (meter) = HDOP (unitless) * Measurement Precision (meter). (Please confirm whether this formula is correct.)
We only get the correct HDOP value, and we assume the value of Measurement Precision, and then do a post calculation to get Accuracy. So don't trust it completely.
Some ROMs are not compatible with NMEA version of libgps.so.
Those ROMs don't set the correct permission to /dev/smd27, so libgps.so cannot read NMEA sentences from it.
The solution is to flash GPS_NMEA_permission_update.zip for correcting the permission after booting.
Some ROMs suffer from the "GPS off-and-on" bug.
Those ROMs can shutdown the gpsOne engine properly when turning off GPS setting using gps_cleanup(), but they cannot restart the gpsOne engine again because gps_init() is never called when turning GPS setting on after turning it off.
It's a Gingerbread bug which is fixed by applying this commit from the source code.
If you cannot modify the source code, the workaround is to set/add GPS1_CLEANUP_ENABLED=0 into gps.conf to avoid doing full cleanup.
Click to expand...
Click to collapse
Downloads:
Mod edit: Links removed
Installation for CWM:
Place your downloaded file (GPS_Libraries_v1.x_for_HD2_Gingerbread_update.zip) in the SD card.
Enter CWM (ClockworkMod) Recovery
MAGLDR 1.13: Hold "Power" button during boot to enter MAGLDR, and then select "AD Recovery" or "Boot AD SD" (if ever copied CWM's initrd.gz and zImage to SD) to enter CMW.
cLK 1.4.0.1: Hold "Home" button during boot to enter CMW.
Choose install zip from sdcard and locate your downloaded file to finish the installation.
All done.
Click to expand...
Click to collapse
You can install GPS Status & Toolbox or GPS TEST to test the new libs.
How to inject the AGPS data (xtra.bin):
It will be done in the following situations. (Data connection, WiFi or 3G, is a must in all of them.)
When you turn off GPS in setting and turn it on again.
When you keep GPS on and reboot. (also inject NTP time)
When you keep GPS on and run Leo AGPS Injector. (also inject NTP time)
When you keep GPS on and run GPS Status. (or any similar apps to download AGPS)
AGPS will be downloaded when you start GPS Status if AGPS is older than X days or Y hours where X and Y are read from the settings.
Or you can download it manually from Tools.
When you keep GPS on and replace with the modified gps.conf to set AGPS auto-download intervals when using GPS libs v1.8 or above.
AGPS auto-download intervals are disabled in default if you don't modify gps.conf.
Click to expand...
Click to collapse
How to verify if AGPS works or not:
When AGPS works, you will be able to get a full lock (e.g. 7/7, 8/8, or 9/9) in cold start less than 20 seconds if you're outdoor in a sunny day.
(Full locks mean fix and satellites equals to each other.)
If AGPS not works, you may see 5/7, 6/7, 5/8 (fix is less than satellites) right after you get a lock.
Click to expand...
Click to collapse
How /system/etc/gps.conf works?
There're three stock gps.conf in AOSP repository for different regions.
1. gps.conf_AS_SUPL (Asia)
2. gps.conf_EU_SUPL (Europe)
3. gps.conf_US_SUPL (North-America)
# Explanations are added. Don't copy them below to your gps.conf.
NTP_SERVER=north-america.pool.ntp.org   (Used for NTP time injection)
XTRA_SERVER_1=http://xtra1.gpsonextra.net/xtra.bin   (Used for AGPS data xtra.bin injection. Randomly choose from one of these three servers and download xtra.bin from it.)
XTRA_SERVER_2=http://xtra2.gpsonextra.net/xtra.bin
XTRA_SERVER_3=http://xtra3.gpsonextra.net/xtra.bin
SUPL_HOST=supl.google.com   (Be read but never be used)
SUPL_PORT=7276   (Be read but never be used)
Click to expand...
Click to collapse
SUPL_HOST and SUPL_PORT are not used in current GPS libs implementation, so you can delete them.
Supported extra settings for /system/etc/gps.conf when using v2.0 or above. (Only valid for HD2)
Beginning with character # means this line is a comment, so you can remove it.
You don't need to add any of them if you don't know what they are.
Code:
###########################################
# Enable/disable automatic (periodic) #
# download requests of gpsOneXTRA #
# assistance data to client #
# Range: 0 to 1 #
# Default: 0 (Disabled) #
###########################################
[COLOR="Red"]GPS1_XTRA_AUTO_DOWNLOAD_ENABLED=0[/COLOR]
###########################################
# Time (in hours) between automatic #
# download requests of gpsOneXTRA #
# assistance data to client #
# Range: 1 to 168 (168 = hr in a week) #
# Default: 24 hr #
###########################################
[COLOR="red"]GPS1_XTRA_DOWNLOAD_INTERVAL=24[/COLOR]
###########################################
# Enable/disable to shutdown the gpsOne #
# engine properly on GPS off #
# Range: 0 to 1 #
# Default: 1 (Enabled) #
###########################################
[COLOR="red"]GPS1_CLEANUP_ENABLED=1[/COLOR]
###########################################
# Time (in seconds) between invoking #
# pdsm_get_position() #
# Range: 2 to 120 #
# Default: 2 seconds #
###########################################
[COLOR="red"]GPS1_SESSION_TIMEOUT=2[/COLOR]
Click to expand...
Click to collapse
AGPS works in v1.7. The following workaround is for v1.6 and below versions only.
Instructions for the AGPS data Injection.
There're at least three methods (I recommend free apps here.) to be able to inject AGPS data.
GScript method.
Script Manager method.
LeoAGpsSwitcher_0.1.apk method.
GScript method is the base, so I describe it as follows.
Please download libgps_Switcher_v1.6.zip, decompress it to your SD card, and follow the steps below if you want AGPS support.
You need to repeat steps 4 and 5 every time when you need AGPS.
Put the following files in the SD card.
/sdcard/ClockworkMod/GPS_Libraries_v1.6_for_HD2_Gingerbread_update.zip (Remember to download it.)
/sdcard/ClockworkMod/libgps_with_AGPS_update.zip (Remember to download it.)
/sdcard/GScript/1_install_Magic_AGPS.sh
/sdcard/GScript/2_install_libgps_v1.6.sh
Install GScript or GScript Lite.
Add 1_install_Magic_AGPS.sh and 2_install_libgps_v1.6.sh to GScript.
Run 1_install_Magic_AGPS.sh, and the phone will hot reboot itself.
After reboot, make sure you have network connection, and wait at lease 1 min to let Android download and inject AGPS data.
Run 2_install_libgps_v1.6.sh, and the phone will hot reboot itself.
After reboot, you can enjoy the quicker GPS cold lock.
Click to expand...
Click to collapse
Changelog:
Version 2.1 NMEA|RPC - (Aug. 26)
Both: Remove or reduce some debugging info output to logcat. (Cleanup and optimization stage.)
Both: Output NMEA or RPC version and parsed settings of gps.conf to logcat.
Version 2.0 NMEA|RPC - (Aug. 6)
Both: Add GPS1_SESSION_TIMEOUT in gps.conf to set time between invoking pdsm_get_position(). (Default is 2 seconds. Range is 2~120 seconds.)
RPC: Hide Fix/Sats info and make the GPS symbol in the status bar flashing when you go to basement or tunnel. (NMEA already has this feature. This is for RPC version.)
Version 1.9 NMEA|RPC - (Jul. 29)
Both: Include v1.7's latest gps.htcleo.so, gps.leo.so, and gps.bravo.so again.
Both: Add a new thread for getting GPS location locks: (Credits to qwerty_7564)
gps_get_position() is called in its own thread using callbacks to request the next position.
remove unnecessary sleep and the can_send flag in pdsm_get_position().
Both: Remove unnecessary mallocs since there is a performance cost for use. (Credits to qwerty_7564)
Both: Shutdown the gpsOne engine properly on GPS off. (i.e. turning off GPS from settings) (Credits to qwerty_7564)
Both: Support loading the GPS1_CLEANUP_ENABLED flag from gps.conf. (Set it to 0 if you use a ROM that has "GPS off-and-on bug".)
Both: Parse gps.conf and invoke pdsm_xtra_set_auto_download_params() only once until reboot.
Both: Support the customized fix update frequency, which is set by a GPS tracking app, via gps_get_position(int timeout).
NMEA: Add a timer thread for supporting the customized fix update frequency which is set by a GPS tracking app.
(As a result, we won't see the fast-forwarding effect in time field in GPS Status, and the random hot reboot issue in NMEA version may be fixed too.)
Version 1.8 NMEA|RPC - (Jul. 19)
Both: Support automatic (periodic) download requests of gpsOneXTRA assistance data to client. (Default is disabled.) (Credits to qwerty_7564.)
Both: Support enabling xtra.bin download requests and setting download interval from gps.conf.
Both: Include v1.6's old gps.htcleo.so, gps.leo.so, and gps.bravo.so. (It seems that v1.7's new gps.xxx.so causes the battery drain in some ROMs, but not all ROMs.)
NMEA: Disable $GPGSV report to make NMEA version more stable. (It seems that random hot reboot issue is reduced.)
RPC: Support the negative altitude. (Credits to arne182.)
RPC: Fix the incorrect HDOP value.
Version 1.7 NMEA|RPC - (Jul. 10)
Both: Activate the AGPS data injection. (You can get a cold lock very quickly due to the working AGPS.) (Thanks to qwerty_7564.)
Both: Include updated gps.htcleo.so, gps.leo.so, and gps.bravo.so. (Fix suspension issues.) (Thanks to rmcc.)
RPC: Disable NMEA sentences output and enable RPC Callback function output.
Version 1.6 - (Jul. 05)
Set Measurement Precision to 10.0 meters.
Version 1.5 - (Jun. 26)
Support daylight saving time (DST).
Version 1.4 - (Jun. 24)
A whole new version using NMEA sentences.
Hide Fix/Sats info when you go to basement or tunnel.
Show DOP/HDOP/VDOP values in GPS Status.
Show Altitude above Geoid (i.e. mean sea level) and Geoid height. (You will see both of them in GPS Status. The value within parentheses is Geoid height.)
Show correct SNR (Signal to noise ratio) value.
Disable AGPS Ephemeris data (xtra.bin) injection.
Assume Measurement Precision to 5.0 meters.
Include updated gps.htcleo.so, gps.leo.so, and gps.bravo.so. (Only one file will be used by your ROM. I suggest to delete the other two files in this zip file, and then flash it.)
Version 1.3 - (Jun. 15)
Fix the reboot issue. (In v1.2, reboot your phone when the GPS setting is off, you will enter the boot loop.)
Inject the correct time to the gpsOne engine.
Comment out some debugging data.
Version 1.2 - (Jun. 12)
Support injecting AGPS Ephemeris data (xtra.bin) into the gpsOne engine by implementing pdsm_xtra_set_data().
Support injecting time into the gpsOne engine by implementing pdsm_xtra_inject_time_info().
Assume Measurement Precision to 2.5 meters.
Version 1.1 - (Jun. 02)
Assume Measurement Precision to 2.0 meters.
Version 1.0 - (May 28)
Show the number of satellites before getting a location fix.
Show or hide the GPS icon in the status bar instantly when you start or stop a GPS app.
Support the leap seconds. (Thanks to arne182 for figuring it out.)
Modify the Accuracy to be more reasonable. (Assume Measurement Precision to 10 meters)
Add AGPS interface. (Won't see "no AGPS interface in agps_data_conn_open" in logcat now.)
Add the missing functions to receive the NTP, XTRA, and SUPL settings from gps.conf.
Click to expand...
Click to collapse
Credits: the XDAndroid Project, dan1j3l, rmcc, tytung, arne182, clyder, ozkaya, qwerty_7564, and everyone who participated in the related discussion or helped test the libs.
AGPS Development is finished.
My modified source code of libgps.so has been uploaded to Github. https://github.com/tytung/android_hardware_leo_libgps
Notice:
The source code is released under the GNU General Public License version 3 (GPLv3).
So you must release your modified source code if you would like to release a modified libgps.so.
Development info:
Extracted files from WinMo related to GPS.
AMSS PDAPI functions for injecting xtra data and time: 80-VE814-1_D_gpsOneXTRA_Assistance_API_and_Client.pdf (I found it from Google)
pdsm_xtra_set_data(...) on page 24.
pdsm_xtra_inject_time_info(...) on page 17.
AMSS PDAPI for other pdsm_* functions: 80_V1960_2_M_gpsOne_ISOD.pdf (I found it from Google)
E.g., pdsm_client_init(...) on page 26.
E.g., pdsm_client_pd_reg(...) on page 29.
RPC calls for Leo
RPC calls examples of remote_apis_clnt.dll
Leo RPC list
MSM RPC list
Working AGPS data injection
Click to expand...
Click to collapse
Credits: tytung, clyder, ozkaya, qwerty_7564, and everyone who participated in the related discussion or helped test the libs.
wow, trying for sure
Edit: Deleted by myself...
Anyway thx for the answer
Nice work~testing
After I mod the gps.conf, the google map works well
but the GPS Test Plus can't find any satellites
Wow! Awesome to have developers like you ! Keep up the good work
Sent from my HTC HD2 using XDA Premium App
Thanks a lot tytung, just what i was waiting for. Thanks a lot for everything you have done for hd2. I will try and report soon.
What about standby settings? Can i set my gps to work while phone is in standby? (e.g. log my track when jogging)
With Run.GPS it doesn´t work.
Sorry, why this app need?
xaoc747 said:
Sorry, why this app need?
Click to expand...
Click to collapse
i've just tried with typhoon 3.3.3 and before flash the new library more than 3 minutes and i'ven't got fix, after flash the new library istant fix.
Great job Tytung
deleted...
Bib_x said:
What about standby settings? Can i set my gps to work while phone is in standby? (e.g. log my track when jogging)
With Run.GPS it doesn´t work.
Click to expand...
Click to collapse
Change your app.
I think it's the app issue.
The app you used doesn't process the WakeLock properly.
Thanks.
Thank you tytung for all your hard work.
It can make the gps work better ,the old one can't work with gps.conf,the lastest one improve this
can't work with GPS Test Plus , sorry
pecora said:
i've just tried with typhoon 3.3.3 and before flash the new library more than 3 minutes and i'ven't got fix, after flash the new library istant fix.
Great job Tytung
Click to expand...
Click to collapse
I reduce fix_frequency and timeout value of gps_get_position(), so it may improve the time you get a location fix.
However, there're too many environmental factors to affect getting the location fix time.
So it still needs more people to test and confirm it.
shendan said:
can't work with GPS Test Plus , sorry
Click to expand...
Click to collapse
Interesting.
It works with GPS Test.
I don't have a Plus version.
Thank you tytung!
Can we use it in Sense Gingerbread ROMS? Or only in AOSP ones?
Hi and thanks a lot for taking care of this for us, who are too dummy to make any coding
I want to publish some additional info I have found.
I was playing with libs from MIUI as there gps works better.
The point I want to pick up is this: there is line in build.prop
"ro.ril.def.agps.mode=2"
When I switched the HW lib and added this line to build prop, the cold start shortened from 3-5 min into 30-50 sec.
Maybe it's not anything to help you, as you can go other way. But ... for any case I wanted to share
edit: PS. I'm with customized GBX12
WOW!
Wow Tytung!! I got gps signal in 2 seconds!!
the only negative thing I can say is that the gps signal was low. Used gps test plus, and the gps signal was at 30, usally it's 50- 70.

[JVP] Automatic brightness fix DIY

I've made this thread to show you how to fix this frustrating bug. After few steps you'll get working light sensor better than in previous GB versions
Files need to be replaced or edited:
- services.jar
- framework-res.apk
- sensors.default.so
Recommended kernel:
- Galaxian*
Based on original Samsung sources
All Voodoo addictions (color fix, sound V9)
CPU frequencies: 100MHz, 200MHz, 400MHz, 800MHz, 1000MHz, 1200MHz, 1300MHz, 1400MHz.
CONFIG_HZ=500
CWM 3.0.0.5 based on, and fully compatible with CF-ROOT
Light sensor polling 1s instead of 2s
Compatible with RFS and EXT4
Much more I can't remember
What needs to be done:
framework-res.apk edit
1. Get apk manager (attached)
2. Put framework-res.apk in "place-apk-here-for-modding" folder
3. Run apk manager, decompile with dependancy (option 10)
4. Drag twframework-res.apk from your ROM into the script, or extract it somewhere and type path to it
5. Go into projects\framework-res\res\values\arrays.xml
6. Replace two sections:
<integer-array name="config_autoBrightnessLevels">
<item>30</item>
<item>300</item>
<item>600</item>
<item>1500</item>
<item>1500</item>
</integer-array>
<integer-array name="config_autoBrightnessLcdBacklightValues">
<item>80</item>
<item>150</item>
<item>200</item>
<item>255</item>
</integer-array>
Click to expand...
Click to collapse
7. Delete .bak file if you got one after changes
8. Go back to script and select compile
9. Say y
10. Say y
11. Delete resources.arsc from keep folder
12. Enter in script
13. U'll find unsignedframework-res.apk in "modding" folder
14. Use ADB
Code:
adb push unsignedframework-res.apk /data/local/tmp/framework-res.apk
adb shell
su
mount -o rw,remount /dev/block/stl9 /system
stop
rm /system/framework/framework-res.apk
cp /data/local/tmp/framework-res.apk /system/framework/
rm /data/local/tmp/framework-res.apk
reboot
services.jar replace/edit
Attached services.jar should be compatible with all JVP releases as long as author didn't modified it. If you are not sure you can always edit your own version by doing:
1. Get apk manager (attached)
2. Put services.jar in "place-apk-here-for-modding" folder
3. Rename it to services.apk
4. Run apk manager, decompile (option 9)
5. Go into projects\services.apk\smali\com\android\server\
6. Replace PowerManagerService.smali file with the one from my services.jar
7. Delete .bak file if you got one after changes
8. Go back to script and select compile
9. Say n
13. U'll find unsignedservices.apk in "modding" folder
14. Rename it to services.jar
14. Use ADB
Code:
adb push services.jar /data/local/tmp/
adb shell
su
mount -o rw,remount /dev/block/stl9 /system
stop
rm /system/framework/services.jar
cp /data/local/tmp/services.jar /system/framework/
rm /data/local/tmp/services.jar
reboot
sensors.default.so replace
1. Use ADB
Code:
adb push sensors.default.so /data/local/tmp/
adb shell
su
mount -o rw,remount /dev/block/stl9 /system
stop
rm /system/lib/hw/sensors.default.so
cp /data/local/tmp/sensors.default.so /system/lib/hw/
chmod 644 /system/lib/hw/sensors.default.so
rm /data/local/tmp/sensors.default.so
reboot
GALAXIAN KERNEL:
1. Go to the Market place
2. Install SGS kernel flasher
3. Extract zImage.7z to your internal SD card
4. Select zImage and flash
5. Be happy
New version of sensors.default.so! Now all 4 steps are working!
BTW. With those files you will now loose BLN!
Thank you very much in providing this fix.
Thks
This is what I have been waiting for....
I will recompile my services.jar n framework-res.apk and incorporate them into my custom rom.
Thank you so much!
i do not get it =) what is this fixing Oo
$omator said:
i do not get it =) what is this fixing Oo
Click to expand...
Click to collapse
It fixes the Auto brightness issue in some kernels.
i guess when auto brightness is checkedit is not reacting or reacting wrong?
Im guessing this only works on deodexed?
This is a fix of the moth !
THANK YOU SIR !
btw., what kernel is this? your own ?
Simce I can't find Galaxian anywhere on the forum.
Btw. where are the attached binaries from? Extract from original JVP kernel ?
$omator said:
i guess when auto brightness is checkedit is not reacting or reacting wrong?
Click to expand...
Click to collapse
In some kernels the brighness is reversed or totally wrong.
This has fixed it.
@ Brotuck
Will you try and include this in your GingerMod Rom? (...does it need it?)
eternal-intent said:
@ Brotuck
Will you try and include this in your GingerMod Rom? (...does it need it?)
Click to expand...
Click to collapse
I already updated my GM22 @ damians site.
It also uses a slightly different value, tested it today worked fine !
Brotuck said:
I already updated my GM22 @ damians site.
It also uses a slightly different value, tested it today worked fine !
Click to expand...
Click to collapse
Cool.
Well, I'm off to check it out...
And to the OP thanks, I'm interested to see what effect this has...it's not that I'm lazy, I just still lack confidence in my adb (dis)ability or I'd be more inclined to try and do it myself.
CWM can ask
ok now i see what is going on here =)
-provided sensors.default.so is 1:1 with stock JVP one
Click to expand...
Click to collapse
-arrays.xml is tweaked when compared to stock - and my guess OP made an error here as
<!-- Array of output values for LCD backlight corresponding to the LUX values
in the config_autoBrightnessLevels array. This array should have size one greater
than the size of the config_autoBrightnessLevels array.
-->
Click to expand...
Click to collapse
those are stock values from JVP below
<integer-array name="config_autoBrightnessLevels">
<item>30</item>
<item>2000</item>
<item>6000</item>
<item>11000</item>
</integer-array>
<integer-array name="config_autoBrightnessLcdBacklightValues">
<item>32</item>
<item>70</item>
<item>116</item>
<item>177</item>
<item>253</item>
</integer-array>
Click to expand...
Click to collapse
Click to expand...
Click to collapse
-at the services.jar few more tweeks that i do not see much sense in =)
i would realy like to see explanation of those changes
Click to expand...
Click to collapse
Ill look at this properly, but couldn't you put this in a CWM flashable package? Thanks if you can.
Sent from my ever changing Galaxy S
CWM flashable package, please
The biggest "problem" is that you need to change values in the framework.
And that one is connected to the theme you use.
Battery color / lockscreens stuff like that.
So making 1 general CWM is a problem....
If you encounter brightness problems, like not responding to changes or bright light in the dark (when it should be darker)
Then but only then consider this mod, if you do not know how to do it, then ask the theme maker.
ill rephrase my question =)
why those fixes (left stock, right this fix/tweak)
ALL_BRIGHT from 15 to 255
ANIM_STEPS from 10 to 50
AUTOBRIGHTNESS_ANIM_STEPS from 10 to 50
LIGHT_SENSOR_DELAY from 2000 to 1000
@$omator: it`s working! i think this is the only relevant answer!
you know a better way? then do it and start your own thread!
I'd like to try this fix but I can't because each time >compile< gets me an error in APK Manager! Something like "unknown source" and "could not exec command". Does anyone here have any success with this fix and Bezke JVP-ROM?

[BETA] AGPS fix for HTC One X - Andorid Revolution 18.1 ONLY

BE WARNED​
THIS PATCH WILL ONLY WORK ON​
MIKE'S ROM (Android_Revolution_HD-One_X_18.1)​
This patch will currently only work for the "Android_Revolution_HD-One_X_18.1" ROM because within this patch there is a modified build.prop. When you have done changes or custom settings on this ROM within the build.prop they will be lost and revert back to mike's defaults.
1. What damn changes?
I have add the value
ro.ril.def.agps.mode=2
Click to expand...
Click to collapse
to the build.prop
This should be required for enable AGPS by default. Not sure if this is true but on the one hand it seems to work and on the other hand this is a BETA patch.
2. Show the content of the gps.conf
This is the gps.conf within this patch:
NTP_SERVER=de.pool.ntp.org
AGPS=/data/xtra.bin
AGPS=http://xtra1.gpsonextra.net/xtra.bin
XTRA_SERVER_1=/data/xtra.bin
XTRA_SERVER_2=http://xtra2.gpsonextra.net/xtra.bin
XTRA_SERVER_3=http://xtra3.gpsonextra.net/xtra.bin
GPS1_CLEANUP_ENABLED=1
GPS1_SESSION_TIMEOUT=2
GPS1_XTRA_AUTO_DOWNLOAD_ENABLED=1
GPS1_XTRA_DOWNLOAD_INTERVAL=6
INTERMEDIATE_POS=1
ACCURACY_THRES=5000
ACCURACY_THRES=100
ENABLE_WIPER=1
CURRENT_CARRIER=common
PHONE_TYPE=UMTS
DEFAULT_AGPS_ENABLE=TRUE
DEFAULT_SSL_ENABLE=FALSE
DEFAULT_USER_PLANE=TRUE
REPORT_POSITION_USE_SUPL_REFLOC=1
QOS_ACCURACY=50
QOS_TIME_OUT_STANDALONE=60
QOS_TIME_OUT_agps=89
QosHorizontalThreshold=1000
QosVerticalThreshold=500
SUPL_HOST=supl.google.com
SUPL_PORT=7276
SUPL_SECURE_PORT=7275
SUPL_NO_SECURE_PORT=3425
SUPL_TLS_HOST=FQDN
SUPL_TLS_CERT=/etc/SuplRootCert
C2K_HOST=c2k.pde.com
C2K_PORT=7275
#UserParam
AssistMethodType=1
AgpsUse=1
AgpsMtConf=0
AgpsMtResponseType=1
AgpsServerType=1
AgpsServerIp=3232235555
AgpsServerPort=7276
AgpsServerFqdnType=1
AgpsServerFqdnStr=supl.google.com
AgpsSecureSocketOn=1
GpsPlusAutoDownloadOn=1
PdrEnable=1
WpsPdrEnable=1
LocationEnable=1
NetworkLocationEnable=1
use_logcat = 1
event_mask = 65535
nmea_sentence_mask = 31
# 1 = no lock (who the hell has coded this??)
engine_lock = 1
operation_mode = 4
fix_session_type = 0
time_between_fixes = 60
accuracy_threshold = 255
fix_timeout = 60
#XTRA related parameters
enable_auto_download = 1
auto_download_period = 1
#xtra1.gpsonextra.net
xtra_server_addr = 216.187.118.37
data_request_reply = 0
umts_profile_number = 0
apn_name = NULL
GpsMode=2
GpsOption=4
SessonType=2
QosTimeout=255
DataReceiveType=1
DeviceType=3
SensorMagneticOn=0
#TestParam
ULTSOn=0
#NetworkParam
IndexOfApn=3
#GpsPlusInfo
XtraDataSetTime=0
GpsPlusSetTime=-796640328
Click to expand...
Click to collapse
If you have additional parameters or other recommendations, please feel so free and submit this here.
3. How to test?
I have this configuration on my HTC running and it was a need to wait and also to travel arround to get an exact result. I was only Google Maps using and testing. If you have different Navigation Systems installed please also check and test this.
4. How fast?
GPS lock takes 1 to 3 seconds - than it's done. WiFi is also enabled so it doesn't matters if you are using UMTS/GPRS or WiFi.
5. Bugs?
Yes. At the moment it takes some time until you get the first exact result. At the moment it is only between 3 to 10 meteres exactly.
6. Goal?
I want to have a real 99,995% result and want to get a result with a different of max. 1 meter.
For this it would be great if you can give a Feedback please. Thanks!!
Help-me!
MrT69 said:
BE WARNED​
THIS PATCH WILL ONLY WORK ON​
MIKE'S ROM (Android_Revolution_HD-One_X_18.1)​
This patch will currently only work for the "Android_Revolution_HD-One_X_18.1" ROM because within this patch there is a modified build.prop. When you have done changes or custom settings on this ROM within the build.prop they will be lost and revert back to mike's defaults.
1. What damn changes?
I have add the value
to the build.prop
This should be required for enable AGPS by default. Not sure if this is true but on the one hand it seems to work and on the other hand this is a BETA patch.
2. Show the content of the gps.conf
This is the gps.conf within this patch:
If you have additional parameters or other recommendations, please feel so free and submit this here.
3. How to test?
I have this configuration on my HTC running and it was a need to wait and also to travel arround to get an exact result. I was only Google Maps using and testing. If you have different Navigation Systems installed please also check and test this.
4. How fast?
GPS lock takes 1 to 3 seconds - than it's done. WiFi is also enabled so it doesn't matters if you are using UMTS/GPRS or WiFi.
5. Bugs?
Yes. At the moment it takes some time until you get the first exact result. At the moment it is only between 3 to 10 meteres exactly.
6. Goal?
I want to have a real 99,995% result and want to get a result with a different of max. 1 meter.
For this it would be great if you can give a Feedback please. Thanks!!
Click to expand...
Click to collapse
Friend! I'm currently with Android Rom Revolutions 18.1. I did the tests off the wifi and data and then immediately turned the Sygic which took about 4 seconds to find my location. Do you think I should do some correction? : Confuso:
4 seconds to find your location? Is this bad or is this good?
I'm on 4.2 AOKP Rom and changed the files by hand to your Version. My GPS Works much better now.
My Lock Time on AOKP was 4 - 10 Minutes. With your Version i've got 1 - 2 Minutes on first Lock and 2 - 10 seconds on each relock!
:victory:
Great! Glad to read this
Sent from my EndeavorU using xda app-developers app

[WAR MOD] || CPU & VM Tweaks | Battery Saving

Please read this entire post before doing anything.
Pretty straight forward modification that will increase performance and save battery life. You must be rooted to apply this.
Drop this file: https://drive.google.com/file/d/1h0ET7pYHdPB32v-ZtK5pEMlwlHNn8O46/view?usp=drivesdk
... into this location (replacing the existing stock one):
Code:
/system/vendor/bin
Basically, there is a file in that sub-folder "init.qcom.post_boot.sh"
You are replacing that file with mine, which I've made the following changes to:
-modified hispeed_freq and hispeed_load parameter for both CPU clusters so they run more efficiently
-modified vm parameters in /proc/sys/vm to allow a little more RAM to be used. USE YOUR RAM, that's what it is for! I don't like having a full 900Mb of free RAM, then having apps refresh when they are opened again.
-added a script to limit the maximum display brightness (this is still very usable, but it will be more power friendly. The stock settings are way too aggressive)
- there will be much more to come, this is just to start us off
Also, after you drop the new file into the folder, change the permissions to:
Code:
rwxr-xr-x
then reboot/power up
The .sh file executes on its own after each boot. No more CPU apps.
You will see a noticeable difference in battery life and performance. :good:
Yes could you please give me step by step on how I post apply this to my device because I cannot give it permission and then when I do get to permission changed it keeps saying that ignore it it snow please help
Hey bro,
Can you make this mod for the sdm 636?
TKS
---------- Post added at 03:35 PM ---------- Previous post was at 02:58 PM ----------
what is the soc_id of your device?
Igorfmedeiros said:
Hey bro,
Can you make this mod for the sdm 636?
TKS
---------- Post added at 03:35 PM ---------- Previous post was at 02:58 PM ----------
what is the soc_id of your device?
Click to expand...
Click to collapse
SMD632 is the ID.
Pretty sure yours is SMD636
replace file let's see if anything improves
original file has size 200k
your 41k
restart system has again 200k
this is normal ?
How is this working for those that have used it?
I'm curious too..I've benchmarked my G7 and got a baseline for performance and will eventually try this to see if it improved things..but first I plan on trying some of the tweaks available in Magisk.
this mod doesn't seem to stick as it always reverts to the stock file. why not just make a custom flashable kernel?
Is there guidance to make the change persistent after a reboot. This is my first A/B device and things seems little different now. I am unsure if Motorola is restoring the vendor partition or if the reset isn't related to something else.
I've been trying to avoid installing TWRP due to lack of development and was hoping to apply this with either the stock recovery of just in the file system.
*edit.
I guess Ill look into disabling dim-verity without TWRP, I think I saw a way to do it. Or maybe boot TWRP from the command line instead of installing it.
I made a magisk module to load this file.
See Page 2 to download.
Download ?
idcamper said:
Download ?
Click to expand...
Click to collapse
*module fixed
Use Magisk to make this change stick
*module fixed, we down a few posts.
HT123 said:
I made a magisk module to load this file.
Let me know if anyone wants it.
I went this route becuase I didn't want to install TWRP yet.
Click to expand...
Click to collapse
The unofficial Twrp actually works quite well on my Moto G7.
maybeme2 said:
The unofficial Twrp actually works quite well on my Moto G7.
Click to expand...
Click to collapse
Without anyone making twrp flashable zips of the updates I am remiss to install it. If more mods come along that require workarounds like this one I will pull the trigger but for now, this one change does not warrant TWRP for me anyway.
HT123 said:
I made a magisk module to load this file.
Let me know if anyone wants it.
I went this route becuase I didn't want to install TWRP yet.
Click to expand...
Click to collapse
can you send me?
absvini said:
can you send me?
Click to expand...
Click to collapse
*module fixed
Magisk Module fixed
HT123 said:
The mod didn't work. While the file was replaced, it was not processed, look up a few posts to see how to do it without a module.
Click to expand...
Click to collapse
Someone can feel free to fix my misspelling of Kernel in the mod as well.
I had some free time this morning and I fixed the module. I have no idea if it helps or not.
It does not include everything in the original post, only the changes at the bottom. I take no credit or responsibility for this, all I did was turn the changes into Magisk Module. The code below is the changes that get made.
Code:
# WarBeard mods
#
sleep 20
# Adjust CPU parameters to save battery
echo 1036800 > /sys/devices/system/cpu/cpu0/cpufreq/schedutil/hispeed_freq
echo 75 > /sys/devices/system/cpu/cpu0/cpufreq/schedutil/hispeed_load
echo 1401600 > /sys/devices/system/cpu/cpu4/cpufreq/schedutil/hispeed_freq
echo 95 > /sys/devices/system/cpu/cpu4/cpufreq/schedutil/hispeed_load
# Adjust VM parameters
echo 10 > /proc/sys/vm/dirty_background_ratio
echo 4 > /proc/sys/vm/dirty_expire_centisecs
echo 20 > /proc/sys/vm/dirty_ratio
echo 8 > /proc/sys/vm/dirty_writeback_centisecs
echo 100 > /proc/sys/vm/swappiness
echo 50 > /proc/sys/vm/vfs_cache_pressure
# Limit maximum brightness of display
echo 150 > /sys/class/leds/lcd-backlight/max_brightness
[\code]
idcamper said:
replace file let's see if anything improves
original file has size 200k
your 41k
restart system has again 200k
this is normal ?
Click to expand...
Click to collapse
Same happens to me, just rebooted. I'll check my current file with the one he uploaded on Google Drive by comparing them in a text editor?
HT123 said:
Someone can feel free to fix my misspelling of Kernel in the mod as well.
I had some free time this morning and I fixed the module. I have no idea if it helps or not.
It does not include everything in the original post, only the changes at the bottom. I take no credit or responsibility for this, all I did was turn the changes into Magisk Module. The code below is the changes that get made.
Code:
# WarBeard mods
#
sleep 20
# Adjust CPU parameters to save battery
echo 1036800 > /sys/devices/system/cpu/cpu0/cpufreq/schedutil/hispeed_freq
echo 75 > /sys/devices/system/cpu/cpu0/cpufreq/schedutil/hispeed_load
echo 1401600 > /sys/devices/system/cpu/cpu4/cpufreq/schedutil/hispeed_freq
echo 95 > /sys/devices/system/cpu/cpu4/cpufreq/schedutil/hispeed_load
# Adjust VM parameters
echo 10 > /proc/sys/vm/dirty_background_ratio
echo 4 > /proc/sys/vm/dirty_expire_centisecs
echo 20 > /proc/sys/vm/dirty_ratio
echo 8 > /proc/sys/vm/dirty_writeback_centisecs
echo 100 > /proc/sys/vm/swappiness
echo 50 > /proc/sys/vm/vfs_cache_pressure
# Limit maximum brightness of display
echo 150 > /sys/class/leds/lcd-backlight/max_brightness
[\code][/QUOTE]
This Magisk module provides the exact same thing as the .sh file in the original post? The exact same benefits?
Click to expand...
Click to collapse
HT123 said:
Someone can feel free to fix my misspelling of Kernel in the mod as well.
I had some free time this morning and I fixed the module. I have no idea if it helps or not.
It does not include everything in the original post, only the changes at the bottom. I take no credit or responsibility for this, all I did was turn the changes into Magisk Module. The code below is the changes that get made.
Code:
# WarBeard mods
#
sleep 20
# Adjust CPU parameters to save battery
echo 1036800 > /sys/devices/system/cpu/cpu0/cpufreq/schedutil/hispeed_freq
echo 75 > /sys/devices/system/cpu/cpu0/cpufreq/schedutil/hispeed_load
echo 1401600 > /sys/devices/system/cpu/cpu4/cpufreq/schedutil/hispeed_freq
echo 95 > /sys/devices/system/cpu/cpu4/cpufreq/schedutil/hispeed_load
# Adjust VM parameters
echo 10 > /proc/sys/vm/dirty_background_ratio
echo 4 > /proc/sys/vm/dirty_expire_centisecs
echo 20 > /proc/sys/vm/dirty_ratio
echo 8 > /proc/sys/vm/dirty_writeback_centisecs
echo 100 > /proc/sys/vm/swappiness
echo 50 > /proc/sys/vm/vfs_cache_pressure
# Limit maximum brightness of display
echo 150 > /sys/class/leds/lcd-backlight/max_brightness
[\code][/QUOTE]
I notice quite a difference
Click to expand...
Click to collapse

Themes / Apps / Mods [MOD/magisk/root] GoogleWiz - my magical Magisk module (for devs/sharing !!!)

I'm posting this here for the benefit of the (developer) community.
Attached is my personal "magical" Magisk module for P6P.
I strongly suggest that you DO NOT INSTALL this ... first read below ... If you don't understand what is written below, stop reading and go back playing with your phone ;-)
What is this module doing:
- it "hides" a lot (> 80) of system APKs which I do not use (e.g. NFC, Pixel Tips, Security Hub, MusicFX, ...) - so these literally "disappear" from your phone (Magisk hiding); this works by "bind-mounting" an empty directory over the APKs' file system
- it has a bash shell for "su"
- ad blocking (hosts file, mounted as /etc/hosts)
- it has a series of init.d (mounted as /etc/init.d) and service.d (mounted as /etc/services.d) scripts that do various things (e.g. kernel tuning, disable various debugging, disable swap, run sqlite optimizer, charling limit, ext4 tweaks ...), some things will NOT be relevant to you (e.g. there are scripts that install obf maps for OSMAND)
- a number of binaries (e.g. bash, busybox, xmlstarlet, find, (g)parted, ...)
- a number of scripts (mounted in /system/bin) for my personal usage (e.g. a script to make all my settings "stick")
- enables VoLTE (check properties in system.prop file)
So, you need to unzip this module and check the stuff inside, modify as per your liking !!!
This module is a (long lived) decendent from an old (2018) Magisk based ROM on Galaxy S8 (https://forum.xda-developers.com/t/...iz-pixelize-your-s8-end-of-life-crj5.3750641/). That ROM was quite popular as it turned the Galaxy S8 into a Pixel like phone. For me personally it was a journey to learn how to develop Magisk modules and gradually became bigger and bigger ...
You CAN install it ... but it may NOT be to your liking (!!!) ... then just uninstall it from Magisk ... no harm done (except that you will have my settings) - check out the script LS99execonce to understand this
Devs: feel free to (re)use for whatever purpose ... sharing for the benefit of the community ... if you do use it, no need to mention me (but you can of course) ;-)
Most of the code is "sh" scripting (and a few "bash" scripts).
If you do run it, there will be logging info in /data/googlewiz, just do:
Code:
> adb shell
$ su
# cat /data/googlewiz/*
... and
# cat /data/LS00* (init.d scripts logging)
# cat /data/LS99* (services.d scripts logging)
Hopefully some of this can help you in developing your own magisk module.
Which file in your module lists which app get disabled/hidden?
I would prefer to go through them manually first
Unzip the module, then check all the directories which have an ".replace" file, e.g. on linux do:
Code:
> cd mydir
> unzip googlewiz.zip
> find . -name '.replace'
That wil show you the paths of the APKs which are hidden.
Sorry, I'm not a Windows guy ...
This is the list:
Code:
./system/product/app/YouTubeMusicPrebuilt/.replace
./system/product/app/SoundAmplifierPrebuilt/.replace
./system/product/app/VoiceAccessPrebuilt/.replace
./system/product/app/SafetyRegulatoryInfo/.replace
./system/product/app/PixelWallpapers2021/.replace
./system/product/app/talkback/.replace
./system/product/app/Videos/.replace
./system/product/app/VZWAPNLib/.replace
./system/product/app/DiagnosticsToolPrebuilt/.replace
./system/product/app/LocationHistoryPrebuilt/.replace
./system/product/app/MicropaperPrebuilt/.replace
./system/product/overlay/DisplayCutoutEmulationCorner/.replace
./system/product/overlay/CellBroadcastServiceOverlay/.replace
./system/product/overlay/CellBroadcastReceiverOverlay/.replace
./system/product/overlay/NavigationBarModeGesturalExtraWideBack/.replace
./system/product/overlay/DisplayCutoutAvoidAppsInCutout/.replace
./system/product/overlay/DisplayCutoutNoCutout/.replace
./system/product/overlay/FontNotoSerifSource/.replace
./system/product/overlay/NavigationBarModeGesturalNarrowBack/.replace
./system/product/overlay/OneHandedModeGestural/.replace
./system/product/overlay/NavigationBarModeGesturalWideBack/.replace
./system/product/overlay/NavigationBarMode3Button/.replace
./system/product/overlay/DisplayCutoutEmulationDouble/.replace
./system/product/overlay/DisplayCutoutEmulationWaterfall/.replace
./system/product/overlay/DisplayCutoutEmulationTall/.replace
./system/product/overlay/DisplayCutoutEmulationHole/.replace
./system/product/priv-app/Showcase/.replace
./system/product/priv-app/HotwordEnrollmentXGoogleFUSION/.replace
./system/product/priv-app/ScribePrebuilt/.replace
./system/product/priv-app/OTAConfigNoZeroTouchPrebuilt/.replace
./system/product/priv-app/OemDmTrigger/.replace
./system/product/priv-app/BetterBug/.replace
./system/product/priv-app/PartnerSetupPrebuilt/.replace
./system/product/priv-app/PixelLiveWallpaperPrebuilt/.replace
./system/product/priv-app/HelpRtcPrebuilt/.replace
./system/product/priv-app/DCMO/.replace
./system/product/priv-app/TipsPrebuilt/.replace
./system/product/priv-app/DreamlinerPrebuilt/.replace
./system/product/priv-app/AppDirectedSMSService/.replace
./system/product/priv-app/ConnMO/.replace
./system/product/priv-app/SafetyHubPrebuilt/.replace
./system/product/priv-app/CbrsNetworkMonitor/.replace
./system/product/priv-app/WellbeingPrebuilt/.replace
./system/product/priv-app/MaestroPrebuilt/.replace
./system/product/priv-app/CarrierMetrics/.replace
./system/product/priv-app/DiagMon/.replace
./system/product/priv-app/DreamlinerUpdater/.replace
./system/product/priv-app/DMService/.replace
./system/product/priv-app/HotwordEnrollmentOKGoogleFUSION/.replace
./system/app/GooglePrintRecommendationService/.replace
./system/app/PacProcessor/.replace
./system/app/BasicDreams/.replace
./system/app/NfcNci/.replace
./system/app/EasterEgg/.replace
./system/app/PartnerBookmarksProvider/.replace
./system/app/BookmarkProvider/.replace
./system/app/WallpaperBackup/.replace
./system/app/LiveWallpapersPicker/.replace
./system/app/BluetoothMidiService/.replace
./system/app/HTMLViewer/.replace
./system/system_ext/app/EmergencyInfoGoogleNoUi/.replace
./system/system_ext/priv-app/GoogleFeedback/.replace
./system/system_ext/priv-app/QuickAccessWallet/.replace
./system/system_ext/priv-app/MyVerizonServices/.replace
./system/system_ext/priv-app/obdm_stub/.replace
./system/system_ext/priv-app/StorageManagerGoogle/.replace
./system/system_ext/priv-app/WallpaperPickerGoogleRelease/.replace
./system/system_ext/priv-app/OBDM_Permissions/.replace
./system/system_ext/priv-app/LLKAgent/.replace
./system/system_ext/priv-app/PixelNfc/.replace
./system/priv-app/BuiltInPrintService/.replace
./system/priv-app/Traceur/.replace
./system/priv-app/LocalTransport/.replace
./system/priv-app/ManagedProvisioning/.replace
./system/priv-app/AppDirectedSMSService/.replace
./system/priv-app/TagGoogle/.replace
./system/priv-app/CellBroadcastLegacyApp/.replace
./system/priv-app/CallLogBackup/.replace
./system/priv-app/SharedStorageBackup/.replace
./system/priv-app/MmsService/.replace
./system/priv-app/MusicFX/.replace
./system/priv-app/BackupRestoreConfirmation/.replace
foobar66 said:
Unzip the module, then check all the directories which have an ".replace" file, e.g. on linux do:
Code:
> cd mydir
> unzip googlewiz.zip
> find . -name '.replace'
That wil show you the paths of the APKs which are hidden.
Sorry, I'm not a Windows guy ...
This is the list:
Code:
./system/product/app/YouTubeMusicPrebuilt/.replace
./system/product/app/SoundAmplifierPrebuilt/.replace
./system/product/app/VoiceAccessPrebuilt/.replace
./system/product/app/SafetyRegulatoryInfo/.replace
./system/product/app/PixelWallpapers2021/.replace
./system/product/app/talkback/.replace
./system/product/app/Videos/.replace
./system/product/app/VZWAPNLib/.replace
./system/product/app/DiagnosticsToolPrebuilt/.replace
./system/product/app/LocationHistoryPrebuilt/.replace
./system/product/app/MicropaperPrebuilt/.replace
./system/product/overlay/DisplayCutoutEmulationCorner/.replace
./system/product/overlay/CellBroadcastServiceOverlay/.replace
./system/product/overlay/CellBroadcastReceiverOverlay/.replace
./system/product/overlay/NavigationBarModeGesturalExtraWideBack/.replace
./system/product/overlay/DisplayCutoutAvoidAppsInCutout/.replace
./system/product/overlay/DisplayCutoutNoCutout/.replace
./system/product/overlay/FontNotoSerifSource/.replace
./system/product/overlay/NavigationBarModeGesturalNarrowBack/.replace
./system/product/overlay/OneHandedModeGestural/.replace
./system/product/overlay/NavigationBarModeGesturalWideBack/.replace
./system/product/overlay/NavigationBarMode3Button/.replace
./system/product/overlay/DisplayCutoutEmulationDouble/.replace
./system/product/overlay/DisplayCutoutEmulationWaterfall/.replace
./system/product/overlay/DisplayCutoutEmulationTall/.replace
./system/product/overlay/DisplayCutoutEmulationHole/.replace
./system/product/priv-app/Showcase/.replace
./system/product/priv-app/HotwordEnrollmentXGoogleFUSION/.replace
./system/product/priv-app/ScribePrebuilt/.replace
./system/product/priv-app/OTAConfigNoZeroTouchPrebuilt/.replace
./system/product/priv-app/OemDmTrigger/.replace
./system/product/priv-app/BetterBug/.replace
./system/product/priv-app/PartnerSetupPrebuilt/.replace
./system/product/priv-app/PixelLiveWallpaperPrebuilt/.replace
./system/product/priv-app/HelpRtcPrebuilt/.replace
./system/product/priv-app/DCMO/.replace
./system/product/priv-app/TipsPrebuilt/.replace
./system/product/priv-app/DreamlinerPrebuilt/.replace
./system/product/priv-app/AppDirectedSMSService/.replace
./system/product/priv-app/ConnMO/.replace
./system/product/priv-app/SafetyHubPrebuilt/.replace
./system/product/priv-app/CbrsNetworkMonitor/.replace
./system/product/priv-app/WellbeingPrebuilt/.replace
./system/product/priv-app/MaestroPrebuilt/.replace
./system/product/priv-app/CarrierMetrics/.replace
./system/product/priv-app/DiagMon/.replace
./system/product/priv-app/DreamlinerUpdater/.replace
./system/product/priv-app/DMService/.replace
./system/product/priv-app/HotwordEnrollmentOKGoogleFUSION/.replace
./system/app/GooglePrintRecommendationService/.replace
./system/app/PacProcessor/.replace
./system/app/BasicDreams/.replace
./system/app/NfcNci/.replace
./system/app/EasterEgg/.replace
./system/app/PartnerBookmarksProvider/.replace
./system/app/BookmarkProvider/.replace
./system/app/WallpaperBackup/.replace
./system/app/LiveWallpapersPicker/.replace
./system/app/BluetoothMidiService/.replace
./system/app/HTMLViewer/.replace
./system/system_ext/app/EmergencyInfoGoogleNoUi/.replace
./system/system_ext/priv-app/GoogleFeedback/.replace
./system/system_ext/priv-app/QuickAccessWallet/.replace
./system/system_ext/priv-app/MyVerizonServices/.replace
./system/system_ext/priv-app/obdm_stub/.replace
./system/system_ext/priv-app/StorageManagerGoogle/.replace
./system/system_ext/priv-app/WallpaperPickerGoogleRelease/.replace
./system/system_ext/priv-app/OBDM_Permissions/.replace
./system/system_ext/priv-app/LLKAgent/.replace
./system/system_ext/priv-app/PixelNfc/.replace
./system/priv-app/BuiltInPrintService/.replace
./system/priv-app/Traceur/.replace
./system/priv-app/LocalTransport/.replace
./system/priv-app/ManagedProvisioning/.replace
./system/priv-app/AppDirectedSMSService/.replace
./system/priv-app/TagGoogle/.replace
./system/priv-app/CellBroadcastLegacyApp/.replace
./system/priv-app/CallLogBackup/.replace
./system/priv-app/SharedStorageBackup/.replace
./system/priv-app/MmsService/.replace
./system/priv-app/MusicFX/.replace
./system/priv-app/BackupRestoreConfirmation/.replace
Click to expand...
Click to collapse
Np, I am a Linux user too
And you are sure that you can safely disable all that stuff?
I see several packages that I had disabled in AFWall+ and I noticed that some things got broken.
Utini said:
Np, I am a Linux user too
And you are sure that you can safely disable all that stuff?
I see several packages that I had disabled in AFWall+ and I noticed that some things got broken.
Click to expand...
Click to collapse
I don't have broken things. But I don't use certain things either, e.g. NFC, one handed mode, pixel tips, live wallpapers, eSIM ... all of these (and more) I have disabled ... but you have to judge for yourself!!!
I probably won't be using this, but this is awesome. I've done similar for one of my very old LG phones and tablets. More of the traditional bloatware, that is.
Like you, I've been disabling all of those same apks, pretty much every one you disabled except for NFC for the rare time I actually use it. I've done that probably for the last ten years on all my devices. You do see a slight speed increase and maybe some better battery life by disabling all of those. On my S21 Ultra I think I had about 135 apk's disabled. Great module.
Hello from Germany...
One of these settings prevents the correct display for some apps.
Here is an example from SwiftKey.
Do you know which one it could be?
In the first picture googlewiz is switched off.
The second one shows the different colors on the same keyboard.
In the third picture you can no longer see the enter button.
It seems to be something about black and white.
If I switch off dark mode with googlewiz switched on, it works without any problems.
greetz
V-Ripper said:
Here is an example from SwiftKey.
Click to expand...
Click to collapse
Hmmm ... could either be the (a) force dark setting or (b) the gesture pill removal (overlay).
Try the following:
Code:
> adb shell
$ su
# cmd overlay disable com.android.shell:NavBarFrameHeightOverlay
Then check SwiftKey again. Please report if OK or not.
I've been using this for a couple of days now & seems to be working brilliantly, thanks @foobar66!
I have highly modified the package to fit my usage - I have removed: adblocking (as I use adaway), your personal settings, the charge limit, some binaries & I have unfrozen some system apks, etc.
The module still is freezing 37 system apks & is also still running: block dev tweaks, ext4 tweaks, kernel tweaks, scheduling tweaks, swap off script, no log script, stop daemon script & swapiness script.
Everything seems to be running very well! I especially love the green "[email protected]" instead of "raven" when using shell
DanielF50 said:
Everything seems to be running very well! I especially love the green "[email protected]" instead of "raven" when using shell
Click to expand...
Click to collapse
Simple bash prompt ;-);-)
Actually, the hosts file in the magisk module is an (old) version of the AdAway one ...
Below is my most recent list of 'hidden' APKs (stuff that I don't use) ... but please check for yourself.
Code:
/system/app/BasicDreams/BasicDreams.apk
/system/app/BluetoothMidiService/BluetoothMidiService.apk
/system/app/BookmarkProvider/BookmarkProvider.apk
/system/app/CompanionDeviceManager/CompanionDeviceManager.apk
/system/app/EasterEgg/EasterEgg.apk
/system/app/GooglePrintRecommendationService/GooglePrintRecommendationService.apk
/system/app/HTMLViewer/HTMLViewer.apk
/system/app/LiveWallpapersPicker/LiveWallpapersPicker.apk
/system/app/NfcNci/NfcNci.apk
/system/app/PacProcessor/PacProcessor.apk
/system/app/PartnerBookmarksProvider/PartnerBookmarksProvider.apk
/system/app/SimAppDialog/SimAppDialog.apk
/system/app/Stk/Stk.apk
/system/app/WallpaperBackup/WallpaperBackup.apk
/system/priv-app/BackupRestoreConfirmation/BackupRestoreConfirmation.apk
/system/priv-app/BuiltInPrintService/BuiltInPrintService.apk
/system/priv-app/CallLogBackup/CallLogBackup.apk
/system/priv-app/CellBroadcastLegacyApp/CellBroadcastLegacyApp.apk
/system/priv-app/InputDevices/InputDevices.apk
/system/priv-app/LocalTransport/LocalTransport.apk
/system/priv-app/ManagedProvisioning/ManagedProvisioning.apk
/system/priv-app/MmsService/MmsService.apk
/system/priv-app/MtpService/MtpService.apk
/system/priv-app/MusicFX/MusicFX.apk
/system/priv-app/SharedStorageBackup/SharedStorageBackup.apk
/system/priv-app/TagGoogle/TagGoogle.apk
/system/priv-app/Traceur/Traceur.apk
/product/app/DiagnosticsToolPrebuilt/DiagnosticsToolPrebuilt.apk
/product/app/DevicePolicyPrebuilt/DevicePolicyPrebuilt.apk
/product/app/LocationHistoryPrebuilt/LocationHistoryPrebuilt.apk
/product/app/MicropaperPrebuilt/MicropaperPrebuilt.apk
/product/app/PixelWallpapers2021/PixelWallpapers2021.apk
/product/app/SafetyRegulatoryInfo/SafetyRegulatoryInfo.apk
/product/app/SoundAmplifierPrebuilt/SoundAmplifierPrebuilt.apk
/product/app/SSRestartDetector/SSRestartDetector.apk
/product/app/talkback/talkback.apk
/product/app/Videos/Videos.apk
/product/app/VZWAPNLib/VZWAPNLib.apk
/product/app/VoiceAccessPrebuilt/VoiceAccessPrebuilt.apk
/product/app/YouTubeMusicPrebuilt/YouTubeMusicPrebuilt.apk
/product/priv-app/AppDirectedSMSService/AppDirectedSMSService.apk
/product/priv-app/BetterBug/BetterBug.apk
/product/priv-app/CarrierMetrics/CarrierMetrics.apk
/product/priv-app/CarrierWifi/CarrierWifi.apk
/product/priv-app/CbrsNetworkMonitor/CbrsNetworkMonitor.apk
/product/priv-app/ConnMO/ConnMO.apk
/product/priv-app/DCMO/DCMO.apk
/product/priv-app/DiagMon/DiagMon.apk
/product/priv-app/DMService/DMService.apk
/product/priv-app/DreamlinerPrebuilt/DreamlinerPrebuilt.apk
/product/priv-app/DreamlinerUpdater/DreamlinerUpdater.apk
/product/priv-app/EuiccGoogle/EuiccGoogle.apk
/product/priv-app/GoogleOneTimeInitializer/GoogleOneTimeInitializer.apk
/product/priv-app/GoogleRestorePrebuilt/GoogleRestorePrebuilt.apk
/product/priv-app/HelpRtcPrebuilt/HelpRtcPrebuilt.apk
/product/priv-app/HotwordEnrollmentOKGoogleFUSION/HotwordEnrollmentOKGoogleFUSION.apk
/product/priv-app/HotwordEnrollmentXGoogleFUSION/HotwordEnrollmentXGoogleFUSION.apk
/product/priv-app/Iwlan/Iwlan.apk
/product/priv-app/MaestroPrebuilt/MaestroPrebuilt.apk
/product/priv-app/OemDmTrigger/OemDmTrigger.apk
/product/priv-app/OTAConfigNoZeroTouchPrebuilt/OTAConfigNoZeroTouchPrebuilt.apk
/product/priv-app/PartnerSetupPrebuilt/PartnerSetupPrebuilt.apk
/product/priv-app/PixelLiveWallpaperPrebuilt/PixelLiveWallpaperPrebuilt.apk
/product/priv-app/SafetyHubPrebuilt/SafetyHubPrebuilt.apk
/product/priv-app/SCONE/SCONE.apk
/product/priv-app/ScribePrebuilt/ScribePrebuilt.apk
/product/priv-app/SetupWizardPrebuilt/SetupWizardPrebuilt.apk
/product/priv-app/Showcase/Showcase.apk
/product/priv-app/TipsPrebuilt/TipsPrebuilt.apk
/product/priv-app/WellbeingPrebuilt/WellbeingPrebuilt.apk
/product/overlay/CellBroadcastReceiverOverlay/CellBroadcastReceiverOverlay.apk
/product/overlay/CellBroadcastServiceOverlay/CellBroadcastServiceOverlay.apk
/product/overlay/DisplayCutoutAvoidAppsInCutout/AvoidAppsInCutoutOverlay.apk
/product/overlay/DisplayCutoutEmulationCorner/DisplayCutoutEmulationCornerOverlay.apk
/product/overlay/DisplayCutoutEmulationDouble/DisplayCutoutEmulationDoubleOverlay.apk
/product/overlay/DisplayCutoutEmulationHole/DisplayCutoutEmulationHoleOverlay.apk
/product/overlay/DisplayCutoutEmulationTall/DisplayCutoutEmulationTallOverlay.apk
/product/overlay/DisplayCutoutEmulationWaterfall/DisplayCutoutEmulationWaterfallOverlay.apk
/product/overlay/DisplayCutoutNoCutout/NoCutoutOverlay.apk
/product/overlay/FontNotoSerifSource/FontNotoSerifSourceOverlay.apk
/product/overlay/NavigationBarMode3Button/NavigationBarMode3ButtonOverlay.apk
/product/overlay/NavigationBarModeGesturalExtraWideBack/NavigationBarModeGesturalOverlayExtraWideBack.apk
/product/overlay/NavigationBarModeGesturalNarrowBack/NavigationBarModeGesturalOverlayNarrowBack.apk
/product/overlay/NavigationBarModeGesturalWideBack/NavigationBarModeGesturalOverlayWideBack.apk
/product/overlay/OneHandedModeGestural/OneHandedModeGesturalOverlay.apk
/product/overlay/BuiltInPrintService__auto_generated_rro_product.apk
/product/overlay/NfcNci__auto_generated_rro_product.apk
/product/overlay/Traceur__auto_generated_rro_product.apk
/product/overlay/SafetyRegulatoryInfo__auto_generated_rro_product.apk
/product/overlay/ManagedProvisioningPixelOverlay.apk
/product/overlay/SettingsOverlayGLU0G.apk
/product/overlay/PixelSetupWizardOverlay.apk
/product/overlay/PixelSetupWizardOverlay2019.apk
/product/overlay/PixelSetupWizard__auto_generated_rro_product.apk
/product/overlay/SimAppDialog__auto_generated_rro_product.apk
/system_ext/app/EmergencyInfoGoogleNoUi/EmergencyInfoGoogleNoUi.apk
/system_ext/priv-app/EuiccSupportPixel/EuiccSupportPixel.apk
/system_ext/priv-app/EuiccSupportPixelPermissions/EuiccSupportPixelPermissions.apk
/system_ext/priv-app/GoogleFeedback/GoogleFeedback.apk
/system_ext/priv-app/LLKAgent/LLKAgent.apk
/system_ext/priv-app/MyVerizonServices/MyVerizonServices.apk
/system_ext/priv-app/OBDM_Permissions/OBDM_Permissions.apk
/system_ext/priv-app/obdm_stub/obdm_stub.apk
/system_ext/priv-app/PixelNfc/PixelNfc.apk
/system_ext/priv-app/PixelSetupWizard/PixelSetupWizard.apk
/system_ext/priv-app/QuickAccessWallet/QuickAccessWallet.apk
/system_ext/priv-app/ShannonRcs/ShannonRcs.apk
/system_ext/priv-app/StorageManagerGoogle/StorageManagerGoogle.apk
/system_ext/priv-app/UwbService/UwbService.apk
/system_ext/priv-app/WallpaperPickerGoogleRelease/WallpaperPickerGoogleRelease.apk
/vendor/overlay/NfcNci__auto_generated_rro_vendor.apk
/vendor/overlay/Traceur__auto_generated_rro_vendor.apk
DanielF50 said:
I've been using this for a couple of days now & seems to be working brilliantly, thanks @foobar66!
I have highly modified the package to fit my usage - I have removed: adblocking (as I use adaway), your personal settings, the charge limit, some binaries & I have unfrozen some system apks, etc.
The module still is freezing 37 system apks & is also still running: block dev tweaks, ext4 tweaks, kernel tweaks, scheduling tweaks, swap off script, no log script, stop daemon script & swapiness script.
Everything seems to be running very well! I especially love the green "[email protected]" instead of "raven" when using shell
Click to expand...
Click to collapse
Bye the way, if you do:
Code:
> adb shell
$ su
# gset mysettings
You will have a txt file /sdcard/mysettings ... if reflects your settings in {global/system/secure} namespace. If you ever need to reinstall your pone you can just command line 'source' that file to restore your settings.
Code:
> adb shell
$ su
# source /sdcard/mysettings
But please note that not all settings form the Settings app are stored in those namespaces! So it's not a 100% restore.
And ... bye the way ... you can check log files from the 2 main Magisk scripts (post-fs-data.sh and service.sh):
Code:
> adb shell
$ su
# data /data/googlewiz/*
The log files for the /etc/init.d/ scripts:
Code:
# cat /data/LS00*
And the log files for the /etc/services.d/ scripts:
Code:
# cat /data/LS99*
Wait, EXT4 tweaks? I thought we only had F2FS?
Nope ... mostly system/ro file systems on ext4/
I have not checked lately how relevant the ext4 tweaks still are ... come from a long history since the Galaxy S4 (lol).
Anyway ...
Code:
# ls -l /sys/fs/ext4/
# ls -l /sys/fs/f2fs/
F2FS for /data (of couse) since there is writing there.
And check /etc/vendor/fstab.*
Code:
system /system ext4 ro,barrier=1 wait,slotselect,avb=vbmeta_system,logical,first_st
age_mount,readahead_size_kb=128
system_ext /system_ext ext4 ro,barrier=1 wait,slotselect,avb=vbmeta_system,logical,first_st
age_mount
product /product ext4 ro,barrier=1 wait,slotselect,avb=vbmeta_system,logical,first_st
age_mount
vendor /vendor ext4 ro,barrier=1 wait,slotselect,avb=vbmeta_vendor,logical,first_st
age_mount
vendor_dlkm /vendor_dlkm ext4 ro,barrier=1 wait,slotselect,avb=vbmeta,logical,first_stage_mou
nt
/dev/block/platform/14700000.ufs/by-name/boot /boot emmc defaults slotselect,avb=boot,first_stage_mount
/dev/block/platform/14700000.ufs/by-name/efs /mnt/vendor/efs ext4 defaults,noatime,rw wait,check,formattable
/dev/block/platform/14700000.ufs/by-name/efs_backup /mnt/vendor/efs_backup ext4 defaults,noatime,rw wait,check,formattable
/dev/block/platform/14700000.ufs/by-name/modem_userdata /mnt/vendor/modem_userdata ext4 defaults,noatime,rw wait,check,formattable
/dev/block/platform/14700000.ufs/by-name/modem /mnt/vendor/modem_img ext4 ro,defaults,context=u:object_r:modem_img_file:s0,barrier=1 wait,slotsele
ct
/dev/block/platform/14700000.ufs/by-name/misc /misc emmc defaults wait
/dev/block/platform/14700000.ufs/by-name/metadata /metadata ext4 noatime,nosuid,nodev,data=journal,commit=1 wait,check,formattable,first_
stage_mount,metadata_csum
/dev/block/platform/14700000.ufs/by-name/pvmfw /pvmfw emmc defaults wait,slotselect,avb=pvmfw,first_stage_mount
/dev/block/platform/14700000.ufs/by-name/userdata /data f2fs noatime,nosuid,nodev,discard,reserve_root=32768,resgid=1065,fsync_mode=noba
rrier,inlinecrypt,compress_extension=apk,compress_extension=apex,compress_extension=so,atgc,checkpoint_merge latemount,wait,check,quota,formattable,sysfs_path=/dev/s
ys/block/bootdevice,checkpoint=fs,reservedsize=128M,fileencryption=::inlinecrypt_optimized+wrappedkey_v0,metadata_encryption=:wrappedkey_v0,keydirectory=/metadata/vold/
metadata_encryption,fscompress,readahead_size_kb=128
/dev/block/platform/14700000.ufs/by-name/vbmeta /vbmeta emmc defaults slotselect,first_stage_mount
/dev/block/zram0 none swap defaults zramsize=3221225472,max_comp_streams=8,zram_backin
gdev_size=512M
/devices/platform/11110000.usb* auto vfat defaults voldmanaged=usb:auto
foobar66 said:
Simple bash prompt ;-);-)
Actually, the hosts file in the magisk module is an (old) version of the AdAway one ...
Click to expand...
Click to collapse
Ah yes, the app just gets new updated everyday so I use that to keep up-to-date
foobar66 said:
Bye the way, if you do:
But please note that not all settings form the Settings app are stored in those namespaces! So it's not a 100% restore.
Click to expand...
Click to collapse
Great info, thanks!
foobar66 said:
And ... bye the way ... you can check log files from the 2 main Magisk scripts (post-fs-data.sh and service.sh):
Click to expand...
Click to collapse
Yes, I used these commands to confirm which parts I was running
foobar66 said:
Hmmm ... could either be the (a) force dark setting or (b) the gesture pill removal (overlay).
Try the following:
Code:
> adb shell
$ su
# cmd overlay disable com.android.shell:NavBarFrameHeightOverlay
Then check SwiftKey again. Please report if OK or not.
Click to expand...
Click to collapse
Hello.
I'll try this tomorrow.
Should googlewiz be activated when trying?
V-Ripper said:
Hello.
I'll try this tomorrow.
Should googlewiz be activated when trying?
Click to expand...
Click to collapse
No because you are just disabling an overlay which is already there.
just a suggestion/feedback as someone who has self created modules that do some of the same things, plus over 30 years in IT:
way too many things in ONE script...personally i separate mine out, not least because you can identify points of failure far easier....
i know it seems a good idea to "everything at once", but it rarely is, and its an even worse idea when you choose to share it, its like trying to herd cats when trying to sort out user issues....
also golden rule of android #1:
never apply something which one person says works 100% and magically for them to your own device
case in point ive just left my S20+ 5G for pixel life again, and previously i had a debloat list (for use with a friends officially listed debloat magisk module) that had 169 package son it. For years i declined to give anyone my personal debloat list, because even with the disclaimer "this works for me, as i dont use any Samsung apps and replace them with Google ones, and never use device function you might" i just know some kiddie will blanket use it and then come crying when it all goes wrong, and i personally dont need that level of drama in my life. I did give my list to the 2 devs i respect and know will treat it carefully, but i would never give it to an end user...i wont even tell end users which packages i hide in magisk or other apps like Hide My Applist, because people just wont make the mental leap to consider things rationally and think for even 30 seconds, "this may be personal to him and wont work for me". Sad but true

Categories

Resources