• Welcome to TechPowerUp Forums, Guest! Please check out our forum guidelines for info related to our community.

Android x86 init.sh

nastypx86

New Member
Joined
Mar 30, 2020
Messages
5 (0.09/day)
I know nothing about this OS. I need to make a change to the init.sh file no matter what I use I cannot save delete or overwrite. If I copy the file to another location no problem but cannot put back into the system/etc .... I have tried a terminal window es file explorer and a txt editer. I know it's a system file and protected but their must be a way. please advise. Thank you
 
Joined
Nov 10, 2006
Messages
4,653 (0.94/day)
Location
Washington, US
System Name Rainbow
Processor Intel Core i7 8700k
Motherboard MSI MPG Z390M GAMING EDGE AC
Cooling Corsair H115i, 2x Noctua NF-A14 industrialPPC-3000 PWM
Memory G. Skill TridentZ RGB 4x8GB (F4-3600C16Q-32GTZR)
Video Card(s) EVGA GeForce 1060 6GB
Storage 2x Samsung 950 Pro 256GB | 2xHGST Deskstar 4TB 7.2K
Display(s) Samsung C27HG70
Case Xigmatek Aquila
Power Supply Seasonic 760W SS-760XP
Mouse Razer Deathadder 2013
Keyboard Corsair Vengeance K95
Software Windows 10 Pro
Benchmark Scores 4 trillion points in GmailMark, over 144 FPS 2K Facebook Scrolling (Extreme Quality preset)
Are you rooted?
Edit: Oh, Android.

It's just Linux. You need to gain root access which is either easy or impossible depending on what device you have.
 
Joined
Mar 10, 2015
Messages
3,081 (1.62/day)
System Name Wut?
Processor 3900X
Motherboard ASRock Taichi X570
Cooling Water
Memory 32GB GSkill CL16 3600mhz
Video Card(s) Vega 56
Storage 2 x AData XPG 8200 Pro 1TB
Display(s) 3440 x 1440
Case Thermaltake Tower 900
Power Supply Seasonic Prime Ultra Platinum

Solaris17

Dainty Moderator
Staff member
Joined
Aug 16, 2005
Messages
21,488 (3.98/day)
Location
Florida
System Name Venslar
Processor I9 7980XE
Motherboard MSI x299 Tomahawk Arctic
Cooling EK Custom
Memory 32GB Corsair DDR4 3000mhz
Video Card(s) Nvidia Titan RTX
Storage 1x 250GB 960 EVO | 1x 500gb Intel 720p | 32TB SAN
Display(s) 3x AOC Q2577PWQ (2k IPS)
Case Inwin 303 White (Thermaltake Ring 120mm Purple accent)
Audio Device(s) Schiit Fulla 3 on Beyerdynamic DT 990 Pros
Power Supply Seasonic 1050W Snow
Mouse Roccat Kone Aimo White
Keyboard Ducky Shine 6 Snow White
Software Windows 10 x64 Pro
have you chmod 777 init.sh ?
 

nastypx86

New Member
Joined
Mar 30, 2020
Messages
5 (0.09/day)
I have no sound via HDMI. So need to edit the .sh so it will load my sound settings during the boot peocess with the following by adding these lines below“esac”:
alsa_amixer -c0 set 'IEC958',0 on
alsa_amixer -c0 set 'IEC958',1 on
alsa_amixer -c0 set 'IEC958',2 on
alsa_amixer -c0 set 'IEC958',3 on
mv /dev/snd/pcmC0D3p /dev/snd/pcmC1D3p.original
ln -sf /dev/snd/pcmC0D7p /dev/snd/pcmC0D3p. No have not tried chmod 777 is this a command I tpye interminal window?
 

Solaris17

Dainty Moderator
Staff member
Joined
Aug 16, 2005
Messages
21,488 (3.98/day)
Location
Florida
System Name Venslar
Processor I9 7980XE
Motherboard MSI x299 Tomahawk Arctic
Cooling EK Custom
Memory 32GB Corsair DDR4 3000mhz
Video Card(s) Nvidia Titan RTX
Storage 1x 250GB 960 EVO | 1x 500gb Intel 720p | 32TB SAN
Display(s) 3x AOC Q2577PWQ (2k IPS)
Case Inwin 303 White (Thermaltake Ring 120mm Purple accent)
Audio Device(s) Schiit Fulla 3 on Beyerdynamic DT 990 Pros
Power Supply Seasonic 1050W Snow
Mouse Roccat Kone Aimo White
Keyboard Ducky Shine 6 Snow White
Software Windows 10 x64 Pro
No have not tried chmod 777 is this a command I tpye interminal window?
yes if you are root cd to the directory containing init.sh and then run chmod 777 init.sh

