Related
I want to remove all the ringtones/alarms/notification sounds from my phone and then add the nexus sounds. Because I have doubles and triples of some ringtones. And I can't seem to get it to work. =/ Any insight?
Bustacoal said:
I want to remove all the ringtones/alarms/notification sounds from my phone and then add the nexus sounds. Because I have doubles and triples of some ringtones. And I can't seem to get it to work. =/ Any insight?
Click to expand...
Click to collapse
To remove files from the system, first mount /system as rw
Code:
su
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
To remove ringtone.ogg, you would enter
Code:
rm /system/media/audio/ringtones/ringtone.ogg
To remove notification.ogg,
Code:
rm /system/media/audio/notifications/notification.ogg
To remove alarm.ogg
Code:
rm /system/media/audio/alarms/alarm.ogg
To remove all media from a folder, say for example ringtones, you could enter
Code:
rm /system/media/audio/ringtones/*
Now, to copy a the folder /ringtones from the sdcard to your system, you would first mount /system as rw (as in the first step) then enter
Code:
cp -r /sdcard/ringtones /system/media/audio
When done, be sure to reboot.
Hey guys,
Ran into this today as I was browsing through the Vibrant dump and thought I would share it
What's needed:
A T-Mobile Vibrant
SU access(root)
busybox
It is possible that this might work for other Galaxy S phones, but as of yet I am unaware of whether or not they all have a shutdown animation.
Basically, this is a quick HOW-TO on removing or changing the quick little animation that plays when you turn off your phone. I'm pretty sure most people find it annoying and would like to turn it off, while others may want to do something interesting with it so I'll break it up into 2 tutorials(though they are fairly similar).
NOTE: This only works for the shutdown sequence. The boot sequence is stored in proprietary files called .qmg and doesn't apply to this simple hack.
Quick Structure Overview: (Just jibber jabber...read if you want)
Alright, so basically the animation is simply a bunch of PNG's that represent frames in the movie/animation. They are found in the folder '/system/media/video/shutdown' and are named under a framed convention "shutdown_x.png" where 'x' represents the frame number in the animation. There are 14 frames in the initial batch, and from what I've tested(which isn't a ton) that's the max frames, but you are more than welcome to try; it won't hurt anything if you do.
Also, based off my tests, the system will do any subset range as long as it starts at 1(so like 1-5 or 1-12 instead of 1-14). It also may be important to note that I have not tried any other files besides .png. It may be a good experiment to try other files. Post your results here; I'm sure someone will find them useful.
FOR BOTH:
If you want to back up the animation(terminal or adb shell):
Code:
//Name the directory whatever you want...this is just an example
$ mkdir /sdcard/animationbackup
$ busybox cp /system/media/video/shutdown /sdcard/animationbackup
REMOVE:
Simply remove the shutdown folder that holds all the frames.
Open terminal(or adb shell):
Code:
$ su
$ mount -o rw,remount -t rfs /dev/block/stl9 /system
$ rm -R /system/media/video/shutdown
$ mount -o ro,remount -t rfs /dev/block/stl9 /system
You should now be able to shut off your phone and enjoy the nice shutdown progress spindle instead of the animation.
CHANGE:
Load up your list of PNG's that you want for your animation and throw them in a folder called "shutdown" (no quotes). Be sure they are named in this format:
Code:
shutdown_x.png
//where x is the frame of this image
Throw it onto your 15GB internal memory(Not the 2GB sdcard but the big one that the system references as /sdcard)
Then run this command(terminal or adb shell):
Code:
$ su
$ mount -o rw,remount -t rfs /dev/block/stl9 /system
$ rm -R /system/media/video/shutdown
$ busybox cp /sdcard/shutdown /system/media/video/
$ mount -o ro,remount -t rfs /dev/block/stl9 /system
Lastly, there is some programs that will take a video file and convert it into frames(decompile them, in other words). I found Blaze Media Pro, yesterday and worked fine for this if you are interested.
UPDATE:
Batistian has figured out how to remove the 14 frame limit that seemed to be a requirement for the shutdown sequence. It requires a config file inside the shutdown folder. Attached I have the i9000's shutdown folder with the config file inside it. Also attached is the config file that you can just throw into your shutdown folder if you want it to progress more frames.
Also, bubonik has posted the directory locations of the audio sounds. You should be able to change these if you want, if you hate the T-Mobile branded sounds.
bubonik said:
Startup sound: /system/etc/PowerOn.wav
Shutdown sound: /system/media/audio/ui/Shutdown_128.ogg
Click to expand...
Click to collapse
Last attachment is the shutdown and power on sounds from the i9000. You can use these to replace those sounds using similar tactics that was mentioned in the tutorial.
UPDATE 2:
Replace your Bootup with the i9000 boot up
1) Download the attached Bootup.zip and unzip it. Contained is the bootsamsung.qmg.
2) Copy to your SD Card(the one that shows up as 15 gb)
3) Run this command in adb shell, terminal, or use Root Explorer:
Code:
$ su
$ mount -o rw,remount -t rfs /dev/block/stl9 /system
$ rm -R /system/media/bootsamsung.qmg
$ busybox cp /sdcard/bootsamsung.qmg /system/media/
$ mount -o ro,remount -t rfs /dev/block/stl9 /system
This should replace your boot up sequence
Thanks to Batistian, bubonik, jroid, and everyone else who worked on advancing the progress of this tutorial. I know a lot of you were digging through both the Vibrant dump and the i9000 dump, all for good reason
Lastly, I need to point out that I'm not responsible for any destructo-proceedings that may develop after following this tutorial. Know what you are getting into before doing anything that involves your system files.
nice stuff thanks for the post.
The startup/shutdown sounds are so annoying, this is a great start.
I was already looking into this yesterday, u beat me to it What I'm trying to do is get the galaxy S 19000 shutdown animation on the vibrant. I seen it in a vid someone posted about odin3, where I noticed by quick glance that the shutdown animation was similar to the galaxy S boot animation (with the cool blue chips rotating to form GalaxyS) I got a hold of a 19000 dump so i'll be looking into it
Tydiz said:
Code:
$ su
$ mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
$ rm -R /system/media/video/shutdown
$ mount -o ro,remount -t yaffs2 /dev/block/mtdblock3 /system
Code:
$ su
$ mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
$ rm -R /system/media/video/shutdown
$ busybox cp /sdcard/shutdown /system/media/video/
$ mount -o ro,remount -t yaffs2 /dev/block/mtdblock3 /system
Click to expand...
Click to collapse
Shouldn't that be:
mount -o rw,remount -t rfs /dev/block/stl9 /system
to mount rw
and
mount -o ro,remount -t rfs /dev/block/stl9 /system
to mount ro
??
Maybe I am missing something
thanks! worked like a charm, i can't wait to change my boot animation to android peeing on apple
What you guys don't like all that pink nonsense floating around?
Droid gets the cool eye and we get the love, hugs, kiss's, or whatever the heck it says.
t1n0m3n said:
Shouldn't that be:
mount -o rw,remount -t rfs /dev/block/stl9 /system
to mount rw
and
mount -o ro,remount -t rfs /dev/block/stl9 /system
to mount ro
??
Maybe I am missing something
Click to expand...
Click to collapse
They both work and seem to do the same thing. This is the command I've always used to grant the rw permissions in the system partition and its always worked fine. If I were to guess(and it probably is wrong), the yaffs(yet another flash file system) points the the rfs as a generalized pointer(in case something decides not to use rfs???). Anyway, both work on the vibrant from what I've tested
Zyxwvu44 said:
thanks! worked like a charm, i can't wait to change my boot animation to android peeing on apple
Click to expand...
Click to collapse
If you actually do this, let us know! I totally want that on my phone!
Sent from my SGH-T959 using XDA App
gravis86 said:
If you actually do this, let us know! I totally want that on my phone!
Sent from my SGH-T959 using XDA App
Click to expand...
Click to collapse
i had it on my droid. when i get home i can post the image files, but i don't know how we would load it on to the vibrant. all i had to do was update.zip for the droid, we may have to wait for a recovery to be working
is there a similar process for startup?
basataom said:
is there a similar process for startup?
Click to expand...
Click to collapse
boot process handles its animation a lil differently. There are 2 animations (tmo & galaxy S) that reside in /system/media/ that are called by 2 scripts in /system/bin precisely bootanimation and bootanimation2nd. shutdown is alot easier to replace and mod because it's handled by a dedicated shutdown app that processes the .png's as long as they're in order in sequence of shutdown_.png In order to mod bootanimation, we need a tool that can read .qmg files. I'm pretty sure inside the .qmg's files are png's also as aosp's bootanimation.zip for eclair contain .png's
Ok so a little on my progress:
I'm not able to delete the whole /shutdown dir and copy it over from the sdcard it gives me this error cp: 'omitting /sdcard/shutdown' so instead I did:
mkdir /system/media/video/shutdown
cp /sdcard/shutdown/* /system/media/video/shutdown
and it copies, however, it gets all mixed up and out of order. The result is the shutdown animation appearing but not running, it gets stuck obviously because the png's are out of order. Any idea as to how to transfer the contents into /shutdown without the system screwing up the order?? There's 60 png's for this animation btw
here is the droid peeing on apple boot animation for the droid. the desc file tells it the resolution, how many times to repeat, the lag in between switching sections. i dont remember the specifics of that file, but im sure its different for the vibrant anyway,
well, these pictures could be used at least
kizer said:
What you guys don't like all that pink nonsense floating around?
Droid gets the cool eye and we get the love, hugs, kiss's, or whatever the heck it says.
Click to expand...
Click to collapse
Its cause Tmo loves us! They have to give us the hugs and kisses somehow
Zyxwvu44 said:
here is the droid peeing on apple boot animation for the droid. the desc file tells it the resolution, how many times to repeat, the lag in between switching sections. i dont remember the specifics of that file, but im sure its different for the vibrant anyway,
well, these pictures could be used at least
Click to expand...
Click to collapse
I haven't tested it, but I formated your files so you should be able to transfer them and give it a go
jroid said:
Ok so a little on my progress:
I'm not able to delete the whole /shutdown dir and copy it over from the sdcard it gives me this error cp: 'omitting /sdcard/shutdown' so instead I did:
mkdir /system/media/video/shutdown
cp /sdcard/shutdown/* /system/media/video/shutdown
and it copies, however, it gets all mixed up and out of order. The result is the shutdown animation appearing but not running, it gets stuck obviously because the png's are out of order. Any idea as to how to transfer the contents into /shutdown without the system screwing up the order?? There's 60 png's for this animation btw
Click to expand...
Click to collapse
Looking into this as well. I have the files copied over...I'll play around with it when I get a chance and update when I find something new about it
Tydiz said:
Looking into this as well. I have the files copied over...I'll play around with it when I get a chance and update when I find something new about it
Click to expand...
Click to collapse
you have the galaxy S shutdown files? I can upload if you need them. I also have the files copied over, however, like I mentioned earlier the order is all screwed up. When I shutdown, it shows the galaxy S logo and about to start the animation but stops and the tmobile audio plays like usual then shuts down. The audio for the shutdown anim. is in /system/media/audio/ui
You can also delete the entire /video folder.
Startup sound: /system/etc/PowerOn.wav
Shutdown sound: /system/media/audio/ui/Shutdown_128.ogg
I remember there was a time that the remount command was shorter for some ROM's on the g1.
Is
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
the only option for remounting system as rw?
Thanks for this. I used root explorer to make my changes. Now to find a better shutdown audio file.
First off I take no credit for any of these instructions!! I did not make them and they were found at another area of the forum, I just thought since I used them to deodex my OLYEM_U4_2.2.3 that they may be of use to someone.
P.S. For step 5 there was no guava.odex, so if nothing show's up don't worry about; and I also changed the mount codes for step 10, these were out of my experience and just made things quicker.
You must be rooted!
Get xUltimate here.
Process:
1. Unzip xUltimate v2.2, and launch "Main.exe"
2. If everything goes well xUlt should recognize the phone and make a connection. You now should see a list of options.
3. Run option 1. After option 1 is done, run option 2.
4. Now these well take a while. Run option 3.
5. IMPORTANT: After you have run option 3, you MUST navigate to the xUltimate folder and find "origi_frame" folder, and delete "guava.odex". It's a bad file, and interferes with deodexing process.
6. Now run option 4, and wait.
7. Exit xUltimate, and put the phone in USB mass storage.
8. Go back into the xUltimate folder and copy "done_frame", and "done_app", and move them to the root of the sdcard.
9. Put the phone in PC mode
10. Open a command prompt, and do the following:
Code:
adb shell
su
stop
mount -o rw,remount /system/ /system/
cp /sdcard/done_app/* /system/app/
cp /sdcard/done_frame/* /system/framework/
rm /system/app/*.odex
rm /system/framework/*.odex
mount -o ro,remount /system/ /system/
reboot
Credits:
Rainabba and Mike919: For initially working with me to get a white clock, and later deodex.
toxman: For testing, and being a huge risk taker.
teenfaces: For letting me use his services.jar
And especially Xeudoxus: For letting me a guinea pig, for xUltimate, and answering my questions. And also for the making the xUltimate tool. It defiantly makes thing easier.
I get a virus warning Trojan when I downloaded the file, anyone else get this. I'm using Norton Antivirus.
Update:
The developers notes this on the OP. Figured what the hell and went ahead and tried it out. But when i press 3 i get "java" is not recognized and an internal or external command operable or batch file. So in english this means? I need Java SDK installed?
Update2:
I installed Java. And now everything seems to be working.
No virus However I got the java error, just downloaded java and problem sorted and now I'm deodexed Thanks for posting the information, really useful!
hexxor93 said:
No virus However I got the java error, just downloaded java and problem sorted and now I'm deodexed Thanks for posting the information, really useful!
Click to expand...
Click to collapse
No problem. Glad it worked.
Got the Java error. I already had it installed so I uninstalled and reinstalled to no avail. Can you guys be more specific as to which you downloaded? I have win 7 64 bit so I did the bottom option here: http://www.oracle.com/technetwork/java/javase/downloads/jdk-6u26-download-400750.html
Did anyone choose differently? I'll try 32 bit as I wait for a response.
omni_angel7 said:
Got the Java error. I already had it installed so I uninstalled and reinstalled to no avail. Can you guys be more specific as to which you downloaded? I have win 7 64 bit so I did the bottom option here: http://www.oracle.com/technetwork/java/javase/downloads/jdk-6u26-download-400750.html
Did anyone choose differently? I'll try 32 bit as I wait for a response.
Click to expand...
Click to collapse
http://www.java.com/en/download/ That's all nothing special just normal java
hexxor93 said:
http://www.java.com/en/download/ That's all nothing special just normal java
Click to expand...
Click to collapse
What the... That worked >.< Thanks man
omni_angel7 said:
What the... That worked >.< Thanks man
Click to expand...
Click to collapse
xD Glad it did. Random huh lol
hexxor93 said:
xD Glad it did. Random huh lol
Click to expand...
Click to collapse
Has anyone deodexed 2.3.4 build 4.5.91 yet? Can you confirm if this works?
TIA.
EDIT - Just went ahead and did it and it works well. The process is well documented by the OP.
i just tried this, gettin error any ideas ?this is what i did...
Microsoft Windows [Version 6.1.7600]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\ADB>adb shell
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
# su
su
# stop
stop
# mount -o rw,remount /system/ /system/
mount -o rw,remount /system/ /system/
# cp /sdcard/done_app/* /system/app/
cp /sdcard/done_app/* /system/app/
# cp /sdcard/done_frame/* /system/framework/
cp /sdcard/done_frame/* /system/framework/
cp: /system/framework/services.jar: No such file or directory
cp: /system/framework/sqlite-jdbc.jar: No space left on device
cp: /system/framework/svc.jar: No space left on device
# rm /system/app/*.odex
rm /system/app/*.odex
# rm /system/framework/*.odex
rm /system/framework/*.odex
# mount -o ro,remount /system/ /system/
mount -o ro,remount /system/ /system/
# reboot
reboot
C:\ADB>
simplesid242002 said:
i just tried this, gettin error any ideas ?this is what i did...
Microsoft Windows [Version 6.1.7600]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\ADB>adb shell
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
# su
su
# stop
stop
# mount -o rw,remount /system/ /system/
mount -o rw,remount /system/ /system/
# cp /sdcard/done_app/* /system/app/
cp /sdcard/done_app/* /system/app/
# cp /sdcard/done_frame/* /system/framework/
cp /sdcard/done_frame/* /system/framework/
cp: /system/framework/services.jar: No such file or directory
cp: /system/framework/sqlite-jdbc.jar: No space left on device
cp: /system/framework/svc.jar: No space left on device
# rm /system/app/*.odex
rm /system/app/*.odex
# rm /system/framework/*.odex
rm /system/framework/*.odex
# mount -o ro,remount /system/ /system/
mount -o ro,remount /system/ /system/
# reboot
reboot
C:\ADB>
Click to expand...
Click to collapse
I ran into that as well... I treated it as if I ran out of space, so I reran the copy command: cp /sdcard/done_frame/* /system/framework/ . With the odex files gone it ran without issue.
But it looks like you copied and pasted the entire block. I did it line by line and only rebooted at the end (after my second attempt to copy those files).
Can it deodex official 2.3.4?
Sent from my MB860 using XDA App
Javi97100 said:
Can it deodex official 2.3.4?
Sent from my MB860 using XDA App
Click to expand...
Click to collapse
Yes it can.
how do I know if i am dedoexed after doing all the steps?
and i keep getting error when trying to flash blur music.apk
i am at the adb shell step. When i get to typing: mount -o rw,remount /system/ /system/ it gives me a permission denied. What am i doing wrong?
and1baller said:
i am at the adb shell step. When i get to typing: mount -o rw,remount /system/ /system/ it gives me a permission denied. What am i doing wrong?
Click to expand...
Click to collapse
are you rooted?
did you enter "su"?
does the prompt appear as "#"?
yes i am rooted and i did type SU. But i don't see a # sign. All i see is a $ sign.
and1baller said:
yes i am rooted and i did type SU. But i don't see a # sign. All i see is a $ sign.
Click to expand...
Click to collapse
Then you are not in as root. When you type "su" do you check the phone screen to see if it is asking for you to grant permissions?
i checked the screen when typing su but it doesn't ask me to give permission. I am in usb debugging and the usb connection is set as none.
For reference, these are my thoughts on the matter.
We have 3 ways to do this:
1. Get hold of SBL, change it and flash it
Currently impossible afaik.
2. Get an init.d bash script to reboot into recovery if key is pressed
Most likely possible taking these 2 assumptions into account:
a) Bash allows to detect a pressed key, something like this:
Code:
_key()
{
local kp
ESC=$'\e'
_KEY=
read -d '' -sn1 _KEY
case $_KEY in
"$ESC")
while read -d '' -sn1 -t1 kp
do
_KEY=$_KEY$kp
case $kp in
[a-zA-NP-Z~]) break;;
esac
done
;;
esac
printf -v "${1:-_KEY}" "%s" "$_KEY"
}
_key x
case $x in
$'\e[15~') reboot recovery ;;
esac
Replacing this key code for one of OB's.
But for this, we need assumption number 2:
b) Key codes mapping is the same for recoveries.
Now, while this is the method of the greatest chance to work, it is also fairly useless. Developers will often break the boot before the init.d scripts are ran. So, this code should be ran before. Hence, the third method.
3. Start a custom service in init.rc (@ ramdisk) that will detect pressed key
This would be the perfect solution as it can't be broken from kernel (zImage) or system changes. However, init.rc has its own programming language (android init language) and there's no way to run this kind of listener.
However, it is possible to run an external script located for example in /system/bin/. These can be both an executable compiled from c (higher chances of working) or a bash scripting like the aforementioned one (lower chances of working since android probably doesn't start a console on boot).
Code for this would be something like:
Code:
service exampleservice /system/bin/exampleservice
user exampleservice
group exampleservice
oneshot
So uh, am I missing anything?
Anyone has other ideas?
a lot of times i heared about pressing "G" and "Power" would boot into some kind of save mode... if thats true i guess its easyer to reprogramm that keycombo to do something else... so does that keycombo anything? i couldnt figure out^^
Sent from my LG-P970 using XDA App
Are others devices has the key combination code in SBL?
I wish I have enough knowledge about android system so i can help...
i04055 said:
Are others devices has the key combination code in SBL?
I wish I have enough knowledge about android system so i can help...
Click to expand...
Click to collapse
Yes there are devices heaving the key-combo in SBL if that answers your question. The "Samsung Galaxy S GT-I9000" e.g. has them there afaik. With that device it was possible flashing the SBL to add a "booting directly into recovery" key-combo...
So I don´t know why there should not be a solution to do the same to the OB but Noejn surely has good reason for telling its impossible.
But hey what about booting into recovery on every system startup and only boot into the system through the recovery? It´s a "quick & dirty" solution even if its possible but better than developing the way we do isn´t it? I´m not sure if its easier to change the startup that way than to add or modify a key-combo but maybe someone here does?
I'm sure (or hope..) someone can, but perhaps we should move this Thread to another part of the Forum so someone with the knowledge how to do this will read it.
d0n22 said:
But hey what about booting into recovery on every system startup and only boot into the system through the recovery? It´s a "quick & dirty" solution even if its possible but better than developing the way we do isn´t it? I´m not sure if its easier to change the startup that way than to add or modify a key-combo but maybe someone here does?
Click to expand...
Click to collapse
Yeah, i prefer that way if poosibble rather than nothing.
But if put it that way, when the phone get bootloop is it still posibbe to boot into recovery?
Sent from my LG-P970 using XDA App
This is how it's done on Xperia X8 phone.
The /system/bin/chargemon is usb-charge daemon that is being hijacked on boot (it's binary is replaced with this script)
Original chargemon is copied into "charger" to keep it's functionality.
Than "sleep 3" waits for any keypress, and checks the dump, if keys were pressed, it launches the recovery binary.
quite simple.
Code:
#!/system/bin/busybox sh
/system/bin/charger
cat /dev/input/event1 > /dev/keycheck&
sleep 3
kill -9 $!
if [ -s /dev/keycheck -o -f /data/local/tmp/xrecovery ]
then
rm -f /data/local/tmp/xrecovery
# remount rootfs rw
mount -o remount,rw rootfs /
# Umount MTDs
umount -l /dev/block/mtdblock1
umount -l /dev/block/mtdblock2
umount -l /dev/block/mtdblock3
# Mount recovery partition
cd /
rm -r /sbin
rm -f etc
tar -xf /system/bin/xrecovery.tar
# Umount /system
umount -l /dev/block/mtdblock0
# chroot
chroot / /init
fi
# remount rootfs rw
mount -o remount,rw rootfs /
chmod 0777 /dev -R
chown 0.2000 /dev/oncrpc -R
cd /
rm init*
rm logo.rle
rm default.prop
tar -xf /system/bin/ramdisk.tar
mkdir -p /minicm
cd /minicm
tar -xf /system/bin/ramdisk.tar
# Umount /system, data and cache
umount -l /dev/block/mtdblock0
umount /dev/block/mtdblock3
umount /dev/block/mtdblock1
rmdir /system /data /cache /mnt
racht said:
This is how it's done on Xperia X8 phone.
The /system/bin/chargemon is usb-charge daemon that is being hijacked on boot (it's binary is replaced with this script)
Original chargemon is copied into "charger" to keep it's functionality.
Than "sleep 3" waits for any keypress, and checks the dump, if keys were pressed, it launches the recovery binary.
quite simple.
Code:
#!/system/bin/busybox sh
/system/bin/charger
cat /dev/input/event1 > /dev/keycheck&
sleep 3
kill -9 $!
if [ -s /dev/keycheck -o -f /data/local/tmp/xrecovery ]
then
rm -f /data/local/tmp/xrecovery
# remount rootfs rw
mount -o remount,rw rootfs /
# Umount MTDs
umount -l /dev/block/mtdblock1
umount -l /dev/block/mtdblock2
umount -l /dev/block/mtdblock3
# Mount recovery partition
cd /
rm -r /sbin
rm -f etc
tar -xf /system/bin/xrecovery.tar
# Umount /system
umount -l /dev/block/mtdblock0
# chroot
chroot / /init
fi
# remount rootfs rw
mount -o remount,rw rootfs /
chmod 0777 /dev -R
chown 0.2000 /dev/oncrpc -R
cd /
rm init*
rm logo.rle
rm default.prop
tar -xf /system/bin/ramdisk.tar
mkdir -p /minicm
cd /minicm
tar -xf /system/bin/ramdisk.tar
# Umount /system, data and cache
umount -l /dev/block/mtdblock0
umount /dev/block/mtdblock3
umount /dev/block/mtdblock1
rmdir /system /data /cache /mnt
Click to expand...
Click to collapse
yeah ,from this we can see what is running before logo screen and we can mod that file
so.. is that mean we can boot to recovery mode same as x8?
racht said:
This is how it's done on Xperia X8 phone.
The /system/bin/chargemon is usb-charge daemon that is being hijacked on boot (it's binary is replaced with this script)
Original chargemon is copied into "charger" to keep it's functionality.
Than "sleep 3" waits for any keypress, and checks the dump, if keys were pressed, it launches the recovery binary.
quite simple.
Code:
#!/system/bin/busybox sh
/system/bin/charger
cat /dev/input/event1 > /dev/keycheck&
sleep 3
kill -9 $!
if [ -s /dev/keycheck -o -f /data/local/tmp/xrecovery ]
then
rm -f /data/local/tmp/xrecovery
# remount rootfs rw
mount -o remount,rw rootfs /
# Umount MTDs
umount -l /dev/block/mtdblock1
umount -l /dev/block/mtdblock2
umount -l /dev/block/mtdblock3
# Mount recovery partition
cd /
rm -r /sbin
rm -f etc
tar -xf /system/bin/xrecovery.tar
# Umount /system
umount -l /dev/block/mtdblock0
# chroot
chroot / /init
fi
# remount rootfs rw
mount -o remount,rw rootfs /
chmod 0777 /dev -R
chown 0.2000 /dev/oncrpc -R
cd /
rm init*
rm logo.rle
rm default.prop
tar -xf /system/bin/ramdisk.tar
mkdir -p /minicm
cd /minicm
tar -xf /system/bin/ramdisk.tar
# Umount /system, data and cache
umount -l /dev/block/mtdblock0
umount /dev/block/mtdblock3
umount /dev/block/mtdblock1
rmdir /system /data /cache /mnt
Click to expand...
Click to collapse
soundes quite promising... have you tried it?
Can this be usefull?
http://forum.xda-developers.com/showthread.php?t=991276
Noejn have you abandoned us ? Or are u planning to take a look at this ? Would be nice if u get OB up and running
recovery
Hi,
has there been any success with booting into recovery mode?
BR,
J
logitec said:
Hi,
has there been any success with booting into recovery mode?
BR,
J
Click to expand...
Click to collapse
No,I try to boot directly into recovery through boot.img,but I get a big "error" form the LG Security Team!
Hijacking a daemon would work if Optimus Black had those binaries. I took a quick glance at a backup and I didn't see chargemon in /system/bin.
Besides, a xRecovery is limited as it's dependent on system files so a /format can't be done which isn't really that "comfy", especially when changing fs.
But yeah, better than nothing. Still, the method you described is only possible in Xperia phones, as far as I know.
I still say injecting a service on the init.rc is the way to go.
However, I can't test this now.
racht said:
This is how it's done on Xperia X8 phone.
The /system/bin/chargemon is usb-charge daemon that is being hijacked on boot (it's binary is replaced with this script)
Original chargemon is copied into "charger" to keep it's functionality.
Than "sleep 3" waits for any keypress, and checks the dump, if keys were pressed, it launches the recovery binary.
quite simple.
Code:
#!/system/bin/busybox sh
/system/bin/charger
cat /dev/input/event1 > /dev/keycheck&
sleep 3
kill -9 $!
if [ -s /dev/keycheck -o -f /data/local/tmp/xrecovery ]
then
rm -f /data/local/tmp/xrecovery
# remount rootfs rw
mount -o remount,rw rootfs /
# Umount MTDs
umount -l /dev/block/mtdblock1
umount -l /dev/block/mtdblock2
umount -l /dev/block/mtdblock3
# Mount recovery partition
cd /
rm -r /sbin
rm -f etc
tar -xf /system/bin/xrecovery.tar
# Umount /system
umount -l /dev/block/mtdblock0
# chroot
chroot / /init
fi
# remount rootfs rw
mount -o remount,rw rootfs /
chmod 0777 /dev -R
chown 0.2000 /dev/oncrpc -R
cd /
rm init*
rm logo.rle
rm default.prop
tar -xf /system/bin/ramdisk.tar
mkdir -p /minicm
cd /minicm
tar -xf /system/bin/ramdisk.tar
# Umount /system, data and cache
umount -l /dev/block/mtdblock0
umount /dev/block/mtdblock3
umount /dev/block/mtdblock1
rmdir /system /data /cache /mnt
Click to expand...
Click to collapse
Good news, I'm getting close.
ok, thank you for everithing
Noejn said:
Good news, I'm getting close.
Click to expand...
Click to collapse
good news indeed^^ im working on it as well but im not feeling like getting close :-\ pls let me know what you did and how you did it as soon as its done... again thank you very much for your efforts!
Sent from my LG-P970 using XDA App
d0n22 said:
good news indeed^^ im working on it as well but im not feeling like getting close :-\ pls let me know what you did and how you did it as soon as its done... again thank you very much for your efforts!
Sent from my LG-P970 using XDA App
Click to expand...
Click to collapse
Well, I've succeed injecting the script on boot.
However, I'm getting some problems on the event0 > keycheck; I don't think at this time of boot /dev entries are up.
But I've already thought of a workaround and I'll test it tomorrow.
I´m thinking, if i compile kernel of ubuntu and install it in recovery partition, not possible then run ubuntu in native mode from sdcard with dualboot?
This is the new fork of cyanogenmod 13/Snapdragon Camera.
I pulled it from the Nexus 7 2013 build an made a flashable zip for the Nexus 6.
It has to run as a system app and is still under heavy development but it is pretty fast while starting and focusing.
So give it a try.
No magic, just a simple script, all credits go to the original developers from CM!
Code:
#!/sbin/sh
ZIP=$3
ui_print "mounting system ..."
mount /system
mount -o rw,remount /system
mount -o rw,remount /system /system
cd /tmp
unzip -o "$ZIP"
rm -rf /system/app/Snap/
mkdir /system/app/Snap/
cp Snap.apk /system/app/Snap/Snap.apk
chown 0.0 /system/app/Snap/ /system/app/Snap/Snap.apk
chmod 755 /system/app/Snap/
chmod 644 /system/app/Snap/Snap.apk
chcon u:object_r:system_file:s0 /system/app/Snap/Snap.apk
ui_print "... done"
umount /system
sync
exit 0
Do I need CyanogenMod to run this?
@OP: Did you try this before posting? It doesnt work on my Aosp rom. I tried out Snap on Neobuddy's unofficial CM build a few days back. Many iterations of Snap(as a .zip or .apk) for AOSP roms have surfaced and so far none of them work as intended. Not surprised that this did not either. If you're gonna post a flashable .zip at least make sure it works, not worried that anything will happen to my phone. if nothing else, it's annoying trying a harmless removal of a system app without leaving residual clutter. Cheers!
has this worked for anybody on aosp?
thanks, i like this cam
5k
where can i write the script tersebeut ..
please explain, and more details to avoid errors and impact on the bootloop,
sorry i'm a beginner
thx mastah