yashsingh1/xdaforums huggingface dataset:
[Fascinate General] sonofskywalker3:
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?
[Fascinate General] iwasaperson:
do you have an output you can show us?
[Fascinate General] wizang:
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.
[Fascinate General] vegittoss15:
Steve_ ?!

whoa, didn't expect it to be you of all people :P

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....
[Fascinate General] imnuts:
Why not just add the following to the end of the update-script:

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.
[Fascinate General] sonofskywalker3:
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.

Haha, caught me. I was trying to remain incognito :D 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.

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.
[Fascinate General] dcow90:
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..
[Fascinate General] sonofskywalker3:
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.
[Fascinate General] yutsoku:
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.
[Fascinate General] n0yd:
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
[Fascinate General] sonofskywalker3:
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.

If you can that would be great.

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.
[Fascinate General] jt1134:
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 ;)
[Fascinate General] sonofskywalker3:
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.
[Fascinate General] jt1134:
#!/bin/sh for scripts in recovery. #!/system/bin/sh for scripts in android.
[Nook Color General] Thibor69:
Will a rooted NC ever be able to play real Flash movies and games ( Flash 10.x ) Will it be doable whith Froyo ?? Flash and Java are the only 2 things that I still really crave for my NC.
[Nook Color General] pfcwintergreen:
Not with that attitude.

Real answer: ive little doubt that nookie froyo or cyanogen will make it happen and very soon.
[Nook Color General] philburkhardt:
Of course it will.

It's only been out for two months, and look at how far it has come.

The thing will be making me coffee by summer. :D
[Nook Color General] Homer_S_xda:
How do you define working? I can go to the about flash page from Dolphin HD on Nookie Froyo and it shows a valid version (10,1,61,68). UPDATE: Make that 1,1,106,15 from the Market update.

Homer
[Nook Color General] trentmaynard:
am I missing something?

are you asking weather or not the nook color can play flash videos in the browser like from Youtube or Ebaums world or sites like that? or do mean something else. because I got flash on my nook color. not flash lite but the full version. flash 10
[Nook Color General] mlswaney:
I've had some success with Skyfire playing videos.
[Nook Color General] cutterjohn:
Yep, I never cared much for skyfire either and just wait until you go to a page/site just LOADED with videos...

I expect that flash will make it to the NC, but I'm not expecting it to be lag free with some things given the Galaxy Tab performance... my gTablet actually nearly runs flash almost as well as my notebook (P8600/4850 mobility(same as desktop @ lower clock))
[Nook Color General] yossarian229:
^ This.

I anxiously await news on the cyanogen front.
[Nook Color General] Thibor69:
I was talking more about getting my NC to play flash game's via flash site's on the web. I Know about skyfire working with flash vidieo's....but I want to play flash games :)
[G1 Android Development] foronour:
iam do update to my radio and hboot

its now

hboot-1.33.0013d

radio-2.22.27.08

but when i flash rom CyanogenMod-6.1

its not open frized in screen G1
[G1 Android Development] chukis13:
Flash the right kernel from here.

Either the cm kernel or the anykernel.
[myTouch 4G Themes and Apps] big fancy:
Set cpu is $2 now and I see a lot of good reviews on cpu tuner. Using cpu tuner right now and noticed you can't go down past like 800mhz. Whole set cpu lets you go all the way down to 245mhz. Seems like that would save your battery more ruining at a lower click speed.

Anyone have any input on which is better?

So far another thing on cpu tuner is that there is always an icon in the notification bar...kinda annoying but at lay u know what profile your running at.

Thanks in advance.

Kevin
[myTouch 4G Themes and Apps] chrisjs81:
SetCPU is free for XDA forum members: http://xdaforums.com/showthread.php?t=505419

Depending on what you're using the phone for, letting the cpu run faster for a shorter period of time can be more efficient. If the phone is mostly idle a reasonable governor setting (not "performance") will keep the clock speed down most of the time.
[myTouch 4G Themes and Apps] jester450:
For CPU Tuner, go to settings, system, min displayed frequency and set it to 240.

