yashsingh1/xdaforums huggingface dataset:
[Samsung Epic 4G Touch] sfhub:
Debugging init.d scripts isn't always the easiest.

If you want to figure which step is causing issues, I suggest you insert statements in the init.d script to narrow down where the problem is.

Basically add some print statements

echo "Step 1" >> /data/local/tmp/log.txt

echo "Step 2" >> /data/local/tmp/log.txt

...

echo "Step 99" >> /data/local/tmp/log.txt

If the boot is getting hung anywhere, look at the log.txt and see where the print statements stop and look at the init.d script sections corresponding to the print statements.

It is also possible the init.d script is completing successfully but some settings it incorporated are causing boot issues. In that case you may need to start commenting out sections of the script to narrow down the culprit. In the extreme, just disable the entire script (chmod 555) to make sure it is indeed something in that script that is causing the boot issue.

---------- Post added at 06:42 PM ---------- Previous post was at 06:41 PM ----------

/system/etc is in your ROM. That script will work with stock kernels without need for any repack at all. Being in the ROM, it will also work if you switch stock kernels and is also compatible with CWM and CWM-Rogue.
[Samsung Epic 4G Touch] gershee:
just a heads up.. install-recovery.sh doesn't work for me either.

must be my aosp kernel.. :/

hopefully at some point init.d support will become standard..
[Samsung Epic 4G Touch] sfhub:
Is this something new or a rehash of what we discussed earlier?

I thought we determined whomever repacked that kernel customized the init scripts and stripped out the calls to run install-recovery.sh.

If a custom init.rc is used which doesn't call install-recovery.sh then it is expected behavior for the init.d support in install-recovery.sh to not work.

Auto Root init.d support and install-recovery.sh will work for all stock kernels which haven't been repacked. It will also play nice with Steady's CWM-Rogue and chris41g's CWM, which have builtin init.d support.
[Samsung Epic 4G Touch] gershee:
sorry. should have quoted.

its to summarize. I think kobridge suggested I just use the script. wasn't sure if I was clear that I had indeed tried that as well..

was hoping some devs pick up on this.. glad to see justlovejoy in here!

wish I could get more involved in the dev process.. I was a computer programmer for 15 years. now I run a liquor store. :cool:
[Samsung Epic 4G Touch] justlovejoy:
right cause I should see a folder, that was created when flashing, named init.d folder located in my system/etc folder, on device?

B) Appreciate the help!

Thanks Unltd' Infinate!

JLj
[Samsung Epic 4G Touch] sfhub:
/system/etc/init.d is not a standard directory in the stock ROM, so you will likely only see it if your custom ROM uses init.d scripts. Otherwise they probably wouldn't add the directory (though there is no reason they couldn't) If it isn't there, just create it manually.

/system/etc IS a standard directory so that should be on most ROMs.
[Samsung Epic 4G Touch] justlovejoy:
well, um, I have an addon.d folder?

Edit:Looking in wrong folder
[Samsung Epic 4G Touch] sfhub:
Anybody can create directories in /system or /system/etc if they have root or you've flashed a custom ROM.

There is no standard pre-defined meaning to those additional directories.

We assign "meaning" to the init.d directory by adding commands to the start that will run the scripts in init.d. It is called init.d because historically that is one of the directories in unix/linux where the startup scripts are kept. Android/linux has no concept of init.d (it was stripped of init.d of using init.d for start by use of a custom init process). We are just porting over the name and concept.

Given that, someone can just create addon.d directory and assign some meaning to it. It isn't something I'm familiar with though I can guess based on naming that someone extended some ROM and wanted to have startup scripts run after the scripts from the base ROM, though that is just a guess. You'd have to verify how that directory is being treated in the startup scripts.
[Samsung Epic 4G Touch] d12unk13astard:
Re: Ext_sd

Anyway to get the edit below to stick after a reboot with these init.d scripts. I need my external sd card to be mounted as /sdcard.

export EXTERNAL_STORAGE2 /mnt/sdcard

