yashsingh1/xdaforums huggingface dataset:
[Nexus 7 (2013) Android Development] defiant07:
As you were informed the zip is NOT flashable. If there is sufficient interest (say a 100 downloads) I'll make it flashable/aroma.

Yes, it should be compatible...the fstrim utility is part of the rom (it should be in all nexus 4.3+ roms).

No, to my

limited

knowledge it should not be harmful (in fact it should increase lifespan - google "fstrim lifespan"). Did a quick google search but could not find anything definitive/reliable regarding frequency...what I did see seemed to suggest 'no' though.

If you are concerned about the frequency, you could not install the init.d script and just use the on-the-fly script, trimdrop, to trim on-demand. Should there be interest and if I have the motivation and time, I have been thinking about making this in to an installer script and/or aroma zip with cron-based options so it could be scheduled hourly, daily, or weekly.
[Nexus 7 (2013) Android Development] creeve4:
Scheduling options would be awesome!
[Nexus 7 (2013) Android Development] BUBA0071:
+1
[Nexus 7 (2013) Android Development] defiant07:
Seems there is a decent amount of interest (almost 100 downloads already :)...thanks peeps), as such I'll add options and make things more configurable.

Regarding scheduling, I was thinking of doing hourly, daily (with ability to choose time), and weekly (with ability to choose day and time) options. Would every other hour or some other setting be desirable?

Regarding installation, what would be the preferred method, an installer script (e.g. V6 SuperCharger) or AROMA? Flashable zips would be another option, but would have less options/be less configurable.

Gimme some feedback and I'll put something together in the next week or two depending on work and my motivation :p.
[Nexus 7 (2013) Android Development] KiaraTheDragon:
wasn't this a nexus 7 2012 issue and fixed in the new version 2013?
[Nexus 7 (2013) Android Development] creeve4:
My 2 cents:

I would choose a daily option for my device.

I prefer Aroma over a script, but if you cannot get the customization you want with Aroma, then by all means go with a script.

Thanks again for the script and willingness to make it even better!
[Nexus 7 (2013) Android Development] mdamaged:
Thanks for the scripts, I time my startup, and this improved startup time by about 3-4secs, among other noticible improvements, apparently the stock OS does not run fstrim enough, initial operations freed several gigs on the data partition, and hundreds of megs on the others...
[Nexus 7 (2013) Android Development] imfun:
+1
[Nexus 7 (2013) Android Development] jubei_mitsuyoshi:
Im going to turn this into a cron job, that will take care of scheduling, unless anyone else gets there first ( please lol )

Will give it a go in its present form, whats its resource footprint just sitting there waiting for screen off ?

Can we trigger the action from the screen off event ? or some other interupt type way ?

Great script by the way, your bash is damn site better than mine, jealous lol
[Nexus 7 (2013) Android Development] defiant07:
Yes, I think this is true to a degree...it was

more

of a problem on the 2012 and other nexus devices. See the links in the OP for the conditions that need to be met for fstrim to autorun...for some users (myself included) the conditions will seldom if ever be met. Also see [MENTION=5490227]mdamaged[/MENTION] post; I get similar results the first time fstrim is initiated by my script after each boot...subsequent runs normally only frees up memory on /data.

Okay will get to making an AROMA package...it will be my first, but it looks easy enough :fingers-crossed:...gimme a week or two to put it together and fully test.

Thanks for the feedback. I get similar results.

See the first post on this page and my response to [MENTION=3444353]creeve4[/MENTION] and [MENTION=4557611]imfun[/MENTION] in this post. I will make an AROMA package with cron options for fstrim and drop_caches=3.

However, should you feel ambitious and beat me to it, props to you...I will give you full credit in the OP and link your post as the d/l source so you should get the 'thanks' too.

Regarding triggering with screen on/off or some other event: It can probably be done, but I it's beyond my knowledge (screen on/off was actually the first trigger event I looked in to using, but despite fairly extensive searching I could not find how to detect it).

