[TIP][FSYNC] Disable Fsync to increase the performance! - Samsung Galaxy J5 Guides, News, & Discussion

DISCLAIMER:
Code:
* Your warranty is now void.
*
* I am not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed.
* Please do some research if you have any concerns about features included
* before flashing it! YOU are choosing to make these modifications, and if
* you point the finger at me for messing up your device, I will laugh at you.
Hello!
Here's a small tip which can increase the phone performance, but keep in mind that there's a risk.
After disabling Fsync, your phone will be faster and you'll get 14.000+ UX score in Antutu Benchmark. I've attached a screenshot of Antutu after I've disabled Fsync.
WHAT'S FSYNC?
_that said:
it's a system call in unix/linux. "man fsync" says:
So it's something embedded in programs after a related set of write operations to ensure that all data has been written to the storage device. The bolded part is what makes it interesting for some to disable it - "the call blocks" means the calling program waits until it's finished, and this may create lag. The downside is that if the system crashes, the data on the storage devices may be inconsistent, and you may lose data.
Click to expand...
Click to collapse
THE RISK - DATA LOSS:
_that said:
all data that any app thinks it has written to storage (as it explicitly instructed the os to do so), but has not been written yet by the os, may be lost in case of an unexpected system crash.
So as long as the system is running normally, all cached data is eventually written to the emmc/sd, usually a few seconds after the write request, and everything works normally.
In case of a random reboot, or a "hard" system hang which requires you to power off and restart, or if you run out of battery, and some app or background service wanted to write something to the file system just before that crash, such cached data is lost.
So what can happen? No hardware is damaged. In the absolutely worst case, the filesystem on your data partition is irrecoverably damaged and you have to do a factory reset, losing all your apps and your data, photos etc. (you do have a backup, don't you?). The chance for this worst case to happen is extremely low - in most cases the filesystem is automatically repaired at startup, and the incompletely written files are simply deleted. If this does not work for some reason, you can still manually try running fsck from the recovery.
If some system service just updated a database before the crash, it may be inconsistent after restarting. This can lead to malfunction of that service, e.g. Fcs, missing info in your calendar, missing or garbled media files, etc.
So in summary - as long as the system is stable, disabling fsync only increases performance. By the way, app crashes (fc, anr, ...) do not hurt here, only complete system crashes are bad.
Click to expand...
Click to collapse
Despite the data loss risk, some people didn't have any problem. An example is here: https://forum.xda-developers.com/showpost.php?p=40409968&postcount=6
WHAT'S DYNAMIC FSYNC?
Dynamic Fsync, makes it possible for fsync operation to be asynchronous when the screen is on, and synchronous when the screen is off. And what does asynchronous mean? Means OS issues fsync call, but not necessarily immediately at commit time for each transaction. It delays the FSync call for a certain amount of time. In case of a crash, the transactions not yet sync'ed in the last delay time before the crash may be rolled back, but the state of the data is always consistent.
Click to expand...
Click to collapse
Some kernels has Dynamic Fsync, so you don't need to disable fsync manually as Dynamic Fsync does it automatically.
HOW TO DISABLE FSYNC:
1) Install Terminal Emulator from Play Store.
2) Open it and type following commands:
PHP:
su
echo N > /sys/module/sync/parameters/fsync_enabled
To re-enable Fsync, just replace "N" with "Y" in the echo command.

Not working on koloses' kernel cm13 RR..
Sent from my Galaxy J5 using XDA Labs

updesh94 said:
Not working on koloses' kernel cm13 RR..
Sent from my Galaxy J5 using XDA Labs
Click to expand...
Click to collapse
Can you check with a file manager if you have following path?
Code:
/sys/module/sync/parameters/fsync_enabled
If not, try to search for "fsync" in /sys and tell me if it find something.

No I didn't find it.. Checked it after the command didn't work..
Search did not produce any result
Sent from my Galaxy J5 using XDA Labs

updesh94 said:
No I didn't find it.. Checked it after the command didn't work..
Search did not produce any result
Sent from my Galaxy J5 using XDA Labs
Click to expand...
Click to collapse
Ah, I guess the kernel need to have the bool for fsync to enable/disable, and in that case this command wouldn't be necessary because there would be a toggle in Kernel Adiutor > Misc.
I'm sorry. I should've tried on stock kernel before.
I'll edit the first post later.

Related

[A] overclock too high set on boot

Overclock too high and phone crashes? Accidentally hit set on boot and you can't get in to change the frequencies?
Throw it in the freezer for half an hour and try again, worked for me. I was set above 1.9ghz and I thought I was sol and needed to restore (haven't made any backups in a while). Figured I'd give it a shot to keep the CPU/gpu cool, and it booted. I switched the frequency down than and all is well.
I kinda wonder what quadrant scores I would have gotten cooled.
Sent from my PG86100 using xda premium
troublein420 said:
Overclock too high and phone crashes? Accidentally hit set on boot and you can't get in to change the frequencies?
Throw it in the freezer for half an hour and try again, worked for me. I was set above 1.9ghz and I thought I was sol and needed to restore (haven't made any backups in a while). Figured I'd give it a shot to keep the CPU/gpu cool, and it booted. I switched the frequency down than and all is well.
I kinda wonder what quadrant scores I would have gotten cooled.
Sent from my PG86100 using xda premium
Click to expand...
Click to collapse
A less dangerous method would be to go into the recovery menu and do a data wipe.
VladBelsky said:
A less dangerous method would be to go into the recovery menu and do a data wipe.
Click to expand...
Click to collapse
In addition, if you don't want to wipe ALL data settings and apps on the device, wipe the specific data settings for that application.
All apk data settings are stored in /data/data/<package name>. The package name formats follows as something similar to com.joeykrim.flashimagegui , or something of that sort depending on the author of the application.
Hope that helps!
Also if you use SetCPU:
There is
a "safe mode" function that prevents SetCPU from running any tasks during boot if a file called "setcpu_safemode" exists in /sdcard or /data/local. This is useful if unstable settings were saved with "set on boot" checked.
Click to expand...
Click to collapse
or if you dont want to wipe data you can flash a kernel that doesn't offer oc abilities and then boot your phone back up lower your clock then reflash your old kernel, happened to me before just boot into bootloader goto fastboot hook to pc use command to enter recovery and flash the none over clockable kernel if your using hboot 1.5

[Q] Crazy anti-theft idea

Hello people,
I have been playing with some crazy idea for a while. I know that exist a lot of anti-theft apps where you can send a message to your stolen and it performs a certain task like taking a picture or start an alarm or something like that.
So I have started to think about the possibility of a more radical idea like being able to send a sms to your stolen phone that would cause some kind of irreversible damage. Something that could fry your phone internal components like a killer overclocking.
I dunno, I just thought that it would be a cool sweet revenge.
99% of the time if some steals your phone the first thing they do is throw away your sim card.
And what about sending a message through your Google Account? I think I once tried an apk that was able to send message using your gmail account.
bse88 said:
And what about sending a message through your Google Account? I think I once tried an apk that was able to send message using your gmail account.
Click to expand...
Click to collapse
Full wipe, and all is Ok
Better idea would be to throw a false reset option in the settings that reformats the phone to make the phone appear to have been reset but GPS, and various owner enabled services would still be on and accessible via computer manipulation.....or predefined actions.
Sent from CDMA V6 SC GNexus w/Liquid & Franco.kernel
Well there is a good anti theft app called cerberus
Just take insurance,u get brand new phone
There are already several apps available that do exactly what you suggest.
It should be easy to hard brick the phone. A little "dd if=/dev/random of=/dev/... bs=512 count=1" to all partitions on the phone should do the trick
An App with a hardcoded config in /system/app would survive a Factory Reset
I much rather would like to catch the thief who stole my phone instead of frying the phone.
My phone got stolen last month and even though I had some kind of find phone feature, I couldn't look it up. They should made something based on the IMEI# of the phone to track it instead of the sim card and account, which could easily be replaced.
Full wipe
I've had an idea for improving anti theft.
The one flaw in hardcore solutions like avast mobile and Cerberus is that they are rendered useless when a new ROM is flashed or the system partition is wiped. I know avast is supposed to have an option to be added to the backup list on CyanogenMod based ROMs, but for some reason it never works for me. Maybe because it could have been designed for CM7 and not CM9.
Anyway, the solution to the issue would be adding the anti theft program to another protected partition other than the android system. OEMs use additional partitions for the HBOOT or ODIN. An encrypted partition would make it secure. I know Ubuntu has some sort LVM encryption.
Or, restricting access to the custom recovery menu by locking it with a pass code. The issue with that might be where to store that pass code. Of course you could just reflash a stock recovery to prevent writing to the system partition, but who wants to do that?
So there's a basic description of the flaw now it just needs to be fixed somehow. I'm not good with actual coding so I'd leave that to the developers.
Sent from my Amazon Kindle Fire using Tapatalk 2
Buckylastard said:
I much rather would like to catch the thief who stole my phone instead of frying the phone.
My phone got stolen last month and even though I had some kind of find phone feature, I couldn't look it up. They should made something based on the IMEI# of the phone to track it instead of the sim card and account, which could easily be replaced.
Click to expand...
Click to collapse
I would rather blow up my phone along with the hand of the thief.
U add an app to system/app and this app popup every 12h and want a code like "xdgfr" and u have 10 seconds after first touch of code, if u dont write in ur phone vibrates 20 seconds and than u must insert again code if not ---> hard brick
Sent from my LT18i using xda premium
Install a ssh server such as dropbear, starting from init.rc
Install an IPv6 6in4 tunnel.
Now you got access to your phone via ssh and a unique IPv6 address, reachable wherever the phone is, behind NATs, firewalls, on cellular nets etc.
If it gets stolen, just access it and decide the best action ...
Just :
A new encrypted partition that can only be deleted by the user entering a password, this partition will store a pre-configured program that will detect the state of the rom, stolen-alarm, will store credentials (for accessing the main security account, data and networks) and will take actions depending on that configuration or direct access from the user(Via ssh or a custom UI).
What about that?
It doesn't need to be a large partition, just large enough to save that data.
I wouldnt want that app to get in the wrong hands.
Please use the Q&A Forum for questions &
Read the Forum Rules Ref Posting
Thanks ✟
Moving to Q&A

Disable Fast Dormancy to prevent com.android.phone wakeups

Like many others I was seeing many wakeups by com.android.phone, and as noted by others this is because of fast dormancy. Or rather, because of LG's implementation of it.
I'm not gonna go into too much detail, but the offending implementation can be found in com/android/internal/telephony/LgeFDHandlerInterfaceImpl . This class is in /system/framework/com.lge.core.jar . After data activity on HSPA networks they use AlarmManager to periodically wake up and check the number of bytes transmitted over the network interface. This goes on until some time after it stops changing, and the connection is considered dormant.
This periodic checking is what's waking the device, and for every new byte transferred the wakeup/polling period is extended and device doesn't sleep. The chattier apps are, the more awake time you'll get.
Enough of the boring details, here's how I disabled it and got rid of the com.android.phone wakeups. Root required.
Code:
$ adb shell
# su
# sqlite3 /data/data/com.android.providers.telephony/databases/telephony.db
update dcm_settings set fastdormancy="0" where numeric="310410";
.quit
# reboot
This helped me, hope it does the same for you.
Edit 2:
I've written a quick and dirty app that tries to handle this setting without need for terminals or root. Try it and report issues here: http://forum.xda-developers.com/showthread.php?t=2021248
Edit 1:
In essence you need to change a value in a sqlite database and there are many ways to do it. There are apps, use adb shell etc. Whatever works for you. If someone wants to write an app that makes this easier, be my guest
Reversal is restoring the original value "1,0,0,1000,5000,60000,3000,5000,1,8" and reboot:
Code:
update dcm_settings set fastdormancy="1,0,0,1000,5000,60000,3000,5000,1,8" where numeric="310410";
This database is not there after a wipe, so future ROM chefs wanting to include it by default should edit /etc/dcm_settings.xml as this is where the initial database contents come from. Just replace the original value with "0" for ATT.
Code:
<profile>
<siminfo
operator="ATT"
country="US"
mcc="310"
mnc="410"
extraid=""
/>
<settings
fastdormancy_param="1,0,0,1000,5000,60000,3000,5000,1,8"
ipmtu="1410"
/>
</profile>
Holy Hell!!!
so far so good...it's a shame I can only thank so much!!!
jonasl said:
Like many others I was seeing many wakeups by com.android.phone, and as noted by others this is because of fast dormancy. Or rather, because of LG's implementation of it.
I'm not gonna go into too much detail, but the offending implementation can be found in com/android/internal/telephony/LgeFDHandlerInterfaceImpl . This class is in /system/framework/com.lge.core.jar . After data activity on HSPA networks they use AlarmManager to periodically wake up and check the number of bytes transmitted over the network interface. This goes on until some time after it stops changing, and the connection is considered dormant.
This periodic checking is what's waking the device, and for every new byte transferred the wakeup/polling period is extended and device doesn't sleep. The chattier apps are, the more awake time you'll get.
Enough of the boring details, here's how I disabled it and got rid of the com.android.phone wakeups. Root required.
Code:
$ adb shell
# su
# sqlite3 /data/data/com.android.providers.telephony/databases/telephony.db
update dcm_settings set fastdormancy="0" where numeric="310410";
.quit
# reboot
This helped me, hope it does the same for you.
Click to expand...
Click to collapse
I use Comand prompt and copy these codes?
Thanks a lot for this, can you please explain how to use this code, i am rooted and am trying to run this on my computer with adb and i get a message sqlite3 not found
I plugged my phone in as charge only and ran this code using cmd.
After the end of each line simply press enter and it prompts for the next.
When you prompt for reboot, it takes a couple of seconds, for those who get confused when their phone sits there.
Anyway, the code seems to work for me, looking forward to results.
Hope this helped.
Im getting a no sqlite3 found error as well
pfoxdizzle said:
Im getting a no sqlite3 found error as well
Click to expand...
Click to collapse
I just used sqlite editor from the market and edited the value to "0". I can confirm that this process works, i have been struggling with this wakelock for 2 weeks now and have tried so many things but this is the only thing that has worked. Kudos to the OP!!:fingers-crossed:
Are you both rooted and have unlocked bootloader? Not sure why you're getting errors. Did any of you retry this process via computer cmd with USB debugging?
Sent from my LG-E970 using xda app-developers app
rooted yes. Unlocked no.
Unlock. It literally takes no time.
Sent from my LG-E970 using xda app-developers app
unlocking should not affect this. And there isnt anything worth unlocking for yet. So i will keep my warranty
Warranty is kinda meh unless you're prone to breaking your phone. But everyone does things their own way.
Are you sure that you have sqlite3 on your phone and/or are you typing the code correctly in cmd? Via computer is the easiest way.
Ok, I have my LGOG rooted and unlocked and been trying to run this and can't get it to take. I'm not a noob, and I've used cmd prompt plenty for other phones. I had to use it a ton for my HTC One X. For some reason I can't get it to recognize the phone. Any suggestions?
What's the output from the cmd prompt?
Sent from my LG-E970 using xda app-developers app
pfoxdizzle said:
Im getting a no sqlite3 found error as well
Click to expand...
Click to collapse
Something not mentioned, you are in a command prompt within the folder containing these tools right?
NVM
I'm assuming this fix was properly applied on my end?
Yoreo said:
I'm assuming this fix was properly applied on my end?
Click to expand...
Click to collapse
That's what I got, too.
I think yes, that took care of it.
LTE issues
I'm guessing this fix won't necessarily disable LTE when available and the phone would be able to switch back to LTE from DC-HSPA+ when it sees that LTE is available in the area?
Murasakiii said:
What's the output from the cmd prompt?
Sent from my LG-E970 using xda app-developers app
Click to expand...
Click to collapse
Hopefully the image is coming through on the errors I'm getting while trying this. I'm sure I'm tired and doing something stupid, I just can't figure it out.

[How To][D802+RayGlobeFlex 4.0+Dorimanx 2.1 ] 10 hr + Screen on with data / Wi Fi

Firstly, a big huge thanks to @dorimanx and @acer73 for their work on Kernel ( V2.1) and Rom. without them this would not be possible. :silly:
Disclaimer :You do this at your own risk, Neither I not the Devs mentioned above are responsible for the outcome. Although i will try to help as much as i can.
Here we go, I have been using the Combo mentioned in thread title for quite a few days now and posted my battery results in the Kernel thread! 10 hrs of screen on time is not something seen too often in smartphone world with stock battery with 2G on during the day and Wi Fi on throughout the night.
Following this i got a load of PM's to share my settings / config.
So here goes, Guys and gals, i d like to share my setup ! :highfive:
I ll split this up into parts on how I go about it .
NANDROID and back up all your important data !
Firstly, I always clean install Rom and as soon as i am done, I freeze system apps using titanium backup: here is a list below which has not caused me any errors.
BE careful though, try linking the service name with any apps that you use, i have disabled according to my usage.
1) Accessibility 4.0.37
2) Direct Beam 1.0.45
3) DLNA 2.9.0
4) DRM Service 4.2.2
5) DRM Protected Content Storage 4.2.2
6) E-mail
7) Favourite contacts Widget
8) GNSS Ait Rest 4.2.2
9) GnssTest 1.2 4.2.2
10) Google Backup transport 4.2.2
11) LG Backup 4.0.30
12) LG GNSS 1.0
13) LG Intelligent Agent 0.6.1
14) LG MLT 2.5.2
15) LG SetupWizard 4.3.019
16) NFC Service 4.2.2
17) PC Suit Service3.3.0
18) PC Suit UI 3.0.002
19) Picasa Uploader 1.3.242047
20) Remote Support Service 1.0.2.4
21) Remote Call Service 4.0.19
22) Slide aside 4.0.18
23) Smart Screen 1.1.44
24) ShartShare Beam 1.0.59
25) SmartShare Push 1.2.1.61
26) SmartshareProvider 1.0.14
27) Streaming Player 4.5.8
28) Text Link 4.3.18
29) Text Link Engine 1.7.0
30) Unified EULA 4.0.12
31) Unused aoos 1.000…
32) VOIP Call 3.4.82
Uninstalled system apps totally depend on you , I remove all the crap that LG has put in along with some apps that come with Rayglobe Flex 4.0 such as the FB apps you can see at the end of the system app list in Titanium backup.
If you are not sure,Freeze them ! :cyclops:
Reboot your system and check to see if it is stable without Force closes, if you face any, try defrosting apps you think may be the cause ... trial and error here.
Now you have a nice clean and stable system to work with. DO A NANDROID as this is your new clean,stable base, useful for future
Go ahead and restore user apps and data now.
Secondly, Disable Service Available on market. This is a handy little tool which will disable services which run in the background. Be more careful with this because one service could stop a lot of apps!
Swipe to System tab – Unchecked = Disabled! Apps frozen previously will automatically appear as disabled services.
1) Chrome – Totally disabled everything as I use Opera browser.
2) Google Service Framework
Disabled Suscribed FeedsSyncAdapter service,
PushMessagingRegistrarProxy, | - Users report not receiving push notifications from apps with these 2 (in red) disabled, but i do not face the same issue.
PushMessagingRegistrar |
StatusUploadService.
3) LG Backup – Completely disabled all services
4) Direct Beam – Completely disabled all services
5) DLNA – Completely disabled all services
6) LG GNSS – Completely disabled all services
7) Google Play Service –
Disabled All Games* Services ( I do not like to play with Google play services unless sure J )
Reboot again and check if all is good for your use. We are done here !
Step 3 we come to very basic Kernel settings, Dori has taken care of the rest :highfive:
I donot use TricksterMod or FauxClock and have removed permissions for them from SuperUser, instead i use Kernel Tuner available on market in combination to the infamous STweaks app which comes with kernel.
Kernel Tuner App
Click 'CPU' button
I have set all cores to Min 300Mhz and Max 2496Mhz .
Link all cores - Unchecked
CPU Governor (0 to 3) all on Ondemandplus.
Voltage Button:
I am heavily undervolted - 300Mhz @ 725Mv and 2496Mhz @ 1020Mv -- Be careful with this guys, as too low may freeze and force reboots, each device can handle only a certain level under volting so start of with steps of -25 Mv and increment it till it becomes unstable and now you know how much your device can handle :laugh:
Governor Button
Untouched - Stock Dorimanx values
Misc Button
Fast Charge on - Duh !
Scheduler - SIO - Love it !
Sd Card Cache -512
And we are done here too! Reboot !
Finally , LidroidToolBox App, Not sure if this is still available in market or not but i have this from old back ups ( try google for it ) , basically look for an app which can control auto start of apps, both during boot and on connect to internet.
Click Auto Start button Here we control what starts up on boot and what starts up on connect to network, so i leave this up to your discretion depending on your needs.
i have disabled everything except the following :
On Boot
Settings 4.0.54
SuperSU1.91
ConfigUpdater 4.2.2
Google Service Framework 4.2.2
Google play store
LGATCMD Service 4.2.2
LGApduService
Com.lge.defaultaccount.receiver.ReceiverBootUp 3.0.0
com.lgefota.permissions.DMCTargetValidationReviever 4.2.2
Home 4.2.2.22
Lock Screen Settings 4.11.10
Settings Storage 4.0.00
System UI 4.2.2
Media Storage 4.2.2
Dual Window 20131028
SIM Tool kit 4.2.2
com.qualcomm.qcrilmsgtunnel.....
Audio Effect Service 1.0
Music Volume EQ 2.3
Kernel Tuner ( Used above)
On Connect
Google Service Framework 4.2.2
Com.lge..lgdmsgcm.connectivityReciever 1.0
And thats it ! good to go. Results Below! :highfive:
2 hrs 35 mins screen on time and 68 % battery
Wow! Such a nice work! Greatly appreciated!
What's the PVS bin of your device?
vPro97 said:
Wow! Such a nice work! Greatly appreciated!
What's the PVS bin of your device?
Click to expand...
Click to collapse
Thanks for the words! its a great combo ! all credit to goes to the Devs ! hit thanks for them if you see them
pvs_bin is 3 , speed_bin 1 :good:
nayak.aj said:
Thanks for the words! its a great combo ! all credit to goes to the Devs ! hit thanks for them if you see them
pvs_bin is 3 , speed_bin 1 :good:
Click to expand...
Click to collapse
I know Dori and Acer has done a great job I am thinking to try CloudyFlex though, but I'll wait for kitkat first and foremost
I got PVS 2, so I can't undervolt as much as you, but now I have an idea of how much approximately
vPro97 said:
I know Dori and Acer has done a great job I am thinking to try CloudyFlex though, but I'll wait for kitkat first and foremost
I got PVS 2, so I can't undervolt as much as you, but now I have an idea of how much approximately
Click to expand...
Click to collapse
I am very happy with my current combination and config, cant really ask for much more. but yes ! stock Kitkat will be nice !
finding the sweet spot of undervolting is very satisfying :good:
Great work bro!
Goin to test it this evning
Greets
PearLRoX said:
Great work bro!
Goin to test it this evning
Greets
Click to expand...
Click to collapse
Great .. would appreciate feed back from you guys !
Hope it works for you as it does for me
nayak.aj said:
Great .. would appreciate feed back from you guys !
Hope it works for you as it does for me
Click to expand...
Click to collapse
How much battery does it use overnight?
With the stock version (Wifi on) it uses 1% per 3 hours, so if it's the same i would be very happy
beont said:
How much battery does it use overnight?
With the stock version (Wifi on) it uses 1% per 3 hours, so if it's the same i would be very happy
Click to expand...
Click to collapse
I havent monitored exact avlue, maybe i will check today and tell you tomorrow, But dori's kernel is designed to sleep like a baby even with wi fi on and scren off
d802
hello there . i achieve much better results in rayglobe flex 4 + dorimanx kernels with -75 uv to all steps pvs 6 here.i dont use disable services but i debloat much more in system/apks.
some screenshots with a lot of 4G , NAVIGON etc.
dukat0s said:
hello there . i achieve much better results in rayglobe flex 4 + dorimanx kernels with -75 uv to all steps pvs 6 here.i dont use disable services but i debloat much more in system/apks.
some screenshots with a lot of 4G , NAVIGON etc.
Click to expand...
Click to collapse
which com.name apks did you froze in titanium backup ? share us i only froze com.Lgfotapermission
Do you have Gmail notification with this settings? I don't
Warning to all readers, this disables all C2DM notifications (this includes but is not limited to Gmail, WhatsApp etc).
Delete everything useful and get amazing battery life. Got it.
Sent from my LG-D800 using xda app-developers app
metalboy94 said:
Warning to all readers, this disables all C2DM notifications (this includes but is not limited to Gmail, WhatsApp etc).
Click to expand...
Click to collapse
Could you tell me what app / service does this exactly ? i do not have any problem with atleast whatsapp notifications but if it is a cause for concern to others, i will edit the OP
nayak.aj said:
Could you tell me what app / service does this exactly ? i do not have any problem with atleast whatsapp notifications but if it is a cause for concern to others, i will edit the OP
Click to expand...
Click to collapse
Disabling the services named PushMessaging in Google Services Framework
Sent from my LG-D802 using xda app-developers app
Skizzy034 said:
Delete everything useful and get amazing battery life. Got it.
Sent from my LG-D800 using xda app-developers app
Click to expand...
Click to collapse
No one is asking you to use this. I just shared what works for me. no need to troll and leave unhelpful posts man. Take it easy!
This is tuned to my daily use and it differs from user to user as it is mentioned in the OP. Take it leave it .
metalboy94 said:
Disabling the services named PushMessaging in Google Services Framework
Sent from my LG-D802 using xda app-developers app
Click to expand...
Click to collapse
PushMessagingRegistrarProxy,
PushMessagingRegistrar
These 2 ? hmm those are only disabled under Google Service Framework and not Google Play services.
I get whatsapp notifications instantly even when screen off, cant say the same about gmail though as i don't auto-sync.
nayak.aj said:
PushMessagingRegistrarProxy,
PushMessagingRegistrar
These 2 ? hmm those are only disabled under Google Service Framework and not Google Play services.
I get whatsapp notifications instantly even when screen off, cant say the same about gmail though as i don't auto-sync.
Click to expand...
Click to collapse
Try closing your internet connection then opening it again, this should cause it not to receive notifications. Also try a few minutes after turning the screen off.
Sent from my LG-D802 using xda app-developers app
metalboy94 said:
Try closing your internet connection then opening it again, this should cause it not to receive notifications. Also try a few minutes after turning the screen off.
Sent from my LG-D802 using xda app-developers app
Click to expand...
Click to collapse
Interesting... thanks for the heads up, i will check it out .. best remove it from op for now to be safe !

