yashsingh1/xdaforums huggingface dataset:
[Android Software/Hacking General [Developers Only]] hisname:
I am using a JB rom.

u0_a42@android:/ $ su

u0_a42@android:/ # stat /dev/watchdog

stat: can't stat '/dev/watchdog': No such file or directory

1|u0_a42@android:/ #

the name of the file is temp.txt and the contents is

test
[Android Software/Hacking General [Developers Only]] blackhawk_LA:
Still doesn't work...

... and then all is the same.
[Android Software/Hacking General [Developers Only]] davidbar93:
V6 Supercharger was always my favourite ,this is by far the best script(Was using it on my old Xperia Play too).

It speed ups my XS ,like having totally a new phone.
[Android Software/Hacking General [Developers Only]] zeppelinrox:
ya I know without seeing it.

Im interested to know if stat shows the same time as when you creates the file.

Also do

stat /dev/console

Actually, if you do

busybox ls -lt

do any times match up with when you flashed the current ROM?

OK has to do with the computers memory.

Edit those baksmali commands again.

They begin with:

java -jar

Change to:

java -Xms256m -Xmx256m -jar

If that don't work, replace the 256m with 512m.

Or 128m... Whatever works :p
[Android Software/Hacking General [Developers Only]] 25vikasp:
help

i tried to install v6 supercharger for my phone in galaxy s duos.i have rooted my phone.when i run the starter kit script it gives me massage that binaries cannot be updated because u r using super su app not super user app.after that i tried to install v6 script it gives me error called android shell###.i rebooted my phone then i noticed that my root access was gone.super su app says su binaries cannot be updated failed.i am succeeded to supercharge my phone before ota update that time iam using superuser app which is installed by cwm.after because of ota updates i preferred the simple root methods via pc.please tell me how can i regain my root access and install v6. please
[Android Software/Hacking General [Developers Only]] zeppelinrox:
damn I was so tired I didn't complete the command.

busybox ls -lt /dev

Looking for times that correspond to when you flashed the ROM, remember?

Anybody else feel free to play along at home lol

crazy idea: root it the same way as you did in the past.
[Android Software/Hacking General [Developers Only]] zeppelinrox:
No.

They don't.

You said the adb file was off a few hours and they all are the same.

And the test file stat result is useless if you don't do both commands at the same time and not a day ot 2 apart.

Do the command.

See if the stat command shows the current time.

It not that bloody hard to run those 2 commands, one after the other, and see if the stat time is right, is it?
[Android Software/Hacking General [Developers Only]] 25vikasp:
That means v6supercharger is not compatible with super su app.we should have superuser app.

Sent from my GT-S7562
[Android Software/Hacking General [Developers Only]] Yenkazu:
I'm using SuperSU with V6 without any problem

I guess this is ROM and kernel related
[Android Software/Hacking General [Developers Only]] Jar3112:
+1

Sent from my Galaxy Nexus
[Android Software/Hacking General [Developers Only]] hisname:
u0_a42@android:/ $ su

u0_a42@android:/ # stat /system/bin/adb

File: '/system/bin/adb'

Size: 108816 Blocks: 216 IO Block: 4096 regular file

Device: b310h/45840d Inode: 120483 Links: 1

Access: (0755/-rwxr-xr-x) Uid: ( 0/ root) Gid: ( 2000/ shell)

Access: 2008-08-01 20:00:00.000000000

Modify: 2008-08-01 20:00:00.000000000

Change: 2013-07-15 23:34:13.000000000

u0_a42@android:/ # echo test > /sdcard/temp.log

u0_a42@android:/ # stat /sdcard/temp.log

File: '/sdcard/temp.log'

Size: 5 Blocks: 8 IO Block: 4096 regular file

Device: 15h/21d Inode: 1104065496 Links: 1

Access: (0664/-rw-rw-r--) Uid: ( 0/ root) Gid: ( 1015/sdcard_rw)

Access: 2013-07-16 23:46:02.000000000

Modify: 2013-07-16 23:46:02.000000000

Change: 2013-07-16 23:46:02.000000000

u0_a42@android:/ #

it looks like the current time now.
[Android Software/Hacking General [Developers Only]] mpjoe2000:
have you check this line:

heapsize=$(($ram*16/100+[COLOR="Red"]$ram*16/100%2[/COLOR]))

