yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] GermainZ:
Yoda doesn't stutter.

---------- Post added at 11:55 AM ---------- Previous post was at 11:54 AM ----------

Read the script's output, it'll tell you what's missing. Then read the help file. Please don't PM me, thanks.
[Android Software/Hacking General [Developers Only]] Benjowee:
Flush-o-Matic? What thats mean? I Pick 24 hour, so every 24 hour I will activate it? :3
[Android Software/Hacking General [Developers Only]] Jar3112:
Is there anyone actually reading how this works, like every one of us did in the past?

Sent from my Galaxy Nexus
[Android Software/Hacking General [Developers Only]] zeppelinrox:
Wow did I pass out or what.... Exhausting week indeed.

I'll put config options at the end of boot scripts just like FOM
[Android Software/Hacking General [Developers Only]] Pandemic:
Lol not only in Germany man, also in the Netherlands :D Lol
[Android Software/Hacking General [Developers Only]] zeppelinrox:
I guess 23.5 times ain't enough.

Read that help file 100 more times.

Or at least once.

I don't think so.

But here's something for the real Superman's inbox...

lol

You've hit your limit for annoying, lazy questions that sound like they come from an illiterate.

Get a dictionary or an English tutor.

Pussification is rampant.

That's what happens when people don't get their asses kicked due to political correctness and fear of the truth hurting precious feelings.

You know how bullying is a big issue these days?

Well here's the thing.

Its still the same.

What's different now?

The snowflakes are more precious.
[Android Software/Hacking General [Developers Only]] mixednuts:
"You can't handle the truth!"
[Android Software/Hacking General [Developers Only]] izuall187:
Thinking just way too much, I guess......
[Android Software/Hacking General [Developers Only]] RokuP:
Zep, is the SD speed tweaks error here a problem? Never seen that before... I also had some "atexit" errors but installing your busybox 1.21.0 rev2 fixed those. I'm running RootBox on my Verizon Note II.
[Android Software/Hacking General [Developers Only]] zeppelinrox:
I been trying to devise a way to find out whether BootLog_SuperCharger.log was modified after the last boot.. ie. did SuperCharger run on last boot?

Of course, that could apply for any file - to see if it's been modified after a reboot.

Also, it would be easy if there was a file I knew got updated on boot on every device and comparte time stamps - but I don't think there is such a file and that's kinda cheesy.

So... gotta get fancy...

# cat /proc/uptime
cat /proc/uptime
[COLOR=Red]2228.42[/COLOR] 712.39

So that's how long the system's been up, in seconds.

Obviously, a file that's been been modified between "now" and 2228 seconds ago has been modified since boot.

ie. its "age" will be "younger" than, or less than, 2228 seconds.

I don't need the .42 so... make it

# uptime=`awk -F. '{print $1}' /proc/uptime`
uptime=`awk -F. '{print $1}' /proc/uptime`
# echo $uptime
echo $uptime
[COLOR=Red]2228[/COLOR]

And what is "now"?...

# now=`date +%s`
now=`date +%s`
# echo $now
echo $now
[COLOR=Red]1372007435[/COLOR]

That's the current date in some huge ass number of seconds that has gone by since 1969 or something :p

Actually... looking at http://www.epochconverter.com/

0 means...

GMT: Thu, 01 Jan 1970 00:00:00 GMT

Your time zone: Wednesday, December 31, 1969 7:00:00 PM GMT-5

Anyhoo... gotta get the modified time of the file with stat...

# stat -t /data/BootLog_SuperCharger.log
stat -t /data/BootLog_SuperCharger.log
/data/BootLog_SuperCharger.log 2390 5 81a4 0 0 1f08 291 1 0 0 1371702667 [COLOR=Red]1372005755 [/COLOR]1372005755 4096

I want the modified time which is the 13th number (14th number is creation time which can be much smaller in many cases)

# modtime=`stat -t /data/BootLog_SuperCharger.log | awk '{print $13}'`
modtime=`stat -t /data/BootLog_SuperCharger.log | awk '{print $13}'`
# echo $modtime
echo $modtime
[COLOR=Red]1372005755[/COLOR]

So I got my 3 numbers.

$uptime, $now, $modtime - all in seconds

If age is less than $uptime, then the script ran after boot.

So what's the age? $now - $modtime!

I'll calculate and remember that next... it makes the code easier on the eyes :cyclops:

# age=$((now-modtime))
age=$((now-modtime))
# echo $age
echo $age
[COLOR=Red]1680[/COLOR]

Just to recap the above... 1372007435 - 1372005755 = 1680

So with the above numbers, did it run?

