Replacing Android on the desktop distribution | all platforms



Rep: (365)
Replacing Android on the desktop distribution

... He just had his own ideas about how the world should look, and he was powerful enough to try to implement them.
V. Archer

I wonder if anyone, except me, tried to completely get rid of the android on his device and deploy a normal distribution.
If such people exist, then they may want to discuss the results, share their experiences, or boast achievements.

Surely, someone will ask, "What for? Yes, almost any desktop Linux program already has counterparts for android. But maybe someone just does not like the android. Or maybe someone wants to write highly specialized programs for their device and write them not in Java.

Here you can ask questions (or leave instructions) on the following topics:
- Rebuilding the kernel with the new config or drivers;
- Work with ramdisk;
- HAL libraries and libhybris;
- Set up Wi-Fi, 3g;
- Setup and launch of the X server;
- Choice of window manager, environment, virtual keyboard;
- Sound output;
- Development of programs that replace the functionality of the android: control backlight, processor frequency, volume, lights, calls, messages, hibernation;
- Using cameras, sensors.

Init FAQ.
Easy reading for leisure.

If someone is interested, but do not know where to start, you can look here:
Replacing Android on the desktop distribution (Post Pigg # 48927960)

Post has been editedottiwell - 15.06.18, 23:22



Rep: (247)
* 77st77 , Mainlining this painful process .. Download better way to start your source for the device, or at least under its stone ...

Posted 03/25/2020, 1:51:

77st77 @ 25.03.20, 0:06*
Unable to find the ncurses package.
* Install ncurses (ncurses-devel or libncurses-dev
* Depending on your distribution).
that incomprehensible something
77st77 @ 25.03.20, 0:06*
You may also need to install pkg-config to find the
* Ncurses installed in a non-default location.



Rep: (2)
Yes, I realized ncurses is not installed.



Rep: (0)
* Azathtot In dmesg nothing because the module is not loaded something tells me that the matter is how I entered the Boolean parameters but how to do it properly, I have no idea



Rep: (1211)
* Ghghrt
usually 0/1



Rep: (0)
* Azathtot but even so in dmesg otobrazhaetsya error connecting module

$ Sudo insmod /lib/modules/3.18.71XR5/kernel/drivers/net/wireless/ath/wil6210/wil6210.ko rtap_include_phy_info = 0 rx_align_2 = 0 max_assoc_sta = 1 agg_wsize = 0 led_id = 0 use_msi = 1 alt_ifname = 1 debug_fw = oob_mode = 0 0 0 no_fw_recovery = rx_ring_overflow_thrsh = 1 rx_ring_order = 10 tx_ring_order = 10 bcast_ring_order = 7

he gives
[481.572726] Context not found

that now is not it?

Post has been editedGhghrt - 25.03.20, 12:41



Rep: (247)
Ghghrt @ 25.03.20, 11:40*
Context not found
selinux context similar searches



Rep: (0)
Fikys @ 25/03/20, 15:03*
selinux context similar searches

and that these do



Rep: (37)
Dear Sirs enthusiasts.
My opinion about the "what" but to have a banal alternative droids with his troops and zygote govnoservisov who only pretend to be the machine capacity will suffice)
I would like to re-reading the whole topic not know if anyone got rid of init.rc, replacing it with such OpenRc + busybox and / zanativit whether X-s?
* Ghghrt
As I understand it the native module wafer, then look at ramdisk in the * .rc file as its launch, there are all the necessary parameters.

And someone has already looked awayhttp://bin.entware.net/good help will opkg, works and supplied, really need to rebuild from source to work properly.



Rep: (688)
* Demonsinusa From native Inita refused, because there is a well written and so mounting, finished the mounting of the stick, pinalku buffer, but X's somehow not run properly, but rather my school. I have done on the phone with android 4.4.2 and its kernel. I took as a basis twrp body. But you can not live with my start, nothing works (display and touch work) but more than anything ...

Posted on 18/04/2020, 15:44:

Light is pmOS gather, but in the open for some reason, was not going to ..



Rep: (11)
Speaking of mainline - it will run on any arm64 in the presence of only 2 drivers for your platform - pinctrl and gcc (clock, not to be confused with the compiler) that are easy to pull out of the stock kernel



Rep: (688)
Edk2Arm @ 19.04.20, 23:14*
gcc

I can not find it in its nucleus
https://github.com/Rer...ernel-e8895-by-samsung
Well, stupid question, as they were then much to cram into the mainline?

Post has been editedArkanium - 19.04.20, 23:39



Rep: (247)
* Edk2arm Not at any cost at the MTC in lk secure boot checks the kernel;)

