New Superuser.apk - Droid Eris Android Development

I noticed alot of roms on here are using the older version of Superuser.apk
how come is the older one better ?
next im working on a new rom right now and i would like to use the newer superuser.apk and have failed im guessing its not a simple as drag and drop into the system/app folder
i do realize its a flashable update but then it would be professionally built in i take pride in my works...
how can i implement the newer version of Superuser.apk 2.1 into into my rom so i can cook it in the rom kitchen
TIA this is a wonderful community i have learned so much from you all
ps dumb down the instrctions if you dont mind Thanks

go download the new SU 2.1 update script from HERE
look inside the update script file in the zip and you will see exactly what is done to install SU 2.1
=)

n1ghtwish said:
go download the new SU 2.1 update script from HERE
look inside the update script file in the zip and you will see exactly what is done to install SU 2.1
=)
Click to expand...
Click to collapse
i have been using that script for a while now the flash-able version.....i have tried to extract in put that in my Rom but it doesnt work i still have to flash in the end i really wanted it built in
Just to let you know this is my very First Rom build so im not exactly sure what im doing wrong I think its more than cutting the old apk and adding the new one
actually after reading that script i think i already did those things but is didnt work it really looks different from the old build
Please help me out this is one of the final steps to my Rom ?

You symlink it? When you w want it to work for the rom you need to give it permissions and everything I think
-------------------------------------
Sent via the XDA Tapatalk App

t2noob said:
You symlink it? When you w want it to work for the rom you need to give it permissions and everything I think
-------------------------------------
Sent via the XDA Tapatalk App
Click to expand...
Click to collapse
what i did want and im sure its wrong....
after extrating the zip
i moved out the old su file from /system/xbin/
i moved out the old Superuser.apk from /system/app
put new su file in /system/xbin on my rom
put new Superuser.apk in /system/app on my rom
im sure im missing other set
TIA for anyone that can help me out !

ANYBODY ?????

DS36 said:
what i did want and im sure its wrong....
after extrating the zip
i moved out the old su file from /system/xbin/
i moved out the old Superuser.apk from /system/app
put new su file in /system/xbin on my rom
put new Superuser.apk in /system/app on my rom
im sure im missing other set
TIA for anyone that can help me out !
Click to expand...
Click to collapse
So far it looks like your on the correct track.
The only thing that the zip does aside from that is create a sym link from /system/xbin/su to /system/bin/su and changes the permissions of the su file in system/xbin/su
i don't know how to do that while integrating into a rom, but once you set the proper permissions and the sym link it, it "looks" like everything should work.
Good luck and hope it helps.

Related

[REQ] HTC Sense Live Wallpaper