then see if you can modify it.
 
Joined
Mar 10, 2015
Messages
3,081 (1.62/day)
System Name Wut?
Processor 3900X
Motherboard ASRock Taichi X570
Cooling Water
Memory 32GB GSkill CL16 3600mhz
Video Card(s) Vega 56
Storage 2 x AData XPG 8200 Pro 1TB
Display(s) 3440 x 1440
Case Thermaltake Tower 900
Power Supply Seasonic Prime Ultra Platinum
yes if you are root cd to the directory containing init.sh and then run chmod 777 init.sh

then see if you can modify it.
And take note of what it is so you can chmod it back to original.
 

nastypx86

New Member
Joined
Mar 30, 2020
Messages
5 (0.09/day)
So I opened terminal window cd to /system/etc then typed su did a ls file is there but only is init the .sh extension is hidden I did a chmod 777 init and it stated chmod 'init' to 100777: read only file system.... I also downloaded root checker just to double check and system is rooted.
 
Joined
Nov 11, 2004
Messages
5,837 (1.03/day)
Location
Formosa
System Name Overlord Mk MXVI
Processor AMD Ryzen 7 3800X
Motherboard Gigabyte X570 Aorus Master
Cooling Corsair H115i Pro
Memory 32GB Viper Steel 3600 DDR4 @ 3800MHz 16-19-16-19-36
Video Card(s) Gigabyte RTX 2080 Gaming OC 8G
Storage 1TB WD Black NVMe (2018), 2TB Viper VPN100, 1TB WD Blue 3D NAND
Display(s) Asus PG27AQ
Case Corsair Carbide 275Q
Audio Device(s) Corsair Virtuoso SE
Power Supply Corsair RM750
Mouse Logitech G500s
Keyboard Wooting Two
Software Windows 10 Pro
Benchmark Scores https://valid.x86.fr/33u9si
Try:
Code:
mount -o remount /
 
Joined
Mar 10, 2015
Messages
3,081 (1.62/day)
System Name Wut?
Processor 3900X
Motherboard ASRock Taichi X570
Cooling Water
Memory 32GB GSkill CL16 3600mhz
Video Card(s) Vega 56
Storage 2 x AData XPG 8200 Pro 1TB
Display(s) 3440 x 1440
Case Thermaltake Tower 900
Power Supply Seasonic Prime Ultra Platinum
Try:
Code:
mount -o remount /
Oh that reminds me! You do need to set up that partition as writable. Let me find my old scripts that do that.

Edit: Nevermind, mine were all emulator and ADB.
 

nastypx86

New Member
Joined
Mar 30, 2020
Messages
5 (0.09/day)
I think that during the install Android x86 installed the system files as read only and you cannot modify. Does this make sense?
 
Joined
Mar 10, 2015
Messages
3,081 (1.62/day)
System Name Wut?
Processor 3900X
Motherboard ASRock Taichi X570
Cooling Water
Memory 32GB GSkill CL16 3600mhz
Video Card(s) Vega 56
Storage 2 x AData XPG 8200 Pro 1TB
Display(s) 3440 x 1440
Case Thermaltake Tower 900
Power Supply Seasonic Prime Ultra Platinum
I think that during the install Android x86 installed the system files as read only and you cannot modify. Does this make sense?
It does but that is what chmod does. In conjunction with remounting storage as writable, you should be good too.
 
Joined
Nov 10, 2006
Messages
4,653 (0.94/day)
Location
Washington, US
System Name Rainbow
Processor Intel Core i7 8700k
Motherboard MSI MPG Z390M GAMING EDGE AC
Cooling Corsair H115i, 2x Noctua NF-A14 industrialPPC-3000 PWM
Memory G. Skill TridentZ RGB 4x8GB (F4-3600C16Q-32GTZR)
Video Card(s) EVGA GeForce 1060 6GB
Storage 2x Samsung 950 Pro 256GB | 2xHGST Deskstar 4TB 7.2K
Display(s) Samsung C27HG70
Case Xigmatek Aquila
Power Supply Seasonic 760W SS-760XP
Mouse Razer Deathadder 2013
Keyboard Corsair Vengeance K95
Software Windows 10 Pro
Benchmark Scores 4 trillion points in GmailMark, over 144 FPS 2K Facebook Scrolling (Extreme Quality preset)
Historically, I've just used Root Explorer to edit system files. I'm sure there are free alternatives.
 
Top