those. you must first rebuild lux if there is source code, so do not.Not all included secure boot, but I saw many smarts, and including me.

Post has been editedFixys - 20.04.20, 00:24



Rep: (11)
* Arkanium, and now think that one under your platform - https://github.com/Rer...er/drivers/clk/samsung

Posted 04/20/2020 11:19:

* Fikys, lol and how then custom kernel loaded from custom firmware



Rep: (247)
Edk2Arm @ 20.04.20, 11:19*
lol and how then custom kernel loaded from custom firmware
MTC checks them there somehow, I know that we need necessarily mtk AEE in the nucleus, perhaps something else

Posted on 20/04/2020, 12:01:

seems to be no driver lcm at MTC core is also not start



Rep: (11)
* Fikys, Trouble in that it is unclear where the loading is stopped - or to the core already in the nucleus due to the fact that it, for example, can not raise iommu, which hangs on lk



Rep: (0)
* DemonSinusa, I looked at everything and did not find any water upomenaniya rc file module, wil6210, vendor / lib / modules nothing. I can not look there's files
init.rc
ueventd.rc
init.zygote64_32.rc
init.zygote32.rc
init.usb.rc
init.usb.configfs.rc
init.recovery.qcom.rc\
init.recovery.qcom.usb.rc
init.environ.rcin this file, I found a place with upomenaniem service/system/framework/wifi-service.jarBut what to do?



Rep: (37)
* Ghghrt
Look where I've found another .rc, it's not the entire list.
Bad practice to place them somewhere in the back of / system /

At the expense of lk / is not that program? What if her first address to make jmp zImage?



Rep: (247)
DemonSinusa @ 21.04.20, 19:49*
At the expense of lk / is not that program?
lk is the operating system.

Posted on 21/04/2020, 20:17:

DemonSinusa @ 21.04.20, 19:49*
What if her first address to make jmp zImage?
Well, well: rofl:



Rep: (38)
http: //thomaspolasek.b...mouse-keyboard_16.html

May be useful



Rep: (0)
* DemonSinusa,
okozalos really is not all. Smonitrovannoe sections and system vendor
I found more files
root @ XR5:/ Media / rootlol# find ./ -iname "* .rc"
./system/etc/init/servicemanager.rc
./system/etc/init/lineage-adb.rc
./system/etc/init/wifi-events.rc
./system/etc/init/lineage-livedisplay.rc
./system/etc/init/statsd.rc
./system/etc/init/racoon.rc
./system/etc/init/bootstat.rc
./system/etc/init/mdnsd.rc
./system/etc/init/thermalservice.rc
./system/etc/init/usbd.rc
./system/etc/init/drmserver.rc
./system/etc/init/vold.rc
./system/etc/init/surfaceflinger.rc
./system/etc/init/hwservicemanager.rc
./system/etc/init/mtpd.rc
./system/etc/init/netd.rc
./system/etc/init/logcatd.rc
./system/etc/init/[email protected]
./system/etc/init/gatekeeperd.rc
./system/etc/init/uncrypt.rc
./system/etc/init/mediadrmserver.rc
./system/etc/init/healthd.rc
./system/etc/init/atrace_userdebug.rc
./system/etc/init/lineage-governor.rc
./system/etc/init/lineage-system.rc
./system/etc/init/lineage-updates.rc
./system/etc/init/wificond.rc
./system/etc/init/perfprofd.rc
./system/etc/init/wait_for_keymaster.rc
./system/etc/init/init-debug.rc
./system/etc/init/tombstoned.rc
./system/etc/init/atrace.rc
./system/etc/init/logtagd.rc
./system/etc/init/audioserver.rc
./system/etc/init/lineage-radio.rc
./system/etc/init/storaged.rc
./system/etc/init/incidentd.rc
./system/etc/init/perfetto.rc
./system/etc/init/dumpstate.rc
./system/etc/init/bootstat-debug.rc
./system/etc/init/logd.rc
./system/etc/init/mediametrics.rc
./system/etc/init/bootanim.rc
./system/etc/init/mediaextractor.rc
./system/etc/init/lineage-iosched.rc
./system/etc/init/cameraserver.rc
./system/etc/init/lmkd.rc
./system/etc/init/wfdservice.rc
./system/etc/init/installd.rc
./system/etc/init/mediaserver.rc
./system/etc/init/lineage-ssh.rc
./system/etc/init/vdc.rc
./system/etc/init/blank_screen.rc
./system/etc/init/keystore.rc
./vendor/etc/init/[email protected]
./vendor/etc/init/[email protected]
./vendor/etc/init/[email protected]
./vendor/etc/init/[email protected]
./vendor/etc/init/[email protected]_rosy.rc
./vendor/etc/init/[email protected]
./vendor/etc/init/[email protected]
./vendor/etc/init/[email protected]
./vendor/etc/init/[email protected]
./vendor/etc/init/[email protected]
./vendor/etc/init/[email protected]
./vendor/etc/init/[email protected]
./vendor/etc/init/[email protected]
./vendor/etc/init/[email protected]
./vendor/etc/init/[email protected]
./vendor/etc/init/[email protected]
./vendor/etc/init/hostapd.android.rc
./vendor/etc/init/[email protected]
./vendor/etc/init/[email protected]
./vendor/etc/init/[email protected]
./vendor/etc/init/[email protected]
./vendor/etc/init/[email protected]
./vendor/etc/init/qcrild.rc
./vendor/etc/init/[email protected]
./vendor/etc/init/[email protected]
./vendor/etc/init/vndservicemanager.rc
./vendor/etc/init/[email protected]
./vendor/etc/init/[email protected]
./vendor/etc/init/[email protected]
./vendor/etc/init/hw/init.target.rc
./vendor/etc/init/hw/init.qcom.usb.rc
./vendor/etc/init/hw/init.qcom.rc
./vendor/etc/init/[email protected]
./vendor/etc/init/[email protected]
./vendor/etc/init/[email protected]
./vendor/etc/init/[email protected]_rosy.rc
./vendor/etc/init/[email protected]
./vendor/etc/init/[email protected]
./vendor/etc/init/init.rosy.rc
./vendor/ueventd.rc