$age is 1680 seconds which is indeed less than the $uptime of 2228 seconds... so Hellz Yeah!

Just to confirm with code...

# if [ "$age" -lt "$uptime" ]; then echo " Hellz Yeah!"; fi
if [ "$age" -lt "$uptime" ]; then echo " Hellz Yeah!"; fi
Hellz Yeah!

LOL

Ah... just for fun... here's a one liner version...

if [ "$((`date +%s` - `stat -t /data/BootLog_SuperCharger.log | awk '{print $13}'`))" -lt "`awk -F. '{print $1}' /proc/uptime`" ]; then echo " Hellz Yeah!"; fi
[Android Software/Hacking General [Developers Only]] zeppelinrox:
oh weird.

So those errors still happen after updating busybox?

Yeah a little problem since it shouldn't suggest values larger than 2048.

But looks like it would apply whatever you pick
[Android Software/Hacking General [Developers Only]] RokuP:
Weird thing is, I update busybox, and then run bdrc2, it tells me your busybox is installed, but after a reboot I'm back to 1.20.2-JB which is what shipped with the ROM. I have a feeling my ROM and/or the latest nightly may be somewhat hosed in that dept. Or maybe I've just done too much dirty flashing.

I also get an error when installing your busybox, which I haven't seen in the past:

---------- Post added at 12:41 PM ---------- Previous post was at 12:32 PM ----------

Another question; is it odd that my current SD read ahead is ALWAYS reported as the same as the third option even when I've never run the tweak before? This has been going on for some time across many builds of my current ROM and I think on other ROMs as well.
[Android Software/Hacking General [Developers Only]] zeppelinrox:
Try installing bb from a path without a ! in a folder name

The script defaults to the 3rd option if sd tweak hasn't been disabled.
[Android Software/Hacking General [Developers Only]] zeppelinrox:
ok sorry for the delay...

I'm pretty sure it will be up tonite
[Android Software/Hacking General [Developers Only]] zeppelinrox:
And so here it is...

The latest n greatest V6 SuperCharger script so far...

BD-63457!! (Fixed)

Posted image with white background in case you can't see the clear background one :p

Change Dog since BDRC2...

fixed disappearing apps in zipalign/fixalign scripts (and no more problematic/skipped apps)
fixed frandom
fixed crosslink error in 99SC.sh
fixed bug when configuring boot options from within zepalign, fixfc and fixalign scripts
fixed bug in sdcard calculation
added frandom check
added 6i9 ass easter egg
added vm.vfs_cache_pressure=10
removed pm.sleep_mode
moved config options in boot scripts to the end (after script runs)
/init.d/92vac opens bootlog if no sqlite3 binary
/init.d/93zepalign and /init.d/95fixalign opens bootlog if no zipalign binary
ask before bp launcher
v6 does not run if running from int.d (duh)
tweaked FOM output/stats/user info
tweaked logic when resupercharging re. getting previous options/regenerating
tweaked launcher function (updated whenever you return to menu)
tweaked ram function
enhanced user infos and help file...
...example: Notes about init.d scripts making BootLogs
tweaked lots of code to be more efficient...
...example: No more `cat /file/name | awk or grep` (just awk or grep a file directly... duh...)
Hell... tons of code tweaking anyway lol

Quick Fix...

Fixed Fixalign and Fix Emissions Bugs
Couple of other smaller bugs

Click Thanks... the Dog won't bite... hard (since it's Die Hard... nyuk nyuk...)
[Android Software/Hacking General [Developers Only]] izuall187:
Awesome work zep. Got a report to make.

Ran script on my x10 running on stock 2.3.3 and arc s zelly cream final.

Went well on my x10 but encountered multiple force closes even after reboot after running fixalign on the arc s. :confused:
[Android Software/Hacking General [Developers Only]] zeppelinrox:
Does it happen on the arc with prior fixalign versions?

Post the fix align logs in data if you can.

Also test with just zepalign.

If zepalign is fine then its the fix permission part.
[Android Software/Hacking General [Developers Only]] zgmfx20:
me too almost all apps now force closes for me.
[Android Software/Hacking General [Developers Only]] RokuP:
My previous SD speed tweak calculation error is fixed in this version and properly maxes out all options @ 2048. Good work.
[Android Software/Hacking General [Developers Only]] izuall187:
Will do. Ill get the logs as soon as i can. But first i need to find a way to avoid this force close just by getting the log.

---------- Post added at 12:45 PM ---------- Previous post was at 12:41 PM ----------