export EXTERNAL_SFORAGE /mnt/sdcard/external_sd
[Samsung Epic 4G Touch] sfhub:
You'd have to make the changes in init.rc because all the startup scripts are started as a subchild process, meaning any variables you export are only valid for subchilds of the init.d script and go away once init.d processing is done.

If you change init.rc and want your settings to stick you have to repack the kernel as that file is in the initramfs of the kernel (ie when you edit that file you are editing a mem cached copy, not the actual source copy) Therefore when you reboot, your changes go away.
[Samsung Epic 4G Touch] BigJPNut:
Ondemand up threshold still not set properly or am I jumping the gun on installing this? I still have your tweak script installed also...

EDIT: I removed ur script and CPU_FREQ script runs fine.
[Samsung Epic 4G Touch] kobridge:
Just like sfhub said.

The challenge is, we have to find the place where the kernel allows the custom shell script.

Init.rc allows init.d (repacked) or install-recovery.sh (stock). We also have to be sure that those are not over-written by kernel whenever the kernel is changed.

If any kernel that allows any custom script, then we can make the same thing like putting install-recovery.sh. But questions is, how can we find that specific place? Only the way would be asking to Dev to include the space for custom script or using market app something like SManager.
[Samsung Epic 4G Touch] kobridge:
These two tweaks are the exactly the same scritps on my phone (stock fd19). If upthreashold is too small, you can increase it or use conservative governor (increase max cpu freq to 1200000 too)

Edit: that's why there are only calk's tweaks in post no2. There were some values not accepted by kernel and i' m wrong on that part. Maybe later today ill post my tweaks again.

Edit: Please download Mod Calk's tweaks only and test it. My tweaks are not ready yet.
[Samsung Epic 4G Touch] kobridge:
Completed the complementary Calk's tweak guide in http://xdaforums.com/showpost.php?p=25120392&postcount=2.

Added my tweaks back to the second post. The values would be applicable only to the configurable items.
[Samsung Epic 4G Touch] BigJPNut:
Thanks for this. Just wanted to say I still like ur original tweaks better. The new tweaks leave the OOM settings at stock and Calculin's modified tweaks still leave the ondemand up threshold at stock 85%. Until I get more time to mess with it im just running your original tweak script by itself. Thanks again....
[Samsung Epic 4G Touch] kobridge:
Of course, there are still many areas for the improvement. With these scripts, I'm getting more battery life than ever.

I'm still trying to figure out many other things and to get the better on screen battery life now.
[Samsung Epic 4G Touch] justlovejoy:
ok 30 somewhat flashes and I cannot get the phone to install init.d folder. is there a guide I can follow for the repacking kernel for this to work? I've tried a minion of different things. want init.d to run on boot for fd19, Thanks and Sorry If I have given anyone a migraine other than myself.
[Samsung Epic 4G Touch] gershee:
you'll get it bro! I'm following your progress in this man! I like where this is going.. wish i could be of help..
[Samsung Epic 4G Touch] kobridge:
If /system/etc/init.d is not there, simply create a folder thru root explorer or es file explorer and assign the permission 755 rwxr xr x.
[Samsung Epic 4G Touch] sfhub:
If your ROM doesn't have an init.d folder (most likely if it doesn't use them by default), then you can flash forever and the folder will never show up.

Auto Root doesn't create one because it assumes you'll create it if you want to install scripts.

Just create it manually as suggested above.
[Samsung Epic 4G Touch] kobridge:
extreme battery saver tweaks

I just added one more tweak files (init.d.zip) and it include three tweaks. I tested this tweaks on FD19 and FD24 stock roms. If you really want to extend your battery life, you may want to test it.

Edit: Found that Camera app kept freezing, fc, and made system reboot if max CPU frequency is set to under 1Ghz. So because of this app, I had to keep max cpu speed to 1Ghz when the phone is in awake mode. Uploading new tweak files.
[Samsung Epic 4G Touch] kobridge:
Experience the Best Battery Life

I've modified my tweaks and now I'm getting about 1hour with 1% of battery.

Like I mentioned several times, I'm focusing on saving the battery life during the sleep and standby mode without losing any incoming calls/mms/emails/etc.

(so, don't confuse with screen on time battery consumption. extending battery life during awake, it would be my next personal project)

The script is not uploaded yet and I'm planning to create a new thread with full information after I test this with new upcoming FD26 (currently I'm on rooted FD24 Stock)

For some people who is in very good signal area, it would be easy getting 1 hour battery life with 1%. But in my case, when I started this test, my battery is used about 10 % in every hour.

More coming soon...
[Samsung Epic 4G Touch] Compusmurf:
Share so we can validate your results. Oh and yeah, on the 1Ghz issue. Calk posted about it in FD02 1.4 release of his rom. I saw it, changed it back to his.

I was wondering if the issue was fixed (if it's really an issue) and guess you just answered for me. :)

LOL
[Samsung Epic 4G Touch] kobridge:
In somewhere I posted my test about the CPU frequencies. If phone goes down below 1 Ghz, some apps start to fc,frozen, random reboots and all bad things. So, I had to stay with 1Ghz with onedemand governor. I basically I used his tweak and made some value changes + lots more.
[Samsung Epic 4G Touch] JohnCorleone:
Kobridge, thanks for the great instructions on writing a test script to check init.d support. I just tried it using sfhub's Auroroot to add init.d to stock FD26 kernel and it worked great!

Sent from my SPH-D710 using Xparent Blue Tapatalk 2
[Samsung Epic 4G Touch] kobridge:
More is coming soon:)
[Samsung Epic 4G Touch] JohnCorleone:
I actually learned quite a bit from this thread about writing the test script, permissions, etc. Keep it up!

Sent from my SPH-D710 using Xparent Blue Tapatalk 2
[Samsung Epic 4G Touch] kobridge:
Here we go!

http://xdaforums.com/showthread.php?t=1625299
[Samsung Epic 4G Touch] PoorCollegeGuy:
Hey!

Sorry to derail the thread for a minute, but I just wanted to let you know this thread has been featured on the XDA Portal.

here's the link:

http://www.xda-developers.com/andro...nit-d-scripts-from-boot-on-the-epic-4g-touch/

i hope you like the write up :)
[Samsung Epic 4G Touch] kobridge:
Thanks so much for your review and write-ups.

There's another part that I published today and it's getting better (I think).

http://xdaforums.com/showthread.php?t=1625299

Again, Thanks a lot!
[Samsung Epic 4G Touch] The-Droidster:
I don't have the init.d folder in /system/etc...but the kernel I flashed has init.d support (or so the dev says). Should I create it manually?
[Samsung Epic 4G Touch] kobridge:
Yes, you need to create a folder manually and put the init.d scripts - /system/etc/init.d/
[Samsung Epic 4G Touch] mEmoZz:
nice work!
[General Questions and Answers] drraptor:
Is there any CHM reader for android with search feature ?
[T-Mobile Samsung Galaxy S II SGH-T989] Trbobuick:
Just bought the wife a t989 and a powerskin battery case to go with it . I dont like it . It has a flimsy charge cord socket and the microphone keeps getting covered up during a call .

Are there any hard battery cases out there for this phone ?

I have a samsung power pack for my vibrant and love it. I was hoping there was something similar out there for her phone.

Thank you

Brian
[XPERIA X8 Q&A, Help & Troubleshooting] x.marX:
Hi !

My cousin has asked me to help flash his W8 with 'New Software' to enable installing apps to the memory card ! I'm not an android user (I have Samsung Wave, bada os !) but I know a thing or two about flashing. I figured out that as the default os, android 2.1 doesn't support apps2sd (?), it needs an unofficial ROM (as Sony doesn't have an update coming) with a more recent android like Gingerbread or IcecreamSandwich.

And, I have some questions !

1. Which is best Gingerbread ROM interms of simplicity and reliability

Also, he says he need 'zoom' feature in the camera !

2. Here is the info about his W8

model e16i
firmware 2.1 update1
baseband m76xx-tsncjolym-53404015
kernal 2.6.29 SEMC
build number 2.1.1.A.0.53

Is there any need to update the baseband ?

3. After reading some tuts, this is the procedure I should follow ?

a. Flash latest firmware using SEUS (is it needed?) and enable debug mode for usb connection

BTW, after flashing latest firmware, do I need to flash the baseband ?

b. Root the phone

c. Install xRecovery or any other restore app as required by the ROM

d. Load the zip file containing the OS to the memory card and boot into xRecovery

e. Use the recover/update option to install the OS

f. Do factory reset

Did I miss something ?

4. Is there any way to install the Walkman player after flashing with the custom ROM ?

5. What about the drivers, I mean audio, display, camera etc ?

Is there any tangible improvements for modded drivers ?

Can you recommend a good set of drivers ?
[XPERIA X8 Q&A, Help & Troubleshooting] athulele:
just follow this guide -

http://www.scribd.com/fullscreen/82885753?access_key=key-2hez0mrgf52fca61khop

It's Jimdem's
[XPERIA X8 Q&A, Help & Troubleshooting] Shimizux:
Just from my opinion.

1.The Best GingerBread Rom, GingerDx/PrimeHD [for stock kernel/Costum Kernel] & MiniCm7 [ use Costum Kernel ] suggest use GingerDx.

Zoom Feature, Install Zoom FX Camera App from Google Play.

2.If the number 015 in last, I think No need to Flash baseband for update. but not very sure, you can use SEUS Software From computer for Update if you want to.

3.

a]If you already update with SEUS mean your baseband is already up to date.

b]Root you phone [yes] but only if you on Stock Kernel. [Bootloader still Unlocked]

c]Install xRecovery [yes]

d][No] You need make an Nandroid backup, And do fullWipe before install/flashing new ROM.

4.You can find W8 music Apk [Maybe]

5.OfCoz ALOT OF IMPROVEMENT! than The DAMN STOCK ROM :p
[XPERIA X8 Q&A, Help & Troubleshooting] deedii:
Sweetie no one can tell you what is the best ROM for your phone. We might have the same specs but we will have different experiences and results :) So the best way is to try and see it for yourself :) to start with try GDX.
[XPERIA X8 Q&A, Help & Troubleshooting] x.marX:
bricked ?

Thanks guys for the replies :)

I had seen only the 'athulele's post and committed to it (followed the tutorial of 'JimDem' ) and now the phone is stuck at the "Sony Ericsson" logo, can't go to CWM or Freexperia recovery :(

This is what I've done !

1. Rooted using the X8toolbox

2. Installed Busybox 1.19

3. Installed Freexperia and CWM recovery

4. Created backup using Freexperia

5. Done Factory reset

6. 'Wiped'

7. Loaded "MiniCM7-2.2.0-shakira.zip" ROM zip file to the root of the memory card

8. 'Installed' it using CWM recovery

9. Tapped "yes" to a prompt asking like...full recovery or something (?)

AND now, its stuck at the Sony Ericsson logo :confused:

I'm on a slow internet connection so, flashing with Sony PC companion is my best bet ?

Is there any way to solve it without downloading any stuff ?
[XPERIA X8 Q&A, Help & Troubleshooting] x.marX:
I don't like Android and wont be buying an Android phone...its all about my cousin who don't have any opinion in that matter, I mean ROMs :p
[XPERIA X8 Q&A, Help & Troubleshooting] techmachi:
don't worry buddy.I faced all of ur problems ....

first u should flash a compatible kernel for ur rom ....

download the flash tool and download the compatible kernel for ur Rom ...the kernel will be in x8. android development section ...

then minicm will work..I'm also a w8 user...if any problem quote my words I will help u

---------- Post added at 12:56 PM ---------- Previous post was at 12:53 PM ----------

don't worry buddy.I faced all of ur problems ....

first u should flash a compatible kernel for ur rom ....

download the flash tool and download the compatible kernel for ur Rom ...the kernel will be in x8. android development section ...

