[IDEA] Flashing your boot.img for CWM - HTC Vivid, Raider, Velocity

updater-script info
Code:
ui_print(" ");
ui_print("Extracting system files...");
mount("ext4", "EMMC", "/dev/block/mmcblk0p29", "/system");
package_extract_dir("system", "/system");
ui_print("Extracting Kernel files...");
package_extract_dir("kernel", "/tmp");
ui_print("Writing Boot Image...");
run_program("/sbin/busybox", "dd", "if=/dev/zero", "of=/dev/block/mmcblk0p21");
run_program("/sbin/busybox", "dd", "if=/tmp/boot.img", "of=/dev/block/mmcblk0p22");
unmount("/system");
Donation
If You Like My Work Then vote Thread or Some reply or Checking Thanks
and Don't forget This(Dok-Do is a territory of Korea. Dok-do is Korean land.)

Can the enabled root for the vivid?
Sent from my HTC PH39100 using xda premium

tacotino said:
Can the enabled root for the vivid?
Sent from my HTC PH39100 using xda premium
Click to expand...
Click to collapse
no.
Please, if you do not know what boot.img is or what it does, do not try to flash this....

Pirateghost said:
no.
Please, if you do not know what boot.img is or what it does, do not try to flash this....
Click to expand...
Click to collapse
I'm going to flash it twice
Sent from my HTC PH39100 using xda premium

bananacakes said:
updater-script info
Code:
ui_print(" ");
ui_print("Extracting system files...");
mount("ext4", "EMMC", "/dev/block/mmcblk0p29", "/system");
package_extract_dir("system", "/system");
ui_print("Extracting Kernel files...");
package_extract_dir("kernel", "/tmp");
ui_print("Writing Boot Image...");
run_program("/sbin/busybox", "dd", "if=/dev/zero", "of=/dev/block/mmcblk0p21");
run_program("/sbin/busybox", "dd", "if=/tmp/boot.img", "of=/dev/block/mmcblk0p22");
unmount("/system");
Donation
If You Like My Work Then vote Thread or Some reply or Checking Thanks
and Don't forget This(Dok-Do is a territory of Korea. Dok-do is Korean land.)
Click to expand...
Click to collapse
sorry for the question but i feel completely lost here, what is this good for?, can it be flashed on the AT&T HTC VIVID? What does it do?

JEANRIVERA said:
sorry for the question but i feel completely lost here, what is this good for?, can it be flashed on the AT&T HTC VIVID? What does it do?
Click to expand...
Click to collapse
I don't know exactly what it's for but I do know that it isn't for the AT&T Vivid.

JEANRIVERA said:
sorry for the question but i feel completely lost here, what is this good for?, can it be flashed on the AT&T HTC VIVID? What does it do?
Click to expand...
Click to collapse
pside15 said:
I don't know exactly what it's for but I do know that it isn't for the AT&T Vivid.
Click to expand...
Click to collapse
exactly.
boot.img is the kernel. the script provided is a CWM script, and since we cannot put CWM on the AT&T Vivid, it doesn't do us any good.....yet.

Related

Sensation XL Development Tools