Regarding resource footprint: Read the OP (usage section) it explains where to find the log which contains this info and how to do it via terminal (should you not trust me :p)...also see OP (benefits section): in all my testing I have never seen it use more that .8 mb, but most of the time it is less than .2 mb.
[Nexus 7 (2013) Android Development] imfun:
Can't wait already, because after whole day or two, hard usage of my nexus 7 tablet, the tablet starts to get laggy. I can see this on web browsing, touch press delay time, and onyl rebooting seems to help... Hope after istaling this will solve the problems :)
[Nexus 7 (2013) Android Development] jubei_mitsuyoshi:
ohhh no dont want any credit lol lol, i have turned it into a cron job quite simply by adding it to the cron initilising script

###########
# IMPORTS #
###########
. /system/etc/init.d.cfg

#############
# FUNCTIONS #
#############

symlink_system_bin() {
# crond has "/bin/sh" hardcoded
if busybox [ ! -h /bin ]
then
mount -o remount,rw rootfs /
busybox ln -s /system/bin /bin
mount -o remount,ro rootfs /
fi
}

export_timezone() {
# set timezone (if you're not between -0500 and -0800 you get PST)
# todo - support other timezones
timezone=`date +%z`
if busybox [ $timezone = "-0800" ]; then
TZ=PST8PDT
elif busybox [ $timezone = "-0700" ]; then
TZ=MST7MDT
elif busybox [ $timezone = "-0600" ]; then
TZ=CST6CDT
elif busybox [ $timezone = "-0500" ]; then
TZ=EST5EDT
else
TZ=PST8PDT
fi
export TZ
}

set_crontab() {
# use /data/cron, call the crontab file "root"
if busybox [ -e /data/cron/root ]
then
mkdir -p /data/cron
cat > /data/cron/root << EOF
0 20 * * * sync; echo 3 > /proc/sys/vm/drop_caches
0 20 * * * sync; fstrim -v /system
0 20 * * * sync; fstrim -v /data
0 20 * * * sync; fstrim -v /cache

01 * * * * busybox run-parts /system/etc/cron/cron.hourly
02 4 * * * busybox run-parts /system/etc/cron/cron.daily
22 4 * * 0 busybox run-parts /system/etc/cron/cron.weekly
EOF
fi
busybox crond -c /data/cron
}

########
# MAIN #
########

if $enable_cron -a is_busybox_applet_available crond
then
symlink_system_bin
export_timezone
set_crontab
fi

adding the lines

0 20 * * * sync; echo 3 > /proc/sys/vm/drop_caches
0 20 * * * sync; fstrim -v /system
0 20 * * * sync; fstrim -v /data
0 20 * * * sync; fstrim -v /cache

should drop the caches and fstrim every 8 hours, oviously set to anything you want.

i also stuck it in boot at the end

/system/etc/init.d/92jubei

#!/system/bin/sh

if $file_system_speedups
then
busybox mount -o remount,noatime,barrier=0,nobh /system
busybox mount -o remount,noatime /data
busybox mount -o remount,noatime,barrier=0,nobh /cache
else
busybox mount -o remount,noatime,nobh /system
busybox mount -o remount,noatime /data
busybox mount -o remount,noatime,nobh /cache
fi

echo "$(date +"%r %Y.%m.%d"): Trimming, Dropping."
busybox sync
echo "/system:"
fstrim -v /system
echo "/data:"
fstrim -v /data
echo "/cache:"
fstrim -v /cache
echo "drop caches:"
busybox sysctl -w vm.drop_caches=3
exit 0

For an aroma script you will prob have to stick the file in /system/etc/cron/cron.hourly, daily, weekly and just give peeps that choice, will be most simple way. Ps not a fan of aroma lol
[Nexus 7 (2013) Android Development] mdamaged:
Ok, I should have spotted this issue right away, but did not, so here goes. It seems the use of while loop in the script in the OP causes any scripts with a lower priority in init.d to never get ran, if the script in the OP is the only one in your init.d this does not matter, nor should it matter if you have at boot script with a higher priority (they get ran before the OPs script).

