[Q] Samsung Galaxy Core 2 Stock Music Player - Samsung Galaxy Core

Hello, i started this thread becouse I want the original Samsung Music Player for the Samsung Galaxy Core 2 SM-G355M/H becouse the official firmware don't have this Music Player, the stock is the Google Play Music, so if anyone can port, or help to port will be wellcome!
This is the Music Player i want:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}

Anyone? Any idea?

@StratOS_HTC any help bro? Any idea?

FedericoPeranzi said:
@StratOS_HTC any help bro? Any idea?
Click to expand...
Click to collapse
It will be extremly hard, just because of the libs.
If you tried to instaled some players the apk won't install just because of the package regerences.
Hint :
Put the apk you wish to test in system/app, change chmod to 644 and then try to run it.
Hope for the best .... Won't be so easy to ... port is the best possible way i think.

StratOS_HTC said:
It will be extremly hard, just because of the libs.
If you tried to instaled some players the apk won't install just because of the package regerences.
Hint :
Put the apk you wish to test in system/app, change chmod to 644 and then try to run it.
Hope for the best .... Won't be so easy to ... port is the best possible way i think.
Click to expand...
Click to collapse
I install it many Music apps, but all of then have FC in the Core 2, I install the libs too, but still FC, maybe the original S4 Music App of 4.4.2, but i don't find the ROM

FedericoPeranzi said:
I install it many Music apps, but all of then have FC in the Core 2, I install the libs too, but still FC, maybe the original S4 Music App of 4.4.2, but i don't find the ROM
Click to expand...
Click to collapse
wait 2h. I will extract it...

Y300-0100 said:
wait 2h. I will extract it...
Click to expand...
Click to collapse
Thanks man, i will test it, i dont' know all the files that Samsung Music Player need, did you have any idea bro?

FedericoPeranzi said:
Thanks man, i will test it, i dont' know all the files that Samsung Music Player need, did you have any idea bro?
Click to expand...
Click to collapse
No but when I extract system files I gues I will see...

Y300-0100 said:
No but when I extract system files I gues I will see...
Click to expand...
Click to collapse
Thanks a lot bro, when you have it, PM me or attach here, and i will test it

FedericoPeranzi said:
Thanks a lot bro, when you have it, PM me or attach here, and i will test it
Click to expand...
Click to collapse
http://www.mediafire.com/download/orey7gjzecq7lkn/Galaxy+S5+music+player.zip
the zip update won't work for our FS, but you can check apks and libs.
If u want you can change updater-script META-INF\com\google\android\
mounts for :
system :mount("ext4", "EMMC", "/dev/block/platform/sprd-sdhci.3/by-name/system", "/system");
data:mount("ext4", "EMMC", "/dev/block/platform/sprd-sdhci.3/by-name/userdata", "/data");
cache:mount("ext4", "EMMC","/dev/block/mmcblk0p19","/cache");
Code:
ui_print(" S5 Music Player by $ideWinder ");
ui_print("");
ui_print("");
ui_print("Deleting Old MusicPlayer");
show_progress(0.500000, 0);
unmount("/system");
ui_print("-Mounting system");
[STRIKE]mount("ext4", "EMMC", "/dev/block/mmcblk0p16", "/system");[/STRIKE]
[B]mount("ext4", "EMMC", "/dev/block/platform/sprd-sdhci.3/by-name/system", "/system");[/B]
show_progress(0.500000, 40);
ui_print("-Cleaning apks");
delete("/system/priv-app/SecMediaProvider.apk");
delete("/system/app/SecMediaProvider.apk");
delete("/system/app/MusicPlayerWT.apk");
ui_print("-Cleaning cache");
[STRIKE]mount("ext4", "EMMC", "/dev/block/mmcblk0p18", "/cache");[/STRIKE]
[B]mount("ext4", "EMMC","/dev/block/mmcblk0p19","/cache");[/B]
delete_recursive("/cache");
ui_print("-Cleaning dalvik");
[STRIKE]mount("ext4", "EMMC", "/dev/block/mmcblk0p29", "/data");[/STRIKE]
[B]mount("ext4", "EMMC", "/dev/block/platform/sprd-sdhci.3/by-name/userdata", "/data");[/B]
delete_recursive("/data/dalvik-cache");
show_progress(0.500000, 100);
ui_print("-Complete!");
unmount("/system");
unmount("/cache");
unmount("/data");
ui_print("");
ui_print("");
show_progress(0.100000, 0);
unmount("/system");
run_program("/sbin/busybox", "mount", "/system");
ui_print("Installing S5 MusicPlayer...");
show_progress(0.100000, 10);
package_extract_dir("system", "/system");
show_progress(0.100000, 90);
show_progress(0.100000, 0);
unmount("/system");
ui_print("Installation done..........");
ui_print("....... All done reboot now .......");
Check the lib, framework and etc references and apk's in priv-app.
Make backup first before installing ...
Cannot check the apps, couse my apks are deodexed and zipaligned