I noticed there are some people here that try stuff, but don't know it all the way.
So i put together some development tools, and some main info to get those people started.
This info is no good to you if you are a user!
So if you don't understand the content of this first post, leave it.
I'm not here to teach, but to help out those who know, but need that little bit of more info.
I work on Linux and on Windows, but this info is based on using Windows 7 64bit.
Edit and/or Modify Rom.zip or Update.zip
If you want to edit or modify rom.zips or make an update.zip
Make sure you use 7zip to open an archive(the zip file).
Don't extract the archive, because the zip files are signed!
This way you can drop files in an archive, or delete stuff from the archive.
Click to expand...
Click to collapse
Edit and/or Modify updater-script
If you want to edit an updater-script, pull it out the zip file and use notepad++ to edit the way you like it.
Once done, safe it, and drop it back to overwrite the file that is in there.
Click to expand...
Click to collapse
I will add more info in the comming days, and fill it up with the anwsers given to your questions.
At the bottom of this post you'll find 2 zip files
1 is an empty rom.zip
1 is an empty update.zip
They are signed zip files, so dont extract them but open them the way told in post above.
The rom.zip can be filled with an extracted and cooked RUU, or with an existing rom that has been modified by you.
The updater-script inside is based on my sxl rom, so check if you need all symlinks and permissions.
The update.zip can be filled with apps and other files you would like to add to your current build, without flashing a whole rom.
Basic rom updater script
(without ui_print info in it)
ui_print("################################################");
ui_print("### ###");
ui_print("### ###");
ui_print("### ###");
ui_print("### ###");
ui_print("### ###");
ui_print("### ###");
ui_print("################################################");
# Unmounting Partitions
assert(unmount("/cache") || true);
assert(unmount("/system") || true);
assert(unmount("/data") || true);
# Format System
format("ext4", "EMMC", "/dev/block/mmcblk0p25");
# Format Cache
format("ext3", "EMMC", "/dev/block/mmcblk0p30");
# Mounting System Partition
mount("ext4", "EMMC", "/dev/block/mmcblk0p25", "/system");
# Mounting Data Partition
mount("ext4", "EMMC", "/dev/block/mmcblk0p29", "/data");
# Deleting Old Data
delete_recursive("/data/dalvik-cache");
delete_recursive("/sdcard/LOST.DIR");
delete_recursive("/sdcard/LazyList");
delete_recursive("/data/boot-cache");
delete_recursive("/data/data/com.htc.loggers");
delete_recursive("/data/data/com.htc.android.ramdump");
delete_recursive("/data/data/com.htc.android.netlogger");
delete_recursive("/data/data/com.htc.PowerLogCollector");
delete_recursive("/data/data/com.android.restartapp");
# Writing Data Partition
package_extract_dir("data", "/data");
# Writing System Partition
package_extract_dir("system", "/system");
# Setting Symlinks & Permissions
symlink("dumpstate", "/system/bin/dumpcrash");
symlink("toolbox", "/system/bin/cat");
symlink("toolbox", "/system/bin/chmod");
symlink("toolbox", "/system/bin/chown");
symlink("toolbox", "/system/bin/chownto");
symlink("toolbox", "/system/bin/cmp");
symlink("toolbox", "/system/bin/date");
symlink("toolbox", "/system/bin/dd");
symlink("toolbox", "/system/bin/df");
symlink("toolbox", "/system/bin/dmesg");
symlink("toolbox", "/system/bin/getevent");
symlink("toolbox", "/system/bin/getprop");
symlink("toolbox", "/system/bin/hd");
symlink("toolbox", "/system/bin/id");
symlink("toolbox", "/system/bin/ifconfig");
symlink("toolbox", "/system/bin/iftop");
symlink("toolbox", "/system/bin/insmod");
symlink("toolbox", "/system/bin/ioctl");
symlink("toolbox", "/system/bin/ionice");
symlink("toolbox", "/system/bin/kill");
symlink("toolbox", "/system/bin/ln");
symlink("toolbox", "/system/bin/log");
symlink("toolbox", "/system/bin/ls");
symlink("toolbox", "/system/bin/lsmod");
symlink("toolbox", "/system/bin/lsof");
symlink("toolbox", "/system/bin/mkdir");
symlink("toolbox", "/system/bin/mount");
symlink("toolbox", "/system/bin/mv");
symlink("toolbox", "/system/bin/nandread");
symlink("toolbox", "/system/bin/netstat");
symlink("toolbox", "/system/bin/newfs_msdos");
symlink("toolbox", "/system/bin/notify");
symlink("toolbox", "/system/bin/printenv");
symlink("toolbox", "/system/bin/ps");
symlink("toolbox", "/system/bin/reboot");
symlink("toolbox", "/system/bin/renice");
symlink("toolbox", "/system/bin/rm");
symlink("toolbox", "/system/bin/rmdir");
symlink("toolbox", "/system/bin/rmmod");
symlink("toolbox", "/system/bin/route");
symlink("toolbox", "/system/bin/schedtop");
symlink("toolbox", "/system/bin/sendevent");
symlink("toolbox", "/system/bin/setconsole");
symlink("toolbox", "/system/bin/setprop");
symlink("toolbox", "/system/bin/sleep");
symlink("toolbox", "/system/bin/smd");
symlink("toolbox", "/system/bin/start");
symlink("toolbox", "/system/bin/stop");
symlink("toolbox", "/system/bin/sync");
symlink("toolbox", "/system/bin/top");
symlink("toolbox", "/system/bin/umount");
symlink("toolbox", "/system/bin/uptime");
symlink("toolbox", "/system/bin/vmstat");
symlink("toolbox", "/system/bin/watchprops");
symlink("toolbox", "/system/bin/wipe");
symlink("/system/xbin/ifconfig","/system/xbin/bb/ifconfig");
symlink("/system/xbin/route","/system/xbin/bb/route");
set_perm(0, 1000, 0755, "/system/xbin/busybox");
run_program("/system/xbin/busybox", "--install", "-s", "/system/xbin");
set_perm_recursive(0, 0, 0755, 0644, "/system");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin");
set_perm(0, 3003, 0755, "/system/bin/ip");
set_perm(0, 0, 0755, "/system/etc/bluetooth");
set_perm(1000, 1000, 0640, "/system/etc/bluetooth/auto_pairing.conf");
set_perm(1014, 2000, 0550, "/system/etc/dhcpcd/dhcpcd-run-hooks");
set_perm(0, 2000, 0550, "/system/etc/init.goldfish.sh");
set_perm(3002, 3002, 0444, "/system/etc/bluetooth/blacklist.conf");
set_perm(1002, 1002, 0440, "/system/etc/dbus.conf");
set_perm_recursive(1002, 1002, 0755, 0440, "/system/etc/bluetooth");
set_perm_recursive(0, 0, 0755, 0555, "/system/etc/ppp");
set_perm(0, 2000, 06755, "/system/bin/reboot");
set_perm(0, 2000, 06750, "/system/bin/run-as");
set_perm(1000, 1000, 0755, "/system/bin/sysro");
set_perm(1000, 1000, 0755, "/system/bin/sysrw");
set_perm_recursive(0, 2000, 0755, 0755, "/system/etc/init.d");
set_perm_recursive(0, 2000, 0755, 0755, "/system/xbin");
set_perm(0, 3003, 02750, "/system/bin/netcfg");
set_perm(0, 3004, 02755, "/system/bin/ping");
set_perm(0, 0, 04755, "/system/bin/sh");
set_perm(0, 3003, 0755, "/system/bin/ipd");
delete("/system/bin/su");
set_perm(0, 0, 06755, "/system/xbin/su");
symlink("/system/xbin/su", "/system/bin/su");
set_perm(1000, 1000, 0755, "/system/xbin/openvpn");
set_perm(1000, 1000, 0771, "/data");
set_perm_recursive(1000, 1000, 0771, 0644, "/data/app");
set_perm_recursive(1000, 1000, 0771, 0664, "/data/data/com.android.providers.contacts/files");
# Flashing Device Kernels
package_extract_file("boot.img","/tmp/boot.img");
write_raw_image("/tmp/boot.img", "boot");
delete("/tmp/boot.img");
# Unmounting Partitions
unmount("/data");
unmount("/cache");
unmount("/system");
# Reboot Device
run_program("/sbin/reboot");
nice thread...
Thanks!
This is exactly the sort of stuff I am after, I feel so guilty using another ROM's updater-script.
benjamin.j.goodwin said:
Thanks!
This is exactly the sort of stuff I am after, I feel so guilty using another ROM's updater-script.
Click to expand...
Click to collapse
Thats why I asked you a few days ago
All is open source, so feel free to use.
My rom is also free to use, but fully skinned
this should be a sticky
So helpful. So thanks.
I have yet to try yours. I downloaded your ROM and kernel and haven't done the ROM yet. I like the look though.
Sent from my HTC Sensation XL with Beats Audio X315e using XDA App
booyaga said:
this should be a sticky
Click to expand...
Click to collapse
Pm orb and he will do it
Sent from my HTC Sensation XL with Beats Audio X315e using xda premium
hi DutchDanny
Really Thanks for
Sensation XL Development Tools
Best Regards
Thanx sir. For sharing with us.
Have tool to s-off?
Sent from my HTC Sensation XL with Beats Audio X315e using XDA Premium App
fgc_vn said:
Have tool to s-off?
Sent from my HTC Sensation XL with Beats Audio X315e using XDA Premium App
Click to expand...
Click to collapse
We can't get S-OFF on this phone yet I'm afraid...
[vertigo] said:
We can't get S-OFF on this phone yet I'm afraid...
Click to expand...
Click to collapse
So how to flash the firmware for installing ics costum roms?
Sent from my HTC Sensation XL with Beats Audio X315e using Tapatalk
hitchmontana said:
So how to flash the firmware for installing ics costum roms?
Sent from my HTC Sensation XL with Beats Audio X315e using Tapatalk
Click to expand...
Click to collapse
you need to go to here and root your phone.
This has a step by step guide.
http://forum.xda-developers.com/showthread.php?t=1341127
benjamin.j.goodwin said:
you need to go to here and root your phone.
This has a step by step guide.
http://forum.xda-developers.com/showthread.php?t=1341127
Click to expand...
Click to collapse
My phone is rooted, i have the su app, and i have installed andtopic costum rom, but i have still s-on
Sent from my HTC Sensation XL with Beats Audio X315e using Tapatalk
We can't get s-off on this phone yet...
Sent from my HTC Sensation XL with Beats Audio X315e using xda premium
[vertigo] said:
We can't get s-off on this phone yet...
Sent from my HTC Sensation XL with Beats Audio X315e using xda premium
Click to expand...
Click to collapse
So there is no possibility to install ics?
Sent from my HTC Sensation XL with Beats Audio X315e using Tapatalk
hitchmontana said:
So there is no possibility to install ics?
Sent from my HTC Sensation XL with Beats Audio X315e using Tapatalk
Click to expand...
Click to collapse
well there`s only one guy amongst us with a SenXL with S-OFF and that is a cheeky one ... the rest of us all have S-ON ... but most of us used/are using ICS (WRE 1.4/1.5) so i`m guessing you don`t need S-OFF to install it
sorry for the sarcasm but u kind of asked for it
yolinkin said:
well there`s only one guy amongst us with a SenXL with S-OFF and that is a cheeky one ... the rest of us all have S-ON ... but most of us used/are using ICS (WRE 1.4/1.5) so i`m guessing you don`t need S-OFF to install it
sorry for the sarcasm but u kind of asked for it
Click to expand...
Click to collapse
So the joke was WRE?? I'm sorry i'm from swiss and I don't understand sarcasm in english
Sent from my HTC Sensation XL with Beats Audio X315e using Tapatalk

(Request) Put a build.prop into CWM-flashable *.zip .......PLEASE

I've got a phone that may or may not be totally frakked due to careless build.prop modding and have been asked to try and recover it without wiping, OS flashing, or any other methods that could potentially lead to a wipe. ADB is a no-go, but I've got CWM access. I've never needed to make a CWM-flashable *.zip before, so I never learned how. I'm crunched for time and could really just use a break. Could somebody please put this build.prop into a CWM-flashable *.zip for me?
http://db.tt/4dDMzozS
I would be extremely grateful!
Thanks in advance!
Sent from my GT-P6810 using XDA Premium HD app
please
Sent from my GT-P6810 using XDA Premium HD app
Ok I'll try.
I need to look how update script works.
Boy124 said:
Ok I'll try.
I need to look how update script works.
Click to expand...
Click to collapse
Thanks. I tried making my own but I keep getting error status 0 on install.
Sent from my GT-P6810 using XDA Premium HD app
Try this.
It does not contain format command, so it won't superbrick lol
ui_print("Never Play With Build.Prop ");
delete("/system/build.prop");
assert(package_extract_dir("boy124", "/system"));
set_perm(0, 0, 0755, "/system/build.prop");
ui_print("Done!");
Boy124 said:
Try this.
Click to expand...
Click to collapse
Thanks! Worked a treat. Figured out why mine wasn't working too. Oh, and nice work on the script... LOL! Unfortunately though, I was the only one who saw it. I should have made him flash it himself. Thank you again! I'll take what time I have left to stress the importance of nandroid backups.... especially when you're a flashaholic. I don't know what ROM he was running, but the default build.prop I got from him wasn't stock. Thanks!
Sent from my GT-P6810 using XDA Premium HD app
Mister_Mxyzptlk said:
Thanks! Worked a treat. Figured out why mine wasn't working too. Oh, and nice work on the script... LOL! Unfortunately though, I was the only one who saw it. I should have made him flash it himself. Thank you again! I'll take what time I have left to stress the importance of nandroid backups.... especially when you're a flashaholic. I don't know what ROM he was running, but the default build.prop I got from him wasn't stock. Thanks!
Sent from my GT-P6810 using XDA Premium HD app
Click to expand...
Click to collapse
Glad that it worked.
I just flashed it myself and it worked.
Sorry I used my own build.prop
Here's the one you actually wanted.
Boy124 said:
Sorry I used my own build.prop
Here's the one you actually wanted.
Click to expand...
Click to collapse
I already copied the default one over it. Thanks though.
Sent from my GT-P6810 using XDA Premium HD app
Thanks Boy124... You saved me...
Sent from my GT-N7000 using xda premium
Don't mind me... just uploading my build.prop so that I can download it to my tab... stupid gmail and their no zip policy lol
I have tried to run this script in my Sony Ericsson Neo V because I havent found any similar script for my device.
It shows that the scripts runs correctly, but the phone don't start as normal.
I have wiped dalvik cache and the simple cache, but nothing changed.
How can I really know if the script runs correctly here?
PS: The scripts assert was enabled in the CWM and it worked, I have tried changing the build.prop you put in you zip for the build.prop in the backup I made.
Thanks you a lot.
Alleby said:
I have tried to run this script in my Sony Ericsson Neo V because I havent found any similar script for my device.
It shows that the scripts runs correctly, but the phone don't start as normal.
I have wiped dalvik cache and the simple cache, but nothing changed.
How can I really know if the script runs correctly here?
PS: The scripts assert was enabled in the CWM and it worked, I have tried changing the build.prop you put in you zip for the build.prop in the backup I made.
Thanks you a lot.
Click to expand...
Click to collapse
replace in zip the buildprop of your actual device, you can take it out of any tar file with 7zip Should work, cant guarantee it thought.
how to put build.prop into samsung GT P6800
Boy124 said:
It does not contain format command, so it won't superbrick lol
ui_print("Never Play With Build.Prop ");
delete("/system/build.prop");
assert(package_extract_dir("boy124", "/system"));
set_perm(0, 0, 0755, "/system/build.prop");
ui_print("Done!");
Click to expand...
Click to collapse
please help me how can i put build.prop to my samsung galaxy GT P6800 please:crying:
jarokku said:
please help me how can i put build.prop to my samsung galaxy GT P6800 please:crying:
Click to expand...
Click to collapse
what do you mean? what happened?
how to put build.prop into samsung GT P6800
Boy124 said:
It does not contain format command, so it won't superbrick lol
ui_print("Never Play With Build.Prop ");
delete("/system/build.prop");
assert(package_extract_dir("boy124", "/system"));
set_perm(0, 0, 0755, "/system/build.prop");
ui_print("Done!");
Click to expand...
Click to collapse
nokiamodeln91 said:
what do you mean? what happened?
Click to expand...
Click to collapse
i have problem my samsung GT P6800 stuck at welcome logo after i edit build.prop and i dont know how to fix it....please help
do you have a backup of your build.prop anywhere on the phone ?
how to put build.prop into samsung GT P6800
jarokku said:
i have problem my samsung GT P6800 stuck at welcome logo after i edit build.prop and i dont know how to fix it....please help
Click to expand...
Click to collapse
nokiamodeln91 said:
do you have a backup of your build.prop anywhere on the phone ?
Click to expand...
Click to collapse
yes i do but not in my tablet,i put it in my pc
do you have CWM ? and a nandoid backup ?
else
is your pc able to see the storage when connected ? if not.. and if you have cwm, boot into that and mount usb storage and let me know