Wait... I just noticed something. The force close errors suddenly stopped. That's weird. And i just left it for 30mins or so.
[Android Software/Hacking General [Developers Only]] defiant07:
Much respect for all your great work. Gave the dog a few test runs around the track and all is working well on my device...no errors...no fc's...sets all the permissions correctly on my 200+ apps (I looked at all the apks and the log). lol in regards to the Easter Egg, always wondered what would happen, but was to scared to find out :p. Nice job on the reworked SC.html it is much more readable, hopefully it will reduce lazy illiterate redundant questions, but I doubt it :(. Regarding the extensive change log, guess old dogs can learn new tricks.

The only minor bug left for me is fixA causing false positives for fixE and wheel.

btw I hit thanks with a long stick, just in case it was hungry...ruined my mouse, but better safe than sorry, right?
[Android Software/Hacking General [Developers Only]] eushaun99:
I'm having tons of cp: can't create /storage/emulated/0/...... errors. I'm guessing the backup went nuts since I don't have anything in the V6_SuperCharger folder? I also have some other errors that you might wanna take a look. Well at least the fixalign didn't gave me anything this time :p. Oh wait it did...but its not the permission errors this time. :D

Damn...the haze has moved up from Singapore to Malaysia. Its starting to become very blurry here. :(
[Android Software/Hacking General [Developers Only]] eushaun99:
Another couple more of screenshots.
[Android Software/Hacking General [Developers Only]] zeppelinrox:
then answer my questions.

adb pull

weird.

But answer my questions anyway :p

did you have permission problem before?

Thought I fixed that minor bug of yours.

So all 3 show they run on boot?

what busybox?

Did you have those errors with bdrc2?

Just copy the text and paste it.

Use a code box.

Aaaand off to the rat races....
[Android Software/Hacking General [Developers Only]] hisname:
FOM shows segmentation fault. refuses to run in the script even though it shows the log

edit: wait what? there is an easter Egg??
[Android Software/Hacking General [Developers Only]] eushaun99:
Busybox v1.20.2 linusyang. No errors with bdrc2. By text you mean the errors?
[Android Software/Hacking General [Developers Only]] defiant07:
Nope, never had the permission problem. I just wanted to let you know it was working since you are using a new method.

Correct, all three still show they are set to run on boot.
[Android Software/Hacking General [Developers Only]] zeppelinrox:
try another busybox.

SManager can copy all output to clipboard for easy pasting.

ah OK.

Go thru driver options and see if it works.

Regenerating scripts won't change internal boot script settings.

They only change when in driver options or if you do configuration when a boot script is run manually.
[Android Software/Hacking General [Developers Only]] VnnAmed:
I remember reading in here somewhere that you can't just run new version over the old. Un-supercharge before running?

Sent from Desire on fire
[Android Software/Hacking General [Developers Only]] zeppelinrox:
Nah just run the new one and it updates every script you have with the script regenerator.

I like that feature alot more than I thought I would.

It was just a pain in the ass to develop but makes life alot easier for me now ol
[Android Software/Hacking General [Developers Only]] hisname:
zep, Y U NO REPLY ME??!!
[Android Software/Hacking General [Developers Only]] Daniel D.:
Is there anything I don't know or should it be init.d?
[Android Software/Hacking General [Developers Only]] zeppelinrox:
type 69 option.

Segfault?

Busybox or su binary.

FOM is the same as before.

put bd63457 in init.d and run it.

See what happens :p
[Android Software/Hacking General [Developers Only]] zgmfx20:
I first tried your latest script a while ago in JB then FixAlign, FCs on newly zipaligned apks. I then tried ZipAlign then Fix Emissions, also FCs.

I went back to GB, first errors gave me "/res/bootsound/local.init.rc not found". Then I tried to fixalign, FCs again everywhere. After rebooting, resulted to bootloop.

Only to bypass problem is by Fixing Permissions via Recovery.

Could it be because of the kernel?

I use LuPuSJBv12 when I was in JB

Then LuPuSGBv2 for GB
[Android Software/Hacking General [Developers Only]] hisname:
interesting I am using busybox 1.22, maybe it has some incompatibility... so I decided to use that zeppe linario busybox and it works!
[Android Software/Hacking General [Developers Only]] eushaun99:
I tried your busybox v1.19.4 wraithdu and no more cp errors, but there are a few others. Fixalign also gives me some weird output. Sorry, can't post it here, max characters only 30000, the output was over 100000 lol. http://db.tt/cfxJd3Lh
[Android Software/Hacking General [Developers Only]] izuall187:
Tested bdrc2 and no error occured. Tested ot with busybox 1.19 wraithdu and 1.21 stericson.

Error only occured on latest black dog. Sorry no logs. Can't even get through folders with the force closes.
[Android Software/Hacking General [Developers Only]] Daniel D.:
Try the attached one if you want (1.20.2).
[Android Software/Hacking General [Developers Only]] lkirra:
Love the black dog! Awooooooo!
[Android Software/Hacking General [Developers Only]] access9:
Hey Zep,

After running the new version, the following error was displayed on the driver's console:

=============================================
stat: can't stat '/dev//dev/erandom': No such file or directory
Fentropy enForcer is Not In Effect!
================================================
[Android Software/Hacking General [Developers Only]] izuall187:
Will give it a go. Thanks, bro.

:thumbup:
[Android Software/Hacking General [Developers Only]] GermainZ:
If you want yet another way...

$ cat /proc/stat | grep btime | cut -f 2 -d ' '
1372086355

Returns the time of the last boot, in seconds since the epoch.

$ if [ "$(stat -t /data/BootLog_SuperCharger.log | cut -f 13 -d ' ')" -lt "$(cat /proc/stat | grep btime | cut -f 2 -d ' ')" ]; then echo "Hellz Yeah!"; fi
Hellz Yeah!
[Android Software/Hacking General [Developers Only]] SecUpwN:
Hey folks, where to find the LATEST KAK and 3G enhancer script? In the beta section?
[Android Software/Hacking General [Developers Only]] eushaun99:
I think zep put a link in the OP. Can't check since zep's OP makes my tab crash. :D
[Android Software/Hacking General [Developers Only]] defiant07:
I went through the driver options on my initial run because I wanted to change the sdcard speed tweak, but I went through them again just to double check and still get false positives for fixE and wheel. Furthermore, I have been using the same driver options since before the first version of beast and I think the false detections began with vbeast. Also the only script I've run manually in the past couple of months has been flush via terminal.

On another note, now that I have had some more time the play around with things since updating I have noticed a number of apps acting real buggy (e.g. full!screen+ does not reset my wallpaper when I toggle the status bar on/off, Icon Themer's icons are not being consistently applied and do not stick following a reboot, SuperSU seems a lot slower when granting requests, Apex Launcher seems to stall/not respond more often). Taking a closer look at fixA's bootlog, I noticed the buggy apps seem to correspond to the apps in the log that said

No such user ':1000'

. There are a lot of things like

chown 1000:1000 /data/data/eu.chainfire.cf3d/files/shaders ( was 1000:0 )

where the second number should not be 1000.

So I guess I was wondering if the bugginess of my apps following the update is related to the ownership of the app's sub-proccesses/files being set incorrectly? I attached the Ran and Boot logs just in case my suspicions are well founded. Lmk if I can provide further information.

peace and thanks
[Android Software/Hacking General [Developers Only]] jasminthoria:
Great script
[Android Software/Hacking General [Developers Only]] VnnAmed:
Use tapatalk 4 ;P

Sent from Desire on fire
[Android Software/Hacking General [Developers Only]] zeppelinrox:
Can't reply to all right now.

Will do when I get home and hopefully have a bug fix for fixalign

BTW anybody test only wheel alignment and see if the apps no longer disappear?
[Android Software/Hacking General [Developers Only]] Kitschki:
Clearing data of the apps stopped fcing for me. But i have no clue what to clear for process acore..
[Android Software/Hacking General [Developers Only]] SecUpwN:
Hey [MENTION=3357461]zeppelinrox[/MENTION], does one even still "need" the KAK-script? I know it's been a standalone script since ages, but I did not see updates since months (at least it feels like it). Can I assume v6SuperCharger now takes care of EVERYTHING? :cowboy:
[Android Software/Hacking General [Developers Only]] defiant07:
I was having similar issues with android system processes, google play services, and gapps processes. Try turning off fixalign or fixemissions and superclean and restart (i.e. wipe dalvik and reboot); it fixed the bugginess I was experiencing :good:. Note: I doubt you need to superclean, but it is good practice imo; you probably only need to turn off fixA/fixE and reboot.

Bad assumption...guess again :p.
[Android Software/Hacking General [Developers Only]] Kitschki:
I additionally found out that backing up the data of an app, wiping and tgen restoring the data again makes it work ahain too
[Android Software/Hacking General [Developers Only]] phonetool:
I'm not having any problems with apps disappearing or force closing.

Pretty happy, actually. Just like always!

-MROM on DInc2
[Android Software/Hacking General [Developers Only]] otterbvrn:
So, until further update, we cant be allowed to use fix emission and fix alignment?
[Android Software/Hacking General [Developers Only]] zeppelinrox:
Ok redownload... it's fixed... (same page as yesterday)

I'm exhausted but surprised myself at finding the big ass bug in fix align and fixemissions.

Also fixed that fentropy error.

But did you go all the way through and save settings?

Maybe you should just run the fixed fixalign and reapply the setting from within the script itself.

Oh nice one dude!

I'm really liking awk tho... so howabout...

awk '/btime/{print $2}' /proc/stat

:cool:

You become more ignorant and more annoying with every post.

Instead of learning, you're going backwards.

You're on ignore and I'd rather you unsupercharge and forget this thread exists until you stop posting non-sense questions based on ignorance and laziness.

By now, you should know better than to continue spamming threads with questions that are answered in the OP.

You're only making yourself look retarded.
[Android Software/Hacking General [Developers Only]] zeppelinrox:
Just to give the announcement additional attention...

Ok redownload... it's fixed... (same page as yesterday)
[Android Software/Hacking General [Developers Only]] defiant07:
Yeah, I went all the way through - exited script via option 34 and the build.prop time stamp was changed.

Dunno why, but reapplying the setting from within the fixA script itself did the trick...no more false positives:) :good:.

Regarding BD6_fix, my initial observations are: chown values are still not matching (some apps are now working perfectly like full!screen+, but others like Icon Themer are now not working at all - still no fc's or missing apps just weird bugginess) and now even more of the chmod values are mismatched, although all the actual apk's are set to rw-r--r--.

Will edit the post and attach logs in next 15 minutes or so...in the process of making debug.

edit - attached logs...not much in that debug log...ehh

XDA does not allow users to attach .log files. I have found the easiest means of posting logs is to: (1) move/copy desired .log files to somewhere on /sdcard/; (2) rename .log file by adding .txt to the end of the name (e.g. SC.log >> SC.log.txt); (3) now you can attach it to XDA. Someone in this thread actually informed me of this method :), I would give him/her credit, but I forget the name.
[Android Software/Hacking General [Developers Only]] robbayani:
sorry zepp.. BD 63457 is bad for me for wheel alignment and fix emission..

now this BD make my google play, my fav launcher, walkman etc force closed..

when using BD RC2 its no problem..

#reflash rom and using BD RC2
[Android Software/Hacking General [Developers Only]] eushaun99:
I know, I renamed it to txt first then upload, but it still say unable to open file. BTW, that guy was me. :p
[Android Software/Hacking General [Developers Only]] defiant07:
lol...thanks again for that tip :good:.
[Android Software/Hacking General [Developers Only]] zeppelinrox:
OK both of you do:

sh -x /system/xbin/fixfc

Also post your /data/system/packages.xml file

This will help figure out the missing user thing.

=============

So for most the fix worked, right?

And no more disappearing apps?

Wheres [MENTION=4729636]hisname[/MENTION]... he always has crapp disappearing :p
[Android Software/Hacking General [Developers Only]] eushaun99:
Here's the /data/system/packages.xml

And http://db.tt/kUXPJuTu
[Android Software/Hacking General [Developers Only]] csmoore88:
Just for info...

I got force closes on gapps. Play music and phone process at first run. I ran script from start...driver options...super clean. Did re super charge and again wipe cache and dalvik. Now I am running smooth. Droid xyboard mz617 ics 4.0.4. Thanks to all.

(clever signature_here)
[Android Software/Hacking General [Developers Only]] zeppelinrox:
thanks.

I'll look tonite.

first run of the fix?
[Android Software/Hacking General [Developers Only]] PieceKeepr:
More noticeable how exactly? I'm using the null version without the ACTIVITY_INACTIVITY_RESET_TIME=false line because this line seemed to slow my phone down, probably due to low RAM and a tiny processor. Do you see better response with the "false" values or just less app killing? I really don't want apps to stay in memory and killing an app when I close it is fine with me, but I'll take better performance anytime.
[Android Software/Hacking General [Developers Only]] hazard209:
I was seeing snappier responses in scrolling through the app drawer and opening apps.

Also, I had applied this change to the kickasskernel tweak like you (Zepp) had recommended before when I was getting bootloops due to the io scheduler and it worked well. Not sure if you decided to use the fix or not, but just a reminder.

for i in /sys/block/*/queue/scheduler;

do

echo "noop" > \$i;

done;
[Android Software/Hacking General [Developers Only]] 10507:
Will your 3G TurboCharger & Kick Ass Kernel Tweaks work for this kernel tytung_r10 http://xdaforums.com/showpost.php?p=10429937&postcount=3

I have applied your Supercharger V6 script to ROM BOYPPC-SHIFTPDA CM7_V41 http://xdaforums.com/showthread.php?t=1199917, and it works wonderful.

Thanks for all your work.