my eye caught the file./system/etc/init/wifi-events.rc
vnom such content
#
# Copyright (C) 2016 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file.
# You can obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required to write to software
#as distributed under an IS IS BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language permissions and
# limitations under the License.
#

on fs
setprop sys.wifitracing.started 0

on property: sys.boot_completed = 1 && property: sys.wifitracing.started = 0
# Create trace buffer, and set basic configuration.
mkdir / sys / kernel / debug / tracing / instances / wifi 711
restorecon_recursive / sys / kernel / debug / tracing / instances / wifi
write / sys / kernel / debug / tracing / instances / wifi / tracing_on 0
write / sys / kernel / debug / tracing / instances / wifi / buffer_size_kb 1
write / sys / kernel / debug / tracing / instances / wifi / trace_options disable_on_free

# Enable cfg80211 events for connection and key management events.
# - Events are not actually logged until WifiService writes "1" to
# / Sys / kernel / debug / tracing / instances / wifi / tracing_on.
# - WifiService is responsible for turning tracing off and on.
write / sys / kernel / debug / tracing / instances / wifi / events / cfg80211 / cfg80211_gtk_rekey_notify / enable 1
write / sys / kernel / debug / tracing / instances / wifi / events / cfg80211 / rdev_add_key / enable 1
write / sys / kernel / debug / tracing / instances / wifi / events / cfg80211 / rdev_assoc / enable 1
write / sys / kernel / debug / tracing / instances / wifi / events / cfg80211 / rdev_auth / enable 1
write / sys / kernel / debug / tracing / instances / wifi / events / cfg80211 / rdev_connect / enable 1
write / sys / kernel / debug / tracing / instances / wifi / events / cfg80211 / rdev_set_default_key / enable 1
write / sys / kernel / debug / tracing / instances / wifi / events / cfg80211 / rdev_set_default_mgmt_key / enable 1
write / sys / kernel / debug / tracing / instances / wifi / events / cfg80211 / rdev_set_rekey_data / enable 1

# Enable datapath events for Wifi.
# - Events are not actually logged until WifiService writes "1" to
# / Sys / kernel / debug / tracing / instances / wifi / tracing_on.
# - WifiService will ensure that tracing is turned back off,
# When a connection attempt ends (whether in success or failure)
write / sys / kernel / debug / tracing / instances / wifi / events / net / filter name == $ {wifi.interface: -wlan0}
write / sys / kernel / debug / tracing / instances / wifi / events / net / net_dev_queue / enable 1
write / sys / kernel / debug / tracing / instances / wifi / events / net / net_dev_xmit / enable 1
write / sys / kernel / debug / tracing / instances / wifi / events / net / netif_rx / enable 1
write / sys / kernel / debug / tracing / instances / wifi / events / net / netif_receive_skb / enable 1