It'll then display the min frequency to 246
[myTouch 4G Themes and Apps] Killbynature:
For me CPU tuner seems to complicated to set up. Set cpu is more user friendly.
[myTouch 4G Themes and Apps] cbach1987:
I use set cpu and I agree its much easier to use and love the profile settings
[myTouch 4G Themes and Apps] blkwhk:
tried doing this but still not letting me go lower then 450. Any other hints?
[myTouch 4G Themes and Apps] VibrantOwnr:
Setcpu is FREE for XDA members. Check out the g1 section. I am on my phone so I can't find the link but let me know if you can't find it and I will post it once I get to my computer.
[myTouch 4G Themes and Apps] VibrantOwnr:
here is the link for anyone who did not find it

http://xdaforums.com/showthread.php?t=505419
[myTouch 4G Themes and Apps] paczek:
No frills cpu is good too
[Epic 4G Q&A, Help & Troubleshooting] tony45x220:
I'm running the SupernovaROM and when I go into spare parts...my time without sleeping isn't at 100%....but It never fails that it gradually always creeps farthr and farther away from the screen time on number...it might start off (time without sleeping & Time with screen on) 1 or 2% apart..and by the end of the day its almost double..and this is consistant.

I've tried clearing the dalvic and regular cahes...I even fix the permissions in CWM 3....its fine for a couple days but the problem always creeps back...don't know what else I can do?

sent from my rooted, suited & booted Epic 4G know dat
[Epic 4G Q&A, Help & Troubleshooting] musclehead84:
What you do is when you notice that it's doubled on the top drop down box that says "other usage" click on that and change it to "partial wake usage" and anything listed under there is keeping your phone awake. See what is continually running.
[Epic 4G Q&A, Help & Troubleshooting] tony45x220:
Thank you...I saw that facebook was running for an extra amount of time...and I also saw that "android system" was running a little extra..what could that be? (Besides the obvious) could it be a problem with the radio or something along those lines?

sent from my rooted, suited & booted Epic 4G know dat
[Epic 4G Q&A, Help & Troubleshooting] ggoldfingerd:
I actually had a ton of trouble with this, but not on CW3. My problem was different, but I still want to talk about it. No matter what I did or what rom (including the stock), my time for not sleeping would reach 80% to 90%. I even tried without any applications installed. Sometimes this would even happen with the radio turned off. I finally fixed it within the last week.

My problem was fixed when I flashed EXT4 and midNIGHT rom v2.9. Now, my phone always sleeps. By the end of the day, the time without sleep I about 15%. Depending on usage, I have 40% to 60% battery life remaining after 16 or 17 hours. This is with push gmail, exchange, and gps turned on.

Maybe there was some glitch on my phone that wasn't being wiped in CW that was cleared when my file system was converted.

Good luck!
[Epic 4G Q&A, Help & Troubleshooting] tony45x220:
I really appreciate the help...only bad thing is I'm lready converted to EXT4 with CWM3....and I used to have the same issue with the sleep time being 80+ no matter the apps, I switched to Froyo and now the problm is more subtle with respect to the screen on and time WO sleeping %'s...they just crawl away from each other...I'm on supernova ROM 1.5...and I might have to take a look at that midNIGHT Rom....I have the Emotionless beast theme and I move around allot of Apk files through root explorer...(everything is compatable and works BTW).

But anyway I'll try that ROM out and see if I can get my Epic running as smooth as youres thanks again mane!

sent from my rooted, suited & booted Epic 4G know dat
[EVO Shift 4G Themes and Apps] vampir4997:
Can we get some colored keyboards for the shift. The hero ones dont work.

Shifty
[EVO Shift 4G Themes and Apps] riggsandroid:
Try some from the EVO forums...just a guess....

I'm Shifting on 4G.
[EVO Shift 4G Themes and Apps] riggsandroid:
http://xdaforums.com/showthread.php?t=654179

