[Q] Script on boot and shutdown - Touch CDMA Android Development

Does anyone know if there are scripts that run at boot and shutdown, and where are they?

Related

[Q] How to delete install-recovery.sh in milestone?

I found the following warning in a Rooting guide for Milestone:
If you applied an OTA update before, there is a script run at every system boot that checks and re-flashes the recovery when its checksum doesn't match. In such case, you have to avoid booting to android after the vulnerable recovery flash. Boot directly to recovery when RSD Lite restarts the phone (hold camera button) and from there remove the /system/etc/install-recovery.sh file.
rm -f /system/etc/install-recovery.sh
Could someone provide me detailed information on how to access the recovery and delete the install-recovery.sh file? Also does this reflashing occur on all Milestone which has received any OTA update?
Over 30 views, and still not a single reply. Come on guys, I know you are better than that...
uptheironsrafi said:
I found the following warning in a Rooting guide for Milestone:
If you applied an OTA update before, there is a script run at every system boot that checks and re-flashes the recovery when its checksum doesn't match. In such case, you have to avoid booting to android after the vulnerable recovery flash. Boot directly to recovery when RSD Lite restarts the phone (hold camera button) and from there remove the /system/etc/install-recovery.sh file.
rm -f /system/etc/install-recovery.sh
Could someone provide me detailed information on how to access the recovery and delete the install-recovery.sh file? Also does this reflashing occur on all Milestone which has received any OTA update?
Click to expand...
Click to collapse
First copy AOR to the root of sdcard.
Flash the VR. When the phone reboots and before it shows the M logo, press and hold the "x" key for a few seconds till the M logo is seen, then release. It should show you the triangle with exclamation mark. Press up volume button + camera button. It will show you recovery menu. Choose second option " apply sdcard update ".
After AOR menu is shown, choose console and type the command.
Done.
i first update my Milestone to the official 2.2.1.
Then copied the AOR 3.3 to sd card.
Then flash VR. then directly start to the recovery and flash the AOR.
After a while AOR starts and i type rm -f /system/etc/install-recovery.sh in the console and then "exit"
But i have to flash the AOR every time, because the stock recovery starts when i press camera button while startin (bootloade 90.74)
In the froyo menu, select Install Open Recovery at boot
After you select that, it will load AOR automatically if you hold the camera button (or X for 90.78 bootloader)
If you wipe caches, then you lose that so you would just Install OR at boot again
I flashed vulnerable recovery, flashed AOR and rooted my phone, and deleted the install-recovery.sh using the console command. I also selected the Install open recovery at root from the Froyo menu. However, my phone returns to the previous recovery menu every time i enter the recovery, and I have to flash AOR all over again.
Is there anyway to prevent this?
I'm having the exact same problem. Still looking for a solution. When I used root explorer to try and find install-recovery.sh BEFORE i started the whole process of trying to install VR, i couldn't find it (I previously used SuperOneClick to root after doing the official 2.2.1 update from Telus/Motorola). I suspect the file has been renamed and moved with this new 2.2.1 update.
This'll fix it but good http://forum.xda-developers.com/showthread.php?t=796679&page=26
zeppelinrox said:
This'll fix it but good http://forum.xda-developers.com/showthread.php?t=796679&page=26
Click to expand...
Click to collapse
Like someone said in that thread, I love you right now!

recovery boot giving me modprobe chdir(2.6.32.9): no such file or directory

I get this error then a few more lines scroll on, then it shutsdown. This is with generic-sdimage... cwm 3.0.2.1. I can't boot into recovery either by holding down the "N" when powering up. I have to use Rom Manager. I have seen the thread on a cwm "fixer" but things change so fast and that post is pretty old. Any else seen this modprobe error?

[Q] Is it possible to boot straight to CM9 yet?

I know that you can change the moboot default option but I was curious if it was possible to skip the boot select screen completely and boot straight into Cyanogenmod? I have no reason to boot into WebOS and can boot into recovery via the power option inside Android. It just adds polish to just see the boot splash first when the device is switched on plus it saves a few seconds of waiting around.
Thanks!
I think you could set timeout to 0.
Unfortunately, that just turned off timeout all together.
Anyone have any other ideas?
You could try deleting moboot but I don't recommend it. Might work, might break things.
Sent from my SPH-L710 using Tapatalk 2
Please mind that if your ROM becomes unbootable and you can't boot straight to the recovery, it will be more problematic to fix.
However, I think it is possible. There's a possibility to set the next image to be booted by a text file on the boot partition. I don't remember the exact name and content, but this way android makes the moboot reboot straight to the recovery. Moboot reads the file, boots the desired image and deletes the file. So you would need to create such file for booting the android image and make that file somehow permanent. I don't think changing permissions would be enough, but you could recreate it every (re)boot by some script.
I was going to point out the same thing pojir said above me. Sure, you could boot into recovery from CM9 but if you cant boot into CM9 and are stuck in a boot loop or something, then what? Just set the timer to 1 second and have it boot to CM9 by default. It shouldn't be a big problem to wait 1 second before booting begins.

Weird frozen startup boot and sensorhub problems

I have the kernel log if anyone wants to take a look at it

Bootloop Replaced bootanimation.zip by a corrupted one

Hello
I replaced the bootanimation.zip file in system/media and my phone just loops the animation forever.
--things I tried--
-Wiping the cache partition
-Wiping data/factory reset
--Phone info--
-Model: Optimus Boston 4g
-It is rooted
-It hasn't any custom rom
--Bootloop description--
When I switch on the phone it shows the manufacter logo, then the animation starts playing and then at some random point it stops and the animation plays all again.
I've instaled this bootanimation: https://forum.xda-developers.com/go...pps/bootanimation-nexus-5-animations-t2789918 (the nougat one)
If I could acess the phone internal system I could change the bootanimation.zip to the default one easily, is that even possible?
All of your help would be appreciated.
Vanish.ret said:
Hello
I replaced the bootanimation.zip file in system/media and my phone just loops the animation forever.
--things I tried--
-Wiping the cache partition
-Wiping data/factory reset
--Phone info--
-Model: Optimus Boston 4g
-It is rooted
-It hasn't any custom rom
--Bootloop description--
When I switch on the phone it shows the manufacter logo, then the animation starts playing and then at some random point it stops and the animation plays all again.
I've instaled this bootanimation: https://forum.xda-developers.com/go...pps/bootanimation-nexus-5-animations-t2789918 (the nougat one)
If I could acess the phone internal system I could change the bootanimation.zip to the default one easily, is that even possible?
All of your help would be appreciated.
Click to expand...
Click to collapse
Try using adb replace your boot animation.
Or Flash your stock firmware
Sent from my SM-S903VL using Tapatalk

Categories

Resources