[Q] Integrate SU in rom

Hy people, i need someone help with superuser.
I want to integrate last version in my next rom but i fail to do that.
I know that kitchen is what i need to use, but i need help with that, i tryed and after i finish, rom failed to flash.
Dont use kitchen.
Which rom are you using and which kernel?
Take super user.apk and put it in /system/app
Then,take su bin file
Set perms for them in updater script..
Just refer the root package..
I am a potato, problem?
tj_droid said:
Dont use kitchen.
Which rom are you using and which kernel?
Click to expand...
Click to collapse
Vo-1 cm7 based rom.
It has outdated su app and binary.
Link to rom -> http://forum.xda-developers.com/showthread.php?t=1837056
Kernel it will be 22.07 firekernel, because it's the best in battery life (people want that, and me to)
I will try what Prawesome sayd, then will see.
Why do you need update su binary?
New su binaries are buggy.
Instead try Supersu. Download package from chainfire's original post. And place the files as mentioned by prawesome.
well as explained above u need to place superuser.apk in /system/app & su in /system/xbin and need to set permissions in updater-script as:
set_perm(0, 0, 04755, "/system/app/Superuser.apk");
set_perm(0, 0, 04755, "/system/xbin/su");
BUT
if older superuser.apk & its su binary is present in a kernel and it replaces it on /system at each boot, ramdisk in boot.img needs to be modified and newer files needed to be replaced !
psndna88 said:
well as explained above u need to place superuser.apk in /system/app & su in /system/xbin and need to set permissions in updater-script as:
set_perm(0, 0, 04755, "/system/app/Superuser.apk");
set_perm(0, 0, 04755, "/system/xbin/su");
BUT
if older superuser.apk & its su binary is present in a kernel and it replaces it on /system at each boot, ramdisk in boot.img needs to be modified and newer files needed to be replaced !
Click to expand...
Click to collapse
I will try that.
First i will try the simple one, with updater-script, if doesn't work, i will ask for help in ramdisk replacement !
Big thanx folks !
Try goo.im for the APK.
Sent from my GT-S5830 using Tapatalk 2
Prawesome said:
Take super user.apk and put it in /system/app
Then,take su bin file
Set perms for them in updater script..
Just refer the root package..
I am a potato, problem?
Click to expand...
Click to collapse
The kernel will flash another version at installation ... Só it has to be changed on the kernel mate
Sent from my GT-S5830 using xda premium
Yes, i need help in that ...
Kernel is prerooted (firekernel 22.07)
Can someone please help me with integration ?
Cryss said:
Yes, i need help in that ...
Kernel is prerooted (firekernel 22.07)
Can someone please help me with integration ?
Click to expand...
Click to collapse
Download ketut's tools
Decompile kernel
Decompile ramdisk also if needed
Replace binaries and apk
Controversies,controversies everywhere :what:
Cryss said:
Yes, i need help in that ...
Kernel is prerooted (firekernel 22.07)
Can someone please help me with integration ?
Click to expand...
Click to collapse
I can do that.. v simple .. just attach boot.img
Sent from my GT-S5830 using xda premium
psndna88 said:
I can do that.. v simple .. just attach boot.img
Sent from my GT-S5830 using xda premium
Click to expand...
Click to collapse
Here is it, big thanx man
Cryss said:
Here is it, big thanx man
Click to expand...
Click to collapse
there is no superuser.apk & su in ramdisk of boot.img.........
it might be in fire kernel aroma package somewhere... but definately not there in attached boot.img
psndna88 said:
there is no superuser.apk & su in ramdisk of boot.img.........
it might be in fire kernel aroma package somewhere... but definately not there in attached boot.img
Click to expand...
Click to collapse
Is not in the aroma package ...
What should i do ?
Cryss said:
Is not in the aroma package ...
What should i do ?
Click to expand...
Click to collapse
well it must be in initramfs file (kernel ramdisk )
Sent from my GT-S5830 using xda premium
psndna88 said:
well it must be in initramfs file (kernel ramdisk )
Sent from my GT-S5830 using xda premium
Click to expand...
Click to collapse
Can u help me with that ?
Cryss said:
Can u help me with that ?
Click to expand...
Click to collapse
well just an hr back I was looking into its aroma installer and yes I have some ideas... looking into it
Sent from my GT-S5830 using xda premium
psndna88 said:
well just an hr back I was looking into its aroma installer and yes I have some ideas... looking into it
Sent from my GT-S5830 using xda premium
Click to expand...
Click to collapse
I allready move kernel + files into rom and su hold me to release it ... that's nasty.
But i'll wait for you, no rush
i hope its solved..