I run the ElementalX kernel which depends on a init.d to initialize some parameters for the kernel, with this script in init.d they never get initialized, in my case this resulted in some things not 'taking' such as the battery life extender, which on my device, is set to stop charging at 4100mv, however, since the while loop kept the ElementalX init.d from running, it kept charging to ~4300mv, this is how I noticed (actually none of my settings wrt ElementalX were being initialized, but this symptom was most pronounced).

A simple fix would be to move up the priority of the ElementalX init.d script, but this would have to be done after each flash, and frankly since I run Tasker anyway, I saw no need for this, what I did was remove the OPs script from init.d and simply made a very simple task in Tasker to run /system/xbin/trimdrop when display goes off, it could just as easily be a time event.

Anyways, hope that helps someone who may come across this with other kernels, or other at-boot scripts which depend on being ran before the OPs script.

Again, thanks to the OP for his work. Also, I added another sync just before the drop caches, since the state of dirtyness could change after the fstrims.
[Galaxy S 4 Q&A, Help & Troubleshooting] niku_19jan:
Hi All,

I am trying to update my Samsung Galaxy S4 GT-I9500 via kies 3 to new firmware available. It downloaded the required files and then when the download gets completed, the green color android logo on phone comes up with a message "Downloading..Do not turn off the target".

The phone stays in that particular screen and after a while phone gets disconnected from kies3 and message prompt appear which says to "remove the battery and start the procedure again". I tried many times but still the same issue. After removing the battery and restarting the phone works fine as usual. I had also installed Samsung usb drivers but the same issue exists...

My PC OS : Windows 7

Phone : Android 4.3

Could anyone please help me as where i am going wrong? or do i need to install something on phone or PC.
[Galaxy S 4 Q&A, Help & Troubleshooting] Joku1981:
1. Uninstall Kies 3 and the drivers completely. Install only Kies 3 coz it install the drivers too.

2. Charge ur phone till 80% or more

3. Start to install ur software by Kies 3

4. Tell us how it worked and good luck :fingers-crossed:
[Galaxy S 4 Q&A, Help & Troubleshooting] niku_19jan:
Thnks Joku, i tried performing steps as mentioned by you, but the same issue still exists. :(

1: I did the un-installation of samsung drivers and Kies 3, installed Kies 3 again.

2: The firmware update did begin but after the download was complete, the phone again got disconnected,

"It says Device driver software was not successfully installed" then again Kies 3 asks to do the following below steps:

"PC failed to recognise the mobile phone". etc.....

I did the last update over OTA and it was successful, this time for Kitkat, after checking over OTA it says " The latest update had already been installed" but in Kies 3 its shows an update is available.

Please help me as where its getting wrong and what do i need to do inorder to get it updated. :)
[Galaxy S 4 Q&A, Help & Troubleshooting] Joku1981:
Make an screenshot of Kies 3 and we gona see what appears :)
[Galaxy S 4 Q&A, Help & Troubleshooting] niku_19jan:
Joku please find the screenshot.

intially the phone gets detected and the firmware upgrade process goes smoothly, after it reaches 100% the phone gets disconnected and the green color logo appears on phone and the following screen appears on the kies 3. I am also giving the screenshot of my device manager in PC. I have also tried with installing/without installing adb drivers but same issue exists... :(

Please help me...
[Galaxy S 4 Q&A, Help & Troubleshooting] Joku1981:
1. Uninstall old drivers (called Samsung USB driver for Mobile Phones)

2. Download this ONE

3. Dont conect ur phone to ur pc

4. Install the drivers of the 2nd step

5. Conect ur phone to ur pc

6. Open Kies 3 again :)
[Galaxy S 4 Q&A, Help & Troubleshooting] niku_19jan:
Hi Joku,

