Just got done chatting with Hashcode about the wifi not working when flashing a ROM using SS3.
Here's the fix:
Change the line in the updater script that reads:
"/system/lib/modules/wlan.ko"
To this:
" /system/lib/modules/prima/prima_wlan.ko"
Done!
What exactly does this mean? Is wifi now working on the razr hd rom?
Sent from my Motorola Atrix HD MB886
Aman27deep said:
What exactly does this mean? Is wifi now working on the razr hd rom?
Sent from my Motorola Atrix HD MB886
Click to expand...
Click to collapse
If you edit the updater script as mentioned above it should according to hashcode
Actually, the exact fix for wifi if you already have the ROM installed is (doing this from adb):
su
mount -o remount,rw /system
rm /system/lib/modules/wlan.ko
ln -s /system/lib/modules/prima/prima_wlan.ko /system/lib/modules/wlan.ko
mount -o remount,ro /system
exit
Or if you want to fix the updater-script in the flash.zip:
Change the following line:
symlink("/system/lib/modules/prima/prima", "/system/lib/modules/wlan.ko");
to:
symlink("/system/lib/modules/prima/prima_wlan.ko", "/system/lib/modules/wlan.ko");
If someone could confirm that wifi is working on the AHD after this fix, that would be great! Thanks.
Hashcode said:
Actually, the exact fix for wifi if you already have the ROM installed is (doing this from adb):
su
mount -o remount,rw /system
rm /system/lib/modules/wlan.ko
ln -s /system/lib/modules/prima/prima_wlan.ko /system/lib/modules/wlan.ko
mount -o remount,ro /system
exit
Or if you want to fix the updater-script in the flash.zip:
Change the following line:
symlink("/system/lib/modules/prima/prima", "/system/lib/modules/wlan.ko");
to:
symlink("/system/lib/modules/prima/prima_wlan.ko", "/system/lib/modules/wlan.ko");
If someone could confirm that wifi is working on the AHD after this fix, that would be great! Thanks.
Click to expand...
Click to collapse
I didn't feel the need to put the entire line in, as if they couldn't figure out which line it was from what I posted, they had no business editing an updater script lol
Thanks for the fix for installed ROMs as well Hash!
Here's your quote from the page:
"So there's a symlink wrong for /system/lib/modules/wlan.ko it needs to point to: /system/lib/modules/prima/prima_wlan.ko
(I typo'd this in the script to: /system/lib/modules/prima/prima)
I'll rebuild the ROM and upload a corrected version "
http://www.droidrzr.com/index.php/t...ock-for-safestrap/page__p__136918#entry136918
Hashcode said:
Actually, the exact fix for wifi if you already have the ROM installed is (doing this from adb):
su
mount -o remount,rw /system
rm /system/lib/modules/wlan.ko
ln -s /system/lib/modules/prima/prima_wlan.ko /system/lib/modules/wlan.ko
mount -o remount,ro /system
exit
Or if you want to fix the updater-script in the flash.zip:
Change the following line:
symlink("/system/lib/modules/prima/prima", "/system/lib/modules/wlan.ko");
to:
symlink("/system/lib/modules/prima/prima_wlan.ko", "/system/lib/modules/wlan.ko");
If someone could confirm that wifi is working on the AHD after this fix, that would be great! Thanks.
Click to expand...
Click to collapse
Confirmed working!
Hashcode said:
Actually, the exact fix for wifi if you already have the ROM installed is (doing this from adb):
su
mount -o remount,rw /system
rm /system/lib/modules/wlan.ko
ln -s /system/lib/modules/prima/prima_wlan.ko /system/lib/modules/wlan.ko
mount -o remount,ro /system
exit
Or if you want to fix the updater-script in the flash.zip:
Change the following line:
symlink("/system/lib/modules/prima/prima", "/system/lib/modules/wlan.ko");
to:
symlink("/system/lib/modules/prima/prima_wlan.ko", "/system/lib/modules/wlan.ko");
If someone could confirm that wifi is working on the AHD after this fix, that would be great! Thanks.
Click to expand...
Click to collapse
A more detailed explanation is ALWAYS the best, thanks hash.
It leads to less people borking things up and being ignored due to asking "inane" questions...
Sent from my MotoAHD
The fix does not work for me Atrix HD ATT
HELP
Hashcode said:
Actually, the exact fix for wifi if you already have the ROM installed is (doing this from adb):
su
mount -o remount,rw /system
rm /system/lib/modules/wlan.ko
ln -s /system/lib/modules/prima/prima_wlan.ko /system/lib/modules/wlan.ko
mount -o remount,ro /system
exit
Or if you want to fix the updater-script in the flash.zip:
Change the following line:
symlink("/system/lib/modules/prima/prima", "/system/lib/modules/wlan.ko");
to:
symlink("/system/lib/modules/prima/prima_wlan.ko", "/system/lib/modules/wlan.ko");
If someone could confirm that wifi is working on the AHD after this fix, that would be great! Thanks.
Click to expand...
Click to collapse
Hello and thanks for the info. But howw exactly do I put the code on adb? Im not a pro in this and I wanna test it, and yes I'm a little late
On what rom you want to try this?
Related
ok now there is a few apps i dont like that come in the ROM like
Voice Dialer
Music(dont use it)
IM
Mail
Amazon MP3
Talk
now im tired that everything i flash i need to go trew terminal to delete these apps can i like write a script that i can run an do all of these for me? (is that what scripts can do?) can some one help me out
I know that you CAN, I just don't know exactly how... but I'm interested as well, so here's hoping someone with the knowledge lays it on you.
so a specific script can be created?? now to find who can help me go about it
brios86 said:
ok now there is a few apps i dont like that come in the ROM like
Voice Dialer
Music(dont use it)
IM
Mail
Amazon MP3
Talk
now im tired that everything i flash i need to go trew terminal to delete these apps can i like write a script that i can run an do all of these for me? (is that what scripts can do?) can some one help me out
Click to expand...
Click to collapse
im about to leave right now, but when i get back i can write it up .. i usually delete VoiceDialer/VoiceSearch and Amazon everytime I flash a new ROM
IIRC, miketaylor00 posted up a script a while back to automatically remove a couple apps. I sent him a message with a link to this thread, but it looks like the board's Dominicano can help.
this would remove the apps:
Code:
su
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
cd /system/app
rm VoiceDialer.apk
rm Music.apk
rm com.amazon*.apk
rm IM.apk
rm Mail.apk
rm Talk.apk
Just remove the .txt extension from the attachment
What's the difference between "rm" and "rm -r"?
uansari1 said:
What's the difference between "rm" and "rm -r"?
Click to expand...
Click to collapse
the -r switch will make it recursive, but since we're not doing it to directory, we don't need it ... i was gunna add some more to the script to remove the data/data/ directories for each of those apps up there, but i gotta look to see what they are first
thankx this is great i knew i wasent the only1 tired of doing that...
xidominicanoix said:
this would remove the apps:
Code:
su
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
cd /system/app
rm VoiceDialer.apk
rm Music.apk
rm com.amazon*.apk
rm IM.apk
rm Mail.apk
rm Talk.apk
Just remove the .txt extension from the attachment
Click to expand...
Click to collapse
to remove the data of those apps:
Code:
su
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
cd /data/data/
rm -r com.android.voicedialer
rm -r com.android.music
rm -r com.amazon.mp3
rm -r com.android.im
rm -r com.htc.android.mail
rm -r com.google.android.talk
wow even more thankz never new that one of removing the data, im sure this can come in helpfull to others. looking at the script i didnt know it could be that easy(atleast thats what it seems like to me)
brios86 said:
wow even more thankz never new that one of removing the data, im sure this can come in helpfull to others. looking at the script i didnt know it could be that easy(atleast thats what it seems like to me)
Click to expand...
Click to collapse
yup just gotta be careful with removing an app that could be dependent on another app
Is there anything stopping me from combining both into one shell script? I was going to make a script to do this myself because I am so sick of that damn teeter app! I will never play it and almost every ROM has it included.
Dyonas said:
Is there anything stopping me from combining both into one shell script? I was going to make a script to do this myself because I am so sick of that damn teeter app! I will never play it and almost every ROM has it included.
Click to expand...
Click to collapse
go ahead and combine them .. it should still work as long as you dont interleave the 2
also, the 2nd script doesnt need that mount command since we are messing with /data/ instead of /system/
I hand-typed the commands in console and received this error:
"mount: mounting /dev/block/mtdblock3 on /system failed: Invalid Argument
Any ideas?
theartar said:
I hand-typed the commands in console and received this error:
"mount: mounting /dev/block/mtdblock3 on /system failed: Invalid Argument Any ideas?
Click to expand...
Click to collapse
you dd a typo check again look between (mtdblock3 /system) you wrote (mtdblock3 on /system) <~~~ no good
this is:
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
ok now that i got my phon working again i was having a SPL problem all done now thank god lol yes thank god i love my phone. anyways one question were do i put this script at??
also foundout MMS is save to remove and use a replacement app and you will work fine for those who use chop or handcent app
xidominicanoix said:
this would remove the apps:
Code:
su
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
cd /system/app
rm VoiceDialer.apk
rm Music.apk
rm com.amazon*.apk
rm IM.apk
rm Mail.apk
rm Talk.apk
Just remove the .txt extension from the attachment
Click to expand...
Click to collapse
a noob question... how do you run a script? and what do you mean by removing .txt extension...
thank you!!!
Save his file to your SD card, and rename it to RemoveApp.sh instead of RemoveApp.sh.txt. To run it, you can go into Terminal Emulator and type "sh /sdcard/RemoveApp.sh", substituting the correct file path where you have saved the script.
uansari1 said:
Save his file to your SD card, and rename it to RemoveApp.sh instead of RemoveApp.sh.txt. To run it, you can go into Terminal Emulator and type "sh /sdcard/RemoveApp.sh", substituting the correct file path where you have saved the script.
Click to expand...
Click to collapse
or to save you time get GScript in the market
Tell me what I'm doing wrong here. I'm trying to make a script that will remove some apps whenever I flash a new rom. Here's what I thought would work:
Code:
mount -o remount,rw /dev/block/mtdblock3 /system
cd /system/app
rm com.amazon*.apk
rm Mail.apk
rm Development.apk
rm LatinIME.apk
To use it I type:
Code:
$ su
# sh /sdcard/apps.sh
and it just fails at every line. Any help would be appreciated.
On the first line try
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
or your could shortcut it by using
mount /system
Stupid question, but do you have the permissions set to allow root access?
I've done that a few times to realize what my "mistake" was.
well you could just make a script for your PC something along the lines of
Code:
@echo off
adb remount
adb shell rm /system/app/com.amazon*.apk
adb shell rm /system/app/Mail.apk
adb shell rm /system/app/Development.apk
adb shell rm /system/app/LatinIME.apk
adb shell reboot
and rename it to a .bat or .cmd file
jackslim said:
On the first line try
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
or your could shortcut it by using
mount /system
Click to expand...
Click to collapse
Ok so I did that and the script appears to be working. I'll test it when Cyanogen release another update with amazon... Adding the -t yaffs2, what exactly did that do?
The -t is a trigger saying that your going to specify what type of filesystem your mounting, yaffs2 is the type of filesystem
I'm trying to copy a Camera.apk from my sdcard into the /system/app/
so far this is what i've come up with and I get an error saying I don't have the permission to Change the original Camera.apk:
su
cp /sdcard/Camera.apk /system/app/
reboot
Can somebody please help me with this? I just switched from Win7 to Linux and I realized that using the terminal emulator might be the fastest way to do this without installing the sdk.
http://forum.xda-developers.com/showpost.php?p=4900207&postcount=1
Use the mount line from this thread:
$ su
# mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
that should work..
Thank you
thatdudebill said:
Thank you
Click to expand...
Click to collapse
Assuming it worked?
No problem man, welcome to the rooting world.
Hi all,
I try to deodex v10f app and framework successly and put all into system .all app work well but LGEIME.apk it's show FC.
who can help me to solve problem.
https://hotfile.com/dl/170459796/0b17282/LGEIME.zip.html
code for put LGEIME.apk to system
1. copyLGEIME.apk to /sdcard/tmp
2. run command as below
#mount -o rw,remount -t ext4 /dev/block/platform/sdhci-tegra.3/by-name/APP /system
#busybox cp /sdcard/tmp/LGEIME.apk /system/app/
#rm /system/app/LGEIME.odex
#chmod 644 /system/app/*
#chown root.root /system/app/*
#mount -o ro,remount -t ext4 /dev/block/platform/sdhci-tegra.3/by-name/APP /system
#reboot
now i use temporary fix. dooesn't deodex LGEIME.apk .
anyone , who can help me to fix problem?
you got a lot of errors during startup of the app, seems you are missing some framework references to jars.
im sure you should see error during compile when you make the new apk? at least it seems missing functions and result is crashing.
@Dexter_nlb when i complie a new apk doesn't has error
Hi,
It's nice you do not have to mod .prop files with Magisk module's system.prop .
But how do you mod .xml files ?
I'm struggling here...
Here is the bash I'd like to run, but it will need RW rights on /cust and /product
Code:
cp /cust/hw/eu/xml/hw_defaults.xml /cust/hw/eu/xml/hw_defaults.xml.BACKUP && cp /product/etc/xml/hw_launcher_default_config.xml /product/etc/xml/hw_launcher_default_config.xml.BACKUP && sed -ie 's/<integer settings.global.hw_4g_show="0" reset="true"/<integer settings.global.hw_4g_show="1" reset="true"/g; s/<string app_name_two_lines="false"/<string app_name_two_lines="true"/g; s/<string hw_add_4g_only="250"/<string hw_add_4g_only="208"/g; s/<string hw_data_roam_option="26006,27211"/<string hw_data_roam_option="ALL"/g' /cust/hw/eu/xml/hw_defaults.xml && sed -ie 's/<item name="config_desktopCellsOptionItems" reset="true">4x5,4x4,5x4,5x5</<item name="config_desktopCellsOptionItems" reset="true">4x6,4x5,4x4,5x4,5x5,5x6</g; s/<item name="config_IconTitleSize">12</<item name="config_IconTitleSize">9</g' /product/etc/xml/hw_launcher_default_config.xml
Any idea where to put this code into my magisk module ?
How should I'll be able to replace, via terminal cmds, files on /product & /cust (oreo huawei device)
oslo83 said:
Hi,
It's nice you do not have to mod .prop files with Magisk module's system.prop .
But how do you mod .xml files ?
I'm struggling here...
Here is the bash I'd like to run, but it will need RW rights on /cust and /product
Code:
cp /cust/hw/eu/xml/hw_defaults.xml /cust/hw/eu/xml/hw_defaults.xml.BACKUP && cp /product/etc/xml/hw_launcher_default_config.xml /product/etc/xml/hw_launcher_default_config.xml.BACKUP && sed -ie 's/<integer settings.global.hw_4g_show="0" reset="true"/<integer settings.global.hw_4g_show="1" reset="true"/g; s/<string app_name_two_lines="false"/<string app_name_two_lines="true"/g; s/<string hw_add_4g_only="250"/<string hw_add_4g_only="208"/g; s/<string hw_data_roam_option="26006,27211"/<string hw_data_roam_option="ALL"/g' /cust/hw/eu/xml/hw_defaults.xml && sed -ie 's/<item name="config_desktopCellsOptionItems" reset="true">4x5,4x4,5x4,5x5</<item name="config_desktopCellsOptionItems" reset="true">4x6,4x5,4x4,5x4,5x5,5x6</g; s/<item name="config_IconTitleSize">12</<item name="config_IconTitleSize">9</g' /product/etc/xml/hw_launcher_default_config.xml
Any idea where to put this code into my magisk module ?
How should I'll be able to replace, via terminal cmds, files on /product & /cust (oreo huawei device)
Click to expand...
Click to collapse
Hello,
If you are already aware that these modifications will be in the actual filesystems and not masked by Magisk, you can put that code into config.sh as a function and call that from update-binary.
Regards.
Thanks
JayminSuthar said:
If you are already aware that these modifications will be in the actual filesystems and not masked by Magisk
Click to expand...
Click to collapse
I am aware it will mod the actual files but i'm not sure how with magiskmodule I could mod some files AND THEN straighly use them to mask the originals.
JayminSuthar said:
, you can put that code into config.sh as a function and call that from update-binary.
Click to expand...
Click to collapse
You kind of lost me
I previously tried with post-fs-data.sh but i think my problem is i can't mod these file but i can make temporary copies somewhere (need to find where) then erase originals and then move temporary copies where originals where.
Instead of just should use something like:
Code:
sed -e 's/. /. /g' originalfile > /tmp/file.bak
rm originalfile
mv /tmp/file.bak originalfile
If I understand you correctly, /cust and /product are directly in the root of your device, not in /system? In that case you can't use Magisk to Magic Mount the files. That can only be done to /system or /vendor.
You should be able to edit the files in place though, you'll just have to mount the partitions as rw (and then back to ro when you're done). Something like this (but check the command syntax first, I don't know it fully from memory):
Code:
mount -o rw,remount /cust
<Do your thing here>
mount -o ro,remount /cust
Didgeridoohan said:
If I understand you correctly, /cust and /product are directly in the root of your device, not in /system? In that case you can't use Magisk to Magic Mount the files. That can only be done to /system or /vendor.
You should be able to edit the files in place though, you'll just have to mount the partitions as rw (and then back to ro when you're done). Something like this (but check the command syntax first, I don't know it fully from memory):
Code:
mount -o rw,remount /cust
<Do your thing here>
mount -o ro,remount /cust
Click to expand...
Click to collapse
You caught it up, I forgot about the rootfs being ro
I'll try and report.
It worked, thank you very much.
Now I'm facing some problem to make a module submission...
Code:
Bad Request:*https://github.com/oslo83/EMUI_Tap2wake*is not a valid Magisk Module!
Reason:*module.prop*does not exist on*masterbranch
....