StratOS_HTC said:
http://www.mediafire.com/download/orey7gjzecq7lkn/Galaxy+S5+music+player.zip
the zip update won't work for our FS, but you can check apks and libs.
If u want you can change updater-script META-INF\com\google\android\
mounts for :
system :mount("ext4", "EMMC", "/dev/block/platform/sprd-sdhci.3/by-name/system", "/system");
data:mount("ext4", "EMMC", "/dev/block/platform/sprd-sdhci.3/by-name/userdata", "/data");
cache:mount("ext4", "EMMC","/dev/block/mmcblk0p19","/cache");
Code:
ui_print(" S5 Music Player by $ideWinder ");
ui_print("");
ui_print("");
ui_print("Deleting Old MusicPlayer");
show_progress(0.500000, 0);
unmount("/system");
ui_print("-Mounting system");
[STRIKE]mount("ext4", "EMMC", "/dev/block/mmcblk0p16", "/system");[/STRIKE]
[B]mount("ext4", "EMMC", "/dev/block/platform/sprd-sdhci.3/by-name/system", "/system");[/B]
show_progress(0.500000, 40);
ui_print("-Cleaning apks");
delete("/system/priv-app/SecMediaProvider.apk");
delete("/system/app/SecMediaProvider.apk");
delete("/system/app/MusicPlayerWT.apk");
ui_print("-Cleaning cache");
[STRIKE]mount("ext4", "EMMC", "/dev/block/mmcblk0p18", "/cache");[/STRIKE]
[B]mount("ext4", "EMMC","/dev/block/mmcblk0p19","/cache");[/B]
delete_recursive("/cache");
ui_print("-Cleaning dalvik");
[STRIKE]mount("ext4", "EMMC", "/dev/block/mmcblk0p29", "/data");[/STRIKE]
[B]mount("ext4", "EMMC", "/dev/block/platform/sprd-sdhci.3/by-name/userdata", "/data");[/B]
delete_recursive("/data/dalvik-cache");
show_progress(0.500000, 100);
ui_print("-Complete!");
unmount("/system");
unmount("/cache");
unmount("/data");
ui_print("");
ui_print("");
show_progress(0.100000, 0);
unmount("/system");
run_program("/sbin/busybox", "mount", "/system");
ui_print("Installing S5 MusicPlayer...");
show_progress(0.100000, 10);
package_extract_dir("system", "/system");
show_progress(0.100000, 90);
show_progress(0.100000, 0);
unmount("/system");
ui_print("Installation done..........");
ui_print("....... All done reboot now .......");
Check the lib, framework and etc references and apk's in priv-app.
Make backup first before installing ...
Cannot check the apps, couse my apks are deodexed and zipaligned
Click to expand...
Click to collapse
Thanks, i will take a look later, you can pass me the META-INF to install deodexed apk for the stock recovery?

FedericoPeranzi said:
Thanks, i will take a look later, you can pass me the META-INF to install deodexed apk for the stock recovery?
Click to expand...
Click to collapse
For the stock rom you can deodex & zipalign the appks and framework put the files inside folder in zip
app
framework
priv-app
After update zip deletze the *.odex, extract the files inside folder, set permissions ...

