Tuesday, February 25, 2014
Android has no stream editor similar to awk or sed under linux (at the same time understand Android + linux forward)
Android in general how to modify the configuration file to do it? linux used awk (stream editor) to locate modify, Android is read out first of all? How to locate it? There is no similar linux under awk (stream editor)
Ini configuration file similar to win the next Android application to modify some awk can locate where in the last line of this section of the sentence can be added to facilitate the achievement. Android should have this kind of demand it is how to do it
There java api can do RandAccessFile but with this class must know is that the line
The situation is this:
# Other
insmod / system / vendor / modules / other.ko
# Network module
insmod / system / vendor / modules / usbnet.ko
insmod / system / vendor / modules / asix.ko
insmod / system/vendor/modules/qf9700.ko
insmod / system/vendor/modules/mcs7830.ko
insmod / system/vendor/modules/rtl8150.ko
insmod / system/vendor/modules/8192cu.ko
# Rtk8723au usb bt module
insmod / system / vendor / modules / rtk_btusb.ko
# Usb tether function
insmod / system / vendor / modules / cdc_ether.ko
insmod / system / vendor / modules / cdc_eem.ko
insmod / system / vendor / modules / cdc_subset.ko
As the configuration file to locate the last paragraph
# network moduleIf you are under linux can be sed
by calling this commandsed '/ # network module /, / ^ $ / {/ ^ $ / s / / \ thello \ n /}'
Line you can navigate to the last line of the paragraph and the paragraph
I think the realization of a text editor is also going to call in Android linux command, I think this method is not too good
So I would like to know the best method in android<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
Modify this file itself is wrong, now that I think want to laugh.
Linux always thinking to develop Android.
Roots are wrong, lower demand is useless. Results posted no satisfactory answer.
Here to say one more thing, to implement a kernel module can be installed through the android app, and then think of here, and then modify the script init.rc script in ramdisk, the change in the system is blind to change, in addition This demand is also bullshit. Do not do it with the idea of windows android / linux development, to do this not as a direct upgrade kernel version of it.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment