yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] olinojephanko:
That two fstrim errors are caused because i have f2fs on cache and data.

And the rest are io tweaks errors, but it sets that readahead size to 3072..

Cron.log still empty :(

edit

i dont know how, but havaged, adbloc ips start at boot, only io tweaks i have to run manually in CB app

also cron.log has some values

ive just updated busybox to latest one

cron log

CRON: Active! 1068

INTERNAL_EVENT_MONITOR: START ALL

INTERNAL_EVENT_MONITOR: START archidroid_dnsmasq

INTERNAL_EVENT_MONITOR: ARCHIDROID_MONITOR_PROCESS archidroid_dnsmasq

INTERNAL_EVENT_MONITOR: START archidroid_dnsproxy2

INTERNAL_EVENT_MONITOR: START archidroid_pixelserv

INTERNAL_EVENT_MONITOR: ARCHIDROID_MONITOR_PROCESS archidroid_pixelserv

INTERNAL_EVENT_MONITOR: START archidroid_haveged

INTERNAL_EVENT_MONITOR: START ARCHIDROID_MONITOR_DNS

INTERNAL_EVENT_MONITOR: ARCHIDROID_MONITOR_DNS

LISTEN_EXTERNAL_EVENTS: /system/archidroid/tmpfs/cron/events/external

LISTEN_INTERNAL_EVENTS: /system/archidroid/tmpfs/cron/events/internal

/system/xbin/ARCHIDROID_MONITOR_PROCESS[54]: can't create /system/archidroid/tmpfs/cron/monitors/: Is a directory

/system/xbin/ARCHIDROID_MONITOR_PROCESS[54]: can't create /system/archidroid/tmpfs/cron/monitors/: Is a directory

DNS_MONITOR: Active! Current DNSes: 5.9.49.12 151.236.6.6

PROCESS_MONITOR: Process is dead already!

PROCESS_MONITOR: Finishing...

rm failed for /system/archidroid/tmpfs/cron/monitors/, Is a directory

PROCESS_MONITOR: Process is dead already!

PROCESS_MONITOR: Finishing...

rm failed for /system/archidroid/tmpfs/cron/monitors/, Is a directory

Terminated

EXECUTE_INTERNAL_EVENT: MONITOR_STOP_HAVEGED

INTERNAL_EVENT_MONITOR: STOP archidroid_haveged

EXECUTE_INTERNAL_EVENT: MONITOR_START_HAVEGED

INTERNAL_EVENT_MONITOR: START archidroid_haveged
[Android Software/Hacking General [Developers Only]] PiggyFlooper:
I will update this in a few days for 4.4 only. If anyone would like pre-version to test I'd greatly appreciate it
[Android Software/Hacking General [Developers Only]] rkuijpers:
Count me in, and if possible I'd go for the JA version that uses the latest JA implementations you can make functional for Kitkat 4.4.4.

But willing to test the other versions too, it's no biggie.

I hope you get the problems with losing root sorted out, because my OnePlus One running ColorOs 2.048 isn't the easiest one to reroot once it loses it.

Nandroids all over the place last time I tried [emoji1]
[Android Software/Hacking General [Developers Only]] PiggyFlooper:
Downloads are up
[Android Software/Hacking General [Developers Only]] olinojephanko:
Flashed 4th version on cm11 and it works well.

good job
[Android Software/Hacking General [Developers Only]] rkuijpers:
First tried 3rd version (newest mod I think) but couldn't get adblock to block all ads. With same hosts file used, version 4 (mixed version) works like it should. Haven't tried 1 and 2 yet. Now I'll first see what advantages the mixed version brings over standard CB. It should be faster and lighter on resources than CB, those are the main advantages, right?

Just edited that last sentence, didn't sound quite as positive as it was meant.

Thanks for the hard work man! [emoji106] [emoji4]
[Android Software/Hacking General [Developers Only]] rkuijpers:
Tried them all, but something keeps letting the same ads through, while they disappear when using good ol' CB. Very strange, might even have nothing to do with your mods, could be something going wrong on my device. Plus after each reboot I had to enable the options manually, as they were disabled on reboot every time. I'll keep an eye on this thread for updates and further developments though!
[Android Software/Hacking General [Developers Only]] PiggyFlooper:
[MENTION=2807544]rkuijpers[/MENTION]

I've been doing testing with JA only, haven't tried switching to CB since making recent changes. That's odd you're not getting adblock with any version. It may be the switch over method isn't up to snuff. I'll get on checking that.

You previously mentioned things were working, just a few questions

I'm guessing you're still on a kitkat rom?

Are you using ArchiDroid app, Script Manager to enable adblock?

Is /system/etc/init.d/SetHosts executing?

You using AdAway App?

Edit-Okay, scratch that last question, you seem versed and knowledgeable from seeing ya around in other threads.

Have you tried this- http://xdaforums.com/showthread.php?t=2863036

Sent from above using Xparent Tapatalk
[Android Software/Hacking General [Developers Only]] rkuijpers:
Yep, stil on Kitkat, ColorOs 2.0.50 which is Android 4.4.4.

Was using the Archidroid app supplied with your mod, and also tried starting it manually with the enhanced Crossbreeder app.

After each reboot, nothing would work out of the box, and I only could get haveged working by disabling/enabling it in the archidroid app. Must admit I didn't try SManager to enable adblock.

Tinkering with the settings got adblock to work most times, like for 97 out of 100 ads. Have been breaking my head over why those few remaining pesky ads wouldn't disappear.

Have been using adaway for quite some time now, so my hosts file has evolved to a 5 Mb sized "kill all ads I have encountered" file.

Sethosts is working.

I'm also using the paid/donated version of UnbelovedHosts alongside it. It's a xposed mod blocking ads in a (slightly) different way, with the added possibility to block ads using regex patterns.

And I have Minminguard installed, another Xposed adblocker.

So things can get a little complicated when not all ads get blocked automatically, but up until now I always got all ads killed without crippling the websites in the process.

Problems blocking ads with JA are for example on this page (it links to a free app also available in play store): http://apkproapps.com/android/clean-master-cleaner-free-apk-apps-android.html.

The ads on that page are rotated through different servers and in a smart way apparently, so ads do show up whenever the adsource changes to a source not yet known by the adaway sources. It's the buzzcity linked ads that are shown every few times, even though the used links are blocked by the hosts file used with JA.

I'm certainly not the most savvy Android user, but I don't consider myself a total n00b either. Always looking for ways to get things done others say can't be done, like killing ads that keep reappearing on a webpage as mentioned above.

That's the only reason I wanted to try getting JA to run on my device, as I've read JA should be CB Evolved 2.0 in every aspect [emoji1]

So I'd really like to have a 100% working JA, if possible.

But maybe I'll have to change to an official rom for OnePlus One, would probably make things easier.

ColorOs only has stock kernel available, as no sources are released yet. Even init.d wasn't working out of the box, but got it working after a while.

JA is fully working for you now? Ok, looks like it's working perfectly for you. Nice work!

Edit: had HostEnabler installed already, although I don't see any differences in behavior. Then again, I haven't had any problems writing to the hosts file, so that's probably the reason why I don't see any differences with it enabled or not.

At the moment I was looking into another mod, L-Speed from Paget96.

That mod also doesn't run perfectly on my device. Might be a buggy init.d execution, I'm not sure yet.

That could explain why I'm having trouble getting JA to run as well.

Already downloaded another rom, but haven't yet decided if now is the time to change roms. Official Lollipop should be out next week....
[Android Software/Hacking General [Developers Only]] PiggyFlooper:
I forgot to mention earlier that in the SetHosts is scripting used for my ics Rom that I never took out when switched to kk. It copies the appropriate preferences.xml to CB data, and chgrps and chowns to UID for MY Rom. This can easily be found-the CB app UID- in Xprivacy or afwall, but I doubt it will work in kk. May be better to delete that from SetHosts.

It's not working perfectly yet, I'm testing pre-kk version right now. I'll get back to kk soon. If you go to L, let me know and I'll throw together(butcher) an L version. JustArchi already has an experimental version out. That guys a beast.

Also I'll add those entries to hosts, I add them as I come upon ads. wtf, just clicking on that page from that link you gave will redirect. Tricky.
[Android Software/Hacking General [Developers Only]] rkuijpers:
I got your newest JA mod working in my installed ColorOs rom, great job man! [emoji106] There were still a few sysrw in the scripts, deleted those and/or replaced them where needed, and all of a sudden no more ads, not even on that link I posted earlier [emoji1]

Still fighting with that sethosts script though, as I'm a real n00b where the more complex scripts are concerned. And man, is there magic going on in those scripts. Total abracadabra to me, but logic gets me there most of the time. I read, read again, think, read again, read some more, think some more, and then start to edit a little here and there... I'm sure you've been doing that a lot as well, but man it's definitely worth it!

Now my next step is trying to get a working frandom.ko in there. But as there are no sources available for ColorOs kernel, that will probably stay wishful thinking.

Anyway, I'm very glad you put your time into it, without your mod (and your help!) I'd never gotten as far with getting JA to work in this rom! Very much appreciated!!! Thanks a lot! [emoji106] [emoji1]
[Android Software/Hacking General [Developers Only]] PiggyFlooper:
;) Great post!