the red portion will always be equal to 0

is it heapsize proportional to screen resolution???

http://stackoverflow.com/questions/5350465/android-heap-size-on-different-phones-devices-and-os-versions
[Android Software/Hacking General [Developers Only]] zeppelinrox:
The starter kit would have refused to install the su binary because it's not meant for supersu and you don't need it.

Just leave the su binary alone.

Well I'm just too tired to backtrack and try and compare dates and stuff.

So next time you flash a rom, make a note of the time.

then do:

busybox date

busybox ls -lt /dev

# ram=420
ram=420
# echo $ram
echo $ram
420
# echo $(($ram*16/100%2))
echo $(($ram*16/100%2))
[COLOR=Red][B]1[/B][/COLOR]

So what's the point? Well the first part of the equation works out like so...

# echo $(($ram*16/100))
echo $(($ram*16/100))
67

And I don't want to set odd numbers for heapsize.

So I make sure it's an even number by adding 1 if it's an odd number.

If it's an even number, of course it adds 0 and remains an even number.

So the answer to your question is Yes, I checked it - when I came up with the code.

It's crazy... the idea to check to see if code actually works :p

So... had you checked?

Anyway, the only code I've seen that deals with screen resolution in order to calculate something are the minfree levels in services.jar - which I have conveniently bypassed in order to hardcode minfrees in services.jar.

I havent coded that part yet tho - but the adj groupings is done and will be in the ultimatic update.
[Android Software/Hacking General [Developers Only]] Jar3112:
About the Ultimatic update.. Do you mind having a look at that status bar glitch? :p

Sent from my Galaxy Nexus
[Android Software/Hacking General [Developers Only]] zeppelinrox:
Somebody who had the issue in the ultimatic thread posted back saying that it wasnt the patch after all.

It's definitely related to system ui... did you try bulletproofing it, just in case it gets killed for some strange reason?

At the very least, you'd at least be sure that it isn't being killed.

And to be honest, it's low on my radar priorities.

Recent digging has revealed a couple of fat ass bugs where it will install a services.jar even tho baksmali or smali had failed.

I'm pretty sure that would be the reason for the bootloops some users report.

