yashsingh1/xdaforums huggingface dataset:
[Asus Transformer TF700] elfaure:
Ha. Now I don't feel so bad after seeing sbdags also forgot to add a LF after the last line in his init.d script replacing B2R from the other B2R post about it not working on 4.2.1 Enough can't be said about always remembering the scripting and coding basics.

http://xdaforums.com/showthread.php?t=2227123&page=3

Speaking of the post above, relating to this thread, buhohitr already gave us the solution here in a reply to this thread. He said to use the market app Script Manager which did work for me to run this script as root (but not necessary if you give SM su rights once) and at boot. Last statement applies to the autostart.sh.txt file attached and same in the code block on that thread, slightly different than in this thread, where I added "su" to the script so it automatically runs as root.

[Edit] I have decided to remove the "su" call from my script. This script does NOT work on boot unless you run it as root (which is NOT the same as calling su from within the script). Leaving the "su" call and not running it as root at boot does not work since bootloader cannot be granted su rights (I guess). Also it effectively makes the script run silently in an su shell where no errors are echoed and the script may actually stall in the su shell needing an "exit" commanded to complete full execution with feedback (errors echoed). It only makes running it from the terminal easier but causes problems running it at boot as root.
[Asus Transformer TF700] elfaure:
Hi _that

I still can't get this to work. Here is the output of your requested set of commands, run from the terminal, one by one. I did notice that install-recovery.sh had two enters after the last line and I changed it to one after posting this output. I haven't tried a reboot to see if that fixed it or not yet. If you could look this over to check for anything else obvious I would appreciate it. By the way, great work on fixing [MENTION=5277955]florck[/MENTION] 's near brick.

[Edit] Nope removing the extra enter did not fix the problem. Nothing in /init.d is running as root at boot. Do I need to have an "su" at the start of my init.d scripts? How did [MENTION=2446267]becomingx[/MENTION] get this to work?

u0_a87@android:/ $ su

*** xyzzy 10087 happened ;) ***

u0_a87@android:/ # ls -l /etc/install-recovery.sh

-rwxrwxrwx root root 91 2013-04-25 22:20 install-recovery.sh

u0_a87@android:/ # cat /etc/install-recovery.sh

#!/system/bin/sh

/system/bin/logwrapper /system/xbin/busybox run-parts /system/etc/init.d

u0_a87@android:/ # ls -ld /etc/init.d

drwx------ root root 2013-05-25 22:07 init.d

u0_a87@android:/ # ls -l /etc/init.d

drwx------ root root 2013-05-25 17:42 Test Scripts

-rwxrwxrwx root root 110 2013-05-25 22:07 adj_minfree.sh

-rwxrwxrwx root root 9035 2013-05-25 17:40 autostart4.sh

u0_a87@android:/ # ls -l /system/xbin/busybox

-rwxrwxr-x root root 1096224 2013-04-16 19:38 busybox