One step at a time, line by line.

Yea, editing really is a must for your individual Rom, i.e.- I had to remove -f's from rm's all over because logs were saying there's no -f to remove :)

I knew very little about scripts before beginning this project, they do get complicated. Figuring out cron and inotify tools was a bear. I scrapped the JA way. Frandom is automated so I'm wanting to replace that switch in CB app with Tether monitoring. It'll allow for easier Rom personalization. In my case, using TrevEs Wifi Tether, when turning on tethering, there is a file created in /data/...var/dnsmasq.leases- with inotify tools, the file will be watched for, when created, dnsmasq n adblock is shutdown. Turn tethering off and file is deleted, inotifywait takes notice and adblock is turned back on, and then it waits for tethering to be enabled again

Getting it to mesh with CB looks daunting.

That's what I'll be working on

Thanks for your input
[Android Software/Hacking General [Developers Only]] rkuijpers:
You scrapped the JA mod altogether? Working on good old CB again? Why?

Or did you mean you scrapped JA's complex way of scripting?

If I remember right, JA should be like having a CB version 2.0 on rocket fuel?

Or maybe the difference isn't that noticeable on our phones. I must say it looks like it makes a difference on my phone. It seems more fluent, everything feels smoother than stock rom, even with CB.

Lollipop should be coming soon for the OnePlus One, their own deadline was April 1st but they haven't released it yet.

