Tweak init.rc - Acer Iconia A500

Is it possible to modify init.vedana.rc? I see some possibilities for tweaking in there...

maybe? in the prior devices i've used, init.rc usually resets itself on bootup.

minotauri said:
maybe? in the prior devices i've used, init.rc usually resets itself on bootup.
Click to expand...
Click to collapse
Yes init.rc seems to "reset" at startup.
Do you know any ways around that?
Or another way to insmod a kernel module at startup?
Cheers

lallare said:
Yes init.rc seems to "reset" at startup.
Do you know any ways around that?
Or another way to insmod a kernel module at startup?
Cheers
Click to expand...
Click to collapse
init.rc is in the boot.img, there's no way to mod this file atm cause we can't flash a new boot.
You may use /system/etc/install-recovery.sh to insmod your module(s).

vache said:
init.rc is in the boot.img, there's no way to mod this file atm cause we can't flash a new boot.
You may use /system/etc/install-recovery.sh to insmod your module(s).
Click to expand...
Click to collapse
Thanks for a fast reply!
No such file there, should I just add it?
init.goldfish.sh is there, but I don't see it trying to execute the insmod I added there.

The file is not located in root (where there is the init.rc), you have to navigate to /system/etc.

vache said:
The file is not located in root (where there is the init.rc), you have to navigate to /system/etc.
Click to expand...
Click to collapse
Yes, thanks. Still not there..
Rooted Iconia A500
/system/etc # ls
NOTICE.html.gz
apns-conf.xml
asound.conf
bluetooth
bootsound.wav
dbus.conf
dhcpcd
event-log-tags
firmware
gps
gps.conf
hosts
init.goldfish.sh
media_profiles.xml
nvram.txt
permissions
ppp
security
updatecmds
vold.fstab
wifi
/system/etc #

So create it and chmod it to 4755.
Try to insmod some module with it. (you can check with "lsmod")

vache said:
So create it and chmod it to 4755.
Try to insmod some module with it. (you can check with "lsmod")
Click to expand...
Click to collapse
Works perfectly!
Thanks!

very good people, can you explane for dumbs how to insmod in boot. It somewhere close but not cleare.
Thanks

Related

Custom BootAnimation.zip does not work on MCRr4 FroYo with Sense

Hey guys i went and added a bootanimation.zip i made into /data/local directory but i noticed that my rom overlooks it and boots the default animation...the animation i tried wasworking with the mcr3.1 so it's not animation's fault.....is this feature disabled in this rom version ??????
lambrospower said:
Hey guys i went and added a bootanimation.zip i made into /data/local directory but i noticed that my rom overlooks it and boots the default animation...the animation i tried wasworking with the mcr3.1 so it's not animation's fault.....is this feature disabled in this rom version ??????
Click to expand...
Click to collapse
Doesn't work on any FroYo Sense roms, and either does flashing the zip. Adb works though I think.
Sent from my Desire using XDA App
try pushing it to system/media, without running that ROM, I can't tell where it has to be pushed, but all it means is that it must be pushed somewhere else
ok i pushed it to /system/customize/resource and it's working great
try my solution i postet @ modaco forums
just boot up your desire in recovery mode and first mount the system
mount system
Click to expand...
Click to collapse
change directory to /system/customize/resource
cd /system/customize/resource
Click to expand...
Click to collapse
then just setup the syslink
(if you get an error that there is already a bootanimation.zip just delete it with)
rm -r bootanimation.zip
Click to expand...
Click to collapse
ln -s /data/local/bootanimation.zip bootanimation.zip
Click to expand...
Click to collapse
CHECK TWICE THE CORRECT PATH. THE SYMLINK MUST BE MADE IN /system/customize/resource
check it simply with
ls -l
Click to expand...
Click to collapse
scroll a bit up and you should see: bootanimation.zip -> data/local/bootanimation.zip
if thats fine, your are done.
just put any bootanimation.zip to data/local and it should be shown @ startup. I only tested it @ The MCR r5 so im not sure if it works for other roms as well.
just push your favorite boot animation to /data/local and it *should* work.
Please confirm if it works.
hey man i used the guide in modaco but by mistake you told me to do the opposite one.........i symlinked the /data/local/bootanimation.zip to follow /system/customize/resource/bootanimation.zip
how do i delete this one ????? and if this works then i guess the opposite works too so i think we might have a solution
ok man so let's go
the command to delete the symlink is
ln -f instead of ln -s so problem fixed
then i created the correct symlink and pushed my bootanimation.zip and android_audio.mp3 (i symlinked that too) into /data/local
and now EVERYTHING WORKS AWSOMELY even the sound
Thanks a lot my friend!!!!!
nice to hear it works
if you made some mistake just go to /data/local and /system/customize/resource
and delete bootanimation.zip
rm -r bootanimation.zip
Click to expand...
Click to collapse
you can check it with ls -l should be gone then.
Its kinda weird. If i Push the Bootanimation to /data/local and /system/customize/resource it seems not to work. But if i symlink its working.
Whatever. No need Recovery anymore. Just push whatever you want to /data/local
@warrie87:
Thanks!!!
Works great with your tutorial ! tested on ModaCo R7.
Gaspedal said:
@warrie87:
Thanks!!!
Works great with your tutorial ! tested on ModaCo R7.
Click to expand...
Click to collapse
Or.....
Download boot animation changer from the market, then goto the web site Simproduction, where you will find a handy update.zip that has the exact symlink in it, in a flashable zip.
Handy