then minicm will work..I'm also a w8 user...if any problem quote my words I will help u
[XPERIA X8 Q&A, Help & Troubleshooting] Shimizux:
Mate, minicm7 rom use only with costum kernel (nAa 11 kernel). To install costum kernel you need to unlock the bootloader,(read warning unlock bootloader thread before something happen) Thats why you get stuck. I suggest you read the ultimate FAQ by lucastan96, or any sticky thread. Like I mention above. Better flash gingerDX rom which is working with stock and costum kernel.

And for repair download stock rom for x8 or use SEUS.

Sent from my thumb using my eyes
[XPERIA X8 Q&A, Help & Troubleshooting] x.marX:
@techmachi

The date stamp is 11W38 => Its bootloader can't be unlocked according to that guy who started the Sticky thread :o

SO, I guess have to restore with SEUS, right ?

@Shimizux

Thanks man for the heads up ! :)

I didn't look before I pulled the trigger on the MiniCM, my bad :o:o:o:(

I've downloaded SEUS and gonna repair it !!
[XPERIA X8 Q&A, Help & Troubleshooting] Shimizux:
Yw mate. And yes you can't unlock the bootloader.

Yap,Seus will flash a new fresh stock Rom. Aftar that, start all over again. Flash GingerDX is a good idea. Fullwipe before installing. :)

Sent from my thumb using my eyes
[XPERIA X8 Q&A, Help & Troubleshooting] wilbso:
i use xperiance rom bu=y jimmy thrashmetal, but i recommend GingerDX
[XPERIA X8 Q&A, Help & Troubleshooting] x.marX:
I have downloaded the GingerDX ROM but there is some problem with SEUS as it is downloading very slowly. So, I'm downloading the X8 factory firmware from a Russian site, narod.ru.

The X8 firmware should work with W8 or would've to download the W8 factory ROM ?
[XPERIA X8 Q&A, Help & Troubleshooting] x.marX:
Wells hostena

I'm have suspicion that the factory X8 ROM I'm downloading is Russian ! So, is there any option to change the language anywhere ?

I'm asking because I've never used an Android phone that long, not that accustomed to its way it works !! :(

BTW, is it OK to flash it (GingerDX) with CM recover or should I flash it with xRecover ?
[XPERIA X8 Q&A, Help & Troubleshooting] x.marX:
Thank You !!

Hi guys !

I've finally flashed the GingerDX ROM ! :D

Thanks for your help !!

BTW, is there is anything to do to 'jazz it up' before I return the X8 to my cousin ?

Can you recommend me some cool themes and widgets ?
[XPERIA X8 Q&A, Help & Troubleshooting] Shimizux:
This is what i did on my GingerDx.

Theme i used : Ics theme by a-chep [Already include in Rom]

Bootanimation : Nexus one

Launcher : GoLauncher with Golauncher ICS Theme

ICS-settings : ICS Setting

You want Walkman Music Player Right : Here

Friendcaster For Facebook : Friendcaster
[XPERIA X8 Q&A, Help & Troubleshooting] wilbso:
No problem :D always here to help.

Try an ICS theme or honeycomb theme, also, i like xperia active launcher, that works for me,

good luck :D
[XPERIA X8 Q&A, Help & Troubleshooting] x.marX:
Thanks for the links...BUT, how can I install the Walkman player ?

Also, how can I download apps/themes/widgets for it through the PC ?

And how can I install it !

Gonna google it :cool:

Thanks once again ! :)

@wilbso

Thanks... gonna checkout xperia active launcher !
[XPERIA X8 Q&A, Help & Troubleshooting] Shimizux:
How to install Walkman Player : Download zip file. Copy/paste to your SD card. go into Xrecovery choose Flash Zip file option, find walkman player zip file you download. and just flash it. Or you can extract the zip file [using Winrar or 7zip] Copy the .apk file from /system/app folder. Copy/Paste to sd card. and install. Or, If you want to install the .apk as system app. copy/paste .apk file into System/app folder [You Must Using RootExplorer Application]. and set App permission. Reboot your phone.