I did as per your instructions and this time all drivers and everything went smoothly but while downloading the firmware after 21%

it displays the below message and the phone gets disconnected and re-connects again.
[Galaxy S 4 Q&A, Help & Troubleshooting] niku_19jan:
Guys any suggestions as why phone is getting disconnected...i am unable to upgrade...
[Galaxy S 4 Q&A, Help & Troubleshooting] Joku1981:
2 options possible:

1. Problem with the USB cable.

2. Problem with the charging Port Flex Cable Ribbon. I let u HERE one video if u are enough brave for fix it :)
[Galaxy S 4 Q&A, Help & Troubleshooting] niku_19jan:
Thanks Joku...i did the factory reset and tried to update my phone. It worked like charm. Finally the android upgrade is complete. :)
[Galaxy S 4 Q&A, Help & Troubleshooting] Joku1981:
Cheaper and better for ya. Sometimes the solution is easier :D :highfive:
[Galaxy S 4 Q&A, Help & Troubleshooting] HaMaHe:
Hi Niku_19jan,

I am experiencing the same problem.

Did you only do a factory reset?

What does a factory reset whipe? Do you need to reinstall every app?
[Galaxy S 4 Q&A, Help & Troubleshooting] roxensea:
I had the same issue here. All I need is to change the screen lock to "swipe". Maybe because when the PC wanted to access my Galaxy S4, permission from phone granted. Because I was using the pattern lock screen, and I needed to drew it first so the Kies could connect my device. It's very simple, lucky I am.

Model Number: GT-I9500

PC: Windows 8.1 64 bit
[Android Q&A, Help & Troubleshooting] goldynaidu:
guys i have a question. its kinda noob question, but i need the answer

can i flash the gapps of kitkat to my ics os of my phone sg s duos,using cwm?

anything happens, do they work
[Android Q&A, Help & Troubleshooting] shubhojit89:
No buddy..

Each gapps have there own integration with that version of os..

So in short.. You cant.. Even if it flashes then many things will not work..

Hit thanks if i helped you..
[Android Q&A, Help & Troubleshooting] goldynaidu:
thanx for the information bro
[Android Q&A, Help & Troubleshooting] srisurya95:
dont think of it

no you cant......
[Galaxy Y GT-S5360 and Duos 6102 Q&A, Help & Troubl] grazixline:
Anyone,how to make CM 7 ultrabeam GB revolutionary v1.9 support portrait wallpaper?
[Galaxy Y GT-S5360 and Duos 6102 Q&A, Help & Troubl] luqman98:
If you're on Holo Launcher:

1. Menu>Launcher Settings

2. Then, choose Desktop settings.

3. Under scrolling settings, untick Wallpaper scrolling, then tick Potrait Wallpaper Mode.

Sent from my highly pimped Galaxy Pocket.

1. Love doesn't need any reason.

2. Wanna speed up 3G (not 4G LTE)?

Here it is:

http://xdaforums.com/showthread.php?t=2586876

3. My blog

4. Press the thanks button if I really helped/assisted you.
[Galaxy Y GT-S5360 and Duos 6102 Q&A, Help & Troubl] grazixline:
No sir, i'm on samsung home 30 launcher (╥_╥)
[Galaxy Y GT-S5360 and Duos 6102 Q&A, Help & Troubl] luqman98:
Use QuickPic to set wallpaper.

Sent from my highly pimped Galaxy Pocket.

1. Love doesn't need any reason.

2. Wanna speed up 3G (not 4G LTE)?

Here it is:

http://xdaforums.com/showthread.php?t=2586876

3. My blog

4. Press the thanks button if I really helped/assisted you.
[Dell Venue] wazerdub:
I'm not a coder and the last android ROM I cooked was some mod for my friends galaxs s4 I actually bought this tablet and am hopeing for either actual desktop Linux or touch Linux do any of you guys think we can get this to happen since android 4.4 is Linux based
[Upgrading, Modifying and Unlocking] fdp24:
Hi,