[Q] Wifi MAC Fix?

Solved: See post #4
Obviously for those with a modded kernel and broken MAC.
If we knew the real MAC address for the specific device, couldn't we set the module's MAC to our real one?
Or just a MAC spoofer? But more like an un-spoofer..
Im looking for the answer as well...
I have been through every oc kernel so far, only stock/insmod seems to keep the mac addy. This might be the best option until a proper solution is found, if anyone has an idea on how to insmod on startup that would be good.
I also tried ipconfig eth0 hw ether, but got an invalid argument.
tijuanacartel said:
Im looking for the answer as well...
I have been through every oc kernel so far, only stock/insmod seems to keep the mac addy. This might be the best option until a proper solution is found, if anyone has an idea on how to insmod on startup that would be good.
I also tried ipconfig eth0 hw ether, but got an invalid argument.
Click to expand...
Click to collapse
Can't you setup a script that insmod's and set that up to run on startup?
I'm sure there is somewhere in the ROM where a script can be added for it to run on boot, or at least a boot time Android one...
init.rc perhaps?
Okay i found it... there is a file called /bootcomplete.rc that calls
/system/xbin/busybox run-parts /system/etc/init.d
so, on stock kernel with oc-dz.ko:
Code:
# cd /system/etc/
# mkdir init.d
# cd init.d
# echo insmod /system/lib/modules/oc-dz.ko pll2_l_val=74 > overclock
# chmod 0755 overclock
will load the module at boot. wifi mac is correct
Okay I've been using this for most of the day and just had a hard crash on level 99 of robo defence(F7U13!) Looking into it, it seems this kernel module only seems to step up from 700 straight to 1497! I'm disabling it for now.
Apparently cyanogen is quite a lot faster than the stock Sense, even without overclock. As soon as it hits RC2, I'm gonna give it a shot.
tijuanacartel said:
Okay i found it... there is a file called /bootcomplete.rc that calls
/system/xbin/busybox run-parts /system/etc/init.d
so, on stock kernel with oc-dz.ko:
Code:
# cd /system/etc/
# mkdir init.d
# cd init.d
# echo insmod /system/lib/modules/oc-dz.ko pll2_l_val=74 > overclock
# chmod 0755 overclock
will load the module at boot. wifi mac is correct
Click to expand...
Click to collapse
EDIT
Trying from a Terminal I get: "undable to chmod overclock: Read-only file system"
I tryed from ADB and all commands were accepted, file was created and chmod processed, but after reboot the OC module is not loaded
What ROM are your using ??
Obviously you should remount your system partition rw
tijuanacartel said:
Obviously you should remount your system partition rw
Click to expand...
Click to collapse
OMFG I really need to sleep a little
What ROM are you using ?? Have you changed the Kernel ??
at the time i was using stock.. currently using virtuous from rom manager
I've been strugglin with that command line for days, trying to find a way t make it stick from boot (and not typing it from a console), I finaly made it today via updater script (update.zip).
I also included the stock radio module and the stock kernel (rooted) to the package, so it can serve as a "rescue kit" for other users stuck with the MAC WiFi shizz. I shared it @ devs forum.

Wifi "error"

