Can i change boot animation from my application? - Android Software Development

Anyone please help my question.
I try to write application to change boot animation in Android.
Is it possible or not?

Bootanimations (which override stock) are kept at /data/local/bootanimation.zip

ffff00 said:
Bootanimations (which override stock) are kept at /data/local/bootanimation.zip
Click to expand...
Click to collapse
Thank you,
Can i extract bootanimation.zip and add my image and zip it again in my android application?

ffff00 said:
Bootanimations (which override stock) are kept at /data/local/bootanimation.zip
Click to expand...
Click to collapse
This is device dependent.

toobaya said:
Thank you,
Can i extract bootanimation.zip and add my image and zip it again in my android application?
Click to expand...
Click to collapse
Not likely. This is typically on the system partition which is read-only in normal operating mode. Some (most?) devices can only get read/write access to the system partition when in recovery mode.

Gene Poole said:
Not likely. This is typically on the system partition which is read-only in normal operating mode. Some (most?) devices can only get read/write access to the system partition when in recovery mode.
Click to expand...
Click to collapse
Thank you.

Related

XOOM Honeycomb Boot Animation [PORT]

Hey guys.. if you like the new boot animation from Motorola XOOM, i've sort of ported it to Milestone/DROID
in fact i just modded the desc.txt resolution settings.. but it seem working pretty well
so, here you go
if you don't know how to deal with bootanimations, feel free to ask
EDIT: use sileshn's version.. this is actually portrait mode animation, not fullscreen
do i just flash this in clockwork mod recovery?
i tried, i have cm7
and it didnt take (cm7 boot screen still showing)
Landscape mode
The same bootanimation in landscape mode.
much better if you add preview here
tylerwatt12 said:
do i just flash this in clockwork mod recovery?
i tried, i have cm7
and it didnt take (cm7 boot screen still showing)
Click to expand...
Click to collapse
Just use rootexplorer to replace your existing bootanimation.zip. It should either be in /system/media or /data/local. If there is no bootanimation.zip in either directories, just place the downloaded file to /data/local.
edit : Just checked. In CM7, the bootanimation file is in /system/media.
tegezan said:
much better if you add preview here
Click to expand...
Click to collapse
http://www.youtube.com/watch?v=p8stGDoW-ZY
Better option, download the attached zip file, inside there is a mp4 file, make in run in your media player with automatic repeat.
Edit: looks much better on phone than the preview.
well... landscape animation look better for me....
Landscape mode
Aarght.. sorry guys, i thougt it'd be already in landscape. i actually tried playing it in terminal only and that somehow happened to be in landscape..probably 'cause i had my hw keyboard open
so, feel free to use sileshn's version
Hello.
I can't replace the files in /system/media...
To do this i need adb)
Sent from my Milestone using XDA App
hi... what tools that i need to make or edit bootanimation.zip...?
coz i realize there one picture in landscape animation hv wrong rotation..?
thx..
tegezan said:
hi... what tools that i need to make or edit bootanimation.zip...?
coz i realize there one picture in landscape animation hv wrong rotation..?
thx..
Click to expand...
Click to collapse
unzip the contents. The file is the part0 directory. Correct the image using any image editor and rezip it ( including desc.txt ), dont use any compression ( very important ).
marcelotorres said:
Hello.
I can't replace the files in /system/media...
To do this i need adb)
Sent from my Milestone using XDA App
Click to expand...
Click to collapse
you have to remount the /system partition as read/write in order to be able to rewrite the old one..
you can do it in Terminal Emulator..this will to the trick:
Code:
mount -o remount,rw -t yaffs2 /dev/block/mtdblock6 /system
nice boot animations
can have it in Live Wallpaper
I really like that honeycomb animation.
Very cool.
The only issue I would have is that it would be hard to tell if you are getting a boot loop or if it's just taking a long time to boot.
I attached one that I made which includes an "intro" to the honeycomb animation - the milestone bios/boot animation that I'm sure most of you have seen.
Edit: See post 18 below for an updated version.
Astrowe said:
you have to remount the /system partition as read/write in order to be able to rewrite the old one..
you can do it in Terminal Emulator..this will to the trick:
Code:
mount -o remount,rw -t yaffs2 /dev/block/mtdblock6 /system
Click to expand...
Click to collapse
If his method doesn't work, try this..
I've done a few boot animations this way.. put the bootanimation.zip on the root of your SD card (make sure it's named bootanimation.zip if you're using windows, just right click the file and "Rename". don't put .zip at the end, Windows does that for you. Not sure about Macs..), and go into Terminal Emulator (you can download one from the Market for free) and type the following, hitting enter after each line:
su
cp /sdcard/bootanimation.zip /data/local/
reboot
note that when you hit enter after the 2nd line, it may take a few secons before you get the # sign again. once you see it, type reboot and enter. and you're all set!
zeppelinrox said:
I really like that honeycomb animation.
Very cool.
The only issue I would have is that it would be hard to tell if you are getting a boot loop or if it's just taking a long time to boot.
I attached one that I made which includes an "intro" to the honeycomb animation - the milestone bios/boot animation that I'm sure most of you have seen.
Click to expand...
Click to collapse
should i rename file to work it ?
Yeah it has to be named bootanimation.zip
I always give downloaded animations descriptive names so I can tell what it is just by looking at it.
Usually, I make a copy, rename the copy, and install that.
btw I noticed a stray frame that caused a stutter so I redid it.
I also noticed that the animation was too slow at 10 fps so I sped it up a bit....
It was 10 fps because that's what the original bios animation was set at.
I bumped it up to 20.
thanks friend
very beautiful.