I made a mistake with flashing QTEK S200 with wrong file.

Bootloader was modified. Device can not start at all.

It can not even go to bootloader screen (red-green-blue).

As consequence, no USB connection can be established.

What is the solution? I guess utilities can not be used, because they assume connection to USB, but there is no connection.

Not big deal, because it was not working well anyways, but would be interesting to know a solution in this case. Many ppl. would be happy to know how to manage this situation, I guess.

later.
[Upgrading, Modifying and Unlocking] fdp24:
Not very good news, service center said they don't know how to fix it, but kept the device to make few things with it.

Clearly, bootloader was overwritten.

Will see. Somehow they manage to identify type of rom is installed from i-mate.

So, think before you make any flashing :)

re: another service said they will do whatever needed, up to replacing chip with flash. I am not ready to go that far yet. :)

feel like i am missing something :)
[Upgrading, Modifying and Unlocking] fdp24:
It appears to be a real problem with flash.

No connection to computer with USB.

With power supply connected blue-green-?? screen, but I cannot connect to PC of course.

With USB cable connected blue-green-?? screen does not come up.

I figured out that pins 4 and 5 are shorten when power supply is connected. I did this with USB connection to PC, but still not connected.

For sure, USB is not functioning on device.

Will get new device, but very interested on how to repair this one. I disassembled it completely. There is no way to replace the flash chip at home, you need specific equipment and chip, of course.

What I need is surcuit diagram for S200 or similar, particularly part of diagram related to flash, radio module is not needed. Is there any possibility to get it? If I have it, I think can reprogram chip.

Thanks.

Hm. It looks like extreemly difficult to get pins layout on motherboard.

JTAG is the only solution left to access chips direct. But we need to know where JTAG pins on motherboard.
[Upgrading, Modifying and Unlocking] fdp24:
Recovered S200.

Finally very good news!

Prophet S200 was succesfully recovered with help of Arc.

He managed to discover JTAG pins, afterwards re-flashed SPL and ROM.

REALLY GOOD JOB!

Want to say special THANKS to Arc!!!

Device go live again.

Until next experiment....

But procedure to recover is in place.

Regards,