Actually Your cant download app from Google play direct to your pc btw. But You can use this Tool. highly recommend that. Here : Real Apk Leecher

How to Install app. Just Download the .apk, copy/paste to Sd card. and install.

Before That Go to setting/application [tick unknown source]

Permission i mention above.

Long Press apk file and choose Change Permission set Like this.

[x][x][0]

[x][0][0]

[x][0][0]

X : Tick

0 : No

P/s : No Space on apk name if you want to push/install app to system/App.

e.g : Walkman Player.apk [Wrong] WalkmanPlayer.apk [You Good!!]

Hope it helped.
[XPERIA X8 Q&A, Help & Troubleshooting] MintiIceCream:
PrimeHD 6.0 x)
[XPERIA X8 Q&A, Help & Troubleshooting] pipi14:
unlock bl, flash latest nAa kernel and flash latest minicm7 rom... Simple as that.. I have x8 but as much as i have red roms work on w8 as well..
[XPERIA X8 Q&A, Help & Troubleshooting] sahniana:
i think u forgot to flash kernel first
[XPERIA X8 Q&A, Help & Troubleshooting] iyoes:
Please try PrimeHD and PetrukDX.
[XPERIA X8 Q&A, Help & Troubleshooting] ARNOB:
X8 do not natively supports zoom, use a custom app.
[XPERIA X8 Q&A, Help & Troubleshooting] Green goblin:
The best rom for me is MiniCM7 with nAa kernel, it's a fast, stable and customizable rom :)
[XPERIA X8 Q&A, Help & Troubleshooting] cascabel:
Was he able to unlock his BL? I think if it's a new phone he probably has 11w34+ and it would be a risk to unlock. So he can't change kernels?
[XPERIA X8 Q&A, Help & Troubleshooting] ARNOB:
GingerDX
[XPERIA X8 Q&A, Help & Troubleshooting] ->Sid:
You can download a ftf file of our stock rom which will take less time compared to PCC and flash it using flash tool...

Hit thanks if I helped you..

Sent from my W8 :)
[XPERIA X8 Q&A, Help & Troubleshooting] ->Sid:
Just try out the stock roms first don't get the rom which requires a custom kernel, because to flash custom kernel you will need unlocked bootloader..

You can have gingerdx or primehd they have stock Rom which I have used don't know about others and then flash it using cwm..

You can Even get a video tutorial on youtube..

Sent from my W8 :)
[XPERIA X8 Q&A, Help & Troubleshooting] ->Sid:
You have got back up the best thing just restore it using cwm best solution..

If you can't boot to cwm or xrecovery then only try the other solution of flashing ftf file of stock rom as I stated in the other post...

Sent from my W8 :)
[XPERIA X8 Q&A, Help & Troubleshooting] vinoydj:
Plzzzzz help me wid my w8.....send me full process of flashing rom on w8......plzzzz....send a link for kernal for my phone w8(e16i)
[XPERIA X8 Q&A, Help & Troubleshooting] Mockingbird:
I bet you didnt read not a single thread about flashing on x8/w8
[XPERIA X8 Q&A, Help & Troubleshooting] Kubaz:
I flashed NAa 14 kernel on my x10 mini. Is that a problem?

Also I neglected to copy the rom and gapps zip files to my sd card before flashig the kernel and now it seems I can't add the files to the sd card. Any ideas?
[XPERIA X8 Q&A, Help & Troubleshooting] Kubaz:
I followed this and it workedd. I went for mini cm 7 as it seemed the most stable. just need to get the sd card to mount and I am all set. thanks for your suggestions.

Connect your phone to your PC using the usb-cable

Boot into CWm (you say you can)

Go into Mounts and Storage

Choose USB-Mass storage

You should be able to access the sd-card from your pc now and copy the ROM and maybe Gapps.
[Sony Ericsson Xperia Neo, Pro] varunrocks17:
pls give me link of cm7 bugless on neo v......
[Sony Ericsson Xperia Neo, Pro] poyensa:
here