ok so to try and not sound redundant ( prob not gonna happen) i had the cm7 release running perfectly no issues ... then i decided to install faux's OC UV kernel which was great ... everything was speedy and working fine up until last night where my phone froze and i had to pull the battery ... after once booted up everytime id try and turn on wifi it wouldnt and i would just recieve a message that says error ... tried rebooting , wiping and reflashing .. tried flashing royals new GB rom exactly the way the instructions said too ... still nothing ... anybody know what might be causing this issue ... ive tried 3 diff roms with different kernels and still no wifi ... could this be hardware ????
bump.
Ive tried wiping everything including /system and davlik and still cant get the wifi to work ... i was told that i might have a bad module so i pushed on from the kernel i was currently using and still nothing ... anybody have any type of advice ?
bump .... im willing to donate !
try this:
extract the bcm4329.ko from the kernel zip file (module and kernel version MUST MATCH) and somehow copy it to /system/lib/modules (via adb/root explorer, etc etc)
then use terminal emulator and type the following code exactly as shown:
Code:
su
cd /system/lib/modules
chmod 644 *
chown 0.0 *
reboot... and see if it works...
faux123 said:
try this:
extract the bcm4329.ko from the kernel zip file (module and kernel version MUST MATCH) and somehow copy it to /system/lib/modules (via adb/root explorer, etc etc)
then use terminal emulator and type the following code exactly as shown:
Code:
su
cd /system/lib/modules
chmod 644 *
chown 0.0 *
reboot... and see if it works...
Click to expand...
Click to collapse
Faux my name is neidlinger and I get assfucked by you and other homos.
faux123 said:
try this:
extract the bcm4329.ko from the kernel zip file (module and kernel version MUST MATCH) and somehow copy it to /system/lib/modules (via adb/root explorer, etc etc)
then use terminal emulator and type the following code exactly as shown:
Code:
su
cd /system/lib/modules
chmod 644 *
chown 0.0 *
reboot... and see if it works...
Click to expand...
Click to collapse
Nice to get help from the master himself
Sent from my HTC Glaciee using XDA Premium App
Double post by mistake. my bad
faux123 said:
try this:
extract the bcm4329.ko from the kernel zip file (module and kernel version MUST MATCH) and somehow copy it to /system/lib/modules (via adb/root explorer, etc etc)
then use terminal emulator and type the following code exactly as shown:
Code:
su
cd /system/lib/modules
chmod 644 *
chown 0.0 *
reboot... and see if it works...
Click to expand...
Click to collapse
Sigh ... no luck. I used your GB kernel with the Royal Ginger 1.6 rom ... rafyvitto thinks it might be my hardware so i was prob gonna have somebody take a look at it sometime this week .. what a bad one !
For what ever reason if i am at home, i have to use static ip address to get on my router, no other devices on the network have this issue, including my old phone. its probably not related to your problem but worth trying.
[via XDA premium]

[HOWTO] Dalvik2Cache 90MB extra Space for Apps

found this http://forum.xda-developers.com/showthread.php?t=1174160 here in the forum, but cant get it to work on my neo
after a little seaching i found an other script that seems to work on NEO maybe on ARC too
also install-recovery.sh isnt execute on my neo so i put the call into hw_config.sh and it works fine now
howto.
1. push dalvik2cache /system/bin/dalvik2cache
2. adb shell
3. chmod 755 /system/bin/dalvik2cache
4. echo "/system/bin/dalvik2cache" >> /system/etc/hw_config.sh
5. reboot
btw. you need an inscured adb or an insecure kernel like this -> http://forum.xda-developers.com/showthread.php?t=1197263
if you do that, then at your own risk, do not complain when your phone is broken
hi,
i think it should also work without insecure adb and with stock kernel.
but root is needed...
copy the dalvik2cache file to sdcard first
with rootexplorer copy file to system/bin
set permissions
edit the hw_config.sh with editor (rootexplorer)
works great, thanks!
since my kernel supports init.d binaries/scripts u can actually just push it to /etc/init.d/ OR /system/etc/init.d/
it should work... though u may need to verify permissions... chmod 777 is best bet
DooMLoRD said:
since my kernel supports init.d binaries/scripts u can actually just push it to /etc/init.d/ OR /system/etc/init.d/
it should work... though u may need to verify permissions... chmod 777 is best bet
Click to expand...
Click to collapse
can you please post 1,2,3,4 simple guide to make this work with you fantastic kernel Doomlord?
i really need more space for apps
@inteks: what are the cons of this dalvik2cache? if there are cons
Alejandrissimo said:
@inteks: what are the cons of this dalvik2cache? if there are cons
Click to expand...
Click to collapse
i found out that some apps dont work just after install they need a reboot before they work ?!?!
dont know why!
DooMLoRD said:
since my kernel supports init.d binaries/scripts u can actually just push it to /etc/init.d/ OR /system/etc/init.d/
it should work... though u may need to verify permissions... chmod 777 is best bet
Click to expand...
Click to collapse
i placed a scipt in /etc/init.d/ but it isnt execute on startup ...
ps:
the script is startable and permissons should be ok.
if i place the name of that script (/etc/init.d/start.sh) at the end of hw_config.sh then its executet on startup
Hi friends,
I've been trying to do this but I really don't know how to use adb. I have Android SDK installed on my computer, and fastboot, flash...ect. But every time I type "adb remount" then I get the answer is 'adb' is not found (blah blah blah...).
Plus my phone can't boot to recovery. Anyone please tell me where can I find the instruction how to do it? I really want to have more space for my phone and move all installed apps to sd card (I also have my sd card partitioned with ext3 and fat32).
Many thanks in advance.
Saigonian said:
I've been trying to do this but I really don't know how to use adb.
Click to expand...
Click to collapse
Have a look at first post in this thread - you have to copy two files
Saigonian said:
Plus my phone can't boot to recovery.
Click to expand...
Click to collapse
You will have to unlock your phone first and then, using adb, install a custom kernel by fx. DooMLoRD from the link in my signature.
I dont know how to use cmd, can I use Root Explorer?
Anyway to revert it back? Because few apps are missing after it's done.
inteks said:
found this http://forum.xda-developers.com/showthread.php?t=1174160 here in the forum, but cant get it to work on my neo
after a little seaching i found an other script that seems to work on NEO maybe on ARC too
also install-recovery.sh isnt execute on my neo so i put the call into hw_config.sh and it works fine now
howto.
1. push dalvik2cache /system/bin/dalvik2cache
2. adb shell
3. chmod 755 /system/bin/dalvik2cache
4. echo "/system/bin/dalvik2cache" >> /system/etc/hw_config.sh
5. reboot
btw. you need an inscured adb or an insecure kernel like this -> http://forum.xda-developers.com/showthread.php?t=1197263
if you do that, then at your own risk, do not complain when your phone is broken
Click to expand...
Click to collapse
I'm sorry was that a typo? When your phone gets broken! Or if?
Sent from my LT15i using XDA Premium App
Hi harfot,
Thank you so much! I have it done now! But I wonder why the free space in my phone is now still the same (184MB - Because I only have a few apps installed).
inteks said:
hi,
i think it should also work without insecure adb and with stock kernel.
but root is needed...
copy the dalvik2cache file to sdcard first
with rootexplorer copy file to system/bin
set permissions
edit the hw_config.sh with editor (rootexplorer)
Click to expand...
Click to collapse
hey! This sounds like a best solution if you dont want to unlock the bootloader. But I am not too advanced user yet, could you please explain me this one with more details? actually I only need to know
1). which permissions exactly need to be set and
2). what to write inside the hw_config.sh file
Any help appreciated!
bump! no one has any ideas?
Thanks it's work in arc