[DEV] GOOGLE EARS.apk

Ok so this is a GoogleEars.apk upload, working (i hope lmao) for the htc vivid on 4.0.3 ported from jelly bean.
Place GoogleEars.apk in /system/app, and libvorbisencoder.so in /system/lib.
MAKE SURE TO PUT THE LIB IN THE LIB FOLDER.. without the lib, the widget won't work. btw if any of you want to know what google ears is, i believe it is like soundhound, but by google. lol
GOOGLE EARS:http://dl.dropbox.com/u/38311939/New folder/GoogleEars.apk
LIB:http://dl.dropbox.com/u/38311939/New folder/libvorbisencoder.so
Maybe a stupid question, but what is Google Ears?
Gene Poole said:
Maybe a stupid question, but what is Google Ears?
Click to expand...
Click to collapse
In a nutshell, Google's version of shazam
Sent from my Nexus 7 using xda premium
I have an old copy of the apk that doesn't need the lib file and it works fine?
I however noticed that if the song ain't for sale on Google play... It won't find the song...
Sent from my HTC PH39100 using Tapatalk 2
Maybe I should give it a try lol.
gotzaDroid said:
In a nutshell, Google's version of shazam
Sent from my Nexus 7 using xda premium
Click to expand...
Click to collapse
OK, what is shazam? Before this gets out of control, I'll do a google search (which only turned up this thread when searching for "google ears").
OK, got it. in a nutshell: "Song recognizer." How hard would it have been to put that into the OP?
Lol @gene. Yea - Ears, like Shazam, will listen to a song and tell you its title and artist.
@xx - Here's a flashable that installs these two items and sets permissions properly. http://www.mediafire.com/?krd396p8jop7xpu
@mods - Should this maybe be in Themes/Apps, rather than Dev?
homeslice976 said:
Lol @gene. Yea - Ears, like Shazam, will listen to a song and tell you its title and artist.
@xx - Here's a flashable that installs these two items and sets permissions properly. http://www.mediafire.com/?krd396p8jop7xpu
@mods - Should this maybe be in Themes/Apps, rather than Dev?
Click to expand...
Click to collapse
I had to port it :/ the widget was all messed up if i didnt. so i thought it might be dev.. wasnt sure lol
Sent from my De-Sensed HTC Vivid using xda app-developers app
homeslice976 said:
Lol @gene. Yea - Ears, like Shazam, will listen to a song and tell you its title and artist.
@xx - Here's a flashable that installs these two items and sets permissions properly. http://www.mediafire.com/?krd396p8jop7xpu
@mods - Should this maybe be in Themes/Apps, rather than Dev?
Click to expand...
Click to collapse
And also how do you make flashable zips
Sent from my De-Sensed HTC Vivid using xda app-developers app
Gene Poole said:
OK, what is shazam? Before this gets out of control, I'll do a google search (which only turned up this thread when searching for "google ears").
OK, got it. in a nutshell: "Song recognizer." How hard would it have been to put that into the OP?
Click to expand...
Click to collapse
i did... i said it was like soundhound by google. search soundhound. first result-wikipedia. click on it. lots of words etc. says Sound Recognizer or something to that effect somewhere in there..
XxSHaDoWxSLaYeRxX said:
i did... i said it was like soundhound by google. search soundhound. first result-wikipedia. click on it. lots of words etc. says Sound Recognizer or something to that effect somewhere in there..
Click to expand...
Click to collapse
I don't recall seeing the mention of soundhound in the OP, but there it is. Guess I'm getting sloppy in my old age. Sorry about that.
As for making an installable zip, just zip it up with the directory structure intact and add a installer binary (I use the one included in the CM builds as it is usually complete and up-to-date) and script a directory as so:
Code:
META-INF/com/google/android/update-binary
META-INF/com/google/android/updater-script
The script is pretty straight forward:
Code:
mount("ext4", "EMMC", "/dev/block/mmcblk0p29", "/system");
package_extract_dir("system", "/system");
set_perm(0, 0, 0644, "/system/app/GoogleEars.apk");
set_perm(0, 0, 0644, "/system/lib/libvorbisencoder.so");
Thread belongs in themes and apps
Moved
Sent from my Nocturnalized One XL using Forum Runner
Gene Poole said:
I don't recall seeing the mention of soundhound in the OP, but there it is. Guess I'm getting sloppy in my old age. Sorry about that.
As for making an installable zip, just zip it up with the directory structure intact and add a installer binary (I use the one included in the CM builds as it is usually complete and up-to-date) and script a directory as so:
Code:
META-INF/com/google/android/update-binary
META-INF/com/google/android/updater-script
The script is pretty straight forward:
Code:
mount("ext4", "EMMC", "/dev/block/mmcblk0p29", "/system");
package_extract_dir("system", "/system");
set_perm(0, 0, 0644, "/system/app/GoogleEars.apk");
set_perm(0, 0, 0644, "/system/lib/libvorbisencoder.so");
Click to expand...
Click to collapse
Thanks man
Sent from my HTC PH39100 using xda app-developers app