The smali/baksmali errors would show up on the screen but not in the log (using the tee command doesn't work in some cases) but I've came up with a way to get the info into the log and still have it displayed on the screen.
[Android Software/Hacking General [Developers Only]] mpjoe2000:
yes i have two phones, and i tested them with the equation... ok now i understand ... but will you rethink about the heapsize calculation?
[Android Software/Hacking General [Developers Only]] zeppelinrox:
I don't like to over complicate things when there is no need to do so.

As far as I know, I'm the only one that sets a value that is dependent on what's on the device anyway - any other tweak sets a single value for all devices.

Show me the code which has this calculation with the screen resolution, if it exists, and not a 2 year old posting :p

But even then, I don't think screen res matters as much as RAM does.

Edit: after reading some more replies in that posting, based on the newest reply, there seems to only be Google's recommended minimum values depending on screen res (which max out at 64mb?) - and surely they are well below the conservative calculation that I use.
[Android Software/Hacking General [Developers Only]] Jar3112:
Ok, I'll wait. And yes, I'm sure that system ui isn't being killed, just because the glitch isn't variable. If it is there at boot, it will stay there, not vanish after some time.

Sent from my Galaxy Nexus
[Android Software/Hacking General [Developers Only]] zeppelinrox:
Do it anyway.

If you bulletproof it and it still happens, then at least something gets ruled out and the haystack gets a little smaller.
[Android Software/Hacking General [Developers Only]] 25vikasp:
Ya I installed the v6 now.but there should be separate script for busybox.cause starup script contains busybox too and that binaries :D:D

Sent from my GT-S7562
[Android Software/Hacking General [Developers Only]] eushaun99:
There is lol. In the starter kit folder and there is also the flashable busybox zip. Also, you do know that you can say no to the su binaries right?
[Android Software/Hacking General [Developers Only]] defiant07:
Hey Zep,

Just wanted to inform you I am using this code

mount -o remount,$1 / 2>/dev/null
mount -o remount,$1 rootfs 2>/dev/null
busybox mount -o remount,$1 / 2>/dev/null
busybox mount -o remount,$1 rootfs 2>/dev/null
mount -o remount,$1 /system 2>/dev/null
busybox mount -o remount,$1 /system 2>/dev/null
busybox mount -o remount,$1 $(busybox mount | awk '/system /{print $1,$3}') 2>/dev/null

in a modified form (I changed the "$1" to "rw" and "ro") in my swap script...proper credits were of course given.

On a related note, V6 has never remounted /system as ro...never reported it because it's not really problem, but I thought I'd let you know this defining remount trick does not seem to work as it should, at least on my device.

======

Also I have an OT question that would help me and our buddy [MENTION=5113073]eushaun99[/MENTION]...is it possible certain versions of busybox applets do not properly handle variables? I ask because "swapon $storage/swapfile" does not work, but "swapon /fullpathname/swapfile" works for our common friend.
[Android Software/Hacking General [Developers Only]] zeppelinrox:
It mounts as read only every time it returns to the main menu.

Do something in V6, wait at the Press Return prompt.

Do in terminal mount | grep system - will be rw

Go back to V6 and press enter to return to main screen.

Do the terminal command again - mount will show system to be ro.

About the other thing... it's not a busybox thing.

And I doubt either command would work if $storage is really the internal sdcard and not a "real" sdcard ie. a truly external one.

Did some quick testing and the trick is to find the real external sdcard which will have a vfat file system

So here you go...

storage=`busybox mount | awk '/vold/&&/sdcard/{print $3}' | awk 'NR==1'`

I added the awk 'NR==1' (same as head -n 1 but why use a second tool :p) to limit the result to one hit - and I couldn't find a simple way to have awk do everything at once - limit it to one hit while searching for the pattern... so that'll do

It will also work if you change vold to vfat but I think vold is less likely to get stale with age.
[Android Software/Hacking General [Developers Only]] defiant07:
I always noticed it not going back to ro after updating V6 because I edit 99SC. So I tested the rw/ro thing with detailing and re-generator. With detailing I actually got ro both times I checked and with re-generator it get rw both checks and, should it matter, it stays stuck rw after exiting through option 34 (Root Explorer fails to remount it ro and if I try to remount ro in terminal I get "mount: Device or resource busy"...I have to reboot to regain control of remounting). A minor bug confined to re-generator?

Thanks for all the info on the OT question...see reply to this in other thread.
[Android Software/Hacking General [Developers Only]] zeppelinrox:
Well there was a bug I found out about recently where regenerator would remount ro in the middle of resupercharging... so after scripts got regenerated, the remainder of the resupercharging processs gets fubarred :o
[Android Software/Hacking General [Developers Only]] Spastic909:
Hi there,

I've been trying to run supercharger on my s4 and at the very end where it says will take awhile to boot. Is there an estimated time perhaps? Ive waited up to 5 minutes and device still wont boot?

Any help would be effin sweet.

I have also made sure to thank every download link and each dev responsible for the awesome feature.

Cheers.
[Android Software/Hacking General [Developers Only]] DiamondBond:
On my play it takes 2mins, ;)
[Android Software/Hacking General [Developers Only]] zeppelinrox:
don't you see the animation?

But you must be talking about ultimatic and not V6.
[Android Software/Hacking General [Developers Only]] Spastic909:
Not sure tbh. I run the v6 script from smanager and at the bottom when it wants to install the jelly icecream mod. It finds the patched services jar and I choose to install. After thats all said and done I choose the clean and reboot once reboots it stays on boot screen for over 5 minutes. I realize that it takes a while according to the message at the end of the script. But not sure how long.

Am I making sense?
[Android Software/Hacking General [Developers Only]] zeppelinrox:
User error makes all kinds of sense.

So didn't the script say that its an old services jar or was it a fresh one.

I got 5 bucks that says you forced it to install some old ass ICS services.jar while you're probably on a JB ROM.
[Android Software/Hacking General [Developers Only]] Spastic909:
it was the services jar that was extracted when using the Ultimatic_Jar_Patcher_Tools_RC6_ALL_DEX_Windows
[Android Software/Hacking General [Developers Only]] mixednuts:
The script may not have applied permissions correctly. You can try using the Aroma file manager with CWM, linked in my signature, and make sure the permissions for the /system/framework/services.jar is correct. Compare the permissions of other files within that same directory and make they're the same for the services.jar
[Android Software/Hacking General [Developers Only]] Obartuckc:
I'm on AT&T S4 (MDOB ROM currently) and what you're talking about--super flush--will take several minutes to go through the boot up, but only the first time. Afterwards, boot time will go back to normal.