lost all permissions after messing with platform.xml

Hello,
I have SM-N9005 variant and recently I updated to the latest android 4.4.2 leaked version with Odin, and then rooted with CF-Auto-Root.
After that, I lost the permission to write to external sdcard.
I searched and found this: http://forum.xda-developers.com/showthread.php?p=49603814
I backed up /system/etc/permissions/platform.xml and then I followed the instructions there.
After restart, a lot of app stopping messages showed and I had no access to file system or network anymore.
I used adb shell to restore the original platform.xml but it didn't helped in any way.
It seems that all mounts and networks are working, but none of the applications has permission to use any of them.
How do I resolve this, without wiping all my data?
Thank you!
You need to set the correct permissions on the .xml after you overwrite it back into the /system Off the top of my head I can't think what they are (just out of bed and got to work so still sleepy!)
radicalisto said:
You need to set the correct permissions on the .xml after you overwrite it back into the /system Off the top of my head I can't think what they are (just out of bed and got to work so still sleepy!)
Click to expand...
Click to collapse
I tried 644 and 777 but the problem persists.
rw-r-r which is 644 - read wrong
or chmod 666 -- forgive my lack of memory, it has been a long time since I have used chmod commands, few years since my glFTPD / site modding days.
radicalisto said:
rw-r-r which is 644 - read wrong
or chmod 666 -- forgive my lack of memory, it has been a long time since I have used chmod commands, few years since my glFTPD / site modding days.
Click to expand...
Click to collapse
The problem still persist
DxCK said:
The problem still persist
Click to expand...
Click to collapse
i dont know if it helps in your situation but did you try the "fix permissions" from a custom recovery like twrp?
there are also scripts you can execute in a terminal, the knoxout script linked in my sig for example has a permission fixer included.
A.N.Droid said:
i dont know if it helps in your situation but did you try the "fix permissions" from a custom recovery like twrp?
there are also scripts you can execute in a terminal, the knoxout script linked in my sig for example has a permission fixer included.
Click to expand...
Click to collapse
Thank you.
When i run this, no matter what are the parameters, for example: sh kn0x0ut.sh kn0x0ut
it says:
ERROR: Unknown parameter ""
Removing all temp folder /data/media/kn0x0ut_temp...
DxCK said:
Thank you.
When i run this, no matter what are the parameters, for example: sh kn0x0ut.sh kn0x0ut
it says:
ERROR: Unknown parameter ""
Removing all temp folder /data/media/kn0x0ut_temp...
Click to expand...
Click to collapse
just type sh kn0x0ut.sh to get all commands.
if you dont get this working, you can do it from twrp (i think cwm too)if you have it.
tap on "advanced" and then on "fix permissions".

Categories

Resources