This kitchen works for the high-res version.

Here is my custom one for this weekend:
[EVO Shift 4G Themes and Apps] herbthehammer:
I'm stupid or something. I don't have a sn/pw to log into the kitchen
[EVO Shift 4G Themes and Apps] riggsandroid:
So register then... :)

I'm Shifting on 4G.
[EVO Shift 4G Themes and Apps] riggsandroid:
Vampir,

Want to update the OP with a list and you can maintain? If not i will start a new thread.

I will upload some more files and pics of the keyboards shortly as I am on my phone...
[EVO Shift 4G Themes and Apps] vampir4997:
Go ahead and start a new thread I don't know how to update it.
[EVO Shift 4G Themes and Apps] wardfan220:
I think it's just a matter of editing it and placing the new information there.
[EVO Shift 4G Themes and Apps] riggsandroid:
Im starting another thread - no big deal - but basically just click edit on the bottom of the post (on the old version of XDA it is on the right, not sure in the new version) and you can modify the "Message" portion. If you want to edit hte "Title" of your post/thread, then you can click "Go Advanced" on the editing window.

Hope everyone adds to the keyboard thread!
[EVO Shift 4G Themes and Apps] vampir4997:
Can we close this thread, another with links has been started
[EVO Shift 4G Themes and Apps] theimpaler747:
Thread closed as requested ;)
[EVO 4G Q&A, Help & Troubleshooting] postwick:
Yes, I know...the answers are all in the forum. But those threads are pages and pages and pages and I just need someone to tell me if I'm on the right track.

Soon I'm going to have to have my Evo replaced because the USB port is loose and I assume it is eventually going to break completely. I would like to...

1 - root

2 - titanium backup

3 - factory reset

4 - get new phone

5 - root

6 - restore

My goal is to switch phones and not have to reinstall everything and redo all my settings. Am I on the right track?

I planned to use the 3-click root app that I found here on the forums, btw.
[EVO 4G Q&A, Help & Troubleshooting] m20120:
You can root without a reset and losing your data. I was able to use unrevoked 3.32. In my case I wanted to root but not flash a new ROM so I did not need or want to clear my data in the process.
[EVO 4G Q&A, Help & Troubleshooting] postwick:
I'm confused...Unrevoked's web site says it doesn't work on stock Froyo. Does that mean my Sprint Evo? Or do they mean if you have literally a stock Froyo, i.e. no HTC Sense?
[EVO 4G Q&A, Help & Troubleshooting] Fazulka:
Use z4root.

Download the app from the xda thread, it is not in the market. click temporary root. you will have a limited root access until next reboot. Use titanium backup. reboot phone, uninstall z4root. make sure to remove all files from SD card before bringing the phone to the sprint store.
[EVO 4G Q&A, Help & Troubleshooting] m20120:
I used the info here:

http://unrevoked.com/rootwiki/doku.php/public/unrevoked3

If you have a stock Sprint Evo this should work for you. I have not tried it on an Evo running the latest OTA update but it should work. My Evo was a HW 0003 with Build 3.30.651.3 and HBOOT 2.02 and it worked fine. I was able to root and then install Titanium Backup to backup all of my data. I also made a Nandroid backup of the entire ROM before I did any experimenting. I still have not flashed a new ROM although I have experimented with some kernels. I still have my data on my phone at it exited before I rooted.

I would think you should be able to root, backup your data, and restore that data to another phone.
[EVO 4G Q&A, Help & Troubleshooting] m20120:
I also agree that z4root would work for you if you just want to do a backup of your data. This would save you from the trouble of unrooting before your exchange your phone.
[EVO 4G Q&A, Help & Troubleshooting] postwick:
What makes the z4root temporary?
[EVO 4G Q&A, Help & Troubleshooting] m20120:
z4root achieves root access in a way that allows you do things that require root access without making any permanent changes to your phone. Once you will have root access until you reboot. This would allow you to install Titanium Backup (and busybox) and get a backup. You could then uninstall busybox, Titanium, and z4root and cleanup before the exchange.
[EVO 4G Q&A, Help & Troubleshooting] postwick:
awesome. thanks to everyone for the quick answers.