Does anyone know where i can get the Desire's default live wallpaper for download? I've got Froyo and I liked that bubbles wallpaper.
Cheers,
Not 100% but it's probably the same as everything from Sense, you need to be running Sense to use them
donald-c said:
Not 100% but it's probably the same as everything from Sense, you need to be running Sense to use them
Click to expand...
Click to collapse
Hmm, i certainly hope not. I hope its just an app like any other live wallpaper.
anybody care to prove me wrong
alienwolf426 said:
Hmm, i certainly hope not. I hope its just an app like any other live wallpaper.
anybody care to prove me wrong
Click to expand...
Click to collapse
It's in the livewallpapers.apk. I replaced the one in DJDroid with the one from cyanogenmod6 and that worked. So I'm sure you can use the one from the leaked sense 2.2 rom in any random Froyo rom.
Edit:
I have attached the Livewallpaper files from DjDroid for you.
vrmp said:
It's in the livewallpapers.apk. I replaced the one in DJDroid with the one from cyanogenmod6 and that worked. So I'm sure you can use the one from the leaked sense 2.2 rom in any random Froyo rom.
Edit:
I have attached the Livewallpaper files from DjDroid for you.
Click to expand...
Click to collapse
Thanks for that.
So what do i do? just adb push the file to /system/app?
i should probably backup my old livewallpapers.apk eh?
alienwolf426 said:
Thanks for that.
So what do i do? just adb push the file to /system/app?
i should probably backup my old livewallpapers.apk eh?
Click to expand...
Click to collapse
Yep, like you said. Backup the current files and push the new ones to /system/app
vrmp said:
Yep, like you said. Backup the current files and push the new ones to /system/app
Click to expand...
Click to collapse
Thank you sir, I'll try it when i get home. will update if i run into any problems
alienwolf426 said:
Thank you sir, I'll try it when i get home. will update if i run into any problems
Click to expand...
Click to collapse
Your welcome, hope it works
i tried to adb push the files, and i got this error
failed to copy 'LiveWallpapers.apk' to '/system/app/LiveWallpapers.apk': Read-only file system
any ideas. I'm using DeFrost 2.0a, so I've got root access
alienwolf426 said:
i tried to adb push the files, and i got this error
failed to copy 'LiveWallpapers.apk' to '/system/app/LiveWallpapers.apk': Read-only file system
any ideas. I'm using DeFrost 2.0a, so I've got root access
Click to expand...
Click to collapse
You need to push it from recovery since you can't get read/write access on the desire because of the weird root.. so just reboot into recovery "adb shell mount /system" then "adb push ...."
that worked, but i don't think the zip file you attached had the bubbles live wallpaper from stock desire ... thanks though
alienwolf426 said:
that worked, but i don't think the zip file you attached had the bubbles live wallpaper from stock desire ... thanks though
Click to expand...
Click to collapse
Oh wait.. I think you are right, could be I replaced them in the ROM with another one. I don't have the original file anymore, so maybe you can download the DjDroid file yourself and see if it works that way.
Good luck
Ok, I'll give it a shot when i get home tonight, don't have the usb cable at work or i'd give it a shot right now
after some google searching i found this thread in the nexus one forum (didn't even think to search in there :s)
http://forum.xda-developers.com/showthread.php?t=647837&page=10
apparently, the sense wallpaper isn't in the livewallpaper.apk but in the mode10wallpaper.apk, and you need multiple libraries.
I'm going to grab the necessary files from DJDroid's rom and will give it a shot , if it works I'll post the files i pushed here
alienwolf426 said:
after some google searching i found this thread in the nexus one forum (didn't even think to search in there :s)
http://forum.xda-developers.com/showthread.php?t=647837&page=10
apparently, the sense wallpaper isn't in the livewallpaper.apk but in the mode10wallpaper.apk, and you need multiple libraries.
I'm going to grab the necessary files from DJDroid's rom and will give it a shot , if it works I'll post the files i pushed here
Click to expand...
Click to collapse
Found same link from google.Tedted on Deftost 2.0a ,but don't work...
vivmar said:
Found same link from google.Tedted on Deftost 2.0a ,but don't work...
Click to expand...
Click to collapse
no it wont, cause apparently the files attached in that forum are for 2.1 roms, not 2.2
So....no chance?
vivmar said:
So....no chance?
Click to expand...
Click to collapse
well, i'm going to try pushing the files from DJ's 2.2 rom to defrost and see if that works ... but i can't do that until i get home, as I'm missing the usb cable at work ... will update in about 5-6 hours or tomorrow
ok, so i finally was able to push the files into my phone and the desire's default bubbles wallpaper is working for me on Defrost 2.0b (which is a 2.2 froyo rom)
I'm attaching the zip file with the appropriate files that need to be pushed into your phone using adb.
use the following code to push the files into phone.
Code:
adb shell mount /system
adb push system/app/Mode10Wallpapers.apk system/app
adb push system/lib/libicule.so /system/lib
adb push system/lib/libiculx.so /system/lib
adb push system/lib/libmode10.so /system/lib
adb push system/lib/libmode10_wallpapers.so /system/lib
adb push system/lib/libmode10Graphics.so /system/lib
adb shell reboot
and then you will have HTC Sense wallpaper in your live wallpapers
enjoy
alienwolf426 said:
ok, so i finally was able to push the files into my phone and the desire's default bubbles wallpaper is working for me on Defrost 2.0b (which is a 2.2 froyo rom)
I'm attaching the zip file with the appropriate files that need to be pushed into your phone using adb.
use the following code to push the files into phone.
Code:
adb shell mount /system
adb push system/app/Mode10Wallpapers.apk system/app
adb push system/lib/libicule.so /system/lib
adb push system/lib/libiculx.so /system/lib
adb push system/lib/libmode10.so /system/lib
adb push system/lib/libmode10_wallpapers.so /system/lib
adb push system/lib/libmode10Graphics.so /system/lib
adb shell reboot
and then you will have HTC Sense wallpaper in your live wallpapers
enjoy
Click to expand...
Click to collapse
Tested and work for me also!
Thx

Busybox update.zip for incredible?

Does an update.zip exist for the incredible to add busybox to a stock rooted Rom? Or is there anyone willing to make one? I found one for the hero where they stripped down a rom and just left busybox, apps2sd, and Su. It would be greatly appreciated by many noobs like myself.
Sent from my ADR6300 using XDA App
I believe Stericson has an app out that installs busy box for you with a single click. Just search "Busy box" in the market and it should come up. Not sure as to whether or not it works on the Incredible, as I've an Evo, but it should.
I tried that but it failed saying either I it couldn't remount or I wasn't rooted.
Sent from my ADR6300 using XDA App
bradatz said:
Does an update.zip exist for the incredible to add busybox to a stock rooted Rom? Or is there anyone willing to make one? I found one for the hero where they stripped down a rom and just left busybox, apps2sd, and Su. It would be greatly appreciated by many noobs like myself.
Sent from my ADR6300 using XDA App
Click to expand...
Click to collapse
I think the unrevoked tool installs it for you.
I'll try that again, but I used 3.0 to root it. Maybe 3.1 will install it, I thought that was only windows fixes from 3.0
maybe
kind of a rookie here, but couldn't you just install titanium backup and then click the problems button. I think it downloads and install busybox??
Nice call!!! Worked like a charm. Thx.
NO
ejkeebler said:
kind of a rookie here, but couldn't you just install titanium backup and then click the problems button. I think it downloads and install busybox??
Click to expand...
Click to collapse
Wouldn't be permenant since NAND is still locked. Would lose it after reboot and have to do same thing over and over after every reboot.
http://www.unrevoked.com/incredible/payload-update.zip
Apply this payload-update.zip and it will install busybox. Just go to recovery and choose install zip from SD card and then choose this one
Then to test
go to cmd prompt
type adb shell
then when in shell type
busybox and you will see its now installed.
If you want the latest busybox, I've attached 1.16.2 freshly compiled.
One issue I ran into was that all the info on the forums has busybox being installed in /system/xbin. The PATH variable has /system/bin before /system/xbin, so that means the original symlinks to "toolbox" are getting picked up first - I don't know if I'm the only one who was annoyed by ls -al returning "-al: No such file or directory"
I guess "toolbox" didn't support this, so you can either install busybox to /system/bin, or leave it in /system/xbin and create a symlink called toolbox in /system/bin that points to busybox in /system/xbin.
As usual, backup your "toolbox" binary first before removing it from /system/bin.
Now ls -al returns a correct listing and I see no app breakage by the symlink method - Ti Backup runs just fine without needing to install its own busybox.
*edit - I guess this doesn't really answer the OP, but I figured I would share this anyway.
ok so I found a side effect - WiFi doesnt work after this. There seems to be a problem with dhcpcd and the new busybox, even though external dhcp support was compiled in...guess I've got some digging to do...
http://codehydra.com/Dinc/RootStock/roto-rooter.zip
that is a busybox install I ripped out of a N1 froyo root update.zip Cyanogen did, modded for the D-Inc.
Seems to work well for me.
the easy way is just to install titanium backup from the market and then click problems and it will install busybox for you in like 5 seconds
Not Really
... but it does NOT install the newest busybox; just one which is compatible with Titanium Backup.
Busybox.net shows v1.17 is the latest (unstable) release, and v1.16.2 is the latest stable. Titanium Backup pushes something in the v1.15 area.
http://www.busybox.net/
Also when I did it through titanium and went to busybox to install latest it said my system had none.
I have a busybox 1.16.2 version that I ripped from one of the posted ROMs that I can attach. It works on the Inc, and I think the whole DHCP / resolv.conf thing works too. At least it's the only version I tried where I can get wget working properly. You may need to create /system/etc/resolv.conf with some valid nameservers first though. Let me know if you want me to post it.
Hmm, nevermind. I tried with the busybox version I have, and WiFi does not get an IP address. Seems to be the same problem.
If you track it down, when you compile your version check if wget works properly also. There were some issues with that and DNS lookups. Don't forget you may need a valid resolv.conf.
Joe92T said:
the easy way is just to install titanium backup from the market and then click problems and it will install busybox for you in like 5 seconds
Click to expand...
Click to collapse
I second this , I used ones off the rooting forums and it never quite worked right until I let titanium backup install it for me. Also its much easier than pushing files to your device if you are unfamiliar with doing it, because you can download tb from market and it does the work for you
Sent from my ADR6300 using Tapatalk
Easiest way to stay current is to install the Stericson app. It can't install it for you due to the NAND lock, but
1) It's trivial to extract it and install manually from the .apk file.
2) It will give you an easy notification via the marketplace that a new version is available.