fdp24
[Upgrading, Modifying and Unlocking] sugiorama:
i have a dead one too :(

Hi there,

I have a dead one too :( can you tell me how to fix it please?
[Upgrading, Modifying and Unlocking] Paolo Bernie:
dead, as in my ppc k-jam is dead

basically it hangup and i soft restarted, tried hard reset. it didnt help either. i tried restoring to factory default same thing it hangup. now it doesnt shows any signs of life :cry: :( . i lost my life, my buddy.
[Upgrading, Modifying and Unlocking] faxme:
My Orange SPV M2000 will not start anymore after update. I only see Serial (on top)............ V2.07 (underneath)

I tried to update my ORANGE SPV M2000 to Tmobile's newest rom by extracting the exe. file and using maUpdateut. It started well and all of a sudden gave error "country code................"
[Upgrading, Modifying and Unlocking] fdp24:
You will not be able to fix it yourself.

Equipment and phone required physically in order to connect jtag interface and re-flash DOC.

Sorry, but this is the only solution if your bootloader is damaged.

Of course, you can try to ship it to service center. If you are lucky they will change your device. This might more simple.

Good luck.
[Upgrading, Modifying and Unlocking] sugiorama:
I know how to open device and solder some wires to testpoints. Do you have any information where the pins are located and what software and what JTAG adapter you used? I really need to get my phone working again. It was quite expensive to purchase and to ship it to my country. Please don't destroy my hope.
[Upgrading, Modifying and Unlocking] bp_signori:
hello friends,

my cousin recently buy O2 XDa ( wallaby ) for cheap one, i check on device it seems cann't boot to windows but if i hard reset and came up red, green, blue and if i press ok it came up with test all thing i confuse all the test is OK, can you all tell me how to repair the phone and waht is the problem?

thank you
[Upgrading, Modifying and Unlocking] ohmlogic:
dead device hope on the horizon :)

note my device and troubles is on the xda2

hi - i have had exactly the same issue - i have managed to reload the rom i was trying to swop and here is what i did .... it took ages and lots of patience and it is not an exact work of science but if you try my method 2 or three times it actually comes back to life ... honest !!

down load an xda2i ( yes xda2i )rom extract it using winrar or zip on your pc place dead xda2 into cradle regardless of whats on screen run himupgradenoid - the rom will run and start to load onto your device it will fail once it has failed remove xda but do nt reset - take copy of original rom which was on the device prior to your failed upgrade and extract as above. replace xda into cradle might be detected or not dont worry - run the himupgradeut from your previous working rom and wait it takes ages to connect but eventually heypresto ... you will have a working device. i know cos i done it !!! - i have not resolved all my problems yet - i still want to load latest 02 rom but even after entering correct device data into nbfs using batch file method the device crashes saying incorrect counry id. - i accidently created my problems by accidently running the wrong upgrade rom and i guess it changed somthing on my device " country code" however when i use method above to get original rom inplace and working when i extract device data into windows folder on device i still see the wwe ( world wide english) so i am still in a pickle - :( can anyone help me .
[Upgrading, Modifying and Unlocking] ralphh:
hello

i'm working on the project of flashing the bootloader into a totally erased and dead phone. can you send us the test points from the prophet please? and if you know their location on a WIZARD. thank you..
[Upgrading, Modifying and Unlocking] Sin_Daemon:
Somebody here Please tell what soft to use with JTAG to recover da bootloader!!!!!!!!!!!!!
[Upgrading, Modifying and Unlocking] crusher:
get the JTAG pins for me, I will send you soft.

Wizard and Charmer pins are both needed.
[Upgrading, Modifying and Unlocking] rysmario:
hi, i've succesfully wrecked my Blueangel PH20B by flashing a modded wm6-universal-rom... i've got all the hw & sw to resurrect the phone but the jtag pins on the BA-PCB...

can someone give me a hint where i may find them? (i'm not wanting to bake the pcb as i know i'll wreck it comletley)

thanks in advance,

mario
[Upgrading, Modifying and Unlocking] serteck:
Same problem here

Hi,

I believe I'm having the same problem

Please help me

Thax a million
[Upgrading, Modifying and Unlocking] londere:
so can you help me i need to write the wizard(g4) bootloader or thell me how can i do this
[Upgrading, Modifying and Unlocking] ludatrick:
T-Mobile USA SDA II

Me also, i'm i need of re-writing boot-loader of T-Mobile USA SDA II
[Upgrading, Modifying and Unlocking] crusher:
well, ok I understand that you can get the Jflash_mm working with PXA systems, you can write the definition for yourself, as for the CPU.

but I have serious doubts that inspire me to suggest you will have tiny chance to actually program a DiskOnChip Millennium series (or familiar) chip used in many platforms (actually I believe most HTC devices).

after all this means that if you are not working for (or in affiliation or partnership with) SanDisk, you are not in position to program bootloader to (not limited to) UNIVERSAL, WIZARD, PROPHET, and CHARMER (and if I remember well, BLUEANGEL and HIMALAYA) devices over JTAG.
[Upgrading, Modifying and Unlocking] lmd0990:
any news............
[Upgrading, Modifying and Unlocking] lmd0990:
any 1 can tell us where is the location of tck , tsm , tdi , tdo on wizard's board

and taking apic of it
[Upgrading, Modifying and Unlocking] EyeSly69:
Hi, I have a T-Mobile MDA Vario and it's deat too. samebody can help me?

thaks
[Upgrading, Modifying and Unlocking] lmd0990:
Can u desolder CPU from the main board & take ahigh resolution pic of under it???