yashsingh1/xdaforums huggingface dataset:
[Android Q&A, Help & Troubleshooting] wildarch:
Some background:

I own a rooted asus transformer pad 300T. Being a big linux (Linux as in GNU/linux) fan, I wanted to install arch linux on it. This does however require an unlocked bootloader. Out of the box, the bootloader is locked, although it can be unlocked with an app provided by Asus. Unlocking does however void the warranty on the tablet and this is unacceptable for me and many other users.

This is why, over the past few weeks, I have been searching around XDA and the web to find alternative ways of flashing custom roms, leaving the bootloader locked and keeping my precious warranty. On of the first things I bumped into was Kexec. Although perfectly suited for my needs, Kexec is problematic in combination with the tegra 3 SoC: It freezes in the process of switching kernels, the cause for this unknown and very hard to debug. To overcome this, kexec-hardboot was created: A variant of kexec involving a cold reboot. Kexec-hardboot is, however, not suitable for locked bootloaders: It requires flashing a custom kernel which isn't an option in this situation.

The Idea:

Although it appears impossible to boot an alternative kernel, I figured it might be possible to switch to a different root partition, leaving the kernel unharmed. This my plan to achieve this:

After successfully booting stock android, an app/script performs the following operations:

Activitymanager, bluetooth and radio are shut down (This is what happens when normally shutting down android, before filesystems are unmounted)

rootfs is remounted readwrite and directory '/tmproot' is created

an instance of tmpfs is mounted on /tmproot, an initramfs-like structure is created with static busybox and a special script 'init'

'/system','/data', '/cache' and similar partitions are unmounted (This should be equivalent to shutting down the mount service)

android's init process is instructed to run 'exec /tmproot/busybox switch_root /tmproot init', /tmproot becomes '/' and the 'init' script is executed

