yashsingh1/xdaforums huggingface dataset:
[Nexus One General] iusauser:
The Incredible "S" is now available in negrielectronics.com (in fact, two versions: S710A and S710E; A = UMTS 850/1900), and yes, it supports HSPA+ 14.4 and Front Facing Camera
[Nexus One General] RogerPodacter:
Wow I had no idea it was coming with ATT bands. Peaks my interest now...
[Nexus One General] bigmout:
The Incredible S has promise, but I'm not interested if I can't install Cyanogen.
[Galaxy S I9000 Android Development] Tricky103:
Thank you chainfire
[Galaxy S I9000 Android Development] ragin:
Thanks for this chainfire.
[Galaxy S I9000 Android Development] theGanymedes:
Precisely what I was looking for! You're my hero today, man! :D
[Galaxy S I9000 Android Development] RolluS:
Hi Chainfire ;)

Thanks for your tricks, I'm using it for an almost bulletproof MTD flash script.

BTW, i'd like to call some set_perm commands. But set_perm isn't a recognized command for update-binary.

IDK if I'm clear.

Do you have some advise on that?
[Galaxy S I9000 Android Development] RolluS:
I've sort this writing equivalent functions:

set_perm() { # same as set_perm command in updater-script, for example:
#
# set_perm 0 3003 02750 "/system/bin/netcfg"
#
# sets user:group to 0:3003 and perm to 02750 for the file /system/bin/netcfg
$CHOWN $1:$2 $4
$CHMOD $3 $4
}
set_perm_recursive() { # same as set_perm command in updater-script, for example:
#
# set_perm_recursive 0 2000 0755 0755 "/system/bin"
#
# sets uid:gid to 0:2000 and perm to 0755 for folders and 0755 for files recursively in /system/bin
$CHOWN -R $1:$2 $5
$CHMOD $3 $5
#chmod recursive of folder
$FIND $5/* -type d |while read folder; do
$CHMOD $3 $folder
done
#chmod recursive of files
$FIND $5/* -type f |while read file; do
$CHMOD $4 $file
done
}

There is no error handling (yet), so be carrefull when calling these functions
[Galaxy S I9000 Android Development] mai77:
no FD, no output

finding the FD is difficult on an SGY phone under MT 2.0 kernel, because is is not passed as command line param and therefore not in the ps output.

can anyone give an example of a working FD ?

the expression returns "" on my SGY, and no output is readable from script.

above zip as one file with the (.*) business removed from FD expression in myscript.sh

I don't see that ps gives me a "FD" in its output. whatever that really is. /tmp/recovery.log says that /sbin/recovery has no command line params either on SGY :(

from recov.log:

I:Set boot command "boot-recovery"

Command: "/sbin/recovery"

there is no FD in the command line ! where is it then ?
[Galaxy S I9000 Android Development] AceofSpades90:
I'll test this in a bit. Nice hack b/w.
[Galaxy S I9000 Android Development] mai77:
any news?
[Galaxy S I9000 Android Development] rovo89:
Thanks for this trick. What I wanted to do is to redirect stdout (and stderr) of my script to the UI. I know that you can see this in "show logs", but I wanted it to display right during the installation. Here is what I came up with:

#!/sbin/busybox ash
OUTFD=$(ps | grep -v "grep" | grep -o -E "update_binary(.*)" | cut -d " " -f 3);
/sbin/busybox ash $* 2>&1 |
while read -r line
do
echo "ui_print $line" >&$OUTFD;
echo "ui_print " >&$OUTFD;
done

If you save this as "scripts/stdoutwrapper.sh", you can do something like this:

package_extract_dir("scripts", "/tmp/update");
set_perm(0, 0, 0755, "/tmp/update/stdoutwrapper.sh");
run_program("/tmp/update/stdoutwrapper.sh", "/tmp/update/myscript.sh", "param1", "param2");

In myscript.sh, use any shell commands. The output will be redirected to the UI. Therefore, you should be able to write scripts that work both on the command line and in recovery without changes.

Please note: As all output will be printed, the tricks with set_progress etc. don't work. It would probably be possible to use a prefix to identify commands that should be executed, not printed, so you could do e.g. "echo '<#>set_progress 0.25'".
[Galaxy S I9000 Android Development] mai77:
what value does OUTFD have? find out like below:

adb shell

ps

then /sbin/recovery might have PID 2166 on SGY phone

su

ls -l --color=never /proc/2166/fd

may give you e.g.

3 -> /dev/tty0

so 3 is your OUTFD ! :)

now grep it accordingly for the script. use MT kernel 2.0 on SGY for above capability
[Galaxy S I9000 Android Development] mai77:
time saver

edify Scripts may be tested by executing update-binary directly:

update-binary version output package

An example would be:

update-binary 2 stdout /sdcard/update.zip
[Galaxy S I9000 Android Development] osm0sis:
Just noticed Chainfire's ui_print shell script in the latest SuperSU zip, and that lead me here.

Here are some updated versions (for CWM6?); ui_print and set_perm from SuperSU and the other 2 from my tinkering today:

OUTFD=$2;
ZIP=$3
ui_print() {
echo -ne "ui_print $1\n" > /proc/self/fd/$OUTFD;
echo -ne "ui_print\n" > /proc/self/fd/$OUTFD;
}
set_perm() {
chown $1.$2 $4
chown $1:$2 $4
chmod $3 $4
}
show_progress() { echo "progress $1 $2" > /proc/self/fd/$OUTFD; }
set_progress() { echo "set_progress $1" > /proc/self/fd/$OUTFD; }

ex:

show_progress 1.34 0;

ui_print "Hello world!";

set_progress 0.5;

ui_print " "; #blank line

set_progress 1.34;

ui_print "Done!";

Also worth noting he just uses busybox unzip to extract files from the flashable zip directly and goes from there.

ex:

ui_print "Extracting files!"

cd /tmp

unzip -o "$ZIP"

I put ui_print "Test: $OUTFD" in a script and the value of OUTFD appears to increase with every zip flashed.

Not much use knowing it in that case.
[Galaxy S I9000 Android Development] kl3:
Nice work, I used this in my little zip. However, it doesn't work with TWRP. Is there any way to accomplish that?
[Galaxy S I9000 Android Development] shohag2018:
sorry to put this here but could anyone direct me towards the cwm or TWRP version for "jxjpb" (asia) baseband pls?
[Galaxy S I9000 Android Development] _that:
TWRP names the extracted update-binary "updater", so you can add something like this (or modify the regex in the existing line):

[ $OUTFD != "" ] || OUTFD=$(ps | grep -v "grep" | grep -o -E "updater(.*)" | cut -d " " -f 3)
[Galaxy S I9000 Android Development] osm0sis:
Shouldn't be necessary with any reasonably current recovery. That was just a hack Chainfire wrote to get the FD back in the CWM3 days.

All that should be required (and has always worked for me) is to make the update-binary your shell script, then:

OUTFD=$2;

See my other updated commands above. And some zips I've made which should provide good references for people: Nexus Louder, Xposed Framework Installer, and Nexus BootUnlocker. All available in my Odds and Ends thread, linked in my sig. :)
[Galaxy S I9000 Android Development] _that:
Yes, that works if you replace the whole update-binary with a shell script, but this method is for scripts that are called from the updater-script when using a binary updater.

I've recently switched to a shell script as updater too, but I had to write my own zip signing program because busybox unzip was unable to extract files from a zip signed by SignApk.

Wow, nice collection! I remember some other posts from you that were very helpful, thanks!
[Galaxy S I9000 Android Development] osm0sis:
Nice! My misunderstanding then. :)

And ah yes, the old "1 and 8" issue with unzip. Might be resolved in the latest busybox 1.22.1 but I'm not 100% about that, and it'll be awhile before that makes it into recoveries.

I'd love to get hold of your zip signer if that'd be okay. I have Chainfire's solution, but I was still running into some verification problems (I think) from the MinSignApk whole file resigning.
[Galaxy S I9000 Android Development] _that:
Exactly! I learned a lot about the zip format while researching this.

Argh! I saw your original question in that thread but I never found the solution because there were so many pages in between...

I ended up with a hack that appears to resemble Chainfire's minsignapk, but I didn't need to write my own zipadjust. Basically I simply sign the zip normally with signapk, then I unpack and repack the whole archive using 7zip (bonus: slightly better compression), and then I run the whole-zip-signer on the archive.

Here is my SignWholeFile.jar - the source code is just too ugly to publish. :) View attachment 2745848 If you find that it works better than Chainfire's version, I'll clean the source and release it.

This is the script I use for signing:

#!/bin/sh
KEYDIR=~/android/aosp/build/target/product/security
SIGNAPK=~/android/aosp/prebuilts/sdk/tools/lib/signapk.jar
SIGNWHOLEFILE=~/android/src/signapk/SignWholeFile.jar

java -jar $SIGNAPK -w $KEYDIR/testkey.x509.pem $KEYDIR/testkey.pk8 "$1" "$1.signed.zip"
mv "$1" "$1.unsigned"
signedzip=$(readlink -f "$1.signed.zip")
[ -d /tmp/signapk2 ] && rm -rf /tmp/signapk2
mkdir /tmp/signapk2
pushd /tmp/signapk2
unzip $signedzip
rm $signedzip
7z a -r -mx=9 $signedzip *
#7z a -r $signedzip *
popd
mv "$1.signed.zip" "$1"
java -jar $SIGNWHOLEFILE $KEYDIR/testkey.x509.pem $KEYDIR/testkey.pk8 "$1" "$1"
[Galaxy Tab Q&A, Help & Troubleshooting] mrgrey1701:
Nevermind...delete please

Thanks for your help
[Atrix 4G General] spielnicht:
I just did some quick tests and was shocked to discover the difference in speed when moving files in MTP and USB Mass Storage modes, BIG BIG differences.

Copying over a 723MB file, I got these results:

MTP > 54 secs

USB Mass Storage > 194 secs

MTP is almost 350% faster than USB Mass Storage mode. I retried the test again and again with different files sizes, got similar results.

So what gives?
[Atrix 4G General] xfinrodx:
Were you moving to internal storage with MTP and your add-on microSD with mass storage perhaps? That would definitely account for a difference.
[Atrix 4G General] spielnicht:
No, both to internal storage, I don't have a microSD mem in the phone.
[Atrix 4G General] stewartsoda:
What kind of file was it? MTP stands for Media Transfer Protocol, it might be optimized for media or something.
[Atrix 4G General] spielnicht:
Update:

I just did another test with a 7-ZIP file (60MB), it took 160 seconds on USB Mass Storage vs only 22 seconds on MTP.

I can't be the only one experiencing this. Come on.

It's becoming clear now why the same amount of MP3s use to take 4x as long to sync on my Nexus One (doesn't support MTP) than on my iPhone, and why I was so amazed by the Atrix's syncing performance when I got it (had been using MTP since day one).

-----------------

It was MP4 Videos...but beings that I copied it over manually (drag and drop from Explorer), it shouldn't make a difference, at least I don't think it should. I'll try it again with a large EXE file and see if it makes a difference.
[Atrix 4G General] yhe2x:
yea I noticed that too, I just dont remember how fast exactly was it but even if you dont time it, the speed difference is just tremendous...what I like about MTP is you'll still be able to transfer files even if the phone doesnt support that particular file....so yeah I think I'll be using MTP method to transfer files from my desktop pc
[Atrix 4G General] AdrienC:
You're not the only one. I also couldn't believe until I needed to backup the Android and TitaniumBackup folder, and also when copying hundreds of photos.

To the Phone and From the Phone are both astonishingly fast.
[Desire HD Q&A, Help & Troubleshooting] CodeNameUnknown1:
Hi,

Originally, I rooted my phone to gain access to the Android market. The market opened and says loading then it would return back to the menu.

so, I downloaded market access and marker enabler and both of them do not open the market.

Just as a note, the country im in is a "forbidden country"--so Google says. I can't even open code.Google.com.

Is there some sort of modified version of the Android market app that I could use to access the market?
[Desire HD Q&A, Help & Troubleshooting] UpInTheAir:
Clear market cache, reboot into cwm recovery and clear the dalvik cache. Reboot, market enabler, save settings, settings list, long press on a provider, fake provider now. Then Try market again. When finished with market, restore settings from market enabler. Good luck.
[Desire HD Q&A, Help & Troubleshooting] CodeNameUnknown1:
because my net is too slow right now, since im using the carriers internet, i cant download the flash cwm image thingy.

so to delete the cache, i went to the terminal

su

cd data/dalvik-cache

rm *

rebooted and followed instructions, but still, its not working
[Desire HD Q&A, Help & Troubleshooting] UpInTheAir:
You cleared the Market cache as well?

Settings, applications, manage app, all, market, force stop, clear cache.

Clear dalvik again and reboot.

Try market enabler same as before.

Note: If you fake your carrier, I don't think you can use the phone data connection, because market enabler changes the APN ? Maybe you will need to use WiFi until you restore the settings. I think also that if you restart the phone, settings will be restored back to your own carrier.
[Desire HD Q&A, Help & Troubleshooting] CodeNameUnknown1:
yea, i did all that, ... , and im guessing the same thing, ... , but i dont have any wifi connections at this time. if i find one, and it works, i'll post it here, hopefully
[Epic 4G Accessories] ashamir:
Hey all,

I recently bought an extended battery. Problem is, the description said it was for the Galaxy S, but it doesnt fit my epic :(

Does anyone know where I can find a battery door for cheap? (On ebay they cost as much as the battery itself) Anyone have an extra laying around to send me?

Thanks
[Epic 4G Accessories] stir fry a lot:
I'll send you my Seidio cover if this Mugen cover I just ordered works out for me. Or just order the Mugen one yourself as I personally am not satisfied with the ergonomics of the Seidio design.

http://www.mugenbattery.com/samsung-epic-extended-battery-cover.htm
[Epic 4G Accessories] dchawk81:
There are all kinds of Galaxy S designs. You have to buy Epic specific battery doors and skins and such.
[Epic 4G Accessories] ashamir:
I realize this now :). I bought the extended battery + door for $8.00. Im sure the battery is compatible, but the door is not. Most ext battery doors I found were at least $8, the same price I already paid. Any of you find any good deals on just the ext batter door for the Epic???
[Thunderbolt General] droid fetish:
Thought id make a thread of smartbech scores (no quadrant please!) so we could see how different ROM's are running with different Kernels. Please list=rom-kernel-freq. and any settings that will help people make choices. THANKS!

Mine,

ROM-Das BAMF 1.3.2

Kermel-Imoseyon 1.41 v.4

Set CPU- on demand
[Thunderbolt General] nmyeti:
not that it matters much, but why is our smartbench so pathetically slow?
[Thunderbolt General] magneticzero:
All these benchmarks are bogus, take with with a grain of salt...
[Thunderbolt General] droid fetish:
I disagree that they are bogus, however I do agree that they should be used in context, continuous runs will show averages, if you are honest and are trying to set a baseline for performance and use this as a tool it can be useful. If all you are trying to do is show off, well your only cheating your self. I simply created this post for people to give feedback in a general area as to what Kernel they were using with what Rom and what performance they were seeing. I have not strayed from Das BAMF, but have tried several Kernels. Ijust wanted to hear from others who have also.

ROM- Das BAMF 1.3.2

Kernel- adrynalyne 1.3.2 3a Must say at 1.4Ghz this is very snappy

productivity-1605

games index-1524

ROM- Das BAMF 1.3.2

Kernel- richardtrip 1.76Ghz

productivity-2010

games index-1686
[Thunderbolt General] nerozehl:
So is there any real difference between Quadrant and SmartBench? Are they just two different scoring methods?
[Thunderbolt General] inline6power:
this is bamf 1.3

bamf 1.8 kernel
[Thunderbolt General] droid fetish:
2 different scoring methods but I read a post here some where (cant find it now) about how easily quadrant can be manipulated, for instance disabling stagefright gives higher scores, also it has been my experience that smartbench is more consistent.
[HTC Incredible S] mickliq:
Bell's website indicates their Incredible S supports the 850, 1900 and 2100 3G bands. Is this accurate? HTC has a habit of selling 900/2100 devices in Europe and 850/1900 in N. America, which means no transatlantic 3G. Certainly the case with the Desire HD and Desire Z, which is why I sold my Z.
[HTC Incredible S] sbryan12144:
Its the real deal. Negrielectronics.com is selling the bell phone unlocked. Bell and virgin mobile Canada both offer it without a contract for 499.99!
[HTC Incredible S] greengiant:
it's true, most new NAM HSPA devices that bell carries include 2100 bands as well for global roaming
[HTC Incredible S] thedosbox:
Negri has a hefty markup though - $140. I'll wait until there's confirmation it can be SIM unlocked by the usual online merchants.
[HTC Incredible S] Jay_Bee:
Old thread I know but can confirm the Bell Inc S can be unlocked, and with a rather quick response from cellunlock.net

also use coupon code android50 for 50% off!

I unlocked 2 phones already today :)
[HTC Incredible S] thedosbox:
I did awhile ago :) It should be noted that the SSL certificate used by cellunlock.net was not issued by a certificate authority recognized by firefox.
[HTC Incredible S] caribbean_spur:
Other than Negri, do you guys where else to get the Bell (s740A) version?

And how would one go about buying the phone from Bell. I tried it but they ask for a plan and/or a bell login name.
[HTC Incredible S] bebolf:
I got my IS from Bell and unlocked it. 3G works perfectly on Rogers, so should it on Fido.
[HTC Incredible S] caribbean_spur:
For those who bought the IS from Bell, dis you all purchase them in-store, did you buy them online (other than negrielectronics.com)?
[HTC Incredible S] thedosbox:
I bought it off someone who had a couple for sale on http://toronto.kijiji.ca/
[HTC Incredible S] kattara:
I bought mine from The Booth/Wireless Wave. I got the Virgin Mobile one, but it's basically the Bell one... It unlocks fine. I'm using it on Fido.
[HTC Incredible S] bebolf:
lol I should have thought of wireless wave. Got ripped off by Bell, paid phone + activation fee + one monthly plan... but the total is about same for a unbranded IS.
[EVO 4G Q&A, Help & Troubleshooting] shonmac11:
I have 2 extended batteries, one is 2200mAh and the other one is 2400mAh. They both drain very fast unless they are charged using an external charger. I was just wondering if anyone else was having draining issues as well.

XDA app on EVO 4G
[EVO 4G Q&A, Help & Troubleshooting] dougjamal:
I personally believe that the algorithm used to determine charge capacity is inaccurate. I have a 3500 mah battery and I have to go through a series of charging maneuvers to get it to charge completely. Once it is charged fully, the battery life is outstanding. But if I simply disconnect when the LED turned green, without my maneuvering, it "appears" to drain fairly quickly.

Posting & replying via the XDA Premium app
[EVO 4G Q&A, Help & Troubleshooting] shonmac11:
I have the same exact problem. Do you think an update in the firmware could possibly fix this problem if it were brought to HTC/Sprint's attention

XDA app on EVO 4G
[EVO 4G Q&A, Help & Troubleshooting] teh roxxorz:
It would need to be more than 1 person complaining to get that kind of result. id by chance you're on PRL&NV 1.90, try downgrading to 1.77, as many users see better battery life on 1.77 over 1.90.
[EVO 4G Q&A, Help & Troubleshooting] shonmac11:
I don't know how to do that and I'm not rooted

XDA app on EVO 4G
[EVO 4G Q&A, Help & Troubleshooting] Greenfieldan:
If the battery drain you see is the INITIAL drain this is to be expected. Your phone will drop to about 92% or so in the first 10 minutes. After that it should be smooth sailing :)

(if this is not what you're talking about, disregard this comment haha)
[EVO 4G Q&A, Help & Troubleshooting] gpz1100:
Can you define maneuvers?

I have a 3500 mah battery too. I usually leave it on the charger for a good 90-120 minutes after the green light is lit. Once the waveform in the batt monitor widget has stabilized to one resembling a sawtooth wave (/\/\/\/\/\/) with identical amplitudes, I consider it done. I followup by shutting the phone down, waiting til the amber light is green again, then unplugging/booting up.

Depending on the amount of use during the previous off charger time, rebooting it keeps the os from slowing down.
[EVO 4G Q&A, Help & Troubleshooting] shonmac11:
That's what happens but not around 90% its more around 70% then it last for about 8 hours

XDA app on EVO 4G
[EVO 4G Q&A, Help & Troubleshooting] tweetdeez757:
I have a 3000mah battery and I use battery snap to monitor volts and remaining time left on battery. The battery status could say 100% but I look at the volts. If it says 100% but only 3.991 Volts for example then I know my battery isn't fully charged and within 10min it will be at 88% . But when my volts say 4.204 volts then I know it's truly at 100% and battery life is great . So I suggest check the voltage before unplugging.
[EVO 4G Q&A, Help & Troubleshooting] evouser22:
What do you mean manuvering

?
[EVO 4G Q&A, Help & Troubleshooting] jeffm922:
ive read lots of threads about the battery on the evo, its natural for it to drop from 100% to 90% within the first 10 min, something about the evo not charging the battery fully to help preserve the battery or something, there is some steps you can do to charge the abttery fully, but that invloves turning it off, plugging, unplugging, etc... personally i use an external battery charger, and 2 batteries, it seems to charge the battery better, and it doesnt seem to drop that 10% so quickly, it still drops faster then it should, but it seems to stick a little longer, but after it drops that 10% it stabalizes and drops a lot slower, u can pickup batteries and chargers cheap
[Trophy General] evander50:
Hello.

I have a problem, my Trophy resets by itself sometimes.

Does any one have the same problem?

I'd thank any help.
[Trophy General] porkovich:
Mate, i cannot be 100% sure but, i thing i know where the problem might be. I have reported in the forum about a bad SD Card in my phone. It's dead now, stopping me from using the device for now.

Before all happened, the phone restarted itself several times. After one restart the SD Card was not present, after the second it was showing wrong readings. When the phone is trying to read the SD Card and it cannot , the system restart itself. So a faulty SD card can be the problem. If the phone looses the card, it pops out so it cannot make a contact the phone will reset itself, because the Storage is need for Windows Phone 7 to operate.

Maybe just a suggestion ......
[Trophy General] Avandor:
Yah, I've had the same problems ever since I bought the Trophy and usually happens during the night while its charging (2 or 3 times a month).
[Trophy General] Kees Schilder:
Hey, I assume both of you have Vodafone?

Check this news-item, in Dutch though: http://tweakers.net/nieuws/74707/vodafone-klanten-klagen-over-herstartende-htc-telefoons.html

In short, HTC phones with Vodafone as carrier have the reset problem.

No fix yet.
[Trophy General] Avandor:
Translation and thanks for the heads up:
[Trophy General] Kees Schilder:
According to some people, it helps when you switch from 3g (or gsm/wcdma) to only gsm. You don't have a fast 3g connection, but still have gprs.

Hope for you guys that Vodafone comes with a fix very soon. Good luck!
[Trophy General] XeKToReX:
I've had the mainboard in my Trophy replaced by Voda AU twice now, first time it started rebooting and eventually just went into a boot loop..
[Trophy General] eric12341:
it's just the nature of all HTC devices from 2009 on it seems like, my touch pro2 did it, the EVO/supersonic does it, the G2 does it,all the phones quoted in that list above apparently do it and my HTC Arrive/7 Pro does it every now and then but usually when its hot.
[Trophy General] octaedro7:
I'm pretty sure that your problem is the Vodafone NL issue. It happened to me. I restored factory settings and even re-flashed but the only thing that worked was turning 3G off. They seem to have fixed it because rebootings ceased.