Adw Update?

I saw that ADW 1,01 is out and i want it...
So how do i instal/update it to v1.01? [and will all my preferences and settings,apps,etc be usable once i put on the 1.01?]
and plz be datailed about it,since ima noob with the android.ty
aca85 said:
I saw that ADW 1,01 is out and i want it...
So how do i instal/update it to v1.01? [and will all my preferences and settings,apps,etc be usable once i put on the 1.01?]
and plz be datailed about it,since ima noob with the android.ty
Click to expand...
Click to collapse
What version do you currently have?
Did it come with your rom or did you download it?
You can backup your settings (export) to your sdcard and restore (import) with the new version if by chance your settings are not preserved.
Im using CM 5.0.8 ,and it came with 0.8.9.
And how do i go about doing that export/import?
Either download link from your phone and install or download on PC put on SD card open file manager and install are easiest. Put it on a friends phone. Looks good. Backup and restore are in settings adw.
Sent from my HTC Magic using XDA App
Do a search for ADW.Launcher in the Market, it's there. Just make sure you have a period in between "ADW" and "Launcher."
Hey,
I'm interested in updating the ADW.Launcher version that came with my CM5.0.8 rom, but I don't know if it's OK to update through market or get the apk file and use "adb install" or find a zip file to flash...
Could anyone make some light in here pls?
Thanks!
I have tried downloading the apk file for my CM5x and MDPI device from Anderweb's page but when I tried to "adb install" I get...
INSTALL_FAILED_ALREADY_EXISTS
Can someone shed some light? Is there a way to update the ADW.Launcher that comes with a specific ROM version?
Tried using android commander?
Sent from my Chromatic Magic using XDA App
Since I'm new to this scene, what is the difference between the "adb install" method and using the Android Commander (which I need install)?
Would Astro help in this case, because I remember reading that has support for installing apk files?
I'd like to do this update as clean as possible.
Thank you for the reply!
PS: I have actually installed Android Commander and installed the ADW.Launcher apk for CM5x MDPI as an Update (wasn't sure what to chose between Private, Application or Update) and the installer said it was successful but after reboot I still have the old version 0.8.6
Any ideas?
U can download it put it on your sdcard and install with a file manager. Doesn't matter which way u go. Should work. Done it both ways
Sent from my Chromatic Magic using XDA App
I did it somewhat the way you said and installed it with Android Explorer as an update because the regular installation would fail with the error that the application already exists.
The problem is that the new version gets copied into /data/apps/ and I can start using it but after the first reboot it's not there anymore and I get back to the one that came with my CM5.0.8 rom which is in /system/apps/
I would really like to get a solution that would update the one in /system/apps/ which might be harder because it's a memory mapped version of the ROM and changes get lost after reboot.
Please correct me where I am wrong...
Have u tried goin to the market and installing it from there? It's like version 1.4.1 or something now
Sent from my Chromatic Magic using XDA App
place the file on your /sd.
adb push /sdcard/filename.apk /system/app
restart home or reboot phone.
I ended up installing the one from Market and making that the default launcher, but I would really like to just replace the one in the system folder - no need to keep 2 versions of the same app
I'll try the method NetrixTardis was suggesting.
U can do it through the terminal as well. Maybe removing the old one will solve it. Use the rm command in the terminal and see if u can do it that way. Ex.
$su (enter after each line)
#rm /system/app/(name of app.apk)
Then u can use cp command to copy the one from your sdcard.
Cp /sdcard/(app.apk) /system/app/
Someone correct me if I'm wrong in the lines
Sent from my Chromatic Magic using XDA App
hey johnson8cyl
I'll try that and let you know if it worked, should I copy it to the same name?
like /system/app/adwlauncher.apk is the name for the system app, while the Market installed one is org.adwlauncher....apk
do you guys know a good keyboard replacement and a way to configure the vibration alarm on my CM5.0.8? these are mostly the things I miss from my stock ROM
oh...forgot to mention the CM5.0.8 default camera does not have all the setting (like I can't set the ISO), is there one that does that trick?
thanks!
I'll answer the keyboard part. I've got Smart Keyboard installed and its a lot better than the stock Android one.
Sent from my HTC Magic using XDA App
U have to use the names exactly the one your removing and one your copying. Names have to be what u want to remove or copy. That make sense?
Sent from my Chromatic Magic using XDA App
Makes total sense to keep the same names only that I have this problem...
any ideas? kinda makes sense because that comes from the ROM and is mounted as read-only
# su
su
# pwd
pwd
/system/app
# rm -f ADWLauncher.apk
rm -f ADWLauncher.apk
rm: can't remove 'ADWLauncher.apk': Read-only file system
ps: I actually managed to fix this what was missing is "adb remount" to mount system partition read-write
So you figured it out? Were you able to get it removed and replaced?
Sent from my Chromatic Magic using XDA App

Flashlight Preinstalled in Vodafone Froyo release

Hi,
Can anybody extract the APK for the LED Torch app preinstalled in Froyo?
I saw that the one include with Froyo on the Desire works with a Desire with Eclair. (But doesn't work with my Legend) So I would like to check if the one included in Froyo for the Legend will also work with the Legend on Eclair.
The package name is com.htc.flashlight
Thanks!
U don't have to wait....
Try this APP: Lamppu
But first u have to (Soft)root your Legend with (Universal Androot)
After that, install superuser APP. Now start Lamppu and allow superuser rights...
Now u can use your LED as torch.
Tried it self on my legend v.2.1
Sure about the name?
The only thing I found in the Modaco ROM was Flashlight.apk
Then again...I have no clue what I am doing
above file is not working
Yeah it doesn't install
Ok gentlemen, one more try.
Extracted, re-zipped and signed the apk using apk-manager.
Removed the system app from my phone using TitaniumBackup and installed the signed apk through Root Explorer.
Works for me. No guarantee that it does for any other ROM or Android version though.
Sorry for the video but I just found out how to do screencasts and love it
Its German but you should be able to understand it.
Notice that it is now uninstallable and listed as downloaded app.
denisman said:
Ok gentlemen, one more try.
Extracted, re-zipped and signed the apk using apk-manager.
Removed the system app from my phone using TitaniumBackup and installed the signed apk through Root Explorer.
Works for me. No guarantee that it does for any other ROM or Android version though.
Click to expand...
Click to collapse
Installed and ran for me in stock 2.1 but it didn't do anything with the flash when playing with it
Thanks for trying!
This one is installing correctly, and also loading correctly, but it doesn't light up the LED.
So it isn't working
Are you phones rooted?
First of all, you have to have deodexed apk and second, you need to set right permissions in sysfs.
Sent from my HTC Legend
BlaY0 said:
First of all, you have to have deodexed apk and second, you need to set right permissions in sysfs.
Sent from my HTC Legend
Click to expand...
Click to collapse
The apk is deodexed. As for the permissions. No clue how to set them right
Had to read up an hour last night just to learn enough to extract it. Big newbie here hehe. Guess I'll check some threads about sysfs permissions and try it again later.
Sysfs is everything under /sys directory. File /sys/class/leds/flashlight/brightnes should have read-write permission set for everyone.
Sent from my HTC Legend
BlaY0 said:
Sysfs is everything under /sys directory. File /sys/class/leds/flashlight/brightnes should have read-write permission set for everyone.
Sent from my HTC Legend
Click to expand...
Click to collapse
Ahhh thanks! I guess I understand now.
Ok I just flashed whitetigerdk's rev03 ROM which is a rooted 2.03 ROM.
Than I did the following in adb shell:
Code:
chmod 777 /sys/class/leds/flashlight/brightness
checked permissions with:
Code:
cd /sys/class/leds/flashlight
ls -l
and it has rw permission for everyone now.
Code:
-rwxrwxrwx root root 4096 2010-12-01 16:29 brightness
Problem is, that booting the phone resets the permissions.
EDIT:
I just repeated the procedure while the phone was booted in normal mode.
Permissions successfully changed AND flashlight is working correctly, including all three different light settings!
Still, a reboot resets the permissions.
Guess I have to find a way to make this change permanent now and all is done
Hah so cool. Never used chmod or any other linux command until today. Had to google everything while I was testing. Nice how much one can learn here.
Another EDIT:
Found something else that is interesting.
http://developer.android.com/reference/android/Manifest.permission.html#FLASHLIGHT
Would adding this to the AndroidManifest.xml help aswell? I'd do it myself but I have to work soon. Just tried it decoding the xml with AXMLPrinter and adding it. Unfortunatly I don't know how to save the xml in the right format again and just saving it corrupts the apk. If noone else wants to give it a try I'll check back after work.
denisman said:
Still, a reboot resets the permissions.
Click to expand...
Click to collapse
Yeah... this is done via init.rc which is inside initrd image. So you have two options... tweak init.rc (you would need to unpack boot.img image and extract initrd image, edit init.rc, make new initrd image and construct back boot.img... this can all be done in one swoop with dsixda's kitchen) or make a script that is run every boot (we are doing it via run-parts which also requires editing of init.rc... once again dsixda's kitchen can add this functionality in a single swoop)...
As for "android.permission.FLASHLIGHT" I'm not sure about it as I can see that HTC is doing it avoiding it (setting permissions to 666 by default in FroYo)...
If you want decoding/encoding xmls use ApkManager. It's a nice CLI tool that can decompile and compile apks back...
You are quite a fast learner, congrats.
Back home Got pretty late.
I don't actually need this since I am running a rooted Froyo ROM anyways but thought it would be an interesting task to get this working for others to easily use it and for me to learn more about Android. The first option sounds like it would require a bit too much end-user activity and would be limited to a certain set of ROMs if I understand it correctly.
Leaving the second and third option as the most user-friendly ones I guess.
I will read up more on init.rc and ways to script for it tomorrow. Sounds like a very powerful "tool" to know.
For now I will concentrate on the XML. Might be the most comfortable and ROM-independent way if I get it to work.
BlaY0 said:
As for "android.permission.FLASHLIGHT" I'm not sure about it as I can see that HTC is doing it avoiding it (setting permissions to 666 by default in FroYo)...
If you want decoding/encoding xmls use ApkManager. It's a nice CLI tool that can decompile and compile apks back...
Click to expand...
Click to collapse
Used Apk Manager to extract, zip and sign the apk in the first place. Really nice tool. Just didn't find an option to convert the xml from binary to readable, that's why I used AXMLPrinter2.jar which can do the conversion one-way but not back to binary.
I'll find a way
Thanks again for the input! Helped me a lot!

[Q] .sh script help

Hey guys, need some help with this one from some of you with more android/linux experience than me.
In my continuing quest to make Blackhole as customizable as possible I've been working on a way for users to easily install paid apps (legally downloaded of course), and stuff that I don't have available in rom manager in one easy step at the same time the rom is installed. In pursuit of this goal I've found that it's possible for the update-script file inside a clockworkmod zip to call a script in the zip as well. I've gotten it to say it's run the script, but it doesn't do what it's supposed to. here's what i've got:
#! /bin/
busybox cp /sdcard/app/* /system/app/
When I type the command into a terminal on the phone it works. When I open an adb shell and type "bash install.sh" it works. But when I get the update.zip to run the script, or run it in root explorer it just says it's run it, but doesn't do anything.
Is there something I'm missing about how to call the script? Do I need to somehow add the bash program to the zip file so it can run the script right? Has anyone ever done something like this who can point me in the right direction?
do you have an output you can show us?
Sent from my SCH-I500 using XDA App
This is a shot in the dark but does writing to /system/app require root permissions? It could be that you've given your terminal app root, so it runs under su. But when the script is being executed it does not have root and fails, but perhaps the output is being held back a bit and you're not seeing the permission denied.
Steve_ ?!
whoa, didn't expect it to be you of all people
Anyhoo, this is a bit off topic, but I've got a small request, can you somehow make BlackHole 2.4 an option on Rom manager? I don't have DL09 so I can't use 3.0, but I really like the ability to select everything to customize, instead of me going and installing one thing at a time....
Why not just add the following to the end of the update-script:
Code:
copy_dir /sdcard/app SYSTEM:
Also, is the SDCard mounted by default when the phone boots to recovery? If it isn't, or it isn't mounted while the update is processing, that will also cause the problem.
wizang said:
This is a shot in the dark but does writing to /system/app require root permissions? It could be that you've given your terminal app root, so it runs under su. But when the script is being executed it does not have root and fails, but perhaps the output is being held back a bit and you're not seeing the permission denied.
Click to expand...
Click to collapse
Could very well be, it's not showing me any output when i run it the two ways it doesn't work, just says it's been run.
vegittoss15 said:
Steve_ ?!
whoa, didn't expect it to be you of all people
Anyhoo, this is a bit off topic, but I've got a small request, can you somehow make BlackHole 2.4 an option on Rom manager? I don't have DL09 so I can't use 3.0, but I really like the ability to select everything to customize, instead of me going and installing one thing at a time....
Click to expand...
Click to collapse
Haha, caught me. I was trying to remain incognito Yeah, i'll get 2.4 loaded back up on rom manager for you today. But if you flash 3.0 it will upgrade you to DL09 and the DJ05 kernels and modem are compatible, or at least no one i know of has had issues.
imnuts said:
Why not just add the following to the end of the update-script:
Code:
copy_dir /sdcard/app SYSTEM:
Also, is the SDCard mounted by default when the phone boots to recovery? If it isn't, or it isn't mounted while the update is processing, that will also cause the problem.
Click to expand...
Click to collapse
sdcard is mounted when you go to recovery, because it's got to access the update.zip file on it to install anything. I'll try your code, do you know what to put after SYSTEM: to make it go to the /app directory? thanks for the idea, it's a different way to go, i didn't think about the fact the update-script could access the device if you don't use the "package" tag.
Don't you need to add "sh" to the bin directory and define the script as so:
#! /bin/sh
if you want it to execute properly..
dcow90 said:
Don't you need to add "sh" to the bin directory and define the script as so:
#! /bin/sh
if you want it to execute properly..
Click to expand...
Click to collapse
normally yes, but there doesn't seem to be a /bin/sh directory on my fascinate, only /bin and that's where the cp and mv and cat, etc. are.
I made a script to do this forever ago on my G1 when it first came out... Let me see if I can find it.
This has been done lots of times before. If you look around on xda there are some backup scripts which do the same thing.
Sent from my SCH-I500
imnuts said:
Why not just add the following to the end of the update-script:
Code:
copy_dir /sdcard/app SYSTEM:
Also, is the SDCard mounted by default when the phone boots to recovery? If it isn't, or it isn't mounted while the update is processing, that will also cause the problem.
Click to expand...
Click to collapse
Well I gave that a shot, and i think it could work, but the recovery wouldnt do it. it says "non-package source path not yet supported" good idea tho.
yutsoku said:
I made a script to do this forever ago on my G1 when it first came out... Let me see if I can find it.
Click to expand...
Click to collapse
If you can that would be great.
n0yd said:
This has been done lots of times before. If you look around on xda there are some backup scripts which do the same thing.
Sent from my SCH-I500
Click to expand...
Click to collapse
I spent a good bit of time searching and most of the scripts I found were much more complex than what i need, or were written to run on a computer, which i've already done.
sonofskywalker3 said:
normally yes, but there doesn't seem to be a /bin/sh directory on my fascinate, only /bin and that's where the cp and mv and cat, etc. are.
Click to expand...
Click to collapse
Thats not the point. You need to set a shell interpreter, not a path. Cwm uses busybox sh, which is in /bin in recovery mode. Google search shebang
Sent from my SCH-I500 using XDA App
jt1134 said:
Thats not the point. You need to set a shell interpreter, not a path. Cwm uses busybox sh, which is in /bin in recovery mode. Google search shebang
Sent from my SCH-I500 using XDA App
Click to expand...
Click to collapse
Going to go ahead and parade my stupidity in front of everyone here:
so does that mean i'm right using #! /bin/ or that it should be #! /bin/sh/ or something else entirely? I'm so confused.
sonofskywalker3 said:
Going to go ahead and parade my stupidity in front of everyone here:
so does that mean i'm right using #! /bin/ or that it should be #! /bin/sh/ or something else entirely? I'm so confused.
Click to expand...
Click to collapse
#!/bin/sh for scripts in recovery. #!/system/bin/sh for scripts in android.
Sent from my SCH-I500 using XDA App

Categories

Resources