[Q] How to geenrate system.img

Hi all,
Is there any way to pull out the system completely into a .img format? Since I did some modification on my system, I was wondering if there is an easy way to create a .img out of the unit itself. Thanks!
kazuni said:
Hi all,
Is there any way to pull out the system completely into a .img format? Since I did some modification on my system, I was wondering if there is an easy way to create a .img out of the unit itself. Thanks!
Click to expand...
Click to collapse
You need recovery and that's not available yet.
Ah I see.
Another question regarding this, I notice that there is no parameters under fastboot that allows pulling the system image, but it can flash one. There aren't any options?
Blagus said:
You need recovery and that's not available yet.
Click to expand...
Click to collapse
@Blagus
is is possible to use dump_image binary from preshoot's kernel maker update.zip to dump system.img???
DooMLoRD said:
@Blagus
is is possible to use dump_image binary from preshoot's kernel maker update.zip to dump system.img???
Click to expand...
Click to collapse
If dump_image can get NAND read access from within Android system, then yes. It'll probably have to be run as root.

Rooting ideas and discussion

I just had an idea. What if someone roots a system.img by extracting it from a kdz and then mounting it in linux copying the root files setting the permissions and then flashing that with download mode? A simple
Code:
dd if=/data/local/tmp/system.img of=/dev/block/platform/??????/by-name/system
should do the trick to flash the system.img file replacing the ?????? with the correct directory.
Just a thought.
Wouldn't you have to have read/write access in order to push the system.img?
Impossible,without root.
Sent from my LG-D802 using Tapatalk
l33tlinuxh4x0r said:
I just had an idea. What if someone roots a system.img by extracting it from a kdz and then mounting it in linux copying the root files setting the permissions and then flashing that with download mode? A simple
Code:
dd if=/data/tmp/system.img of=/dev/block/platform/??????/by-name/system
should do the trick to flash the system.img file replacing the ?????? with the correct directory.
-
Click to expand...
Click to collapse
Dennisg34 said:
There's already a thread to discuss root. Please search before posting, thanks.
Sent from my G4 using your mom
Click to expand...
Click to collapse
I think both of the previous threads discussing root have been closed. I haven't seen another - did I miss it?
Already tried something similar. Requires root unless you're one of the lucky few who have such advanced knowledge of hacking bootloaders/exploits....which I unfortunately am not. LOL
rfarrah said:
I think both of the previous threads discussing root have been closed. I haven't seen another - did I miss it?
Click to expand...
Click to collapse
Apologies, I forgot they were.
Hello,
It is possible to rooter lg g4 with : V10B LGH815
thank you :fingers-crossed:
dydyfr said:
Hello,
It is possible to rooter lg g4 with : V10B LGH815
thank you :fingers-crossed:
Click to expand...
Click to collapse
Yes, look in the developer section.
It is possible to dd to partitions using download mode. The only real problem is that the root method would be huge having to include a system.img.
l33tlinuxh4x0r said:
It is possible to dd to partitions using download mode. The only real problem is that the root method would be huge having to include a system.img.
Click to expand...
Click to collapse
Additionally, you'd need a separate one for every carrier/variant.
I guess if it worked though, who cares how many we need or how big they are. Except with dd, one typo and you've got yourself a brick.
tabp0le said:
Additionally, you'd need a separate one for every carrier/variant.
I guess if it worked though, who cares how many we need or how big they are. Except with dd, one typo and you've got yourself a brick.
Click to expand...
Click to collapse
very true.
tabp0le said:
Additionally, you'd need a separate one for every carrier/variant.
I guess if it worked though, who cares how many we need or how big they are. Except with dd, one typo and you've got yourself a brick.
Click to expand...
Click to collapse
l33tlinuxh4x0r said:
very true.
Click to expand...
Click to collapse
Though...wouldn't it still be able to get into download mode? I could be wrong, but that's not on the system partition from my understanding.
I'm on linux and am familiar with dd (I'm a distro-hopper and have no optical drive, so everything gets dd'ed onto usb drive).
Wouldn't we have to specify a block size on that? I know at least on linux distro, if block size isn't specified, I end up in non-boot.
geoff5093 said:
Yes, look in the developer section.
Click to expand...
Click to collapse
Good
Thank's
Sent from my Iconia A3-A20 FHD using XDA Free mobile app
Th3Bill said:
Though...wouldn't it still be able to get into download mode? I could be wrong, but that's not on the system partition from my understanding.
I'm on linux and am familiar with dd (I'm a distro-hopper and have no optical drive, so everything gets dd'ed onto usb drive).
Wouldn't we have to specify a block size on that? I know at least on linux distro, if block size isn't specified, I end up in non-boot.
Click to expand...
Click to collapse
Actually you are correct. The laf partition is the download mode. Flashing recovery is where we have to worry about losing download mode. (I never understood why, but at least with the G2 download mode broke when flashing custom recovery without a certain patch)
The previous root threads were locked because peopel wouldn't stay on topic after multiple warnings...
Eagle1337 said:
The previous root threads were locked because peopel wouldn't stay on topic after multiple warnings...
Click to expand...
Click to collapse
Correction, they were closed per OP request
This one is now clean, lets try to stay on topic,
If anyone feels the urge to regurgitate further horse crap... we'll see what happens
l33tlinuxh4x0r said:
It is possible to dd to partitions using download mode. The only real problem is that the root method would be huge having to include a system.img.
Click to expand...
Click to collapse
How can you confirm being able to dd to partitions using download mode? In download mode isn't the dd running from /system/bin that is mounted as ro. How could you replace /system while it is mounted and running dd from it?
gbgadgets said:
How can you confirm being able to dd to partitions using download mode? In download mode isn't the dd running from /system/bin that is mounted as ro. How could you replace /system while it is mounted and running dd from it?
Click to expand...
Click to collapse
linux loads commands that you are in the process of running into ram. You can even delete a file that you are running and still be able to use it until you close it. Once you close it is when the problem would occur but by that time you would already have the new file in place. Also do NOT run a
Code:
dd if=/dev/zero of=/dev/block/platform/??????/by-name/system
just skip that step otherwise you would lose the ability to dd.
Go directly for a
Code:
dd if=/data/local/tmp/system.img of=/dev/block/platform/??????/by-name/system
also to get a system.img instead of extracting from a kdz you could run
Code:
dd if=/dev/block/platform/??????/by-name/system of=/data/local/tmp/system.img
docfreed said:
Wouldn't you have to have read/write access in order to push the system.img?
Click to expand...
Click to collapse
you can push to /data/local/tmp using adb without root.