Sent from my AT&T Samsung Galaxy S4 Badass
[Android Software/Hacking General [Developers Only]] zeppelinrox:
Funny how a jab can jar peoples memory.

1 use latest ultimatic.

2 watch for errors. Example... If java or baksmali or smali take a crap, that's an error.

3 if it don't work, it tells you what to do. Hint: It does NOT say to post that you don't know what you're doing.

Otherwise, I just chalk it up to sleeping user error.
[Android Software/Hacking General [Developers Only]] 25vikasp:
V6 script disable my pimp my Rom script.is that mean tweaks which are applied through this app are gone

Sent from my GT-S7562
[Android Software/Hacking General [Developers Only]] zeppelinrox:
Yes the only way is to unsupercharge, repimp, and forget this thread exists.

I've had enough of your mind numbing ignorant lazy ass questions.

Take English and reading lessons.

And welcome to my ignore list too.
[Android Software/Hacking General [Developers Only]] 25vikasp:
Hehe lol reply.I realised That not all tweaks are gone. Thanks

Sent from my GT-S7562 rooted modded ics:P;):(;););)v6supercharged
[Android Software/Hacking General [Developers Only]] hisname:
just flashed a new ROM :)
[Android Software/Hacking General [Developers Only]] AndrasLOHF:
I updated the ROM on my phone and have been fighting trying to resupercharge for a while this morning. Was wondering what was going on. Went back to the previous version of Black Dog and was able to get it working.
[Android Software/Hacking General [Developers Only]] zeppelinrox:
Damn. I'm so retarded.

The timestamps for the files in /dev are the last boot time... arrrgh... I rebooted and all the times changed... lol

But I think I found it.

stat /system/bin/getprop

That should show everybody, on any Android, the date of when they flashed their current ROM

heh it's tough to test every possible scenario - alot of testing is done in my head :p
[Android Software/Hacking General [Developers Only]] bmg1001:
I love this soooo much! I was having a bunch of lag on 4.2.2 on my Galaxy Nexus, and this helped with my RAM Management, so since that worked, I thought, what the heck, and completed the supercharge to 100%. THANKS!

EDIT: Only having one problem, don't know what it is. The navbar doesn't adjust to anything, it works, but the glow doesn't appear nor does it hide on lockscreen. What could it be?
[Android Software/Hacking General [Developers Only]] Joakim112:
Hey Zep. Just a question, is your mod compatible with crossbreeder?sorry for the newbie question.
[Android Software/Hacking General [Developers Only]] bmg1001:
I'm using it with crossbreeder and it seems to be working fine.
[Android Software/Hacking General [Developers Only]] zeppelinrox:
A bug?

lol I dunno. Never heard of that one before.

Did it happen before the patch at all?

Latest versions disables boot scripts that it don't like anyway
[Android Software/Hacking General [Developers Only]] Joakim112:
Thanks. So you mean your older versions will work on CB?:)
[Android Software/Hacking General [Developers Only]] bmg1001:
Nope, this didn't happen before. What I did was do the usual configuring through the script (the one when you first start it), then I went on my pc and did the services.jar patch, and I'm pretty sure that's when it started happening, but I could be wrong. It's weird though because I don't think I ever touched my SystemUI.apk (where the navbar is)

It's not too much of a bother though, it's worth the performance increase of the script :)

If it helps, my rom is BeanStalk, which is based on CM10.1

Wait, dude, after my 4th reboot (I was testing out some old spare batteries I had) it stopped and started working normally again. I guess it just needed to settle in or something. I guess it was probably something I did unknowingly. Thanks for the great Supercharger, bro!
[Android Software/Hacking General [Developers Only]] zeppelinrox:
No I mean roll it up and smoke it.

And stop asking lazy questions everywhere.

Read first, shut up, read more.

Ya reboots are magic :)
[Android Software/Hacking General [Developers Only]] Joakim112:
Hey Zep. My phone flies like a jet right now and make it more smoother than before because of your updated V6 Supercharger. Your the best man. Sorry for the laziness.:victory: Looking forward to donate some stuff soon.
[Android Software/Hacking General [Developers Only]] hisname:
noob alert!

u0_a205@android:/ $ su