I'm still on kitkat 4.4.4, ColorOs 2.051i, latest beta version from relic42.

Have you found something better than JA mod? Are you secretly developing CB 2.0? [emoji1] [emoji106]
[Android Software/Hacking General [Developers Only]] PiggyFlooper:
I scrapped the ARCHIDROID_CRON- meant for detecting tethering along with the backend. It was tailored for one of his Roms. I've been working on the CB portion of this mod, fixing the switch over for things been adding.

It does the same thing, but this way will be easier to modify to work with more devices. I'll post it soon, haven't integrated it for kk yet.

I did get tether monitoring going with CB. I think that could be considered 2.0. As long as it shuts down dnsmasq and re-enables so we don't have to manually do it and reboot. But can't test it, currently have no service. Do you use tethering? Am wanting tester(s).

I'm glad your phone seems more fluent. Mine does too. Between the JA haveged and the kernel tweaks, it's more fluid. I didn't like how choppy my kk Rom was, so did some studying and now am satisfied with results.
[Android Software/Hacking General [Developers Only]] PiggyFlooper:
I've updated op with universal version, well not really, no Lollipop yet
[Android Software/Hacking General [Developers Only]] rkuijpers:
I'll have a go at it!

Somehow I have done something that made adblock again fail at some ads.

And it worked so well...

So maybe I'll have more luck with your universal version. I'll let you know!

Thanks for sharing! [emoji106] [emoji1]
[Android Software/Hacking General [Developers Only]] PiggyFlooper:
Is there a service in your Settings app that's messing with hosts?
[Android Software/Hacking General [Developers Only]] PiggyFlooper:
Several fixes throughout, added CrossBreeder 4.4x kk version and option to use archidroid haveged instead of CB haveged- this is not stable, added to op
[Android Software/Hacking General [Developers Only]] rkuijpers:
Not as far as I know.

A lot of things are a little different in ColorOs as to standard Kitkat.

Some Xposed modules for example don't work, some others only partly work, and others work 100% as they should.

I have been experimenting with your latest mods for weeks, but to be honest without much success. Until now that is. I accidentally stumbled upon one of your older Dropbox links, and saw you changed that mod since I downloaded it. I had almost given up on using Archidroid in my rom, and was planning to return to Crossbreeder. At least adblock worked out of the box then, with the addition of Squids dnsproxy2 that is.

I was curious, so I installed everything one more time.

First I installed the latest ColorOs version from scratch, installed your latest mod, and updated the hosts file with Adaway.

And I have to admit, it looks like you did it! Haveged, adblock, dnsmasq, they all keep working perfectly with your latest mod, named ZCrossBreeder4_4. I don't use tethering, as I have a semi-public wifi hotspot available almost everywhere through my internet provider.

ZCrossBreeder4_4 is your hybrid Crossbreeder/Archidroid version, right?

Verstuurd van mijn A0001
[Android Software/Hacking General [Developers Only]] Moon83:
Tethering isn't working with zCrossBreeder4.4 how can I fix this? Everything else is working great. I'm on stock 4.4.4.
[Android Software/Hacking General [Developers Only]] PiggyFlooper:
I saw your post on CB thread, I'm looking for problem/solution