The 'init' script mounts the partition/image file containing the arch linux filesystem and performs another 'exec switch_root', making the archlinux fs '/' and starting systemd (arch linux's alternative to init) as PID 1

Systemd follows it's normal startup sequence: Arch linux is succesfully booted!

The actions Question:

Although this is currently nothing but a fantasy, I believe this idea should work. There is only one thing I have not yet found the solution to: The process calling 'exec switch_root'

must

be PID 1. This means the android 'init' process had to directly run the command. The obvious thing to do here would of course be to modify init.rc to execute this when told to, but as init.rc lives in the initramfs, I can't make any modifications that would survive a reboot.

So to cut things short: How do I make init run a custom command on runtime?

Thanks in advance,

An android hacking noob
[Galaxy S I9000 Android Development] segu45:
PROYECTO MOKEE OPENSOURCE:​

​

About MoKee OpenSource:

MoKee OpenSource is based on the Google AOSP and CyanogeMod project. We update our source code frequently to keep up with the latest development, and not forgetting to merge in special features of our own at the same time.

The Mfunz Forums launched this project on the 12th of December 2012, and is committed to make this ROM better and better.

Since this project is open source, anyone interested can participate in the development. Newcomers are always welcomed!

Official website: http://www.mfunz.com

Official release: This version is tested throughly by developers and users, so it is the most stable build

Beta: When a device is newly added, there will be beta versions for testing, but there might be unknown bugs and problems

Nightlies: Nightlies are compiled automatically by servers, so it will have the latest features but beware of uncompleted works

Unofficial builds: These builds are compiled from source or ported by non MoKee developers

Installation exactly what the Cynogemod :

- The first time you flash 44.1 Mokee your Galaxy S (or coming from another ROM) ?

Root the Galaxy and install ClockworkMod Recovery.

Reboot into Recovery mode using the combo of the 3 buttons

Make copy of the nand with Nandroid backup !

WIPE ( wipe data / factory reset + wipe cache partition )

Install the ROM from internal sd card with ClockworkMod Recovery

Optionally install the Google Apps

- Upgrading from CM7/CM9 ?

Make copy of the nand with Nandroid Backup!

WIPE ( wipe data / factory reset + wipe cache partition )

Install the ROM from internal sd card with ClockworkMod Recovery

Optionally install the Google Apps

- Upgrading from CM10/CM10.1 ?

Make copy of the nand with Nandroid Backup!

Install the ROM from internal sd card with ClockworkMod Recovery

Optionally restore / data from Nandroid Backup ( cleanse the update : / data )

Optionally install the Google Apps

- Upgrading from CM10.2 ?

Make copy of the nand with Nandroid Backup!

Install the ROM from internal sd card with ClockworkMod Recovery

Optionally install the Google Apps

- Upgrading from another build of CM11 ?

Make copy of the nand with Nandroid Backup!

Install the ROM from internal sd card with ClockworkMod Recovery

Note: The distribution CM11 partition is the same as that of CM10.2 .

LINK REALEASE VERSION:http://download.mfunz.com/?type=release

LINK NIGHTLYS: http://mokee.basketbuild.com/index.php?dir=main/NIGHTLY/galaxysmtd/

CHANGELOGS NIGHTLYS:http://changelog.mfunz.com/index.php?mk_version=MK44

LINK OTA UPDATER:http://mokee.basketbuild.com/index.php?dir=main/OTA/NIGHTLY/galaxysmtd/

Googles apps:

http://d-h.st/users/dhacker29?fld_id=27426

http://wiki.cyanogenmod.org/w/Gapps

http://goo.gl/mYKmfL

To thank the entire team of developers Mokee project and that support for creating this rom.

Contributors

General developers (Recent):

oubeichen, piscesmk2013, Ryuinferno, wszfer, martincz

General developers (Old):

lovemrdeng, xilence, chenleicpp, poonchitim

Data:

Phone Location: zxmlysxl

bootanimation: qingliu
[Galaxy S I9000 Android Development] segu45:
Screen shots

Because is a cm 10.2 you can put Themes from this. This is ubuntu Theme.

View attachment 2290339 View attachment 2290340 View attachment 2290341 View attachment 2290342

View attachment 2290345 View attachment 2290346 View attachment 2290347 View attachment 2290348

View attachment 2290350 View attachment 2290351 View attachment 2290352 View attachment 2290353
[Galaxy S I9000 Android Development] plegimus:
Congratulationssss.

Good job.
[Galaxy S I9000 Android Development] zxc123coke:
Good job.
[Galaxy S I9000 Android Development] hassan19:
Thanks will try bro
[Galaxy S I9000 Android Development] fefuzzo:
some screen please???
[Galaxy S I9000 Android Development] segu45:
Last nightly 01/09/2013

https://dl.yunio.com/pub/oq!xua/gal...me=MK43.0-galaxysmtd-201309010252-NIGHTLY.zip
[Galaxy S I9000 Android Development] segu45:
Las nightly and changelog

Link:

http://old.androidfilehost.com/main...td/MK43.0-galaxysmtd-201309020254-NIGHTLY.zip

Mokee Open Source Changelog from 09/01/2013 - today

---------------------------------------------------------------

Project: bkp/MoKeeProject/MOKEE_MAIN/kernel/samsung/t1

Daniel Hillenbrand - cypress-touchkey: reimplement button backlight notification support

Project: bkp/MoKeeProject/MOKEE_MAIN/packages/apps/Apollo

Jorge Ruesga - Apollo: Prevent FC in cache initialization

Project: bkp/MoKeeProject/MOKEE_MAIN/frameworks/base

martincz - SystemUI: cleanup

Jorge Ruesga - QS: Unlock screen when tap profile tile

martincz - cleanup

Pawit Pornkitprasan - PackageManager: allow build-time disabling of components

martincz - SystemUI: clean up

martincz - SystemUI: code cleanup

Project: bkp/MoKeeProject/MOKEE_MAIN/vendor/mk

Pawit Pornkitprasan - Use Package Manager to disable stock OTA
[Galaxy S I9000 Android Development] zxc123coke:
ota

Nightly Builds support OTA now

OTA DOWNLOAD https://s.yunio.com/public/folder/token/w89PdA/tokenurl/JTJG/suburl/JTJGTklHSFRMWSUyRmdhbGF4eXNtdGQ=
[Galaxy S I9000 Android Development] segu45:
New nightly and changelog:

Mokee Open Source Changelog from 09/03/2013 - today

---------------------------------------------------------------

Project: bkp/MoKeeProject/MOKEE_MAIN/kernel/lge/gproj

Kuogee Hsieh - mms_fb: display: init pipe default configure as solidfill

Kuogee Hsieh - msm_fb: display: free previous iommu buffer only at overlay_unset

Ricardo Cerqueira - msm_fb: display: reset base layer database

Kuogee Hsieh - msm_fb: display: free borderfill pipe when ref_cnt reach 0

Ken Zhang - msm: display: reset vsync state when display is turned on

Ajay Dudani - msm: msm_fb: remove mmio access through mmap

Ricardo Cerqueira - msm_fb: Load RGBA logo image if it exists

Naseer Ahmed - msm_fb: display: remove extra dmap irq disable

Kuogee Hsieh - msm_fb: display: initialize dmap_comp before wait4dmap

Naseer Ahmed - msm: mdp: Wait unconditionally in internal vsync waits

Naseer Ahmed - msm: mdp: vsync waitqueue for lcdc and dtv interfaces

Naseer Ahmed - msm_fb: display: check base layer pipe at irq handler

Ricardo Cerqueira - msm: mdp4: Fix unbalanced mutex

Iliyan Malchev - [ARM] msm: call video start function

Kuogee Hsieh - msm_fb: display: fix fence fd list be put twice

Naseer Ahmed - msm: mdp: Increase base fence timeout

Carl Vanderlip - video: msm: Send ETIMEDOUT on update-notify timeout

Kalyan Thota - msm_fb: Check for panel power on after Unblank.

Kuogee Hsieh - msm_fb: display: check active queue before signal timeline

Naseer Ahmed - msm_fb: Update MDP fence wait behaviour

Ken Zhang - msm: display: increase fence timeout

Naseer Ahmed - msm: display: panel recovering from suspend

Naseer Ahmed - msm: display: Fix composition issues when framework rebooted in suspend.

Kalyan Thota - msm_fb: call complete for no_update timer after power flag is set

Project: bkp/MoKeeProject/MOKEE_MAIN/build

Ryuinferno - OTA: Check if boot.img exist before doing anything

Ryuinferno - build: Export MK_BUILDTYPE to shell

Ryuinferno - OTA: Removed hardcoded path

martincz - Build: restore LatinIME

martincz - fix clog

Ryuinferno - build: Remove redundant code

Ryuinferno - Refine OTA system

Project: bkp/MoKeeProject/MOKEE_MAIN/packages/apps/MoKeeLauncher

Marco Brohet - Trebuchet: NL translations

Project: bkp/MoKeeProject/MOKEE_MAIN/device/samsung/i9300

Paul Kocialkowski - i9300: add opensource sensors hal

Project: bkp/MoKeeProject/MOKEE_MAIN/frameworks/av

madmack - Add LG camera HAL parameters

Project: bkp/MoKeeProject/MOKEE_MAIN/vendor/mk

martincz - Vendor: Switch GooglePinYin to iFlyIME

Project: bkp/MoKeeProject/MOKEE_MAIN/vendor/samsung/i9300

martincz - vendor update

Project: bkp/MoKeeProject/MOKEE_MAIN/vendor/samsung/galaxys2-common

martincz - vendor update

Project: bkp/MoKeeProject/MOKEE_MAIN/vendor/samsung/n7100

martincz - vendor update

http://old.androidfilehost.com/main...td/MK43.0-galaxysmtd-201309040255-NIGHTLY.zip
[Galaxy S I9000 Android Development] zxc123coke:
New

Last Release 04/09/2013

Changelog

Add new feature Mokee helper app, for small tools and special features

Updated translation

code cleanup and optimization

Add latinIME input

Add IFLYTEK input

BUG FIXED

http://pan.baidu.com/share/link?shareid=2581556279&uk=1160557519
[Galaxy S I9000 Android Development] segu45:
new nightly

This people don´t stop.............:p:p:silly::silly::eek::eek:

Mokee Open Source Changelog from 09/04/2013 - today

---------------------------------------------------------------

Project: bkp/MoKeeProject/MOKEE_MAIN/kernel/lge/mako

Ajay Dudani - gpu: ion: Add null-pointer check after allocation

Olav Haugan - gpu: ion: Minimize allocation fallback delay

Fred Fettinger - msm: kgsl: generate descriptive names for kgsl-timeline

Harsh Vardhan Dwivedi - msm: kgsl: Add a missing mutex unlock

Shubhraprakash Das - msm: kgsl: Do not hold memory spinlock when calling find region function

Shubhraprakash Das - msm: kgsl: Only initialize process structure once

Shubhraprakash Das - msm: kgsl: Only reference the rb_node after taking spinlock

Shubhraprakash Das - msm: kgsl: Prevent race conditions when freeing memory

Shubhraprakash Das - msm: kgsl: Use the correct length when looking for address collision

Iliyan Malchev - adreno: increase cmdbatch timeout to 10 seconds

Ling Wan - msm: kgsl: Don't do intensive memory recovery when allocating big pages

Project: bkp/MoKeeProject/MOKEE_MAIN/packages/apps/Mms

Jorge Ruesga - Mms: findPart may still be null

Project: bkp/MoKeeProject/MOKEE_MAIN/packages/apps/Gallery2

Jorge Ruesga - Gallery: Prevent display "Show on map" menu if no geo view is present

Project: bkp/MoKeeProject/MOKEE_MAIN/packages/apps/Calculator

Jorge Ruesga - Calculator: Fix bin and hex modes and improve logic

Project: bkp/MoKeeProject/MOKEE_MAIN/libcore

Ricardo Cerqueira - Apply a variation of the suggested app-level patch to SecureRandom

http://old.androidfilehost.com/main/MoKee-OpenSource/galaxysmtd/
[Galaxy S I9000 Android Development] EMnEL:
Status 7

The last 2 nightly files from old.androidfilehost.com are giving a Status 7 error while installing. The files from baidu are working perfectly. You might want to check what's happening.
[Galaxy S I9000 Android Development] segu45:
Ok, I checked all the links, are corrected and go well, I downloaded the latest and installed without any problem. Be careful because baidu links are for the release and the http://old.androidfilehost.com/ is for nightly, greetings.
[Galaxy S I9000 Android Development] zxc123coke:
I have ported 05/09/2013 Nightly to 9001,also no problem. all go well.:D:D
[Galaxy S I9000 Android Development] segu45:
new nightly 08/09/2013

http://old.androidfilehost.com/main...td/MK43.0-galaxysmtd-201309080250-NIGHTLY.zip
[Galaxy S I9000 Android Development] unbroken0:
:good:New Nightly 09/09/2013

http://old.androidfilehost.com/main...td/MK43.0-galaxysmtd-201309090248-NIGHTLY.zip
[Galaxy S I9000 Android Development] arjiegodz:
so this rom can record call with 100% accurate??? cuz i tried to use third party app and its not working but if this has a built in call recording that works 100% then i will use this app.

edit: I love the animation of the rom.
[Galaxy S I9000 Android Development] segu45:
No, if you want call recording, you have it in gingerbread, not jely beam, also you can download some call recording program from google play
[Galaxy S I9000 Android Development] segu45:
links nightlys

From china servers:

http://old.androidfilehost.com/main...td/MK43.0-galaxysmtd-201309120252-NIGHTLY.zip

From mega:

https://mega.co.nz/#!PUgHQLBR!Bno7tlGfwtedd1xfW9MB-BjHT8cxAfQz7hh8pTo_zH4
[Galaxy S I9000 Android Development] segu45:
I will do clean install of the release of the day 08/09 and then nightly from 12/09 because in the Chinese forums martincz says you do not need to do wipes, proves to see if the phone does not explode.

I put some screenshots of atuntu before doing the installation with the kernel that brings the rom, the truth is that we are leaving fine, fine, not least the fact mackay kernel , Perfomance and CFQ:

Then install the nightly from 09/09 away everything that I was not interested in apps, without performing the wipes and it's true what they say in Chinese forums, the rom wipes makes necessary, we do not have to do before installing the rom . And then pass the atuntu and this is the result you gave (with performance and CFQ and the kernel, which brings the rom):

You can make the nightlys and release without it wipes before installing the rom, they make for themselves. In previous rom had the greniffy, and advance mobile care to control the ram and hibernate to save ram , now I have not installed and mobile is light and fast, I think they've done a good job in the rationalization of the ram as going pretty smoothly. With no other rom has given me so with this the atuntu (I know that is not 100% reliable) but at least we can sevir reference.
[Galaxy S I9000 Android Development] phiphi374:
Thank you Segu45.

Envoyé depuis mon GT-I9000 avec Tapatalk
[Galaxy S I9000 Android Development] arjiegodz:
i love the rom but thw downside is that it consumes more batt than other 4.3 rom
[Galaxy S I9000 Android Development] zxc123coke:
Last Release 13/09/2013 : http://pan.baidu.com/share/link?shareid=1367471395&uk=1160557519

Last NIGHTLY 14/09/2013 :https://dl.yunio.com/pub/ng0_3x/gal...me=MK43.0-galaxysmtd-201309140258-NIGHTLY.zip
[Galaxy S I9000 Android Development] segu45:
I edited the first post and I have put a link to xda where are modems to bore, put the best to the site where you are, there for different countries and regions. Be careful when you go down, if installed with odin or cmw. Also put a link from a post of friend Mamoto where kernels are compatible with 4.3, testing the best for you (for me the devil is the one that works best), well if you have any doubt Here it continue.
[Galaxy S I9000 Android Development] segu45:
I do not know if this rom consume more or less than the other roms, this might not be the queen in terms of consumption, but it goes well, and it is normal that the batteries last a day or some more hours depending on the screen, you have some screenshots:
[Galaxy S I9000 Android Development] segu45:
CHANGELOG RELEASE:

Update log :2013 -09-13

Translation updates fields

Fixed light color custom FC

Fixed SMS contact multiple choice interface in case of no crash BUG

Combined system code

Update System material

Translate the field

Gestures photos

Lunar correction

Tour Options

Fix function automatically hide the status bar

Adjustable photo jpeg quality

Global status bar down

HALO features added

Status bar, navigation bar Transparent mode option to increase transparency

Code optimization and streamlining

Update attribution to the database

Merge 2013-09-13 CyanogenMod code

More detailed https://github.com/MoKee changes
[Galaxy S I9000 Android Development] arjiegodz:
i hope u will remove bloatwares and some 3rd party apps. but the rom is the best.:highfive:
[Galaxy S I9000 Android Development] zxc123coke:
Last nightly ：http://old.androidfilehost.com/main...td/MK43.0-galaxysmtd-201309200300-NIGHTLY.zip

Mokee Open Source Changelog from 09/19/2013 - today

---------------------------------------------------------------

Project: packages/apps/MoKeeHelper

martincz - MoKeeHelper: update

martincz - MoKeeHelper: Update

Project: frameworks/base

Ryuinferno - Revert "PhoneWindowManager: Delay setting updates during window animation."

martincz - Frameworks/base: Traditional Chinese Translations

Project: frameworks/opt/telephony

Jed Hamilton - Fix NRE on sending multipart texts.
[Galaxy S I9000 Android Development] segu45:
New release 21/09/2013

Change log release :2013 -09-21

Remove duplicate options

Merged into Android 4.3_r3.1

Cancel QuickSearchBox of dexopt to prevent the collapse of adding GMS search

Animation options to customize the system to increase

Combined system code

Update System material

Translate the field

New Magic Fun Center

Fixed some models can not read speed issues

Merge 2013-09-21 CyanogenMod code

More detailed https://github.com/MoKee changes

http://pan.baidu.com/share/link?shareid=3538524338&uk=1160557519
[Galaxy S I9000 Android Development] joebacsi72:
Hi!

This ROM has new CM's partition size (600MB for system)?

Tapatalk 4-el küldve az én GTI9000-ről

Latest CM 10.2 NIGHTLY
[Galaxy S I9000 Android Development] segu45:
Yes

Enviado desde mi GT-I9000 usando Tapatalk 2
[Galaxy S I9000 Android Development] phil_greg2001:
Hi Segu45,

Is MokeeOS an odexed ROM :confused:

Many thanks for your work.
[Galaxy S I9000 Android Development] segu45:
The releasae edition is odex but the nightly are deodex, you can put one on other without wipes and works.
[Galaxy S I9000 Android Development] phil_greg2001:
Many thanks.

I'll try odex asap :cowboy:
[Galaxy S I9000 Android Development] segu45:
nghtly an changelog from 24/09

Mokee Open Source Changelog from 09/23/2013 - today

---------------------------------------------------------------

Project: kernel/lge/p880

Adam77Root - bcmdhd: Enable Ad-Hoc (IBSS) mode

Ricardo Cerqueira - ts0710_mux: Power-cycle the radio when userspace disconnects

Project: kernel/google/msm

Tarun Karra - Revert "msm: kgsl: Add a command dispatcher to manage the ringbuffer"

Tarun Karra - Revert "msm: kgsl: Add a new command submission API"

Tarun Karra - Revert "msm: kgsl: Don't process events if the timestamp hasn't changed"

Tarun Karra - Revert "msm: kgsl: add kgsl_sync_fence_waiter for server side sync"

Tarun Karra - Revert "msm: kgsl: Add support for KGSL_CMD_SYNCPOINT_TYPE_FENCE"

Project: hardware/ti/wlan

Michael Bestas - WLAN - wl12xx: Update version to ol_R5.SP5.01

Project: hardware/samsung

Humberto Borba - add exynos tablet flag

Project: packages/apps/MoKeeLauncher

martincz - MoKeeLauncher: update MoKeeMarket

Project: packages/apps/MoKeeHelper

martincz - MoKeeHelper: fix break

Project: packages/apps/Gallery2

martincz - fix merge

Project: packages/apps/Settings

martincz - Settings: Update Translations

Project: device/lge/p880

Ricardo Cerqueira - RIL: Restart the daemon when requested

Project: device/motorola/omap4-common

dhacker29 - WLAN: Use TI generic NVS if pds/wifi/nvs_map.bin isn't present.

dhacker29 - WLAN - wl12xx: Update firmware to R5.SP5.01 from R5.SP3.06

Project: frameworks/base

Danny Baumann - Fix certain setting writes being incorrectly skipped.

elelinux - SystemUI: A proposal for a new quiet hours icons

Project: external/koush/AndroidAsync

Koushik Dutta - AsyncSSLSocketWrapper: properly recycle buffers. ByteBufferList: add option to tweak max size of reclaimed ByteBuffer.

Project: vendor/mk

martincz - Update MoKeeMarket

links:

https://dl.yunio.com/pub/ng0_3x/gal...me=MK43.0-galaxysmtd-201309240255-NIGHTLY.zip

http://old.androidfilehost.com/main...td/MK43.0-galaxysmtd-201309240255-NIGHTLY.zip
[Galaxy S I9000 Android Development] ekstrom79:
Have ur rom its fast and smooth but all this Roms have much batterydrain

Skickat från min GT-I9000 via Tapatalk 2
[Galaxy S I9000 Android Development] segu45:
Good Morning, one thing I want to say, this rom is not mine I just helped the community with links and doubts that may arise (as far as I know). In the 4.3 roms google has unified all their applications and are always trying to sync now, and this generates an extra expense of battery, for now it's best to remove the synchronization of google, so that the battery is less spending. If you look at the google service is too high in comparison with others.

The official website of this rom is this: http://www.mfunz.com/, as you will see this in Chinese and (thanks google translator) I can put the changelog in English and sometimes write in the forums (also are in Chinese) I have some doubts.

I hope it is clear that this rom is not mine so do not ask me to make changes, the most I can do is ask Chinese forum.

PS: I hope you understand everything because sometimes my English is not as good as I would like.
[Galaxy S I9000 Android Development] ekstrom79:
i know its not ur rom and dont ask for changes i said the baterydrain is high
[Galaxy S I9000 Android Development] segu45:
nightly rc1

Link:

https://s.yunio.com/D0De4f#galaxysmtd

http://old.androidfilehost.com/main/MoKee-OpenSource/galaxysmtd/

I can´t found changelog :cyclops:
[Galaxy S I9000 Android Development] segu45:
New nightly 29/09/2013

https://s.yunio.com/publiclink/down...K43.0.RC1-galaxysmtd-201309290324-NIGHTLY.zip