root@android:/ # stat /system/bin/getprop

File: '/system/bin/getprop' -> 'toolbox'

Size: 7 Blocks: 0 IO Block: 4096 symbolic link

Device: b310h/45840d Inode: 136729 Links: 1

Access: (0777/lrwxrwxrwx) Uid: ( 0/ UNKNOWN) Gid: ( 0/ UNKNOWN)

Access: 2013-07-19 08:10:18.000000000

Modify: 2013-07-19 08:10:18.000000000

Change: 2013-07-19 08:10:18.000000000

root@android:/ #

doesn't look like the time I flashed my rom. but the date is right
[Android Software/Hacking General [Developers Only]] UpInTheAir:
Maybe UTC time? Maybe need to adjust for your time zone?
[Android Software/Hacking General [Developers Only]] hisname:
I am on GMT +8
[Android Software/Hacking General [Developers Only]] zeppelinrox:
Yes it does.

Look at your last attachment.

busybox date output was Fri Jul 19 08:28:27 UTC 2013

Files in /dev are same date but 8:22. (boot time)

So you waited 6 minutes after boot to run the busybox date command.

getprops time (time of flashing the ROM) is 12 minutes earlier.

So any difference in time is due to your slacking off! ;)
[Android Software/Hacking General [Developers Only]] hisname:
:eek::eek: come on i need to restore my backups.also i need time to reinstall terminal emulator
[Android Software/Hacking General [Developers Only]] zeppelinrox:
Ya ya... You were on the toilet... shows up in the ”log"!

lol
[Android Software/Hacking General [Developers Only]] bmg1001:
Aww poop :(

One more reboot, and the issue came back again. I restored the old services.jar and it worked normally so it has to be something with the patched services.jar making it not work. I'll try another rom.
[Android Software/Hacking General [Developers Only]] zeppelinrox:
What's the navbar process name?

If you just kill it it should restart and run normally.

If its called blah.navbar.blah.blah you can do:

pkill -9 navbar

You just need to use a unique segment of the process name.

=======

So been working on a nice update and lookin at different things.

If you wanna play along, do:

for i in /sys/kernel/mm/ksm/*; do echo ""; echo -n "$i - "; cat $i; done; echo ""
[Android Software/Hacking General [Developers Only]] bmg1001:
I'm not quite sure. The navbar is inside the SystemUI.apk which is the same place where the Status Bar is. I'll poke around to see. I wonder if other on 4.2 are experiencing this.

Edit: Yeah, figured it out. Seems to be the same process as the Status Bar which is com. android.systemui

I will try later your suggestion later. :)
[Android Software/Hacking General [Developers Only]] zeppelinrox:
In that case just do:

pkill -9 systemui

it will restart on its own in a couple of seconds.
[Android Software/Hacking General [Developers Only]] hisname:
OT

wow zep, I just wrote a windows batch script myself. can't believe how much work is to be done just for one option. man.. one single option. it took me like 20 mins to figure out one options. I have now like 11 options, so you could figure out how long I took....ok, here is the question, how did you make user configurable options? like if I type "no", it goes to somewhere else, typing yes goes to some other options?
[Android Software/Hacking General [Developers Only]] defiant07:
if/case/switch statement? maybe THIS would be of some interest.

Here's a portion of ultimatic that may help you:

if defined myfiles (set myfiles=%myfiles%\)
set LOG_IT="%myfiles%tee" -a %LOG_FILE%
set adb="%myfiles%adb"
mkdir backup 2>/nul
mkdir supercharged 2>/nul
mkdir patch_this 2>/nul
rem =============================================================================================
rem Code to position CMD Window stolen from http://www.dostips.com/forum/viewtopic.php?f=3&t=4285
if "%~1" == "RestartedByVBS" goto :ultimatic
rem ===================================
rem Create the VBScript (named pos.vbs)
rem ===================================
(for /f "tokens=1*" %%a in ('%systemroot%\system32\findstr.exe "^VBS:" ^< "%~f0"') do (
echo(%%b
)) > "%~dp0pos.vbs"
rem ================
rem Run the VBScript
rem ================
rem VBScript runs this batch file (%~f0), at 400 pixels in (X_Coordinate), and at 0, the very top (Y_Coordinate).
%systemroot%\system32\cscript.exe //nologo "%~dp0pos.vbs" "%~f0" 400 0
exit /b