ok so one last question. can I remove Sprint bloatware while it's temporarily rooted with z4root?
[EVO 4G Q&A, Help & Troubleshooting] Fazulka:
I'm pretty sure that you can not. And also sprint would know you were f-ing with the phone if all the bloat was missing.
[EVO 4G Q&A, Help & Troubleshooting] m20120:
Yes. You should be able to remove preinstalled applications while you have temporary root. You can also use Titanium for that. This is the only mod that I have done to my stock Evo after rooting. Obvously you would only want to do that the the new phone.

I used Root Explorer and simply moved the unwanted apps to my sdcard so I could restore them later if I wanted them back or if I caused a problem by removing an app.

I did not used z4root but I understand that you can do anything with temporary root access that you would normally do with permnanant root except flash custom roms, recoveries and kernels. If you want to remain stock or just remove bloat this is a good way to go. You should even be able to run apps like Wireless Tether, etc tis way... you just have to get root again each time you reboot.
[EVO 4G Q&A, Help & Troubleshooting] postwick:
well that was for when I get the new phone. but thanks.
[EVO 4G Q&A, Help & Troubleshooting] m20120:
Hmmm... I just tried z4root my the wife's Evo (a bit newer than mine with the latest OTA) and it did not work. It told me that I had temp root but no program was able to get root access. Might have to do some more research.
[EVO 4G Q&A, Help & Troubleshooting] postwick:
Yes I just had the same problem. Installed z4root, ran it, it went through the steps in about 30 seconds, said I was temporarily rooted...but Titanium Backup says it can't get root priveleges.

Rebooted, tried z4root again...same result.
[EVO 4G Q&A, Help & Troubleshooting] postwick:
I uninstalled z4root, installed busybox, rebooted, installed z4root...still doesn't work. it says it works, but Titanium Backup and busybox both say it's not rooted.
[EVO 4G Q&A, Help & Troubleshooting] postwick:
actually busybox is not installed. it won't install without root privileges. seems like a catch 22 if you have to root to install something that is required in order to root in the first place.
[Hero CDMA Q&A, Help & Troubleshooting] SimranSingh:
Like the title says, I always to type busybox in front of every command. I hate it, and any way to remove that?
[Hero CDMA Q&A, Help & Troubleshooting] SimranSingh:
Bump!?!?! No one can help?
[Hero CDMA Q&A, Help & Troubleshooting] refthemc:
what are you trying to do? you need to give more details.
[Hero CDMA Q&A, Help & Troubleshooting] SimranSingh:
I want to run commands normally, but I have to type "busybox" in front of every command to make them work.
[Hero CDMA Q&A, Help & Troubleshooting] runngwlf:
I am trying to figure out what commands your running. It can make a difference. Are you typing these in a shell or using a terminal emulator? You need to be more specific for us to help.
[General Questions and Answers] backdown:
I have to make the program to where it outputs "You were born on (DD-MM-YYYY, these are the user inputs).

I have everything besides that..can anyone help?

import java.util.Scanner;
//This program does math
public class Final
{
public static void main(String []args)
{
Scanner in=new Scanner(System.in);
System.out.println("One last test");

System.out.print("Enter your birthday (mm/dd/yyyy): ");

String roar=in.nextLine();
int n1=Integer.parseInt(roar);

String date;
String month, day, year;
String ox=in.nextLine();
String[] s = ox.split("/");
for( String str : s);

System.out.println("You were born on"+day+month+year);

}
}

That is what i have so far, but i need to declare the day, month and year..can anyone help me?
[General Questions and Answers] stephj:
You can cut it down to the bare bones with this:

import java.util.Scanner;
public class Final
{
public static void main(String []args)
{
Scanner in=new Scanner(System.in);
System.out.print("Enter your birthday (mm/dd/yyyy): ");
String ox=in.nextLine();
String[] s = ox.split("/");
System.out.printf("You were born on %s-%s-%s\n",s[1],s[0],s[2]);
}
}

Result:

C:\PROGRA~1\Java\JDK16~1.0_2\bin>java Final

Enter your birthday (mm/dd/yyyy): 01/20/2011

You were born on 20-01-2011

C:\PROGRA~1\Java\JDK16~1.0_2\bin>

You do not need to define month, day and year, because the split() function breaks the string ox into an array of three strings representing month, day and year.

The function printf() just puts them out formatted and in the correct order.

Note that there is no error handling whatsoever, if you enter a string with less than two '/' in it, it will throw an error.

If you are supposed to do all this by adding the required missing lines to the code given in the PDF file, (which is what I suspect you are meant to do, and not use the above smart ass version), try this:

import java.util.Scanner;
//This program does math
public class Final
{
public static void main(String []args)
{
Scanner in=new Scanner(System.in);
System.out.println("One last test");
System.out.print("Enter your birthday (mm/dd/yyyy): ");
String roar=in.nextLine();
int n1=roar.indexOf("/");
int month=Integer.parseInt(roar.substring(0,n1));
int n2=roar.indexOf("/",n1+1);
int day=Integer.parseInt(roar.substring(n1+1,n2));
int year=Integer.parseInt(roar.substring(n2+1));

System.out.println("You were born on: " + String.valueOf(day) + "-" +String.valueOf(month) + "-" + String.valueOf(year));
}
}

The above code would print today's date out as 20-1-2011
[Fascinate Themes and Apps] lbmorgan:
I tried about 9 different launchers and really felt most comfortable with LiveHome. Not only did it squash Bing it gave me options to make it as simple or complex as I wanted it. Instead of pissing and moaning about the long wait for Froyo .. I decided to make my Fascinate bearable until then.
[Fascinate Themes and Apps] imneveral0ne:
isnt that LauncherPro?
[Fascinate Themes and Apps] lbmorgan:
No it is LiveHome .. I mean it works pretty much exactly like LauncherPro .. Better drawer options, built it task manager, icon manager and it will load ADW themes ..
[Fascinate Themes and Apps] phooky:
You work for LiveHome?
[Fascinate Themes and Apps] lbmorgan:
No I do not
[Fascinate Themes and Apps] karallam:
Sounds like a sales pitch to me lol
[Fascinate Themes and Apps] Daswolven:
I don't run anything with a built in task manager if I can help it.
[Fascinate Themes and Apps] CouchSpud:
It's alright :/ Animations aren't quite as smooth as they are on LP or ADW... but the desktop transition effects are pretty damn sweet. I'll stick with what I had before.
[Fascinate Themes and Apps] Falcyn:
They just took ADW.Launcher and changed it a bit. ADW EX is much better than this. Me, I'll stick with LauncherPro Plus.
[Fascinate Themes and Apps] nbvb:
google search still goes through bing right?
[Fascinate Themes and Apps] lbmorgan:
I installed the apk posted in another thread .. I think it tells the Google widget to route to Google in the browser .. not sure .. but it works ..
[Fascinate Themes and Apps] ivorycruncher:
Um...huh? That's like saying the Ford assembly line is producing Chevys. Google search is Google search.

And btw, why did the OP need to use that specific launcher? As far as I know, any launcher other than the stock Touchwiz one will allow to put the Google search widget back on your homescreens, as soon as you remove the Bing apk file and install the Google Enhanced Search apk that was ripped from the Vibrant ROM. At that point, the search softkey and voice search is all Google again, with any launcher other than Touchwiz.

The only other problem is that the search function in the stock browser still uses Bing, which no launcher will change, but there is a de-binged browser apk available as well, or you can install a third party browser. There are many browsers that are infinitely better than the stock one, regardless of search engine preference.

Posted from my DL09 SuperClean Fascinate with Voodoo