Decrypt - Tweaks - & more

I thought id put together a thread with all my main tweaks and modifications to allow our device to perform better
lets start!
Decrypt
this ones an easy one - flash noverity and decrypt and you're on your way right?
i took this a step further and modified the boot.img for 4.7.6 to remove encryption and verity and added some mount flags
the flags ive added are:
noatime - noauto_da_alloc - nodiratime - data=writeback - barrier=0 - nobh
you can google to find out more information about these flags, but they all deliver top performance with minimal risk (possible risk: sudden power off may result in data loss)
How to
easy! *required /data to be formatted if you are not already decrypted
flash the modified boot image: https://drive.google.com/open?id=1WItoR1ifuCRYXwBvzBdis3hUnCftlUd-
format /data
flash supersu / magisk if you were rooted otherwise stay stock
if you want to flash a kernel you need to replace the fstab.qcom with the modified version (to do this open the kernel zip and paste over the fstab.qcom)
kernel fstab.qcom: https://drive.google.com/open?id=1XRI5EWwREnvxCVWrjY4FFu1PQs1bbUje
Disable journaling completely
my favourite tweak - disables journaling
How to
i like doing this before first boot but you can do it whenever really
ideally in TWRP
first, explorer /dev/block/
for every file you see in /dev/block you add tune2fs -O ^has_journal before it
so for example, if /dev/block has a file called sdd01
you will type: tune2fs -O ^has_journal /dev/block/sdd01 in TWRP terminal
and so on for sdd02 etc etc (or you can create a script to do this for you) it will not succeed on all blocks as some dont have this features.
DOES NOT WORK ON 5T FOR SOME REASON WILL NOT BOOT INTO OS AFTER THIS IS DONE
Misc tweaks
some other tweaks i have not tested to see if they're working on the 5T
but here they are
How to
Scripts (you can run on boot or on demand):
fstrim (requires busybox): https://drive.google.com/open?id=1MSqvVlOr59Y8y-3DiJ3Snms_rEvJWVzX
sqlite vaccum and reindex database: https://drive.google.com/open?id=1NcW33rvoInQPSx9w8RcQ__GC_5Vhv-6a
also requires this file in xbin: https://drive.google.com/open?id=1p2COCUjhiAaIjyZjV84EmvUgntp0_bdi
zipalign: https://drive.google.com/open?id=1wWyfoy6QuVCtwUUkI9TVrobNbv7Kset8
also requires this file in xbin: https://drive.google.com/open?id=1K25bOrA7eVUacHEVrHNN2At6D-Dnfgmi
mark disk as non-rotational,disable iostats, simple iomerges no hash lookup, rq_Affinity set to 2 - best for multitasking uses all cores to complete request instead of cpu 'group' : https://drive.google.com/open?id=1YJ5GHGqwl8tzxvRyEGYINPIp4zdHUgTd
Stock Boot 4-7-6
https://drive.google.com/open?id=1OQKJB9gRj2SG7WS9J-ucuUaWmqPn1gMl
Stock Boot 4-7-6 no flags, decrypt no verity
https://drive.google.com/open?id=1gXYYw7E2fzSRkh2J-1hZIS4EH34zeBPT
if anyone has any other tweaks they'd like to share ill be sure to add them in!
THIS WORK IS OPEN TO ANYONE FOR USE
FREE KNOWLEDGE FOR ALL​
Thank for the tips, could you post the boot img for 4.7.6 with out the flags being set.
freegame619 said:
Thank for the tips, could you post the boot img for 4.7.6 with out the flags being set.
Click to expand...
Click to collapse
updated OP
Hi @virtyx
I'm sorry I'm hijacking this thread but I can't find answers to my questions anywhere.
Why would you decrypt the phone ? Why is useful ? Does TWRP can't read from the sdcard partition if the phone is encrypted ? What can't you do with an encrypted phone ?
Everybody is talking about decrypting the phone but nobody says why is it for.
raptor2003 said:
Hi @virtyx
I'm sorry I'm hijacking this thread but I can't find answers to my questions anywhere.
Why would you decrypt the phone ? Why is useful ? Does TWRP can't read from the sdcard partition if the phone is encrypted ? What can't you do with an encrypted phone ?
Everybody is talking about decrypting the phone but nobody says why is it for.
Click to expand...
Click to collapse
in my experience decrypting makes the phone perform better (people will argue it makes no difference) but every time ive done it i notice improvement.
twrp is fine for reading the sdcard, decrpytion has its benefits but also drawbacks (easier to hack, etc) you can do the research yourself, but there are benchmarks showing the differences (mainly reads are affected)
if you're smart with your phone (i.e dont download suspicious stuff) you should be fine without encryption.
ive never had it on, except when i cant turn it off
raptor2003 said:
Hi @virtyx
I'm sorry I'm hijacking this thread but I can't find answers to my questions anywhere.
Why would you decrypt the phone ? Why is useful ? Does TWRP can't read from the sdcard partition if the phone is encrypted ? What can't you do with an encrypted phone ?
Everybody is talking about decrypting the phone but nobody says why is it for.
Click to expand...
Click to collapse
To run decrypted ROMs mainly. I see no other reason but im curious too
Since some ROMs can only boot if you are decrypted i guess it's that
Did a very quick lookup of that journaling business and it sounds interesting. Have you noticed much of a difference in performance on vs disabled?
virtyx said:
updated OP
Click to expand...
Click to collapse
I was mentioning about the boot img without the flags being set not the one without the encryption turned off.
freegame619 said:
I was mentioning about the boot img without the flags being set not the one without the encryption turned off.
Click to expand...
Click to collapse
oh ok sorry i thought you meant stock boot.img
updated.
showofdeth said:
Did a very quick lookup of that journaling business and it sounds interesting. Have you noticed much of a difference in performance on vs disabled?
Click to expand...
Click to collapse
definitely found better responsiveness with it disabled, and multitasking is much better
Can u help me to create script for disabling journal? I had 100 files on block folder ?
Oh and also, can I flash ur modified boot.img on 4.7.5? Because I haven't got system update to 4.7.6. it would be troubling me if I had to reflash the whole 4.7.6 rom since I had around 300 apps installed. Thanks before btw
andrizmitnick said:
Can u help me to create script for disabling journal? I had 100 files on block folder
Oh and also, can I flash ur modified boot.img on 4.7.5? Because I haven't got system update to 4.7.6. it would be troubling me if I had to reflash the whole 4.7.6 rom since I had around 300 apps installed. Thanks before btw
Click to expand...
Click to collapse
Shouldn't have a problem booting 476 on 475 but you need to test
virtyx said:
oh ok sorry i thought you meant stock boot.img
I am on OB1 oreo, encrypted, oreo compatible twrp, rooted with magisk 15.2, the boot image available here are for nougat, is it possible you can do it for oreo, or any help towards this, thanks for your help, Regards.
Click to expand...
Click to collapse
vtec303 said:
virtyx said:
oh ok sorry i thought you meant stock boot.img
I am on OB1 oreo, encrypted, oreo compatible twrp, rooted with magisk 15.2, the boot image available here are for nougat, is it possible you can do it for oreo, or any help towards this, thanks for your help, Regards.
Click to expand...
Click to collapse
when I get time I'll look for the oreo boot img
Click to expand...
Click to collapse
virtyx said:
vtec303 said:
when I get time I'll look for the oreo boot img
Click to expand...
Click to collapse
ok thanks mate, cheers.
Click to expand...
Click to collapse