Sent from above using Xparent Tapatalk
[Android Software/Hacking General [Developers Only]] 4non:
The dnsmasq of JA could fix tether issues, but not sure if it works on CB.

I checked the updater-script, are you sure its called "dalvic-cache"? As far as i know its called "dalvik-cache"

delete("/data/dalvic-cache");
delete_recursive("/data/dalvic-cache");

because its a directory, it should be delete_recursive

delete_recursive("/data/dalvik-cache");
[Android Software/Hacking General [Developers Only]] PiggyFlooper:
Okay, thanks for the heads up, I'm going to fix that in all the zip files, funny thing is, it still deletes dalvik cache with- delete_recursive("/data/dalvic-cache"); on my device with 4.0 &4.4 Roms

When you say JA dnsmasq may fix tether issues, what do you mean by that?
[Android Software/Hacking General [Developers Only]] 4non:
Iam reffering to this post:

http://xdaforums.com/showpost.php?p=58469890&postcount=7282
[Android Software/Hacking General [Developers Only]] PiggyFlooper:
Are you referring to bigsupersquids post or JustArchi's, if your talking about JAs dnsmasq, it's not as simple as just replacing dnsmasq. I've included a script to monitor tethering that will work with TrevEs Wifi Tether app in CB and JA modes so that dnsmasq will shut down when tethering is started. The script- /xbin/ARCHIDROID_CRON needs to be edited to work with other tether apps
[Android Software/Hacking General [Developers Only]] 4non:
Didnt test it yet, i use Android5-Rom, its not incompatible. Will this work if i do a PIE-patch of shinyquagsire23?

http://xdaforums.com/showpost.php?p=56123703&postcount=13
[Android Software/Hacking General [Developers Only]] PiggyFlooper:
I remember someone told they had to use the patched linker binary, yes, let me know

Sent from above using Xparent Tapatalk
[Android Software/Hacking General [Developers Only]] PiggyFlooper:
Updated, added versions with tether monitoring working smoothly, also added lotsa mods n tweaks
[Android Software/Hacking General [Developers Only]] flarestar123:
After installing and trying this mod my device is smoother while I play games on my low end device which has only 512mb ram. I don't know about the battery life yet so I try to drain its juice tomorrow. On my /data folder I found two apk's which is "com.deprime.entropy-1.apk" and "crossbreeder_archi-signed.apk" do I need to install and activate them or I don't touch these apps? All the .log files in /data has something written on them except "CBdns.log" and "zzCB.log" is this normal? Lastly, the Crossbreeder app that had been installed has the first three options enabled and working I guess.
[Android Software/Hacking General [Developers Only]] jcfunk:
[MENTION=5483848]PiggyFlooper[/MENTION]

How's it going?

What is the difference between CB haveged and JA's?
[Android Software/Hacking General [Developers Only]] PiggyFlooper:
[MENTION=5403196]flarestar123[/MENTION]

Which version did u flash?

Edit- okay i see you flashed 4.0x-4.2x

What android version and phone are you on?

there's a couple problems there, gimme a couple hours, and I'll fix it, the problem is with debuggerd n zzCrossBreeder n

possibly CB_MON_DNS. If your only using JustArchi mod with no CrossBreeder you can delete those apps n log files, but they should've been deleted with recovery script if you're using straight JA. Are u using in conjunction with CrossBreeder?

I didn't do a fresh install and test before uploading, so I'll do that and get back with ya in a little while.

Have you went into recovery since flashing? if not, can i see your recovery.log. Actually, u should have file at /data/JArecovery.log

[MENTION=890183]jcfunk[/MENTION]

What's up my friend!

I like JustArchi's haveged better because it can be adjusted in ARCHIDROID_INIT and the write wakeup threshold that is set, it will fall down to that level and pop back up to 4096- good on battery. This works well on our 4.0.3 3D Rom very well, but I've had problems getting it to function correctly on 4.4. Entropy level hovers and creeps up slowly. That's why I've offered up version with full time CB haveged. CB haveged feeds at quicker interval, and is more compatible across platforms.
[Android Software/Hacking General [Developers Only]] flarestar123:
I'am on the old android 4.1.2. I never used JustArchi or CrossBreeder before flashing the 4.0-4.2 so it means that the only tweak that I have in my phone is purely what you've uploaded the v4.0x-4.2x so I didn't have either JustArchi or CrossBreeder installed before. I also can't see the "JArecovery.log" on the /data so I have nothing to for you to see just my report. Hope you go over with that because I am happy how my phone performs right now.
[Android Software/Hacking General [Developers Only]] sayatsugu:
If I may ask, would this work when using the phone as a hotspot?