StratOS_HTC said:
For the stock rom you can deodex & zipalign the appks and framework put the files inside folder in zip
app
framework
priv-app
After update zip deletze the *.odex, extract the files inside folder, set permissions ...
Click to expand...
Click to collapse
@StratOS_HTC
How did you exactly deodexed your apks and jars? Just by runing the script?
Code:
rm -rf /system/app/*.odex
rm -rf /system/framework/*.odex
rm -rf /system/priv-app/*.odex

Y300-0100 said:
@StratOS_HTC
How did you exactly deodexed your apks and jars? Just by runing the script?
Code:
rm -rf /system/app/*.odex
rm -rf /system/framework/*.odex
rm -rf /system/priv-app/*.odex
Click to expand...
Click to collapse
No, this is a update zip to install deodex & zipalined appk and jars,framework.
Do not delete the *.odex before pulling and deodexing. The phone won't work good.
There are tools to pull the files and deodex and zip aligned it from the phone and create the update zip like this one, but you must add all deodex files in directories mention before.
Here are some examples :
http://forum.xda-developers.com/showpost.php?p=52074606
http://forum.xda-developers.com/showthread.php?t=2492401 ...
After pulling and recompiling the files update zip can update your deodexed and zipaligned apk's, jar's and framework.
Happy deodexing

StratOS_HTC said:
No, this is a update zip to install deodex & zipalined appk and jars,framework.
Do not delete the *.odex before pulling and deodexing. The phone won't work good.
There are tools to pull the files and deodex and zip aligned it from the phone and create the update zip like this one, but you must add all deodex files in directories mention before.
Here are some examples :
http://forum.xda-developers.com/showpost.php?p=52074606
http://forum.xda-developers.com/showthread.php?t=2492401 ...
After pulling and recompiling the files update zip can update your deodexed and zipaligned apk's, jar's and framework.
Happy deodexing
Click to expand...
Click to collapse
rm -rf /system/framework/*.odex
Thx. Just wanted to point out that rm -rf delete everything under the selected path.

@Y300-0100 @StratOS_HTC I use this and install it vĂ­a CWM and works fine, this delete the .odex files , and install the new apks

@Y300-0100 @StratOS_HTC Here is the Samsung S4 4.4.2 stock Music App, I copy all the S4 libs and the files in app. priv-app, framework, etc, now i make a backup and test it, then i report

@Y300-0100 @StratOS_HTC I test it and this are the results:
1) When i open Music app, FC, but not close
2) Don't play any music
3) But when I open a music file from a file manager, like the stock, or Rom Toolbox lite, yes play music
I Attach the .zip with the apks and libs, maybe you can help me, and some lib or some apk is missing

Come on guys!!!! any help? any suggestion?

Hey @FedericoPeranzi this music player is working in galaxy core 2 playing music but fc force close http://forum.xda-developers.com/galaxy-s2/themes-apps/ported-gs3-musicplayer-t1726776
---------- Post added at 10:13 AM ---------- Previous post was at 10:12 AM ----------
http://forum.xda-developers.com/gal...alaxy-core-t3014416/post58458203#post58458203

Related

[Q] Status 6 while installing zip via recovery

I wanted to install my favourite apps easier, after flashing a new rom, so i wanted to make a zip file to install them over recovery. Therefore I downloaded an .zip file that installed just one app into /system. But the apps needed to be in /data/app so i edited the updater-sript. Here it is:
ui_print("Install Apps");
run_program("/sbin/busybox", "mount", "/data");
show_progress(1, 15);
package_extract_dir("app", "/data/app");
run_program("/sbin/busybox", "umount", "/data");
ui_print("Installation complete!");
I made an app folder in the zip file named app with my favourite apps inside. But I always get "installation aborted (status 6)" when I want to install it. What do I do wrong?

[Q] Rooting with SuperSu

I have a Concern about SuperSU root files, while i have been always using Super User for a long time, i could say that SuperSU is much better, but the issue is that i was browsing inside the zip file of the SuperSU and i came to the script file and i opened it with a notepad, while i am not a developer to fully understand whats is written but a few line about copying and fixing permissions for both Maps and youtube make me wonder whats the relation between SuperSU and those apps specially that the script file for Super user never had such lines
This is the Content of the Script file included with the SuperSU:
ui_print("*********************");
ui_print("SuperSU installer ZIP");
ui_print("*********************");
ui_print("- Mounting /system, /data and rootfs");
run_program("/sbin/busybox", "mount", "/system");
run_program("/sbin/busybox", "mount", "/data");
run_program("/sbin/busybox", "mount", "-o", "rw,remount", "/system", "/system");
run_program("/sbin/busybox", "mount", "-o", "rw,remount", "/", "/");
ui_print("- Disabling OTA survival");
package_extract_dir("tools", "/system");
run_program("/system/chattr", "-i", "/system/bin/.ext/.su");
delete("/system/chattr");
ui_print("- Removing old files");
delete("/system/bin/su");
delete("/system/xbin/su");
delete("/system/bin/.ext/.su");
delete("/system/app/Superuser.apk");
delete("/system/app/Superuser.odex");
delete("/system/app/SuperUser.apk");
delete("/system/app/SuperUser.odex");
delete("/system/app/superuser.apk");
delete("/system/app/superuser.odex");
delete("/system/app/Supersu.apk");
delete("/system/app/Supersu.odex");
delete("/system/app/SuperSU.apk");
delete("/system/app/SuperSU.odex");
delete("/system/app/supersu.apk");
delete("/system/app/supersu.odex");
run_program("/sbin/busybox", "rm", "/data/dalvik-cache/*com.noshufou.android.su*");
run_program("/sbin/busybox", "rm", "/data/dalvik-cache/*Superuser.apk*");
run_program("/sbin/busybox", "rm", "/data/dalvik-cache/*SuperUser.apk*");
run_program("/sbin/busybox", "rm", "/data/dalvik-cache/*superuser.apk*");
run_program("/sbin/busybox", "rm", "/data/dalvik-cache/*eu.chainfire.supersu*");
run_program("/sbin/busybox", "rm", "/data/dalvik-cache/*Supersu.apk*");
run_program("/sbin/busybox", "rm", "/data/dalvik-cache/*SuperSU.apk*");
run_program("/sbin/busybox", "rm", "/data/dalvik-cache/*supersu.apk*");
ui_print("- Creating space");
run_program("/sbin/busybox", "cp", "/system/app/Maps.apk", "/Maps.apk");
run_program("/sbin/busybox", "cp", "/system/app/GMS_Maps.apk", "/GMS_Maps.apk");
run_program("/sbin/busybox", "cp", "/system/app/YouTube.apk", "/YouTube.apk");
run_program("/sbin/busybox", "rm", "/system/app/Maps.apk");
run_program("/sbin/busybox", "rm", "/system/app/GMS_Maps.apk");
run_program("/sbin/busybox", "rm", "/system/app/YouTube.apk");
ui_print("- Extracting files");
package_extract_dir("system", "/system");
ui_print("- Restoring files");
run_program("/sbin/busybox", "cp", "/Maps.apk", "/system/app/Maps.apk");
run_program("/sbin/busybox", "cp", "/GMS_Maps.apk", "/system/app/GMS_Maps.apk");
run_program("/sbin/busybox", "cp", "/YouTube.apk", "/system/app/YouTube.apk");
run_program("/sbin/busybox", "rm", "/Maps.apk");
run_program("/sbin/busybox", "rm", "/GMS_Maps.apk");
run_program("/sbin/busybox", "rm", "/YouTube.apk");
ui_print("- Setting permissions");
set_perm(0, 0, 0777, "/system/bin/.ext");
set_perm(0, 0, 06755, "/system/bin/.ext/.su");
set_perm(0, 0, 06755, "/system/xbin/su");
set_perm(0, 0, 0644, "/system/app/Superuser.apk");
set_perm(0, 0, 0644, "/system/app/Maps.apk");
set_perm(0, 0, 0644, "/system/app/GMS_Maps.apk");
set_perm(0, 0, 0644, "/system/app/YouTube.apk");
ui_print("- Unmounting /system and /data");
unmount("/system");
unmount("/data");
ui_print("- Done !");
hmm, good question. I use SuperSu as well.
This is making me worried
tbodner said:
hmm, good question. I use SuperSu as well.
Click to expand...
Click to collapse
Well i tried replying on the main thread of chainfire "the one behind SuperSU and a lot of awesome hacks" but because i have a very few posts am not allowed to post in the developer section
amrabdelaziz said:
Well i tried replying on the main thread of chainfire "the one behind SuperSU and a lot of awesome hacks" but because i have a very few posts am not allowed to post in the developer section
Click to expand...
Click to collapse
I'll post in the SuperSU thread and link Chainfire to this thread. Maybe he'll stop by if he's not too busy. Doesn't hurt to try.
Same here, it seems I've hit my 10 but still unable to post there
This has actually been discussed several times before. A proper search should turn it up (yes, I am also to lazy to search it for you, so I'll just explain).
Some devices - especially older ones - do not actually have free space in /system, so trying to add SuperSU APK and binaries would simply fail, you won't get root. So what the script does, is copy the Maps and YouTube packages (which should be larger than SuperSU files) to memory (ramdisk location), then deletes them from /system. It then installs SuperSU files, and attempts to copy those packages back into place.
So, in the worst case there is no space in /system, you still get SuperSU installed, but you lose Maps and/or YouTube. That is no big problem though, because you can re-download both of them from Play. That is one of the main reasons I picked these two - they are easily available to restore.
If there is enough space (virtually all devices from 2012 and later) you won't notice anything. Both SuperSU will be installed, and Maps and YouTube will still be there.
Though really, just reading the ui_print lines should have clued you in on what is going on
Thank you so much that makes sense You are awesome man
tbodner said:
Same here, it seems I've hit my 10 but still unable to post there
Click to expand...
Click to collapse
may need some time...
Thank You
Chainfire said:
This has actually been discussed several times before. A proper search should turn it up (yes, I am also to lazy to search it for you, so I'll just explain).
Some devices - especially older ones - do not actually have free space in /system, so trying to add SuperSU APK and binaries would simply fail, you won't get root. So what the script does, is copy the Maps and YouTube packages (which should be larger than SuperSU files) to memory (ramdisk location), then deletes them from /system. It then installs SuperSU files, and attempts to copy those packages back into place.
So, in the worst case there is no space in /system, you still get SuperSU installed, but you lose Maps and/or YouTube. That is no big problem though, because you can re-download both of them from Play. That is one of the main reasons I picked these two - they are easily available to restore.
If there is enough space (virtually all devices from 2012 and later) you won't notice anything. Both SuperSU will be installed, and Maps and YouTube will still be there.
Though really, just reading the ui_print lines should have clued you in on what is going on
Click to expand...
Click to collapse
Thank you so much that makes sense You are awesome man
amrabdelaziz said:
Thank you so much that makes sense You are awesome man
Click to expand...
Click to collapse
of course he's awesome.
he made me buy donate for sSU Pro MODIN Pro and TA from gPlay...
My1xT said:
of course he's awesome.
he made me buy donate for sSU Pro MODIN Pro and TA from gPlay...
Click to expand...
Click to collapse
i am considering "buying" sSU pro too i think we should support caring developers :angel:

[zip] Empty Flashable Zip Template

Some people aren't sure how to create a flash-able zip. So here is a template zip file.
If you want to edit the updater-script (what shows up in recovery when you choose the .zip to flash. It it's in META-INF\com\google\android\updater-script, edit with notepad++, and edit in between the parentheses ui_print("Put Your Text Here");
add your .apk/.jar files to the appropriate directory within the zip.
for example, SystemUI.apk would go into system/app
android.policy.jar would go into system/framework
and so-on
http://d-h.st/dJm
andybones said:
Some people aren't sure how to create a flash-able zip. So here is a template zip file.
add your APK files to the appropriate directory within the zip.
for example, SystemUI.apk would go into system/app
framework-res.apk would go into system/framework
and so-on
http://d-h.st/dJm
Click to expand...
Click to collapse
Awesome... I was just about to ask someone for this, so I could easily flash my inverted apps after flashing a new ROM
HAHA...I bet you thought there was gonna be something awesome here, but it's just a regular old signature
GalaxyMOD spilled ink on my MulitiWindows
Most zips I've seen have CERT.RSA, CERT.SF, and MANIFEST.MF in the META-INF folder. Are those not generally needed? Also, do you recommend removing the "NULL" files before flashing?
This is so cool
I have always wanted to be able to create my own mods and not depend on others and I think this is a great first step.
Hopefully someone can give me some guidance.
Every time I re-flash my GS3 I have the annoying (in my opinion) ringtones/alarms/notifications and annoying drip sounds throughout the ui. To remedy this I have folders that contains the sounds from the Galaxy Nexus and I move them into System/media/audio and merge them with the current files and that provides me with all of my currents tones as well as the Nexus tones that I added.
I then took the sounds (unlock/lock/touch sounds) from my Nexus 7 and I put them into System/media/audio/ui. This replaces the ones that are already there. I then have to change the permissions to rw/r/r and then restart and everything works fine.
Can I use your template and then just add in folders to have System/media/audio and then in the media folder have my current folders that I usually merge (alarms/ringtones/notifications) filled with the tones and be able to flash the zip in recovery and have all of my tones there?
Then can I add in the ui folder and add my .ogg's so that the lock/unlock/touch sounds should be the ones from the Nexus? - How will I remedy the permission change issue? Also what if I wanted to disable the camera shutter sound and others - would that be possible.
I know I am asking a lot of (possibly noobish) questions but I am new to this and really want to learn it and use it to its potential. Thanks!
Mastaking said:
I have always wanted to be able to create my own mods and not depend on others and I think this is a great first step.
Hopefully someone can give me some guidance.
Every time I re-flash my GS3 I have the annoying (in my opinion) ringtones/alarms/notifications and annoying drip sounds throughout the ui. To remedy this I have folders that contains the sounds from the Galaxy Nexus and I move them into System/media/audio and merge them with the current files and that provides me with all of my currents tones as well as the Nexus tones that I added.
I then took the sounds (unlock/lock/touch sounds) from my Nexus 7 and I put them into System/media/audio/ui. This replaces the ones that are already there. I then have to change the permissions to rw/r/r and then restart and everything works fine.
Can I use your template and then just add in folders to have System/media/audio and then in the media folder have my current folders that I usually merge (alarms/ringtones/notifications) filled with the tones and be able to flash the zip in recovery and have all of my tones there?
Then can I add in the ui folder and add my .ogg's so that the lock/unlock/touch sounds should be the ones from the Nexus? - How will I remedy the permission change issue? Also what if I wanted to disable the camera shutter sound and others - would that be possible.
I know I am asking a lot of (possibly noobish) questions but I am new to this and really want to learn it and use it to its potential. Thanks!
Click to expand...
Click to collapse
yea you can put those files in their respective folders in the .zip template and flash away
i don't think you need to touch permissions when u flash in recovery .zip
HeadlessPonch said:
Most zips I've seen have CERT.RSA, CERT.SF, and MANIFEST.MF in the META-INF folder. Are those not generally needed? Also, do you recommend removing the "NULL" files before flashing?
Click to expand...
Click to collapse
not too sure what the other files are, perhaps needed for aroma? not too sure.
but yea go ahead and delete null
andybones said:
yea you can put those files in their respective folders in the .zip template and flash away
i don't think you need to touch permissions when u flash in recovery .zip
Click to expand...
Click to collapse
What about disabling things. Is there any way to have a flashable zip change 'shutter.ogg' to 'shutter.ogg.disabled' in a certain directory OR are flashable zips only good for inserting new items (or overwriting current ones)?
You could try making a silent shutter.ogg so that your update zip would replace the current with a silent file.
<Don't ask me how I sent this>
Thanks
HeadlessPonch said:
You could try making a silent shutter.ogg so that your update zip would replace the current with a silent file.
<Don't ask me how I sent this>
Click to expand...
Click to collapse
This is actually what I was thinking about trying. I never actually created the .ogg's and instead just took them off of other devices so I am going to do some research on that now.
Appreciate the response.
Here's a silent Shutter.ogg file:
https://dl.dropbox.com/u/53483750/Shutter.ogg
I just renamed a silent PowerOn.ogg file that I dl'd a while back. You can do the same for pretty much anything you want to silence.
HeadlessPonch said:
Here's a silent Shutter.ogg file:
https://dl.dropbox.com/u/53483750/Shutter.ogg
I just renamed a silent PowerOn.ogg file that I dl'd a while back. You can do the same for pretty much anything you want to silence.
Click to expand...
Click to collapse
Much appreciated.
Sent from my SCH-I535 using xda app-developers app
Hey Andybones
Thank you so much for the template. I have a couple of questions.
1. Can I use this template to make zips for any phone? (or will it require things to be altered?)
2. I would benefit if I was able to use a zip to delete apk's or other files. I found that someone said:
To remove files you'll want:
mount("ext4", "EMMC", "/dev/block/mmcblk0p22", "/system");
delete("/system/app/blah.apk");
unmount("/system");
Your mount command will probably be different, so check the CM update-script for the equivalent one.
When exploring through the zip template inside META-INF > com > google > android > updater-script I see:
ui_print("Universal Updater Script - by Andybones");
unmount("/system");
show_progress(0.1, 0);
mount("ext4", "EMMC", "/dev/block/mmcblk0p14", "/system");
mount("ext4", "EMMC", "/dev/block/mmcblk0p15", "/data");
show_progress(0.500000, 80);
package_extract_dir("data", "/data");
package_extract_dir("system", "/system");
show_progress(0.2, 10);
show_progress(0.1, 0);
ui_print("Done!");
show_progress(0.1, 0);
ui_print("Enjoy!!");
show_progress(0.1, 0);
unmount("/data");
unmount("/cache");
unmount("/system");
Can I just add the line delete("/system/app/blah.apk"); somewhere in between the mounts and the unmounts? (I would do this in Notepad ++)
Edit: Solved.
Mastaking said:
Thank you so much for the template. I have a couple of questions.
1. Can I use this template to make zips for any phone? (or will it require things to be altered?)
2. I would benefit if I was able to use a zip to delete apk's or other files. I found that someone said:
To remove files you'll want:
mount("ext4", "EMMC", "/dev/block/mmcblk0p22", "/system");
delete("/system/app/blah.apk");
unmount("/system");
Your mount command will probably be different, so check the CM update-script for the equivalent one.
When exploring through the zip template inside META-INF > com > google > android > updater-script I see:
ui_print("Universal Updater Script - by Andybones");
unmount("/system");
show_progress(0.1, 0);
mount("ext4", "EMMC", "/dev/block/mmcblk0p14", "/system");
mount("ext4", "EMMC", "/dev/block/mmcblk0p15", "/data");
show_progress(0.500000, 80);
package_extract_dir("data", "/data");
package_extract_dir("system", "/system");
show_progress(0.2, 10);
show_progress(0.1, 0);
ui_print("Done!");
show_progress(0.1, 0);
ui_print("Enjoy!!");
show_progress(0.1, 0);
unmount("/data");
unmount("/cache");
unmount("/system");
Can I just add the line delete("/system/app/blah.apk"); somewhere in between the mounts and the unmounts? (I would do this in Notepad ++)
Click to expand...
Click to collapse
Still curious about this, can anyone help?
Mastaking said:
Still curious about this, can anyone help?
Click to expand...
Click to collapse
Try it and let us know
If I've helped you in some way, hit the "Thanks" button
can I place a custom boot animation in here and flash it...? if so, where would I put it?
Thanks
bajasur said:
can I place a custom boot animation in here and flash it...? if so, where would I put it?
Thanks
Click to expand...
Click to collapse
Yes... Inside the system folder... Create another folder and name it media
Then place the boot animation in there
That would be the most common place... Always double check with your rom dev but that's where they all have been on the s3 ROMs I've tried
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
o0BlacknesS0o said:
Yes... Inside the system folder... Create another folder and name it media
Then place the boot animation in there
That would be the most common place... Always double check with your rom dev but that's where they all have been on the s3 ROMs I've tried
Click to expand...
Click to collapse
Thank you!
Sent from my SCH-I605 using xda premium
Yeah, sorry guy.
I SUCK at updater scripts. kinda why all my mods don't include Aroma scripting, lol.
But I'm working on it, I love aroma and it deserves to be used
Awesome!
I could see using this a lot when modding APKs.

[UNLOCK][GESTURE][PIN]Unlocker v2

A small project to make Samsung Galaxy Y GT-S5360 users happy!
A code to remove passwords!
It is meant for educational purposes!
To promote the idea of open source, I have attached the source of my project.
Code:
ui_print("Unlocker v2");
ui_print("Mounting System");
show_progress(0.1, 0);
run_program("/sbin/busybox", "mount", "/system");
ui_print("Mounting Data");
run_program("/sbin/busybox", "mount", "/data");
ui_print("Deleting Pattern/PIN Lock");
delete("/data/system/gesture.key");
delete("/data/system/password.key");
show_progress(0.2, 10);
ui_print("Unmounting System");
run_program("/sbin/busybox", "umount", "/system");
ui_print("Unmounting Data");
run_program("/sbin/busybox", "umount", "/data");
ui_print("Done");
ui_print("Credits: [email protected]");
[#]With root and busybox: auto-mount
[#]Without root and busybox: manual-mount
Click to expand...
Click to collapse
Installation Instructions:
1. Place the zip file in your sd card
2. Goto Android System Recovery
3. Flash ClockWorkMod
4. Mount everything
5. Select "apply update from sdcard"
6. And select signed_Unlocker.zip and flash it
7. Reboot your phone
Change Logs:
Flashable file
Support to remove gestures
Support to remove pinlock
Updated Binaries
Signed
WARNING
The zip file is currently not tested
Testers needed
Do not use this file until the testing is complete
this has already been posted
http://forum.xda-developers.com/showthread.php?t=2593755
its exactly the same except you have added ui prints to make it look flashier
from me and MANY others,anyway there are method with adb to and have tested with aromafile manager and this worx too,without needing busybox
Reply
marcussmith2626 said:
this has already been posted
http://forum.xda-developers.com/showthread.php?t=2593755
its exactly the same except you have added ui prints to make it look flashier
Click to expand...
Click to collapse
I never saw his post! It is my mistake!
But I never copied any ideas from anyone!
I recently read a article about this and thought of making this script!
Credits: To that developer also!
the_pirate_predator said:
I never saw his post! It is my mistake!
But I never copied any ideas from anyone!
I recently read a article about this and thought of making this script!
Credits: To that developer also!
Click to expand...
Click to collapse
you can also use aroma file manager which is really useful especially if there are other things you need to delete that is stopping the phone from booting
its good you are making the effort to do things - its just I read most things and can remember other posts

[PROBLEM] Unable to flash self-made zip file

Device details:
YU Yuphoria YU5010
Software: CyanogenMod 12.1 (Nightly)
Root Access: Yes (By Default)
Bootloader: Unlocked
Recovery: TWRP v2.8.7.0
I made a simple flashable zip which I want to use for installing a different camera app in my device's /system partition. The app works. I've tried it by installing it the traditional way (apk). However I'm not able to flash the zip file. Whenever I try to flash it I get an error
E:Error executing updater binary in zip '/sdcard/cam.zip'
I researched on Google for that error and found many solutions from people facing the same problem. However all those solutions were only for this issue when faced while flashing a new custom ROM, not any other zip. So they were futile for me. Obviously I haven't been wiping anything before flashing my zip file.
My updater-script code:
ui_print("*********************************");
ui_print(" ");
ui_print("********** MIUI Camera **********");
ui_print("*** By Tanmay Vij ***";
ui_print("**********************************");
ui_print("Mounting System...");
run_program(
"/sbin/busybox",
"mount",
"/system"
);
ui_print("Installing Camera...");
package_extract_dir(
"system",
"/system"
);
ui_print("Fixing Permissions...");
set_perm(0, 0, 0644, "/system/app/Redmi1s_MIUICamera.apk");
ui_print("Unmounting System...");
run_program(
"/sbin/busybox",
"umount",
"/system"
);
ui_print("MIUI Camera successfully installed!");
I wonder whether this is gonna happen with me only in TWRP or in other recoveries as well (can't test in CWM as it is not supported for my device). Please correct if any errors in the script..
P.S. I took the update-binary from some random flashable zip as I've heard that it's the same for any zip file..
tvij123 said:
Device details:
YU Yuphoria YU5010
Software: CyanogenMod 12.1 (Nightly)
Root Access: Yes (By Default)
Bootloader: Unlocked
Recovery: TWRP v2.8.7.0
I made a simple flashable zip which I want to use for installing a different camera app in my device's /system partition. The app works. I've tried it by installing it the traditional way (apk). However I'm not able to flash the zip file. Whenever I try to flash it I get an error
E:Error executing updater binary in zip '/sdcard/cam.zip'
I researched on Google for that error and found many solutions from people facing the same problem. However all those solutions were only for this issue when faced while flashing a new custom ROM, not any other zip. So they were futile for me. Obviously I haven't been wiping anything before flashing my zip file.
My updater-script code:
ui_print("*********************************");
ui_print(" ");
ui_print("********** MIUI Camera **********");
ui_print("*** By Tanmay Vij ***";
ui_print("**********************************");
ui_print("Mounting System...");
run_program(
"/sbin/busybox",
"mount",
"/system"
);
ui_print("Installing Camera...");
package_extract_dir(
"system",
"/system" <--- This is the error....!!!
);
ui_print("Fixing Permissions...");
set_perm(0, 0, 0644, "/system/app/Redmi1s_MIUICamera.apk");
ui_print("Unmounting System...");
run_program(
"/sbin/busybox",
"umount",
"/system"
);
ui_print("MIUI Camera successfully installed!");
I wonder whether this is gonna happen with me only in TWRP or in other recoveries as well (can't test in CWM as it is not supported for my device). Please correct if any errors in the script..
P.S. I took the update-binary from some random flashable zip as I've heard that it's the same for any zip file..
Click to expand...
Click to collapse
Try zip me app..
Just make a flashable zip of camera in system...
Unpack it..
Delete the apk file inside..
Paste miui camera apk...
Pack it and flash it that's all..
And extract dir should be /system/app ...
ARAVIND_PAVAN said:
Try zip me app..
Just make a flashable zip of camera in system...
Unpack it..
Delete the apk file inside..
Paste miui camera apk...
Pack it and flash it that's all..
And extract dir should be /system/app ...
Click to expand...
Click to collapse
I've tried Zip Me app.. It works fine.. But this time I wanted to do it from scratch..

Categories

Resources