[CLOSED]Deleted.

Deleted by woltrex
Deleted by Woltrex.
Deleted by Woltrex
What would I need to change in our windows installer to help create the data.img the way you are? https://github.com/BlissRoms-x86/An.../Android_UEFIInstaller/BasicInstaller.cs#L210
proof I am no windows developer, I fudge my way through it
Hi Woltrex,
Could you please adapt your toolbox to work with Android-x86 8.1-rc1? If I try to edit data or system images with your current toolbox the system doesn't boot.
the tools link is nothing but advertisements. Can't make this work
ariadnejro said:
Hi Woltrex,
Could you please adapt your toolbox to work with Android-x86 8.1-rc1? If I try to edit data or system images with your current toolbox the system doesn't boot.
Click to expand...
Click to collapse
I will make the necessary arrangements in next version. :good:
DigitalMD said:
the tools link is nothing but advertisements. Can't make this work
Click to expand...
Click to collapse
I do not fully understand. What you mean?
electrikjesus said:
What would I need to change in our windows installer to help create the data.img the way you are? https://github.com/BlissRoms-x86/An.../Android_UEFIInstaller/BasicInstaller.cs#L210
proof I am no windows developer, I fudge my way through it
Click to expand...
Click to collapse
I need to check it. Is there a problem creating Data.img?
WoltreX said:
I need to check it. Is there a problem creating Data.img?
Click to expand...
Click to collapse
I think he means that when the Windows UEFI installer(that is linked in the Blissx86 OP) is extracting the contents of the iso onto the HDD partition that is selected.
He wants the installer to create the data.img in a similar manner as your tool does
WoltreX said:
I need to check it. Is there a problem creating Data.img?
Click to expand...
Click to collapse
arifqur said:
I think he means that when the Windows UEFI installer(that is linked in the Blissx86 OP) is extracting the contents of the iso onto the HDD partition that is selected.
He wants the installer to create the data.img in a similar manner as your tool does
Click to expand...
Click to collapse
^^ Yuppers ^^
Works great.. thank you woltrex
Bliss OS/Android PC Toolbox updated.
Changelogs v1.1
-Added Android-x86 Oreo support. You can unpack/repack android x86 images.
-Added fsconfig options. Android x86 images requires it. (I will add guide in first page about it)
-Increased stability and fixed some bugs.
I know what I say would be foolish but...
Remix OS Toolbox? (Lollipop&Marshmallow)
im having problem extracting bliss os system.sfs
Parallel unsquashfs: Using 4 processors
7362 inodes (20785 blocks) to write
write_xattr: could not write xattr security.selinux for file C:\Users\farivar\Downloads\APT\unpack\system/app/AmberTheme/AmberTheme.apk because you're not superuser!
write_xattr: to avoid this error message, either specify -user-xattrs, -no-xattrs, or run as superuser!
Further error messages of this type are suppressed!
[=================================-] 20785/20785 100%
created 6654 files
created 956 directories
created 708 symlinks
created 0 devices
created 0 fifos
Click to expand...
Click to collapse
farivar said:
im having problem extracting bliss os system.sfs
Click to expand...
Click to collapse
What is the problem? I am seeing system.sfs extracted %100.
Hi,
I'm having trouble getting a BlissOS system.img to work. I already have a working installation of BlissOS, but am trying to add Surface drivers. So I extracted the system folder and then packed system.img, but on booting the modified system, it's freezing just when it says it is starting android (before the boot animation appears).
Specific steps I used:
-unpack system.sfs
-added my drivers, modified fs_config.txt to include permissions for my drivers e.g., system/lib/firmware/config.bin 0 0 644
-repack system.img
-remove system.sfs and replace with system.img
I even tried to just unpack and repack system.img without the drivers and that didn't work for me either. Any suggestions for what I may be doing incorrectly?
DoughMucker said:
Hi,
I'm having trouble getting a BlissOS system.img to work. I already have a working installation of BlissOS, but am trying to add Surface drivers. So I extracted the system folder and then packed system.img, but on booting the modified system, it's freezing just when it says it is starting android (before the boot animation appears).
Specific steps I used:
-unpack system.sfs
-added my drivers, modified fs_config.txt to include permissions for my drivers e.g., system/lib/firmware/config.bin 0 0 644
-repack system.img
-remove system.sfs and replace with system.img
I even tried to just unpack and repack system.img without the drivers and that didn't work for me either. Any suggestions for what I may be doing incorrectly?
Click to expand...
Click to collapse
If you edit fs_config, you must repack with Android-x86 option. That drivers can be uncompatible with your system. So system can not boot. I did not encounter any problems with the edits I made. You should be careful when editing the .img files.
Deleted by woltrex
WoltreX said:
Deleted by Woltrex.
Click to expand...
Click to collapse
? what happened ?

Categories

Resources