Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
THREAD CLOSED
Tip us?
 
cdesai
Old
#121  
cdesai's Avatar
Recognized Developer
Thanks Meter 3634
Posts: 2,210
Join Date: Jan 2011
Location: IN YOUR HEAD

 
DONATE TO ME
@AdamOutler your second idea can be easily achieved.

1. Rename the init binary to something else, and make it a script instead
Make it grep dmesg for a key press, and if a key is pressed, copy the normal init.rc and other files and then exec /realinit.
^Quick and easy to do

2. Move the recovery one step down, and present a boot menu instead of recovery, with options to boot into android, boot to recovery, reboot and power off - and p do accordingly.
^Complicated but better

Sent from my GT-P1000
CyanogenMod Maintainer | SGT7 | TeamBBQ

 
BBQLinux - An Arch based Linux distribution for Android developers
Website: http://www.bbqlinux.org | Downloads: [url]http://sourceforge.net/projects/bbqlinux/files//url]
IRC: #bbqlinux on freenode
The Following 4 Users Say Thank You to cdesai For This Useful Post: [ Click to Expand ]
 
appye
Old
#122  
Member
Thanks Meter 5
Posts: 86
Join Date: Jun 2006
Quote:
Originally Posted by cdesai View Post
2. Move the recovery one step down, and present a boot menu ...
With a default timeout to Android! Say five seconds? This is how i set things up on the Windows PC 's in our network.

If my post here is inappropriate, i understand if a mod deletes it...
Verizon GSIII 16GB
ROM:
CleanROM 2.1
Card: 64gb formatted with fat32
The Following User Says Thank You to appye For This Useful Post: [ Click to Expand ]
 
MichaelVash7886
Old
#123  
Senior Member
Thanks Meter 12
Posts: 130
Join Date: Nov 2011

 
DONATE TO ME
Quote:
Originally Posted by appye View Post
With a default timeout to Android! Say five seconds? This is how i set things up on the Windows PC 's in our network.

If my post here is inappropriate, i understand if a mod deletes it...
That would be a good idea.

Only thing is the current root method to get to this could be easily patched via an OTA right? I mean it's still building off the inital root method found by inviblek right? I heard that would be easy to fix and Verizon was already planning an OTA to address just that. Unless this newer root method is more difficult to block.
The Following User Says Thank You to MichaelVash7886 For This Useful Post: [ Click to Expand ]
 
NegativeOne
Old
#124  
Senior Member
Thanks Meter 108
Posts: 634
Join Date: Jul 2010
Moot point. We block OTAs
The Following User Says Thank You to NegativeOne For This Useful Post: [ Click to Expand ]
 
Desterly
Old
#125  
Desterly's Avatar
Junior Member
Thanks Meter 13
Posts: 19
Join Date: Jul 2012
I've started to modify the boot menu we used on the X to accomplish this.. although I'm not that far and I'm sure someone could do it far better than I.

The idea being boot from recovery partition -> custom kernel -> led flashes blue
-> User hits the volume down key -> custom menu shows w/ option to reboot or recovery
-> User hits nothing, rom boots as normal.

The only problem that I would see (and this might already be solved) is that the users will have to choose to boot from recovery from cold boot
The Following 3 Users Say Thank You to Desterly For This Useful Post: [ Click to Expand ]
 
con247
Old
#126  
con247's Avatar
Recognized Developer
Thanks Meter 3064
Posts: 3,081
Join Date: Sep 2010
Location: Ann Arbor
Quote:
Originally Posted by NegativeOne View Post
Moot point. We block OTAs
Alot of people, including me, will probably buy the phone after an OTA.

Current Phone: Galaxy S3 16GB White on VZW
Current ROM: AOKP JB Build 4
Check out my GS3 Splash Screen Changer
The Following 2 Users Say Thank You to con247 For This Useful Post: [ Click to Expand ]
 
tonu42
Old
#127  
Senior Member
Thanks Meter 298
Posts: 977
Join Date: Nov 2010
Just saying what all of you are suggesting we do with this whole boot process thing has been done already if I am not mistaken. The KEXEC boot-hijack does what all of you are saying. And its automated too instead of selecting.

my 2 cents, delete if what I said isnt related.
The Following 3 Users Say Thank You to tonu42 For This Useful Post: [ Click to Expand ]
 
AdamOutler
Old
#128  
AdamOutler's Avatar
Elite Recognized Developer - OP
Thanks Meter 8042
Posts: 4,750
Join Date: Feb 2011
Location: Louisiana

 
DONATE TO ME
Quote:
Originally Posted by tonu42 View Post
Just saying what all of you are suggesting we do with this whole boot process thing has been done already if I am not mistaken. The KEXEC boot-hijack does what all of you are saying. And its automated too instead of selecting.

my 2 cents, delete if what I said isnt related.
Kexec boots the device then reboots into another kernel. We are talking about a single kernel with a recovery built in, just like the Galaxy S series has had in the past. No kexec hacks. We aren't extending boot times. This method will work better than kexec.
I ignore PMs with questions that could be answered by searching. If you PM me, I probly won't respond.
Check out my developer pages. Add me to your circles on Google Plus.
The Following 12 Users Say Thank You to AdamOutler For This Useful Post: [ Click to Expand ]
 
flamus
Old
#129  
flamus's Avatar
Member
Thanks Meter 14
Posts: 46
Join Date: Mar 2008

 
DONATE TO ME
Quote:
Originally Posted by AdamOutler View Post
Kexec boots the device then reboots into another kernel. We are talking about a single kernel with a recovery built in, just like the Galaxy S series has had in the past. No kexec hacks. We aren't extending boot times. This method will work better than kexec.
Won't this require a full reflash for a new (or different from rom) kernel?

Maybe I have been spoiled with my DINC1 and on the fly flashing / unbricking my phone. :-\

Sent from my SCH-I535 using Tapatalk 2
Current
Verizon Galaxy S3 Rooted + Official CM10 Nightlies
ASUS Transformer TF101 + US KeyBoard Dock Rooted+Official CM10 Nightlies

Retired
OG HTC Incredible Rooted + CM9 + marley's kernel
HTC PPC6800
HTC PPC6700 Replaced by warrenty for 6800
The Following User Says Thank You to flamus For This Useful Post: [ Click to Expand ]
 
Desterly
Old
(Last edited by Desterly; 26th July 2012 at 06:59 PM.)
#130  
Desterly's Avatar
Junior Member
Thanks Meter 13
Posts: 19
Join Date: Jul 2012
Quote:
Originally Posted by flamus View Post
Won't this require a full reflash for a new (or different from rom) kernel?

Maybe I have been spoiled with my DINC1 and on the fly flashing / unbricking my phone. :-\

Sent from my SCH-I535 using Tapatalk 2
Yes/No

you have to flash the new rom as is however rom's are installed via an installer script (in CWM). there's no reason the zip couldn't contain both images w/ instructions to flash them to the recovery partition.

and updating the kernel would be as easy as a dd into the recovery partition.

If the initrd was configured to point to the system drive or sdcard or another location as well there is no reason you couldn't just update the kernel w/out having to update the recovery/boot


The only downside I see is getting the device to always boot into recovery w/out having to hold down keys to do so... but that might just be the trade off for custom roms of this sort

The Following 2 Users Say Thank You to Desterly For This Useful Post: [ Click to Expand ]
THREAD CLOSED
Tags
d2vzw, locked bootloader
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...