u0_a87@android:/ #
[Asus Transformer TF700] _that:
Looks correct. For troubleshooting, add to your install-recovery.sh (below #!/system/bin/sh) a line like

echo test >/data/test.txt

and see if that file gets written when you reboot.

Also, check in your output of dmesg if you find a block similar to this one:

<3>[ 5.146707] init: cannot find '/system/etc/install-recovery.sh', disabling 'flash_recovery'
<3>[ 5.148305] init: cannot find '/system/bin/icera-switcherd', disabling 'icera-switcher'

In your case, you should only have the second line, but not the first.
[Asus Transformer TF700] elfaure:
Results:

1. Test.txt was written to /data so install-recovery.sh ran at boot

2. Did not find either of the two dmesg code blocks in dmesg output. Here is the semi-filtered dmesg output below.

3. Is it the third line below that is the problem?

4. Wouldn't it be easier just to edit my init.rc file and add the contents of install-recovery.sh to it or does that not make any difference and this method is equivalent? If required I will edit it but I would prefer not to.

5. [MENTION=2446267]becomingx[/MENTION] is locked (on stock ROM) and got this working. Do you know how he did it?

u0_a87@android:/ $ su
*** xyzzy 10087 happened ;) ***
u0_a87@android:/ # dmesg | grep "<3>"
<3>[ 3.670491] RIL: [ril_init] Ril driver doesn't support this project
<3>[ 4.318074] rt5631 4-001a: asoc: failed to add dapm kcontrol AXO2MIX Mixer OUTVOLL Playback Switch: -16
<3>[ 4.543743] init: could not import file 'init.factory.rc' from '/init.cardhu.rc'
<3>[ 4.609594] power_supply dock_battery: driver failed to report `status' property
<3>[ 4.819744] init: Project ID is 04
<3>[ 4.819827] init: set mpu library path
<3>[ 4.819956] init: MPU chip version is 3050, change order
<3>[ 5.787335] tntfs: version magic '3.1.10-00016-gca625c5-dirty SMP preempt mod_unload ARMv7 ' should be '3.1.10-00001-gdc9b6cf SMP preempt mod_unload ARMv7 '
<3>[ 5.796920] texfat: version magic '3.1.10-00016-gca625c5-dirty SMP preempt mod_unload ARMv7 ' should be '3.1.10-00001-gdc9b6cf SMP preempt mod_unload ARMv7 '
<3>[ 7.618845] android_usb: already disabled
<3>[ 14.035010] /home/android/bin/workspace/jb-t30-r4-1/kernel/drivers/misc/inv_mpu/compass/ami306.c|ami306_get_config|1018 returning 36
<3>[ 14.035123] /home/android/bin/workspace/jb-t30-r4-1/kernel/drivers/misc/inv_mpu/mldl_cfg.c|inv_mpu_get_slave_config|1749 returning 36
<4>[ 62.062100] [DHD] <3>WLDEV-ERROR) wldev_set_country : [DHD] wldev_set_country: set country for US as US rev 69
<3>[ 81.476904] tntfs error (device mmcblk1p1, pid 141): read_ntfs_boot_sector(): Primary boot sector is invalid.
<3>[ 81.477257] tntfs error (device mmcblk1p1, pid 141): read_ntfs_boot_sector(): Mount option errors=recover not used. Aborting without trying to recover.
<3>[ 81.477663] tntfs error (device mmcblk1p1, pid 141): ntfs_fill_super(): Not an NTFS volume.
<3>[ 81.729350] init: sys_prop: permission denied uid:1003 name:service.bootanim.exit
<3>[ 95.318507] qtaguid: iface_stat: stat_update() wlan0 not found
<4>[ 253.961597] [DHD] <3>CFG80211-ERROR) wl_notify_connect_status : [DHD] Received WLC_E_DEAUTH_IND event with reason code: 7
<4>[ 253.962820] [DHD] <3>CFG80211-ERROR) wl_notify_connect_status : [DHD] link down, calling cfg80211_disconnected with deauth_reason:7
<3>[ 858.407064] binder: release proc 6109, transaction 279962, not freed
u0_a87@android:/ #
[Asus Transformer TF700] _that:
OK, so the most important part works - you have a shell script that you can edit, and that runs at boot with root permissions.

init.rc is part of the kernel's ramdisk - to edit it, you need an unlocked device.

Maybe your scripts in init.d are simply named wrong - use the common naming convention of 2 digits and following lower case letters.

Also read the documentation for run-parts here: http://www.busybox.net/downloads/BusyBox.html - you can run busybox run-parts -t /system/etc/init.d in a root shell to see what it would run at startup.
[Asus Transformer TF700] elfaure:
Will do. Thanks for the eval and tips. I will investigate.

Not just two digits, but these two digits: "00". According to something I read (can't recall where, probably GitHub) it said this was the code for a startup script to run at boot. Steve Niemitz original name for his script which this is forked from was "00browser2ram.sh"
[Asus Transformer TF700] _that:
If run-parts works properly, *all* executable scripts in init.d get run at boot - that's the whole point of init scripts.

You should not name init scripts starting with "00" because if you later decide you want to run some other script before that, you may need to rename your original script.

Better partition the space between 00 and 99 evenly - e.g. use 20 for scripts that must be run fist, 50 for scripts that should run later, and 80 for scripts that should run last. Then you can still fine-tune the order of multiple scripts if it matters.

For Browser2RAM it's most likely irrelevant when it runs in relation to other init script, but it's still better to avoid using the extreme numbers.

You should also note that while your init scripts run at boot, other Android services are starting up in parallel.
[Asus Transformer TF700] elfaure:
Load single startup script without init.d support method HERE

Wait! Are we both blind? You hit it right on the head. Install-recovery.sh runs as root at boot already. Forget about init.d Why don't I just copy my script into this one after the busybox run-parts line? Or is that line even necessary if I go this route? [Edit-No its not necessary]

********************************************KEY FINDING **********************************************

[Edit] Just read your last post via email. The above would work for a single startup script wouldn't it? As long as its named install-recovery.sh and is located in /etc it will automatically run as root at boot won't it? [Edit-Yes it does :)]

********************************************KEY FINDING **********************************************

[Edit] Quoting you, "Triumph". Awesome. Thanks for the help! But I still will investigate making init.d work too for multiple scripts and loading order, and thanks for the tips on script naming and digit partitioning. That is useful. But I do have to dock you another 1/2 point because I saw a solution first. Might only work for a single script but that's all I was after (initially). It normally would be a full point but you are helping me on a Sun. and I know you've had a hard week. [MENTION=2446267]becomingx[/MENTION] is now 1/2 point ahead. Its neck and neck.

[Edit] I see you were busy with a bricked bootloader issue so I'm going to cut you some slack here and give you back that 1/2 point. Your attention was divided.

[Edit] Honestly, thanks for all the help with this endeavor. Writing this script, getting it to work, and learning how to load it at boot with an app and a method has educated me more about Android than you will ever know. It was definitely a crash course for this newbe and I appreciate all you've taught me so far. I will share back what I can. Knowledge is power and having a strong foundation is paramount to learning any new subject. Securing _that foundation is much easier with a great teacher!
[Asus Transformer TF700] _that:
You saw the solution first that I wrote in the post that you quoted? :D

1/2 point to you for reading my post and "connecting the dots". It wouldn't be fun if I gave you a complete solution, would it? :) The other 1/2 point will be awarded for proper init.d support.
[Asus Transformer TF700] elfaure:
Working on that additional 1/2 point soon. I hope you know I wasn't serious and figured as much. Also that you didn't necessarily want me to stop there (but could if I saw the clue) but rather to continue forward to a full init.d solution as intended. After reading your post again the partial solution was self-evident and it just hit me over the head like a hammer and the line between the dots was formed. I was just having fun with you, points, and "partial Triumph". I hope you do realize that I realize I will never be able to outsmart you. _That is self-evident. But also realize I will never stop trying and never accept never in my mind. Getting spoon fed the solution without a challenge its non really fun or a useful learning experience, its just mindless copying. Fun is when you can figure it out for yourself 'dmesg | grep "<3>"'.
[Asus Transformer TF700] elfaure:
Out of options?

Hey _that-

Reporting back, changing the script name by prepending two digits did not make it work in init.d Looks like I'm out of options.
[Asus Transformer TF700] _that:
Did you read the rest of post #35? Did you read the documentation for busybox run-parts? Did you try the dry-run in a normal root shell?
[Asus Transformer TF700] elfaure:
No, no, no. Will do. Nice to not be out of option! ;)
[Asus Transformer TF700] elfaure:
Yes, yes, yes - but not it didn't work from the terminal either. [MENTION=2446267]becomingx[/MENTION] got to the bottom of this problem. Turns out the script name cannot have a dot in it or use an extension. Having two digits prefixing the script name is not a requirement. Now I can run init.d scripts at startup on stock ROM (finally). :) But I get no points because I didn't figure it out. :(
[MDA, XDA, 1010 Accessories] pine:
I don't know much about USB. I was thinking coming up with ONE cable with three connectors like the one I draw blow.

XDA -------USB (to laptop or ac adaptor)
|
|

GPS (the generic GPS connect).

NOTE: the ac adaptor output port is an USB port

it serves for three ways

a), XDA -> Laptop, charge and syn in the same cable, draws power from laptop

b). GPS -> laptop, draws power from laptop

c). XDA -> GPS, in this case, USB connector connects to the ac adapter and power both GPS and XDA.

I believe the XDA---USB cable can be purchased easily. I can break the cable and somehow insert the GPS connector. since GPS only used a power pin, two data pin, a ground pin, I figure I only need to find out how to get these four pin into the original cable.

My question is

1. do I need any USB-serial sort of convertor between the lines? Or it is ok to connect GPS(serials signal) to USB cable

2. The ac adapter was to power the XDA which I blieve is 6V, and GPS needs 5 V, is it OK?

3. anyone alreadys knows how to plug the four GPS pins to USB cable? would save me a lot of trouble.

It would be cool to have a cable connects between all devices. If you can care for a DC-AC convertor in your car, this set should solve all your problem anywhere.

help is appreciated.
[MDA, XDA, 1010 Accessories] Carlos:
Most GPS units are serial. The XDA does have serial, so you can use that. You only need to connect the ground and two data pins. Specified input power for the XDA is 5v.

You can see what I did with a cradle to make a car kit here:

http://www.mywirelessoffice.com/xda/carkit/

This is a pin spec and photo of the connector:

http://www.mywirelessoffice.com/xda/connector/

There is a source for bare connetors, I believe the link is here on the XDA-Dev site somewhere.
[MDA, XDA, 1010 Accessories] Pc-Mobile:
Re: XDA -> Laptop USB, GPS-> laptop USB, are they the

It is possible. But note:

1. I assume you are using a serial GPS (with appropriate wiring), then it is OK. USB GPS CANNOT be used.

2. USB sync cable is wired to tell XDA that USB sync cable is connected so as to "wake up" the USB port. In such case, I do not know wheter the serial port can be accessed. As such has not been done before you have to try before you know.

I would suggest you make a cable just for GPS use, and use another cable for sync/charge (this is quite cheap), unless you found that your original idea works.
[Xoom Q&A, Help & Troubleshooting] brybry28:
So I am going to try to explain this issue, but basically I am not able to attach/upload files to websites. I am using Chrome browser and Astro or CM file manager to choose the file, it was originally saved on the SD card but I have also copied it to the local system folder /downloads and from either location I get an error message "failed to open file" after selecting the file. I have verified that the file is not corrupt and have saved it as .txt .doc and .docx formats each one produces the same results. Has anyone else running The CM nightlies come across this issue?

**update** Just flashed the 315 nightly for CM and it still is not working, anyone else experience issues uploading to websites?
[Xperia Z Q&A, Help & Troubleshooting] sturmtruppler:
I read some negative comments about the Z, so I won't buy that phone.

I 'm hoping that the ZL doesn't suffer from those problems.... Can anyone please give me some feedback about...:

- battery life

- camera quality

- screen quality

- speaker sound

Thanks guys!
[Xperia Z Q&A, Help & Troubleshooting] Incanity:
So far the battery life with my Z is at least a full day, the camera quality is great (for a phone, mind you), the screen with auto brightness is amazing, and the speaker, well, it's better than the speaker on my HTC Sensation XE, but please note that the speaker in the SXE is HORRIBLE.

The speaker, in a weird place however, is just fine (again, for a phone, mind you). It goes really loud, but compared to the speaker on an iPhone, it's still lesser quality.

Some of the downsides of the Z that I've found so far is:

- It collects big amounts of dust on the rubberized edges

- It gets quite warm when playing games, but not too warm, the SXE when playing games, could burn your hand for example.

I've only had the phone for 2 days now, and thusfar I am very happy with it. :D

Hope this helps!

:good:
[Xperia Z Q&A, Help & Troubleshooting] ethan3686:
1. ZL is more brighter and better contrast than XZ..And no the values of calibration were set to 0 on ZL..i put up sony live wallpaper [purple] on both and ZL was visibly more brighter and vibrant!I Wonder what was sony thinking not giving its flagship that same screen? :/

2. Sound through headphones and speakers both were better on ZL..Dont know why? i can understand speakers bcoz of water proofing.

3. Easier to use due to small size and withe same size screen is a plus.
[Xperia Z Q&A, Help & Troubleshooting] sturmtruppler:
AW: ZL vs Z

Hey guys!

Thanks for your quick replies! I think I'm gonna test the ZL in a store when it's released in germany.

Getting a new phone sucks... Have to decide between Sony, Galaxy S4 and HTC one. All are good phones in my opinion, but none is perfect, each has its own advantages...
[MDA, XDA, 1010 Software Upgrading] Nossie:
tonight I found a "Pocket PC 2003 for XDA" on the binaries pocketpc group....

was wondering if anyone had downloaded this, and know what revision it actually is?

11rars 1.39mb each &

2 pars...

not sure if it its recent or what not... posted on the 15th of Jul

cheers,

Ian.
[MDA, XDA, 1010 Software Upgrading] Nossie:
once unrar'd....

1 file + pars

nk.nbf ? (31.mb)

folder it extracts to is "ppc2003-40001"

mmmmm....
[Verizon Samsung Galaxy Note II] athack:
when performing a nandroid backup using twrp with this phone what should be checked to insure a proper backup? efs? modem? enable compression? cache?
[Verizon Samsung Galaxy Note II] DroidOnRoids:
If you're just backing up a rom, just leave all the boxes alone because TWRP has it preset. Anddddddd you're in the Development Section.
[Verizon Samsung Galaxy Note II] kintwofan:
Look at the other posts in this section and tell me what's different then yours.

Why would you post this here? You've been around for a while you know where to post a question and it isn't in development.

And don't change the defaults just hit backup
[Verizon Samsung Galaxy Note II] DroidOnRoids:
Reported. I already took care of it.
[Verizon Samsung Galaxy Note II] athack:
my bad, i guess u cant make a mistake over here...
[Verizon Samsung Galaxy Note II] DroidOnRoids:
We're not trying to be the bad guy but the development threads need to stay clean from General post to avoid confusion. I just helped you out by requesting the thread moved, that's all. :good:
[Verizon Samsung Galaxy Note II] kintwofan:
Meant to add reported as well. I'm a little harsh because it seems like a lot of this around the note 2 forum and I just expect old vets like the op to not contribute and like you said need to keep development thread clean. Plus the mods have a lot to do and shouldn't have to spend time moving threads for people.

By the way I wasn't trying to be a complete jerk that's why I even answered his question, but DroidOnRoids beat me to it.
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] Arelon:
Hey guys!

I dunno if im right here with my problem...

I get Samsung S3 International Version i think and i wanna start to root it...i downloaded the cf and odin then i want to start in download mode...

I power off the Handy then pull out the akku put it in again and Press VOL Down+ Home Button+Powerbutton and hold for 3 secs then on display stands "Factory mode" and there i have always not the right to download it from odin...there are always Tests, Versions...and i cant get in Download Mode...with VOLup+Home+Powerbutton it starts the recovery mode...

can anyone help me?

Sorry for my bad englisch...
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] BWolf56:
It can take many tries. Not much we can do about it. If you really can't manage (and I'm talking after 100 tries), you might wanna look into getting or building a jig.
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] xBeerdroiDx:
try vol up + vol down + power. make sure your S3 is not plugged in to your PC
[AT&T, Rogers, Bell, Telus Samsung Galaxy S III] rmmnetwolf:
No more Factory Mode

When I tried to install any official Samsung rom in my S3, it automatically entered in factory mode, doesn't matter wich rom I tried.

I tried the ON procedure at factorymode file in efs/FactoryApp shown here but it didn't work either.

THIS WORKED FOR ME:

you have to have root access;

Install this rom (if you try another, tell us if it works) It has Samsung voice in Brazilian Portuguese. Im my case, it entered in factory mode;

Install ES File explorer and Triangle Away and test them

Back up your /efs directory in ExtSdCard

Delete all content of /efs (it is dangerous, do it at your own risk) and reboot (it will recreate /efs)

Run Triangle Away

Wheh it reboots and resets the counter, do not enter in normal mode, get into recovery mode and perform a cache clean and a factory reset.

That's it. Tadammmmmmm. No more Factory Mode. :p
[Sony Xperia T, TL, TX, V] SwordLaker:
Coming from Nexus, I'm quite annoyed about how Sony phones work. I'm sick of booting to fastboot and flash a hell loads of stuff everytime I want to do something.

Has anyone made a flash zip that contains TWRP and stock kernel together that I missed? Or is there any other solution?

Thanks in advance.
[Sony Xperia T, TL, TX, V] gregbradley:
yes, its in the dev section.

flash doomkernel it has a choice of recovery in it
[Sony Xperia T, TL, TX, V] SwordLaker:
Thanks for the reply, but I'm kind of confused. There is only one download link in the thread, without mentioning any recovery. Would flashing this overwrite the recovery the way same the stock kernel zip file does? Or is there already a recovery inside?

In any case, DoomKernel is kind of still in beta and not yet seems to be stable, so I would avoid it if I could. But I would give it a try.
[Sony Xperia T, TL, TX, V] gregbradley:
You are joing right?

Its rock solid stable and has been working on may devices for a long time. I have been running it since its release with no problems.

Both twrp and cmw recovery are in the kernel so you get to choose which recovery you want to boot into. Press volume up on the purple LED and vibration to go into one recovery and volume down to get into the other recovery.

All you need to do is make sure your bootloader is unlocked and flash the zip in whichever recovery you currently have.
[Sony Xperia T, TL, TX, V] SwordLaker:
Thanks. Never knew that multiple recoveries can be installed simultaneously.
[Galaxy S II Q&A, Help & Troubleshooting] rockyrk:
I install I9100ZSLSH_I9100OZSLSH_TGY to my sgs2

it not show the csc .... it show csc is unknown

and I cant connect my phone to kies

and for csc *#272*imei# is also not work

and I was buy my phone from china and after that I changed it to hongkong rom and 2 days before I get update by ota and I update it

but after it update I again install rom by odin and I download rom from sammobile rom name is I9100ZSLSH_I9100OZSLSH_TGY

and now my phone cant connect to kies and not show the csc

so plese help me to slw it

I want my phone work all like genuine

and I want to use the official rom for get further updates from Samsung

so pleaseeeeeeeeeeeeee helep me please ..........................

thaks a lot ...................................
[Galaxy S II Q&A, Help & Troubleshooting] gastonw:
That is...the longest sentence I've ever read.....

Flash Chiba unbranded and that's that.

Sent from the little guy
[Galaxy S II Q&A, Help & Troubleshooting] Donnie Sins:
Lol:p That's like a world record or something!
[Galaxy S II Q&A, Help & Troubleshooting] immortalneo:
+1 :thumbup:

"To err is human, to forgive is divine"

Sent from my SGS II
[Transformer TF300T General] y2kardell:
Does anyone have the stock kernel for JB 4.2.1 that they can share. Id greatly appreciate it.
[Transformer TF300T General] Hazard17:
No, Asus hasn't relased it yet.