[Solved] Building a flashable zip

I'm trying to build a flashable zip (object: install an apk through recovery just to learn) but the zip isn't working,
This updater-script is ok?
Code:
run_program("/sbin/busybox", "mount", "/data");
package_extract_file("/data/app/test.apk", "/data/app/test.apk");
set_perm(0, 0, 0644, "/data/app/test.apk");
unmount("/data");
Can anyone provide me a flashable zip so I can use as a base, my actual isn't working.
eduds said:
I'm trying to build a flashable zip (object: install an apk through recovery just to learn) but the zip isn't working,
This updater-script is ok?
Code:
run_program("/sbin/busybox", "mount", "/data");
package_extract_file("/data/app/test.apk", "/data/app/test.apk");
set_perm(0, 0, 0644, "/data/app/test.apk");
unmount("/data");
Can anyone provide me a flashable zip so I can use as a base, my actual isn't working.
Click to expand...
Click to collapse
The error is package_extract_file(" /data/app/test.apk", "/data/app/test.apk");
This is correct
package_extract_file(" /data/test.apk", "/data/app/test.apk");
Inviato dal mio GT-I9070 con Tapatalk 2
KINGbabasula said:
The error is package_extract_file(" /data/app/test.apk", "/data/app/test.apk");
This is correct
package_extract_file(" /data/test.apk", "/data/app/test.apk");
Inviato dal mio GT-I9070 con Tapatalk 2
Click to expand...
Click to collapse
Oh yeah, it's right! I didn't see the "/app". I will try again and give the feedback.
EDIT
Still not working. Can you provide a simple flashable zip?
eduds said:
Oh yeah, it's right! I didn't see the "/app". I will try again and give the feedback.
EDIT
Still not working. Can you provide a simple flashable zip?
Click to expand...
Click to collapse
Hope this will help you
eduds said:
Oh yeah, it's right! I didn't see the "/app". I will try again and give the feedback.
EDIT
Still not working. Can you provide a simple flashable zip?
Click to expand...
Click to collapse
Replace package_extract_file with package_extract_dir("data", "/data");
And edit the directory data/app/test.apk
Inviato dal mio GT-I9070 con Tapatalk 2
imcoolsj said:
Hope this will help you
Click to expand...
Click to collapse
Didn't work, but thanks anyway :good:
KINGbabasula said:
Replace package_extract_file with package_extract_dir("data", "/data");
And edit the directory data/app/test.apk
Click to expand...
Click to collapse
This way?
Code:
run_program("/sbin/busybox", "mount", "/data");
package_extract_dir("data/app/test.apk", "/data/app/test.apk");
set_perm(0, 0, 0644, "/data/app/test.apk");
unmount("/data");
eduds said:
Didn't work, but thanks anyway :good:
This way?
Code:
run_program("/sbin/busybox", "mount", "/data");
package_extract_dir("data/app/test.apk", "/data/app/test.apk");
set_perm(0, 0, 0644, "/data/app/test.apk");
unmount("/data");
Click to expand...
Click to collapse
No this way
Code:
run_program("/sbin/busybox", "mount", "/data");
package_extract_dir("data", "/data");
set_perm(0, 0, 0644, "/data/app/test.apk");
unmount("/data");
And in the zip you make this folder tree
META-INF
...com
........google
............ android
.................. update-binary
...................updater-script
data
.....app
.........Test.apk
Inviato dal mio GT-I9070 con Tapatalk 2
KINGbabasula said:
No this way
Code:
run_program("/sbin/busybox", "mount", "/data");
package_extract_dir("data", "/data");
set_perm(0, 0, 0644, "/data/app/test.apk");
unmount("/data");
And in the zip you make this folder tree
META-INF
...com
........google
............ android
.................. update-binary
...................updater-script
data
.....app
.........Test.apk
Inviato dal mio GT-I9070 con Tapatalk 2
Click to expand...
Click to collapse
It worked, thanks, man! :laugh:
Thread Closed
Closed as solved by OP request.
Thank you,
mikef
XDA Senior Moderator

Categories

Resources