Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,814,481 Members 53,801 Now Online
XDA Developers Android and Mobile Development Forum

[Q] Help moding infocus m512 snapdragon msm8926

Tip us?
 
sirpy
Old
#1  
Junior Member - OP
Thanks Meter 0
Posts: 3
Join Date: Oct 2013
Default [Q] Help moding infocus m512 snapdragon msm8926

I'm trying to understand how to be able to mod a recently bought chinese phone "infocus m512", it's based on qualcomm snapdragon msm8926 and has android 4.4.2 installed which comes with "su" already installed, so basically the phone is already rooted.

I've found out the following:
/system is read only and cannot be remounted with r/w using the "su" available.
powering with both volume buttons pressed boots into some mode where the system is r/w but any changes made are not kept. I think it is FTM mode, the device is then recognized by ADB but not by FASTBOOT.
powering with vol down button pressed boots into download mode and the device is not recognized by ADB or FASTBOOT.

Any help understanding how to:
1. modify the /system partition
2. what can be done in FTM mode, and why changes to system do not stick
3. how to possibly use download mode to flash modified imgs?
4. find out if any write protection is enabled on the device

Thanks
 
GalaxyWhy
Old
#2  
GalaxyWhy's Avatar
Senior Member
Thanks Meter 23
Posts: 200
Join Date: Dec 2013
Quote:
Originally Posted by sirpy View Post
I'm trying to understand how to be able to mod a recently bought chinese phone "infocus m512", it's based on qualcomm snapdragon msm8926 and has android 4.4.2 installed which comes with "su" already installed, so basically the phone is already rooted.

I've found out the following:
/system is read only and cannot be remounted with r/w using the "su" available.
powering with both volume buttons pressed boots into some mode where the system is r/w but any changes made are not kept. I think it is FTM mode, the device is then recognized by ADB but not by FASTBOOT.
powering with vol down button pressed boots into download mode and the device is not recognized by ADB or FASTBOOT.

Any help understanding how to:
1. modify the /system partition
2. what can be done in FTM mode, and why changes to system do not stick
3. how to possibly use download mode to flash modified imgs?
4. find out if any write protection is enabled on the device

Thanks
Had any luck?
 
sirpy
Old
#3  
Junior Member - OP
Thanks Meter 0
Posts: 3
Join Date: Oct 2013
Default moding infocus m512 progress report

I was able to get fastboot to recognize the device using the -i option.
I was able to extract the recovery img and unpack it, also compiled a modified mkbootimg.
I did re-flash the splash img using fastboot so it seems there's no some kind of protection against flashing.
I will try to flash a modified boot and recovery that will mount the /system as rw and see if it works.
I still think maybe there's some kind of selinux settings involved preventing mounting system as rw, i will have to dig deeper for that.
Quote:
Originally Posted by GalaxyWhy View Post
Had any luck?
 
GalaxyWhy
Old
#4  
GalaxyWhy's Avatar
Senior Member
Thanks Meter 23
Posts: 200
Join Date: Dec 2013
Quote:
Originally Posted by sirpy View Post
I was able to get fastboot to recognize the device using the -i option.
I was able to extract the recovery img and unpack it, also compiled a modified mkbootimg.
I did re-flash the splash img using fastboot so it seems there's no some kind of protection against flashing.
I will try to flash a modified boot and recovery that will mount the /system as rw and see if it works.
I still think maybe there's some kind of selinux settings involved preventing mounting system as rw, i will have to dig deeper for that.
Sounds good Keep me posted!

EDIT:
Are you running the most updated software? - http://www.infocusphone.com/m512updates.html
 
GalaxyWhy
Old
#5  
GalaxyWhy's Avatar
Senior Member
Thanks Meter 23
Posts: 200
Join Date: Dec 2013
Yours came rooted you say? Where did you buy it from? - I got mine in pandawill.com and I'm waiting for it to arrive, hooeukly its rooted 😇

Sent from my LG-D802
 
sirpy
Old
#6  
Junior Member - OP
Thanks Meter 0
Posts: 3
Join Date: Oct 2013
Default rooting infocus m512

Quote:
Originally Posted by GalaxyWhy View Post
Yours came rooted you say? Where did you buy it from? - I got mine in pandawill.com and I'm waiting for it to arrive, hooeukly its rooted 😇

Sent from my LG-D802
I bought it on lightinthebox.com anyways it shouldn't be much a problem to root it, since it's possible to flash a boot img to the device using fastboot.

I finally was able to trace the issue of not being able to mount /system as read/write to an error in the ext4 file system
it seems like the stock system.img has errors in its file system, so when the device initially mounts the /system partition it immediately remounts it as read-only because of the errors.

I was unable to flash a repaired system.img using fastboot (it dies in the middle, maybe because its such a large file), but I was able to modify the boot.img fstab.qcom to add the option errors=continue to the mount options of the /system partition. and now it is possible to mount /system as read write and you can do whatever you want as root.
 
GalaxyWhy
Old
#7  
GalaxyWhy's Avatar
Senior Member
Thanks Meter 23
Posts: 200
Join Date: Dec 2013

In this picture it shows the phone having a recents button but on the website I bought it off it has a menu button. Which one does yours have?

You seem to know more about this stuff than me, I've usually bought well supported devices and rooting was a one click process. I just wanna get root access to be able to use Xposed Modules

Sent from my LG-D802

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


XDA Xposed Tuesday: How to Shut Up Your Phone – XDA Developer TV

So many different applications want to send us notifications that … more

Add Some Power to First Generation Snapdragon CPUs

Some older devices still remain very popular. Phones like theHTC Desire, Sony Ericsson … more

Android M Mentions Spotted in Android Code Review

While we are still waiting for Android L to be officially released, the first mentions of … more

Create a Simple Custom Launcher from Scratch

When you are starting your journey intoany sort of development, it’s never easy at the … more