(I'm not exactly sure if tethering is the same as a mobile hotspot)

I had some issues with CB back on 4.4.x that broke the hotspot function as dnsmasq refuses to turn off.
[Android Software/Hacking General [Developers Only]] PiggyFlooper:
Yes, same thing

If you want to use this with CB that's fine, flash this ( I suggest you use 4.4x wCB Haveged ), go into CrossBreeder app and turn off JustArchi mods and it will revert to CB mode and it will reboot. Upon boot, go into CB app and turn on Tether Monitoring ( it may be called Tether Boost ), when tether monitoring is on, dnsmasq will shut down. BUT, you have to configure it. Which tether app are you using? I'll proceed to help ya once I know this, or u can check out ARCHIDROID_CRON in /xbin n figure it out for yourself.

I wanted to make this mod for exactly this reason, so that rebooting isn't required.
[Android Software/Hacking General [Developers Only]] sayatsugu:
Right now I'm on LP but will be reverting back to KK as I did something funny and Phone app broke.

I'm looking to use the phone stock mobile Wi-Fi hotspot to allow my tablet to access the net since it's on a low data plan. I am open to suggestions on what app I can use to achieve the same thing.
[Android Software/Hacking General [Developers Only]] PiggyFlooper:
I'll try adding lollipop support, I've been wantin to, but busy :cowboy:
[Android Software/Hacking General [Developers Only]] sayatsugu:
Hi [MENTION=5483848]PiggyFlooper[/MENTION]

I was reading thru the instruction on the 1st post and there was this requirement to modify the pointer in the /system/xbin/ARCHIDROID_CRON to point to a file which is supposedly generated by the tethering app. Is there any way we can find out beforehand how or where this file will be created ? I will be using the stock Sony mobile hotspot function.

I will looking to use 4.4x w/ JA haveged version dated 7-10-2015.

Another question is that if I ever need to uninstall this, a nandroid restore is the way to go ?

Thank you.
[Android Software/Hacking General [Developers Only]] PiggyFlooper:
[MENTION=2634865]sayatsugu[/MENTION]

Yeah man, just check out the data files in /data/data/(tetheringApp) and see what's created, and change what I have in ARCHIDROID_CRON in xbin. Also make sure to exclude other files to watch that may be in that folder.

Let me know what you find and if you need help getting tether monitoring working.

And yeah I need to work on an uninstall file for the folks using this.

Sent from above using Xparent Tapatalk
[Android Software/Hacking General [Developers Only]] sayatsugu:
Went thru the list in data/data/ and located what appears to be the native WiFi hotspot location (com.sonymobile.settings.wifi.hotspot2 or com.sonymobile.seamlesstether), there is only a lib file in it and toggling the hotspot on and off generates no file.

Am I doing something wrong ? Or it is due to the fact that I have to flash the zip before any file will be generated ?
[Android Software/Hacking General [Developers Only]] PiggyFlooper:
I'm not familiar with your phone, you could start a thread in your device's forum and ask for help. And no, it'll be somewhere after starting tethering, try looking in your stock Settings.apk data and get an app called Xplore, it has best UI for hunting files. Check the bottom of /dev folder n see if a file is created there. Good luck bro

Sent from above using Xparent Tapatalk
[Android Software/Hacking General [Developers Only]] sayatsugu:
I did some reading, digging and experimenting and ended up with more questions.

Since I can't figure where the dnsmasq.leases file was created, I went to try out other tethering apps (WiFi Tether, OpenGarden). The app reported that tethering was on but I am unable to see it on my other device (Main hotspot - Xperia Z1 on 4.4.4, test device - Samsung T805 on 4.4.2). However it is able to see the native hotspot generated by the phone. I'm not sure where or what I did wrong but I am able to see dnsmasq.leases being generated and deleted as you have mentioned.

After some reading, I found that the dnsmasq.leases for the native hotspot is actually under /data/misc/dhcp. However the problem here is that the file is static.

Since I can't (or do not know how to) modify the behavior of the system, is there some other way to monitor the tethering and turn off on the fly ? Even if I can enable and disable on the fly without rebooting is enough for me.
[Android Software/Hacking General [Developers Only]] tweakradje:
I have been playing with dnsmasq but I get very high cpu usage, about 40%.

I also am looking for adblock possibilities with dnsmasq.

I started dnsmasq from /etc/install-recovery.sh with this command:

dnsmasq -x /data/local/tmp/dnsmasq.pid -c 2000

The goal is to download hosts file with wget, put it in /data/local/tmp and start dnsmasq with --addn-hosts=/data/local/tmp/hosts option.

Why the high cpu load?