Development Modifications for 3D(V)

----------------------------------------------
**If coming from development section, the first two zips are only for Evo 3D, JustArchi mods are for most devices**
As always, make a backup, and flash
I am not a developer, I'm a user, so I'm limited in how much I can help you, but I will try.
----------------------------------------------
I want to share a couple projects found in the developers section. When I first started experimenting with scripts and other 'android enhancers', I'd flash them blindly- because I didn't know any better. I've experienced graphical glitches galore, cpu running full throttle all the time, and boot loops. Though luckily no bricks.
More often than not, development projects need to be tuned for a particular device. And that's what's been done here.
The first is operation killjoy, the folks there don't want it to be put into Roms. And they also want a link to the thread, here it is- http://forum.xda-developers.com/showthread.php?t=2411161
They don't want it being used with other mods, and it'll delete such things as Crossbreeder and Seeder, and it'll backup all init.d scripts and use its own, and will also delete sysctl.conf. That's overkill(so this won't delete your init.d, etc). It features dnsmasq and an entropy engine. This is our okj- https://db.tt/aFSWMw65
And the other one is Crossbreeder, it can be put into Roms. I highly suggest using it, the Crossbreeder app can be got here- http://forum.xda-developers.com/showthread.php?t=2113150
Again, for our device- https://db.tt/ZYRciXIl
OKJ and CB shouldn't be used together.
Here is moderately sized Moab hosts file- https://db.tt/aod1UHXL
Edit- 1/27
All credit on this one to @JustArchi
And this last one took me almost a week to put together. It's the killer work by JustArchi. This is for testing purposes only. I pulled it from a CM 4.4 Rom of his and it's working with the 3D. Don't know if it'll work with tether or not. Hope so though. Please test n report.
It can be used with CrossBreeder, but separately. Here's what I mean by that- when installing the zip, it'll know if you have CrossBreeder installed and it'll back it up. It's easily restored though with the push of a button, in the CrossBreeder app.
Or it can be used stand alone. I suggest using it by itself, it's much simpler. It sets up differently in recovery, but still is able to use CB app(link above) to control.
I wanted to modify the cb app to make sense of what I've done with it here. But don't have the skills to do that. There are scripts used to toggle components: turning on/off haveged, enabling/disabling local DNS, applying adblock, switching from Adaway to Mother of all ad blocking(Moab) hosts file, Locking host file(can't modify), toggling Frandom, fstrim script....and they're located at /system/archidroid/scripts. They can be set up and ran with Script Manager, could use widgets to Enable/Disable stuff, I prefer to use CB app and that's how I've set it up. If you don't want to, delete /system/etc/CrossBreeder. If you do, here's how it works
Stand alone(no CB installed)
Switches
Haveged- enables/disables haveged
*Run ZAutomateHaveged as su on boot to get haveged up and running.
Dnsmasq- Disables/restores JustArchi mods, reboots device
TweaksIO- will run a couple scripts, changed how they run because wasn't working before for me
Bypass ISP- Enables/Disables local Dnses
Tether Boost(worthless anyways) - Enables/Disables Frandom
Adblock- Switches between Adaway n Moab hosts, I don't use ultra huge hosts for Moab- it's 11 MB
And/or you can use the JustArchi app found here- https://github.com/JustArchi/ArchiD...oid/auto/system/app/ArchiDroid-ArchiDroid.apk
-----------------------------------
With CrossBreeder
Haveged- Archidroid haveged will be used full time between CB and AD modes, it can be adjusted in ARCHIDROID_INIT in xbin. This switch enables/disables haveged.
DNSMasq- This switch is tricky, off is ArchiDroid(AD) mode and on is CrossBreeder(CB) mode. After flashing zip AD mode is running. Everything is initially disabled except for Monitor DNS and Monitor pixelserv. Switching to on will backup AD and restore CB, but it will try to reboot, and if it does, the switch may not go on(CB) position. In CB mode, turning DNSmasq switch to on will enable dnsmasq. Turning it off will restore JustArchi-ness, and again it will try n reboot. If it's still in on position make sure to slide it to off after reboot. Turning switch to off in AD mode will mess $#it up because I've used primitive scripting. Please forgive me
Tweaks IO- I had to use a strange method to get these to apply in both modes, forgot to mention before, this will also run fstrim. It's funny, found out scripts can run in a loop
Bypass ISP- self explanatory
Tether Boost- Frandom(same)
Adblock- Switches hosts file(same)
I've included an uninstaller script with stand alone 'version', but not yet for w/ cb one, so as always, make a backup. Also left in there a sweet little gal named onandroid, for backing up partitions for clockworkmod recovery, change part. info in adpath. Be careful with this.
**deleted**
Sent from above using Xparent Tapatalk
just sayin', you post a lot of useful and/or interesting goodies, PF.
bigsupersquid said:
just sayin', you post a lot of useful and/or interesting goodies, PF.
Click to expand...
Click to collapse
Ditto
Edit, @bigsupersquid
I'm wondering if you've looked at the pdnsd stuff in Crossbreeder I asked about over there, I can't figure out what it's for(dns caching?) and if it's necessary, and its hard to get answers that help me understand. Do ya know anything about this?
Sent from above using Xparent Tapatalk
PiggyFlooper said:
Ditto
Edit, @bigsupersquid
I'm wondering if you've looked at the pdnsd stuff in Crossbreeder I asked about over there, I can't figure out what it's for(dns caching?) and if it's necessary, and its hard to get answers that help me understand. Do ya know anything about this?
Sent from above using Xparent Tapatalk
Click to expand...
Click to collapse
I did a quick search on it when you mentioned it over there but don't know anything more than what I read real quick-like. sorry.
OP updated with JustArchi Adblock method
Sent from above using Xparent Tapatalk
PiggyFlooper said:
OP updated with JustArchi Adblock method
Sent from above using Xparent Tapatalk
Click to expand...
Click to collapse
Great find... If you like I could alter the CrossBreeder app to reflect the effect of each toggle? (all in main.xml) as long as @fivefour is okay with it.. Just done with apktool... also all the script calls are in MainActivity.smali if you want to change any of those..
What scripts does the 'Tweaks IO" run?
colonel_lp said:
Great find... If you like I could alter the CrossBreeder app to reflect the effect of each toggle? (all in main.xml) as long as @fivefour is okay with it.. Just done with apktool... also all the script calls are in MainActivity.smali if you want to change any of those..
What scripts does the 'Tweaks IO" run?
Click to expand...
Click to collapse
My Lord, you're awesome!
Yeah, I had made changes reflecting toasts and script calls after decompiling, couldn't recompile, kept getting errors w/ apktool on android.
Tweaks IO runs CB_IO_Tweaks.sh
Will you please ask JustArchi too, I don't want to step on any toes.
Please do what you can to bring that app here, I have a concern with the Mode(AD/CB) switch as mentioned in op, can that be fixed?
Edit- just added frandomtest when enabling frandom
Sent from above using Xparent Tapatalk
PiggyFlooper said:
...
Edit- 1/27
All credit on this one to @JustArchi
And this last one took me almost a week to put together. It's the killer work by JustArchi. This is for testing purposes only. I pulled it from a CM 4.4 Rom of his and it's working with the 3D. Don't know if it'll work with tether or not. Hope so though. Please test n report.
It can be used with CrossBreeder, but separately. Here's what I mean by that- when installing the zip, it'll know if you have CrossBreeder installed and it'll back it up. It's easily restored though with the push of a button, in the CrossBreeder app.
Or it can be used stand alone. I suggest using it by itself, it's much simpler. It sets up differently in recovery, but still is able to use CB app(link above) to control.
I wanted to modify the cb app to make sense of what I've done with it here. But don't have the skills to do that. There are scripts used to toggle components: turning on/off haveged, enabling/disabling local DNS, applying adblock, switching from Adaway to Mother of all ad blocking(Moab) hosts file, Locking host file(can't modify), toggling Frandom, fstrim script....and they're located at /system/archidroid/scripts. They can be set up and ran with Script Manager, could use widgets to Enable/Disable stuff, I prefer to use CB app and that's how I've set it up. If you don't want to, delete /system/etc/CrossBreeder. If you do, here's how it works
Stand alone(no CB installed)
Switches
Haveged- enables/disables haveged
Dnsmasq- Disables/restores JustArchi mods, reboots device
TweaksIO- will run a couple scripts, changed how they run because wasn't working before for me
Bypass ISP- Enables/Disables local Dnses
Tether Boost(worthless anyways) - Enables/Disables Frandom
Adblock- Switches between Adaway n Moab hosts, I don't use ultra huge hosts for Moab- it's 11 MB
-----------------------------------
With CrossBreeder
Haveged- Archidroid haveged will be used full time between CB and AD modes, it can be adjusted in ARCHIDROID_INIT in xbin. This switch enables/disables haveged.
DNSMasq- This switch is tricky, off is ArchiDroid(AD) mode and on is CrossBreeder(CB) mode. After flashing zip AD mode is running. Everything is initially disabled except for Monitor DNS and Monitor pixelserv. Switching to on will backup AD and restore CB, but it will try to reboot, and if it does, the switch may not go on(CB) position. In CB mode, turning DNSmasq switch to on will enable dnsmasq. Turning it off will restore JustArchi-ness, and again it will try n reboot. If it's still in on position make sure to slide it to off after reboot. Turning switch to off in AD mode will mess $#it up because I've used primitive scripting. Please forgive me
Tweaks IO- I had to use a strange method to get these to apply in both modes, forgot to mention before, this will also run fstrim. It's funny, found out scripts can run in a loop
Tether Boost- Frandom(same)
Adblock- Switches hosts file(same)
I've included an uninstaller script with stand alone 'version', but not yet for w/ cb one, so as always, make a backup. Also left in there a sweet little gal named onandroid, for backing up partitions for clockworkmod recovery, change part. info in adpath. Be careful with this.
https://db.tt/39I6e6VQ
Sent from above using Xparent Tapatalk
Click to expand...
Click to collapse
here's the right-and-proper archidroid frontend app.
https://github.com/JustArchi/ArchiD...oid/auto/system/app/ArchiDroid-ArchiDroid.apk
from the CB thread before the fracas between fivefour and justarchi which JA ended by withdrawing from the thread.
of course, I learned quite a bit during that discussion, until it ended. but ya gotta respect the wishes of the thread holder.
bigsupersquid said:
here's the right-and-proper archidroid frontend app.
https://github.com/JustArchi/ArchiD...oid/auto/system/app/ArchiDroid-ArchiDroid.apk
from the CB thread before the fracas between fivefour and justarchi which JA ended by withdrawing from the thread.
of course, I learned quite a bit during that discussion, until it ended. but ya gotta respect the wishes of the thread holder.
Click to expand...
Click to collapse
Thanks for the share
I can't use it on ics.
Sent from above using Xparent Tapatalk
I will have a look over the next day or two, for some reason using the cb app modded or unmodded with entropy switch just causes app freeze for me, I'm trying it on xperia v. Running the enable_Crossbreeder script works, but no sysrw for the cm12 ROM I'm using, needs
Code:
busybox mount -o remount,rw /system /system
Will have a look at cb/ad issue but my scripting is pretty basic so ......
You can always send me the files you've changed and I can try recompile if you have errors rather than duplicating what you've done.
Sent from my Xperia V using XDA Free mobile app
colonel_lp said:
I will have a look over the next day or two, for some reason using the cb app modded or unmodded with entropy switch just causes app freeze for me, I'm trying it on xperia v. Running the enable_Crossbreeder script works, but no sysrw for the cm12 ROM I'm using, needs
Code:
busybox mount -o remount,rw /system /system
Will have a look at cb/ad issue but my scripting is pretty basic so ......
Sent from my Xperia V using XDA Free mobile app
Click to expand...
Click to collapse
I welcome any fixes to scripts to make more compatible across devices. Here's that script for Enable CrossBreeder. I put in a 'smaller' CHECK_PROCS so it don't cat as much.
Sent from above using xda premium
Cool, will look when i can, be really good to have an updated CB tool.
Can you get rid of the sysrw as I don't think its very universal.
Sent from my Xperia V using XDA Free mobile app
Sure, is this more universal what ya put earlier-
busybox mount -o remount,rw /system /system
Or a variation thereof?
Also, I sent you a pm, will you please check it out? Can you give me link?
Sent from above using Xparent Tapatalk
PiggyFlooper said:
Sure, is this more universal what ya put earlier-
busybox mount -o remount,rw /system /system
Or a variation thereof?
Also, I sent you a pm, will you please check it out? Can you give me link?
Sent from above using Xparent Tapatalk
Click to expand...
Click to collapse
I guess so, probably wanna reference included busybox though. Have pm'd you a link
Hope you guys get it working!
I spent some time trying to get adblock to work using your mod, but I couldn't. The JustArchi app kept fc'ing with only JustArchi installed, and I couldn't get the mod working either.
With both JA and CB installed the JA app didn't fc anymore, but it didn't function either. CB app worked partly, but it froze on the haveged part. Couldn't get haveged working through CB app that way.
This is only meant to inform you, not as criticism at your workin any way!
JustArchi's work goes way above my knowledge of scripting and programming, but I always was interested in his work.
Glad you guys are working on it, I'm following this thread with great interest [emoji106]
rkuijpers said:
Hope you guys get it working!
I spent some time trying to get adblock to work using your mod, but I couldn't. The JustArchi app kept fc'ing with only JustArchi installed, and I couldn't get the mod working either.
With both JA and CB installed the JA app didn't fc anymore, but it didn't function either. CB app worked partly, but it froze on the haveged part. Couldn't get haveged working through CB app that way.
This is only meant to inform you, not as criticism at your workin any way!
JustArchi's work goes way above my knowledge of scripting and programming, but I always was interested in his work.
Glad you guys are working on it, I'm following this thread with great interest [emoji106]
Click to expand...
Click to collapse
For now, use the CB app(op instructions) or SManager to control.
With this mod, either CB is running, or JA is running, they don't run at same time. Only the haveged remains the same, CB haveged is deleted. You may need to re-enable it upon reboot.
I've been working on the adblock portion of CB, and it should now it should start up after switching adaway/moab host file(Adblock button in CB app) and/or running the scripts with IO Tweaks.
Thank you for informing me, and I can take criticism :thumbup: :thumbdown:
You know what, okay, my mistake, with both ja n cb APPS, it stopped fc'ing. Now I gotcha. I'm slow. Wish I could test with that, sorry. Appreciate it if ya keep letting us know how it goes with the JA app.
I made changes to scripts in how system is mounted rw(ty colonel_lp) to be more universal. With cb applied, whichever hosts will now be copied to /system/etc/CrossBreeder/dnrd_root/master. And pixelserv started upon hosts change.
Might be able to get adblock applied without reboot.
You can try if you'd like, delete this from REMOVE_DNS_CLIENT/ INSTALL_DNS_CLIENT-
echo 1 > /proc/sys/kernel/sysrq 2>/dev/null
sleep 8
echo b > /proc/sysrq-trigger 2>/dev/null
reboot
busybox reboot
I'll update op to recent changes
Edit- Stayed up all last night working on fixes, so many little things, it's much different than when first uploaded, check it out.
Was trying to get Bypass ISP to stick 0.0.0.0(CB) with no luck, it's been gerry rigged, please someone help to fix
Edit2-nvm, my silly self didn't have dnsc in there
Sent from above using Xparent Tapatalk
Well, I just put the finishing touches on the JA/CB project, probably jinxing myself saying that. There may be a dedicated app to go along with this, still up in the air.
Please tell me if ya find any bugs.
So many thanks to colonel_lp for help with this.
My Thanks to idcrisis/fivefour
Much thanks to JustArchi
I'm wondering if this topic should be renamed??
Sent from above using Xparent Tapatalk
Started Wifi Tether, dnsmasq monitoring stopped dnsmasq stopped, but can't confirm tether working because no service plan
Sent from above using xda premium
Have a question for anyone that knows, when disabling local dns's with JA, it still shows up as my ISPs, that doesn't seem right. Am I missing something.
Sent from above using Xparent Tapatalk
PiggyFlooper said:
Have a question for anyone that knows, when disabling local dns's with JA, it still shows up as my ISPs, that doesn't seem right. Am I missing something.
Sent from above using Xparent Tapatalk
Click to expand...
Click to collapse
I thought that it is supposed to work like that, as you are disabling local DNS (= DNS server on your device), so going back to your providers DNS?
By enabling local DNS, you're phone starts acting like a DNS server itself.
But I could be very wrong here, don't know for sure.
Btw, your latest mod is working perfectly for my OnePlus One on ColorOs 4.4.4, using the JA app for configuration. Haven't tried it with the CB app yet, to be honest. Thank you for making things work!
But I don't really notice any difference in speed, smoothness or usability between cb and ja mod, do you? Could be different for other (older) phones with less ram or slower processor, but the OnePlus runs both mods equally smooth.
I was using cb merely for its ability to not only block ads, but erase them without any trace on a page as well. JA adblocking is working perfectly also.
I remember reading something in the past, about JA using different, more stable and newer techniques? Not sure if the difference between the two mods is big enough to notice?

Categories

Resources