Is there is any way to execute .sh while flashing rom
Eg
I wanna flash a mod but it requires .sh file to be run while flashing mod
So how to add mod to rom
Hpsgill said:
Is there is any way to execute .sh while flashing rom
Eg
I wanna flash a mod but it requires .sh file to be run while flashing mod
So how to add mod to rom
Click to expand...
Click to collapse
Sh files usually create a file in init.d folder. Identify that and include it your ROM. BTW which script are u thinking to include?
Sent from my HTC Explorer A310e using xda app-developers app
goateegauti said:
Sh files usually create a file in init.d folder. Identify that and include it your ROM. BTW which script are u thinking to include?
Sent from my HTC Explorer A310e using xda app-developers app
Click to expand...
Click to collapse
Crossbreeder
Sent from my HTC Explorer A310e using xda premium
Hpsgill said:
Crossbreeder
Sent from my HTC Explorer A310e using xda premium
Click to expand...
Click to collapse
Nice bro..... Hope it will be good on sense build. Dude compress those icons. Big icons look awkward on pico.
Sent from my HTC Explorer A310e using xda app-developers app
goateegauti said:
Nice bro..... Hope it will be good on sense build. Dude compress those icons. Big icons look awkward on pico.
Sent from my HTC Explorer A310e using xda app-developers app
Click to expand...
Click to collapse
u mean resize icons?
All icons are already resized to mdpi
Hpsgill said:
u mean resize icons?
All icons are already resized to mdpi
Click to expand...
Click to collapse
Resize even more by 25pc. It would look great. The bar looks filled with the present set of icons in settings, toggles, etc
Sent from my HTC Explorer A310e using xda app-developers app
@Hpsgill
Add this lines in updater-script:
Code:
package_extract_file("[B][COLOR="red"]Directory where is SH file[/COLOR][/B]", "/tmp/[B][COLOR="red"]file[/COLOR][/B].sh");
set_perm(0, 0777, 0777, "/tmp/[B][COLOR="red"]file[/COLOR][/B].sh");
run_program("/tmp/[B][COLOR="Red"]file[/COLOR][/B].sh");
Directory where is SH file means: If SH file is in root of ZIP you write "file.sh", if SH file is in Bin folder (Example) you write "/system/bin/file.sh" .
Replace file with the name of your SH file.
Regards .
Deic said:
@Hpsgill
Add this lines in updater-script:
Code:
package_extract_file("[B][COLOR="red"]Directory where is SH file[/COLOR][/B]", "/tmp/[B][COLOR="red"]file[/COLOR][/B].sh");
set_perm(0, 0777, 0777, "/tmp/[B][COLOR="red"]file[/COLOR][/B].sh");
run_program("/tmp/[B][COLOR="Red"]file[/COLOR][/B].sh");
Directory where is SH file means: If SH file is in root of ZIP you write "file.sh", if SH file is in Bin folder (Example) you write "/system/bin/file.sh" .
Replace file with the name of your SH file.
Regards .
Click to expand...
Click to collapse
Thanks buddy
Nice guide
Related
Boot animation of Samsung galaxy s2 ..
Just rename it and take it system/media...
If you are on stock add custom booting files first to bin folder....
That's all......
credits to
rushabh25 for making it for ace
me for sharing
Press thanks....please
Where did you get it may i know
Sent from my GT-S5830 using xda premium
Rushabh25 said:
Where did you get it may i know
Sent from my GT-S5830 using xda premium
Click to expand...
Click to collapse
Rushabh25,we know u made it for SGSII v7
Sent from my GT-S5670 using Tapatalk 2 Beta-4
sonudarock said:
Rushabh25,we know u made it for SGSII v7
Sent from my GT-S5670 using Tapatalk 2 Beta-4
Click to expand...
Click to collapse
Dude i have no probs of u sharing or editing my work but just edit the original post by giving credits and giving link to the original SGSII v7 Rom
Sent from my GT-S5830 using xda premium
Rushabh25 said:
Where did you get it may i know
Sent from my GT-S5830 using xda premium
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=1353561&highlight=custom+booting
i found it from galaxy mini. forums....
No i mean the boot animation!!Its from MY SII ROM for SGA
Sent from my GT-S5830 using xda premium
adityam533 said:
Boot animation of Samsung galaxy s2 ..
Just rename it and take it system/media...
If you are on stock add custom booting files first to bin folder....
That's all......
Press thanks....please
Click to expand...
Click to collapse
On stock ROM S5670XWKTI system/media don't work, but on data/local it work.
adityam533 said:
i found it from galaxy mini. forums....
Click to expand...
Click to collapse
Well its also my boot animation !!!Can u plz post credits and links to my s2 rom in the original post plz!Thanks
Sent from my GT-S5830 using xda premium
rom I can not use bootanimation, but I want to use bootanimation of sgsII
Arif.Setiawan said:
rom I can not use bootanimation, but I want to use bootanimation of sgsII
Click to expand...
Click to collapse
For stock ROM you download this bootanimation of adityam533.
http://forum.xda-developers.com/attachment.php?attachmentid=967716&d=1332840894
This "s2" remove.
Copoy it and paste with Root Explorer in data/local
Download this: http://forum.xda-developers.com/attachment.php?attachmentid=787669&d=1321694724
Save it on SD Card.
Copy and paste this two file with Root Explorer in system/bin
After press some seconds on paste files, and select Permissions, put a check mark for r,r,rw, and OK, Restart.
For Cyanogenmod don't need this two files. Just copy bootanimation, and past it with Root Explorer in system/media and Permissions, put a check mark for r,r,rw, OK, Restart.
Rename file in bootanimation.
Or you can use Absolute System its easy to change boot animation.
Sent from my GT-S5670 using XDA
moly.maji said:
Or you can use Absolute System its easy to change boot animation.
Sent from my GT-S5670 using XDA
Click to expand...
Click to collapse
I installed Absolute System. I got message: Filed for download bootanimation ...
Absolute app also requires custom booting files copied to system bin
Can someone show me how to make a flashable zip please? All I wanna do is take some apks I themed and flash them through twrp. I Googled how to do it and the guides give you a template where you just drop your apk in there and flash it but every time I try to flash it it fails.
Can someone maybe show me how to create it from scratch with the update scripts? People post flashable zips all the time on here so I'm sure someone knows how to do it.
Sent from my One X using xda app-developers app
If you have the apks all you gotta do is use an app like root explorer and.push the apks manually into the system changing the permissions accordingly. Would be much easier that way
lazarat said:
If you have the apks all you gotta do is use an app like root explorer and.push the apks manually into the system changing the permissions accordingly. Would be much easier that way
Click to expand...
Click to collapse
I know how to do that and it works that way but I have a bunch of apks I themed and I wanna make a flashable zip so people can install them all at once.
I asked similar question in android themes and here is the reply, hope it helps you
Here you have a empty Update Script.
http://dl.dropbox.com/u/1084746/SGS/UpdateEmpty.zip
You can put your apk inside.
Dont sign system apks!
Sent from my HTC One X using xda premium
abhipati said:
I asked similar question in android themes and here is the reply, hope it helps you
Here you have a empty Update Script.
http://dl.dropbox.com/u/1084746/SGS/UpdateEmpty.zip
You can put your apk inside.
Dont sign system apks!
Sent from my HTC One X using xda premium
Click to expand...
Click to collapse
I just put the apk in and flash?
Sent from my One X using xda app-developers app
SkizzMcNizz said:
I just put the apk in and flash?
Sent from my One X using xda app-developers app
Click to expand...
Click to collapse
Yup put the apk in and flash the zip
Sent from my HTC One X using xda premium
I think I know why I can't make a flashable zip right or why it fails. I think it's because of the permission being wrong. Does anyone know how to set the permissions of an apk file before it's on the phone? Do I just have to sign it with apk manager or something?
Sent from my One X using xda app-developers app
I'm pretty sure there was a great tutorial back in the Desire forums... I'd link you but I'm on my HOX.
Sent from my HTC One XL using xda premium
SkizzMcNizz said:
I think I know why I can't make a flashable zip right or why it fails. I think it's because of the permission being wrong. Does anyone know how to set the permissions of an apk file before it's on the phone? Do I just have to sign it with apk manager or something?
Sent from my One X using xda app-developers app
Click to expand...
Click to collapse
Dude use apk multi tool... I too experienced same problems but using this tool made things simple. It's does everything for you
http://apkmultitool.com/?q=node/5
Xda- http://forum.xda-developers.com/showthread.php?t=1310151
If you have questions regarding tool post them here
my HTC One X using xda premium i
abhipati said:
Dude use apk multi tool... I too experienced same problems but using this tool made things simple. It's does everything for you
http://apkmultitool.com/?q=node/5
Xda- http://forum.xda-developers.com/showthread.php?t=1310151
If you have questions regarding tool post them here
my HTC One X using xda premium i
Click to expand...
Click to collapse
I have been using it. But every time I try to make a flashable zip it fails. That's why I think it's because the permissions aren't set right. I'm asking how to set the permissions before you make a zip.
Sent from my One X using xda app-developers app
SkizzMcNizz said:
I have been using it. But every time I try to make a flashable zip it fails. That's why I think it's because the permissions aren't set right. I'm asking how to set the permissions before you make a zip.
Sent from my One X using xda app-developers app
Click to expand...
Click to collapse
I use it and I do not set any permissions it works fine....
Do you sign the apk? Which option are you using
I am not trying to smart, you may already sign but I faced similar problems so just helping out
Sent from my HTC One X using xda premium
SkizzMcNizz said:
Can someone show me how to make a flashable zip please? All I wanna do is take some apks I themed and flash them through twrp. I Googled how to do it and the guides give you a template where you just drop your apk in there and flash it but every time I try to flash it it fails.
Can someone maybe show me how to create it from scratch with the update scripts? People post flashable zips all the time on here so I'm sure someone knows how to do it.
Sent from my One X using xda app-developers app
Click to expand...
Click to collapse
App2zip
Available at the store, and free
Attached is a empty flash zip that will work on our phone the proper folders are in place to add apks to the system apps.
When adding apk to a zip you must create a folder path like system/app then place the apk inside the app folder so you would have a folder in the zip named system then inside that a folder named app inside that the apk or apks if they are system apps. You do not need to set permissions. When zipping the file when done just highlight the folders inside the extracted zip not the whole zip. ie. META-INF and system folder then right click select send to then compressed zip name the zip what ever you want then flash it.
http://db.tt/ksLowIQt
Sent from my HTC One XL using Forum Runner
Use permissions as shown in below link
http://www.dropmocks.com/iaWpL
I installed JDK, JRE, ADB with 4.0.3 api etc.
Still I am unable to decompile apk with anything, be it apktool or apk manager!
I get this error all the time
Code:
|Fri 10/26/2012 -- 17:09:59.08|
--------------------------------------------------------------------------
'java' is not recognized as an internal or external command,
operable program or batch file.
ShadowCode said:
I installed JDK, JRE, ADB with 4.0.3 api etc.
Still I am unable to decompile apk with anything, be it apktool or apk manager!
I get this error all the time
Code:
|Fri 10/26/2012 -- 17:09:59.08|
--------------------------------------------------------------------------
'java' is not recognized as an internal or external command,
operable program or batch file.
Click to expand...
Click to collapse
Use apktool
Sent from my HTC Explorer A310e using xda premium
Hpsgill said:
Use apktool
Sent from my HTC Explorer A310e using xda premium
Click to expand...
Click to collapse
I tried both,same error all the time!
Try this http://www.powerbot.org/community/t...ed-as-an-internal-or-external-command-fix-✔/
ShadowCode said:
I tried both,same error all the time!
Click to expand...
Click to collapse
Which bit of windows are u using 32bit or 64bit
Sent from my HTC Explorer A310e using xda premium
Hpsgill said:
Which bit of windows are u using 32bit or 64bit
Sent from my HTC Explorer A310e using xda premium
Click to expand...
Click to collapse
64 bit
shortyoko said:
Try this http://www.powerbot.org/community/t...ed-as-an-internal-or-external-command-fix-✔/
Click to expand...
Click to collapse
trying it, will report if work
Sorry I am out of thanks!
ShadowCode said:
trying it, will report if work
Sorry I am out of thanks!
Click to expand...
Click to collapse
Shortyoko thanks a lot, MOD may lock this, sorry for posting in development section, I usually do it for fast responses
For future reference, this happens when the Java binaries are missing in PATH environment variable. Adding the path to java.exe in PATH will fix the issue.
moved to Q&A
Friends I have the samsung galaxy tab 2.which is not rooted.I tryed to copy the system folder from system root to sdcard but the ESexplorer said "illegal operation".. is there any way to take the system folder.I don't want to root that...help me pls
Sent from my HTC Explorer A310e using xda app-developers app
My I497 tablet is not rooted either. I have Root Exploer installed and it did just what you wanted. Try a different file explorer/manager. Possibly the system folder is just too big for copy and paste. Try smaller sections.
Agoattamer said:
My I497 tablet is not rooted either. I have Root Exploer installed and it did just what you wanted. Try a different file explorer/manager. Possibly the system folder is just too big for copy and paste. Try smaller sections.
Click to expand...
Click to collapse
i tried es explorer,solid explorer,even 7zipper .but icant get that man
Sent from my GT-P3100 using xda app-developers app
Why are you trying to backup the whole system folder? Try smaller folders inside /system.
Agoattamer said:
Why are you trying to backup the whole system folder? Try smaller folders inside /system.
Click to expand...
Click to collapse
I tried man.but some folder/files like build.prop,cameradata etc ...don't copying from system root to sd card...
Sent from my HTC Explorer A310e using xda app-developers app
No problem here. You are copying and not cutting/moving?
Agoattamer said:
No problem here. You are copying and not cutting/moving?
Click to expand...
Click to collapse
I don't want to cut or move.I want to take that for porting
Sent from my HTC Explorer A310e using xda app-developers app
Ok, i have modified my flies.apk using winrar and when i pasted in system/app it was not fine.There were two my files . It should have asked to overwrite...
Then i deleted the old one and copied the new one. Then i rebooted it
Nothing was there. My new modified my files was not there. It was in system/app but not shown in app drawer(it was not hidden). I restored my old one (Thanks to titanium backup) but now it is not shown in system/app.
Well i want to know is there a problem in modified apk?
I have also signed it
I have used this method
Opened my files with winrar
Changed things
Closed winrar
Signed it
Is this correct?
Sent from my Gt-S7500
[email protected] said:
Ok, i have modified my flies.apk using winrar and when i pasted in system/app it was not fine.There were two my files . It should have asked to overwrite...
Then i deleted the old one and copied the new one. Then i rebooted it
Nothing was there. My new modified my files was not there. It was in system/app but not shown in app drawer(it was not hidden). I restored my old one (Thanks to titanium backup) but now it is not shown in system/app.
Well i want to know is there a problem in modified apk?
I have also signed it
I have used this method
Opened my files with winrar
Changed things
Closed winrar
Signed it
Is this correct?
Sent from my Gt-S7500
Click to expand...
Click to collapse
You probably forgot to give it System Apps permission 644 or rw-r-r-
Bassel Bakr said:
You probably forgot to give it System Apps permission 644 or rw-r-r-
Click to expand...
Click to collapse
No i mounted it as R/w and then pasted
Any other suggestions?
I want to upload it once its working
Thanks
Sent from my GT-S7500 using xda app-developers app
[email protected] said:
No i mounted it as R/w and then pasted
Any other suggestions?
I want to upload it once its working
Thanks
Sent from my GT-S7500 using xda app-developers app
Click to expand...
Click to collapse
I didn't mean mounting /system R/W
I mean your modded apk file permission, use an app like Xplore or Root Explorer to give it 644 permission in order to see it in the app drawer.
Or just install it as user app and use Titanium Backup to convert it to system app.
But how do i do with titanium backup as its not installed
In titanium backup old my files is shown not new one
Sent from my GT-S7500 using xda app-developers app
Set permissions but no luck
Any other thing?
Sent from my GT-S7500 using xda app-developers app
[email protected] said:
Set permissions but no luck
Any other thing?
Sent from my GT-S7500 using xda app-developers app
Click to expand...
Click to collapse
Create a backup of stock myfiles.apk..then delete it from /system/app..and push your modded myfiles.apk in /system/app...set its permissions to r-w-r-r..if you are using root browser then tap ur modded myfiles.apk..scroll down..u will see permissions...set it to r-w-r-r...and reboot your phone
hit thanks if i helped u
Sent from my GT-S7500
tandon.ayush said:
Create a backup of stock myfiles.apk..then delete it from /system/app..and push your modded myfiles.apk in /system/app...set its permissions to r-w-r-r..if you are using root browser then tap ur modded myfiles.apk..scroll down..u will see permissions...set it to r-w-r-r...and reboot your phone
hit thanks if i helped u
Sent from my GT-S7500
Click to expand...
Click to collapse
Done as u said but no luck
Sent from my GT-S7500 using xda app-developers app
[email protected] said:
Done as u said but no luck
Sent from my GT-S7500 using xda app-developers app
Click to expand...
Click to collapse
Then the problem is with the apk
hit thanks if i helped u
Sent from my GT-S7500