# Set DAC to allow system_server to enable / disable, and read wifi trace
# Events.
chown system / sys / kernel / debug / tracing / instances / wifi / tracing_on
chown system / sys / kernel / debug / tracing / instances / wifi / free_buffer
chown system / sys / kernel / debug / tracing / instances / wifi / trace
chmod 200 / sys / kernel / debug / tracing / instances / wifi / tracing_on
chmod 400 / sys / kernel / debug / tracing / instances / wifi / free_buffer
chmod 600 / sys / kernel / debug / tracing / instances / wifi / trace
setprop sys.wifitracing.started 1

on property: sys.boot_completed = 1 && property: wifi.interface = * && sys.wifitracing.started = 1
# Override default value.
write / sys / kernel / debug / tracing / instances / wifi / events / net / filter name == $ {wifi.interface}

and here I am is what I lacked(Spoller it did not help)I wrote that I was a fool skriptik all hands to write
#! / bin / bash

write () {echo $ 2>$ 1; echo $ 2 ">"$ 1" ... ok ";}

mkdir -p / sys / kernel / debug / tracing / instances / wifi 711
write / sys / kernel / debug / tracing / instances / wifi / tracing_on 0
write / sys / kernel / debug / tracing / instances / wifi / buffer_size_kb 1
write / sys / kernel / debug / tracing / instances / wifi / trace_options disable_on_free

write / sys / kernel / debug / tracing / instances / wifi / events / cfg80211 / cfg80211_gtk_rekey_notify / enable 1
write / sys / kernel / debug / tracing / instances / wifi / events / cfg80211 / rdev_add_key / enable 1
write / sys / kernel / debug / tracing / instances / wifi / events / cfg80211 / rdev_assoc / enable 1
write / sys / kernel / debug / tracing / instances / wifi / events / cfg80211 / rdev_auth / enable 1
write / sys / kernel / debug / tracing / instances / wifi / events / cfg80211 / rdev_connect / enable 1
write / sys / kernel / debug / tracing / instances / wifi / events / cfg80211 / rdev_set_default_key / enable 1
write / sys / kernel / debug / tracing / instances / wifi / events / cfg80211 / rdev_set_default_mgmt_key / enable 1
write / sys / kernel / debug / tracing / instances / wifi / events / cfg80211 / rdev_set_rekey_data / enable 1

write / sys / kernel / debug / tracing / instances / wifi / events / net / filter "name == wlan0"
write / sys / kernel / debug / tracing / instances / wifi / events / net / net_dev_queue / enable 1
write / sys / kernel / debug / tracing / instances / wifi / events / net / net_dev_xmit / enable 1
write / sys / kernel / debug / tracing / instances / wifi / events / net / netif_rx / enable 1
write / sys / kernel / debug / tracing / instances / wifi / events / net / netif_receive_skb / enable 1

chown rootlol / sys / kernel / debug / tracing / instances / wifi / tracing_on
chown rootlol / sys / kernel / debug / tracing / instances / wifi / free_buffer
chown rootlol / sys / kernel / debug / tracing / instances / wifi / trace
chmod 666 / sys / kernel / debug / tracing / instances / wifi / tracing_on
chmod 666 / sys / kernel / debug / tracing / instances / wifi / free_buffer
chmod 666 / sys / kernel / debug / tracing / instances / wifi / trace

write / sys / kernel / debug / tracing / instances / wifi / tracing_on 1

the result of nothing happened there
concluded the iwconfig
root @ XR5:/ Media / rootlol# iwconfig
sit0 no wireless extensions.

lo no wireless extensions.

rndis0 no wireless extensions.

rmnet_ipa0 no wireless extensions.


I rastroilsya, but found another interesting file./system/etc/init/wificond.rc
its contents
service wificond / system / bin / wificond
class main
user wifi
group wifi net_raw net_admin
capabilities NET_RAW NET_ADMIN


zapuskalse he did not until I did link
root @ XR5:/ Media / rootlol# ln -s $ (pwd) / system / bin / linker64 / system / bin / linker64

file system / bin / wificond
system / bin / wificond: ELF 64-bit LSB shared object, ARM aarch64, version 1 (SYSV), dynamically linked, interpreter / system / bin / linker64, BuildID [md5 / uuid] = a91147168905bf8d99bf3e0354f232dd, stripped


in the end I got
CAN NOT LINK EXECUTABLE "system / bin / wificond": library "[email protected]" not found
linker: CAN NOT LINK EXECUTABLE "system / bin / wificond": library "[email protected]" not found

I copied the folders lib and lib64 in the end he started, but the wifi did not work: girl_cray: what to do?

Post has been editedGhghrt - 23.04.20, 00:06


Full version    

Help     rules

Time is now: 18/08/20, 14:49