1. Download our Official Android App: Forums for Android!

Root Twrp for LG K7(M1) from source

Discussion in 'Android Devices' started by czarsup3rstar, Aug 2, 2016.

?

Is this recovery useful?

Poll closed Sep 22, 2017.
  1. Yes

    1 vote(s)
    50.0%
  2. No

    0 vote(s)
    0.0%
  3. Undecided

    1 vote(s)
    50.0%
  1. czarsup3rstar

    czarsup3rstar Well-Known Member
    Thread Starter
    Rank:
    None
    Points:
    33
    Posts:
    81
    Joined:
    Sep 20, 2015

    Sep 20, 2015
    81
    47
    33
    Male
    Android Development
    Easton PA
    [​IMG]

    TWRP FOR K7 AKA M1
    https://twrp.me/devices/lgk7.html


    THIS IS FOR THE METRO PCS AND T-MOBILE VARIANTS

    Disclaimer: I am not responsible for what you do to your device. All I can do is try to assist you with whatever issues that you may have due to the flashing of T.W.R.P Recovery. Enjoy.

    ( As a community we can find issues and bugs and assist me or anyone to fix in future releases.)

    Twrp with button combo.

    With device off press and hold power and volume down until LG logo pops up quickly release the power and press power quickly until the factory reset dialog pops up press volume down to yes press power to select than it will show the same dialog with yes already selected use power to select and you will be taken to Twrp recovery.




    Another thing is that you have to read and continue to read. You should be rooted and your Bootloader Unlocked before you get here. This a recovery thread not a how can I root thread. Thank you and enjoy. Sincerely Czarsuperstar.

    I would like to thank the T.W.R.P. Team for their contributions to the touch screen recovery partition of all android phones. I would like to thank CaptainThrowback as I used his github sources for building with a prebuilt kernel and his MSM8909 board source for the HTC Desire 626s. I would like to thank Starkly_raving for his breakthrough and contributions.



    SOURCE CODE:
    https://github.com/TeamWin/android_device_lge_m1


    Don't forget to hit the thanks button.

    http://superstarmobility.weebly.com/

    http://paypal.me/czarsuperstar/

     

    Advertisement

    #1 czarsup3rstar, Aug 2, 2016
    Last edited: Dec 23, 2016
    jennjenn105, aimzzz and scary alien like this.
  2. czarsup3rstar

    czarsup3rstar Well-Known Member
    Thread Starter
    Rank:
    None
    Points:
    33
    Posts:
    81
    Joined:
    Sep 20, 2015

    Sep 20, 2015
    81
    47
    33
    Male
    Android Development
    Easton PA
    Twrp image for SD Ext



    Instructions:
    Download: http://www.mediafire.com/?6pem5yv55re4rng
    Use a root file manager and extract zip, then copy and paste the folder init.d in etc folder in the system folder. Folder permissions are rwx r-x r-x.
    Than change 03mountsd permissions. Check all boxes.

    Download: https://play.google.com/store/apps/details?id=os.tools.scriptmanager
    Click on the files one by one tap the skull (su)
    Tap on cog wheel (boot)
    Save reboot.
    Credits to @iamareebjamal
    http://forum.xda-developers.com/showthread.php?t=1971689

    [​IMG]

    [​IMG]

    Than flash image: https://twrp.me/devices/lgk7.html

    [​IMG]
     
    #2 czarsup3rstar, Aug 4, 2016
    Last edited: Jan 6, 2017
    strykyn likes this.
  3. scary alien

    scary alien not really so scary
    Moderator
    Rank:
     #9
    Points:
    2,138
    Posts:
    22,282
    Joined:
    Mar 5, 2010

    Mar 5, 2010
    22,282
    23,583
    2,138
    Male
    space alien ;)
    Indy
    Okay, @czarsup3rstar, I've split / moved the posts from the original there out to a new, closed one, leaving you this one for the new built-from-source version.

    Cheers and best of luck!

    :)
     
    strykyn and czarsup3rstar like this.
  4. czarsup3rstar

    czarsup3rstar Well-Known Member
    Thread Starter
    Rank:
    None
    Points:
    33
    Posts:
    81
    Joined:
    Sep 20, 2015

    Sep 20, 2015
    81
    47
    33
    Male
    Android Development
    Easton PA
    Thank you.
     
    strykyn and scary alien like this.
  5. czarsup3rstar

    czarsup3rstar Well-Known Member
    Thread Starter
    Rank:
    None
    Points:
    33
    Posts:
    81
    Joined:
    Sep 20, 2015

    Sep 20, 2015
    81
    47
    33
    Male
    Android Development
    Easton PA
    Source code is up.
     
    strykyn and scary alien like this.
  6. czarsup3rstar

    czarsup3rstar Well-Known Member
    Thread Starter
    Rank:
    None
    Points:
    33
    Posts:
    81
    Joined:
    Sep 20, 2015

    Sep 20, 2015
    81
    47
    33
    Male
    Android Development
    Easton PA
    strykyn and scary alien like this.
  7. czarsup3rstar

    czarsup3rstar Well-Known Member
    Thread Starter
    Rank:
    None
    Points:
    33
    Posts:
    81
    Joined:
    Sep 20, 2015

    Sep 20, 2015
    81
    47
    33
    Male
    Android Development
    Easton PA
    New image V2 fixing issues and slimming down the image.
     
    strykyn likes this.
  8. czarsup3rstar

    czarsup3rstar Well-Known Member
    Thread Starter
    Rank:
    None
    Points:
    33
    Posts:
    81
    Joined:
    Sep 20, 2015

    Sep 20, 2015
    81
    47
    33
    Male
    Android Development
    Easton PA
    V3
    This is a stable release.
    Time zone fixed might be off an hour if you have daylight savings unchecked. Once I checked it it was correct.
    Other minor issues fixed. New BoardConfig.mk added to my git. That's it. Let's get some rom devs compiling.
     
    strykyn likes this.
  9. czarsup3rstar

    czarsup3rstar Well-Known Member
    Thread Starter
    Rank:
    None
    Points:
    33
    Posts:
    81
    Joined:
    Sep 20, 2015

    Sep 20, 2015
    81
    47
    33
    Male
    Android Development
    Easton PA
    We are on our way. Got an email to properly rename my github. I am so happy to have people interested on making this phone better. I was going to quit altogether but someone kept motivating me forward.
     
    strykyn likes this.
  10. czarsup3rstar

    czarsup3rstar Well-Known Member
    Thread Starter
    Rank:
    None
    Points:
    33
    Posts:
    81
    Joined:
    Sep 20, 2015

    Sep 20, 2015
    81
    47
    33
    Male
    Android Development
    Easton PA
    NEW IMAGE UP
    Features include:
    Battery is back.
    Time zone corrected.
    Other minor bugs on my end solved.

    CHECK FIRST POST.
     
    strykyn likes this.
  11. czarsup3rstar

    czarsup3rstar Well-Known Member
    Thread Starter
    Rank:
    None
    Points:
    33
    Posts:
    81
    Joined:
    Sep 20, 2015

    Sep 20, 2015
    81
    47
    33
    Male
    Android Development
    Easton PA
    Is everything ok? Feedback is welcome.
     
    strykyn likes this.
  12. czarsup3rstar

    czarsup3rstar Well-Known Member
    Thread Starter
    Rank:
    None
    Points:
    33
    Posts:
    81
    Joined:
    Sep 20, 2015

    Sep 20, 2015
    81
    47
    33
    Male
    Android Development
    Easton PA
    important information about data/media partition. Android is based off linux.when you back up data it is not the same as internal storage. When you cut and paste a file folder it can't be cut and paste within it's own folder it will give you an error operation not allowed. So is this fact with the twrp recovery because you are given two back up paths. Either it's internal storage or micro sd. In order to have both partitions as paths data being backup is the data of apps that came with the phone and other apps downloaded after you sign in your respectable accounts so when you restore boot system data your phone will bootup as it was before the backup. The team win recovery project are discussing possible solutions so i am making it clear if you wipe internal storage all contents saved will and i repeat it will be deleted. Data restore does not recover internal storage wiped in advance wipe GUI .thanks for your time and support.
     
    #12 czarsup3rstar, Sep 19, 2016
    Last edited: Sep 19, 2016
  13. czarsup3rstar

    czarsup3rstar Well-Known Member
    Thread Starter
    Rank:
    None
    Points:
    33
    Posts:
    81
    Joined:
    Sep 20, 2015

    Sep 20, 2015
    81
    47
    33
    Male
    Android Development
    Easton PA
    Any custom roms yet?......
     
    strykyn likes this.
  14. strykyn

    strykyn Newbie
    Rank:
    None
    Points:
    36
    Posts:
    21
    Joined:
    Sep 25, 2016

    Sep 25, 2016
    21
    8
    36
    Female
    intersting things. i have been following the TWRP "port" of the lms330 carefully. i have flashe bOTH twrp's..your link http://www.mediafire.com/download/iya41o6w1mnfx88/Twrp_M1_UNOFFICIAL_V4.img, and also this one https://drive.google.com/file/d/0B46...p=docslist_api. yes..i KNOW they are from 2 different " developers. i tried the twrp-v3-.img FIRST..then tried yours..because of the button combo to enter recovery. KUDOS to you both...both recoveries appear to b working...as stated. however....
    1. although YOUR recovery boasts "download mode", clicking it simply restarts the devive. it does NOT enter download mode. error on my part? plz explain hoe this option works...

    2. Neither TWRP will allow proper use of Link2SD. having been a LONG time usertester (since the original Prevail days), and an even LONGER Link2SD user..i have a LITTLE experience (no sarcasm intended).
    I have partitioned external SD both with mini partition wizard, and TWRP, with ext4/3/2. no matter what i do, Link2Sd ALWAYS comes back with a "MOUNT WARNING FAILURE"..."since 2nd partition is not mounted during boot, it is mounter after boot..blah blah blah". a simple "quick reboot" seems to solve this...although that lasts ONLY till next reboot, where i have to rinse/repeat the quick boot. Now..Link2Sd SEEMS to b operating correctly, files linked/moved to SD Card are read by phone...they are just "not seen". to b honest, everything appears to b running better than ever. i just do not like "error/warning" messages comming fom an app ive been using for years, now blowing up my phone EVERY time i reboot.
    i have seen OTHER posts about the "other" twrp beta1 no button combo also affecting Link2SD, crashing aand whatnot, but i DO NOT MOVE SYSTEM APPS to SD yet..so theres my difference from them.
    i AM STILL using YOUR recovery...no REAL reason NOT to, unless i cant figure this out. ONLY reason i really NEED the recovery was to flash viper4android, but i CAN do wiyhout it if necessary.
    3. by the way..i see the download version of your recovery is 3.0.2.0...why is the screenshot in your 2nd post 3.0.2.1?? am i missing something?
    Youve done a great job here..and many many thanks for the recovery,and thanks in in advance to help me NARROW this down
     
    czarsup3rstar likes this.
  15. czarsup3rstar

    czarsup3rstar Well-Known Member
    Thread Starter
    Rank:
    None
    Points:
    33
    Posts:
    81
    Joined:
    Sep 20, 2015

    Sep 20, 2015
    81
    47
    33
    Male
    Android Development
    Easton PA
    Check post for SD Ext. Follow the directions and you will be set. I also thank you for pushing me in the right direction.
     
    strykyn likes this.
  16. strykyn

    strykyn Newbie
    Rank:
    None
    Points:
    36
    Posts:
    21
    Joined:
    Sep 25, 2016

    Sep 25, 2016
    21
    8
    36
    Female
    okilie dokilie.....already flashed img from ur response in xda thread....all is just great here. just got everything set up nicely, n link2sd is now playing fairly. i will try above method when i get home (SD Ext).
    can i try this AFTER flashing the M1 v 3.0.2.0?? im currently on the 2.8.7.0- but would like to keep testing as u release newer builds. pretty confident at this point i can recover from pretty much anything you throw at me..lol.

    also..ill keep my posting here..try n keep you from having to jump round so much.

    keep up the AWESOME werk man...this little phone is startin to sing!! Thank You!!:p

    edit--oh..i missed this...is this NEW recovery image?? http://www.mediafire.com/?d6d4a2ec0m2joad

    UPDATE!!- SUCCESS!!
    1. download the files above
    2. place "init.d.zip" on internal storage
    3. FLASH RECOVERY FIRST!!
    4. reboot
    5. i used Root Explorer to unzip "init.d.zip" into "system/etc" folder
    6. open "init.d" folder, inside is ANOTHER "init.d" folder. move this "init.d" folder TO THE SAME location, OVERWRITING previous one. path now looks like this: "setc/init.d/03mountsd"
    7. change permissions of "03mountsd" to "0777"; rwxrwxrwx; that is CHECK ALL BOXES!!
    8. go back to "init.d" folder and change permissions to "0755"; - rwxr xr w!!
    9. reboot, install link2sd, create mount script, reboot....
    10. NO MOUNT WARNING!! YAY!!!!


    ma man.....awesome job
     
    #16 strykyn, Sep 26, 2016
    Last edited: Sep 26, 2016
    czarsup3rstar likes this.
  17. strykyn

    strykyn Newbie
    Rank:
    None
    Points:
    36
    Posts:
    21
    Joined:
    Sep 25, 2016

    Sep 25, 2016
    21
    8
    36
    Female
    Screens Screenshot_2016-09-26-10-56-53.png
     

    Attached Files:

    czarsup3rstar likes this.
  18. czarsup3rstar

    czarsup3rstar Well-Known Member
    Thread Starter
    Rank:
    None
    Points:
    33
    Posts:
    81
    Joined:
    Sep 20, 2015

    Sep 20, 2015
    81
    47
    33
    Male
    Android Development
    Easton PA
    Thanks. Im working on a couple of rom projects but the sources are not playing nice Lol.
     
    strykyn likes this.
  19. czarsup3rstar

    czarsup3rstar Well-Known Member
    Thread Starter
    Rank:
    None
    Points:
    33
    Posts:
    81
    Joined:
    Sep 20, 2015

    Sep 20, 2015
    81
    47
    33
    Male
    Android Development
    Easton PA
    I just compiled it. It's 3.0.2.0 but the theme is for 3.0xxx and above. That's why it says that.
     
    strykyn likes this.
  20. strykyn

    strykyn Newbie
    Rank:
    None
    Points:
    36
    Posts:
    21
    Joined:
    Sep 25, 2016

    Sep 25, 2016
    21
    8
    36
    Female
    awesome. although im kinda stuck atm. just to "test" evreyting..i reverted to stock, and attempted the entire process from scratch. so far, all is good, button combo, 3.0.2.0 etc, even the init.d and 03mountsd have the correct permissions, and in their respective places, even the 11link2sd file is created in init.d, but after 2 attempts im unable to duplicate my above results. link2sd has reverted to being unkind, and the 2nd partition mount warning is driving me mad. gimmie a few to keep testing...im sure ive missed something on my end. should done this BEFORE i posted my above steps, as they ARE NOT WORKING. im hoping it doesnt have to do with the fact that i had M1 _2 series installed (which worked by itself), and the flashed 3.0.2.0 directly on top of it. gimmie a few...
     
  21. czarsup3rstar

    czarsup3rstar Well-Known Member
    Thread Starter
    Rank:
    None
    Points:
    33
    Posts:
    81
    Joined:
    Sep 20, 2015

    Sep 20, 2015
    81
    47
    33
    Male
    Android Development
    Easton PA
    Im using apps2sd and link to SD just quick reboot and it will link. Im still learning.
     
    strykyn likes this.
  22. czarsup3rstar

    czarsup3rstar Well-Known Member
    Thread Starter
    Rank:
    None
    Points:
    33
    Posts:
    81
    Joined:
    Sep 20, 2015

    Sep 20, 2015
    81
    47
    33
    Male
    Android Development
    Easton PA
    I have to make a insecure boot image and add sdext as a fs and to mount sdext on boot.
     
    strykyn likes this.
  23. strykyn

    strykyn Newbie
    Rank:
    None
    Points:
    36
    Posts:
    21
    Joined:
    Sep 25, 2016

    Sep 25, 2016
    21
    8
    36
    Female
    yes..u are correct sir. even with link2sd the "quick-reboot" allows me to "see" the links. although TBH..even tho i get the 2nd partition mount warning, the links ARE still there, AND functioning. But i HAVE NOT even attempetd to try and link ANY system apps yet...lol.
     
  24. strykyn

    strykyn Newbie
    Rank:
    None
    Points:
    36
    Posts:
    21
    Joined:
    Sep 25, 2016

    Sep 25, 2016
    21
    8
    36
    Female
    alright. updated my previous post. i tried it EVERY WAY imaginable. i HAD to place init.d.zip DIRECTLY on internal, then unzip to right location. placing the UNZIPPED contents on internal and simply moving them DID NOT WORK. also, no way would it work for me UNLESS i flashed http://www.mediafire.com/?d6d4a2ec0m2joad FIRST!!
    3 times i did it this way and 3 times success!! this all comes from using the KDZ files to revert to full stock, and rooting, installing your zip, and then your files.

    wanna be sure to thankxcaptaintjx at xda for tutorial on root/unlock bootloader/flash recovery http://forum.xda-developers.com/general/general/ref-metro-pcs-lg-k7-lgms330-t3362555

    and thanks to Billybobjoe13245 at xda for the unbrick/kdz files and tutorial on LGUP http://forum.xda-developers.com/android/development/stock-firmware-rom-unbrick-lg-k7-k330-t-t3432878

    and thanks to you again czarsup3rstar for your relentless work on bringing this puppy a stable recovery
     
    czarsup3rstar likes this.
  25. czarsup3rstar

    czarsup3rstar Well-Known Member
    Thread Starter
    Rank:
    None
    Points:
    33
    Posts:
    81
    Joined:
    Sep 20, 2015

    Sep 20, 2015
    81
    47
    33
    Male
    Android Development
    Easton PA
    Download https://play.google.com/store/apps/details?id=os.tools.scriptmanager


    In the init.d folder tap each script and tap the skull and cog wheel (su and boot) save and reboot.
     
    UrbanDevil and strykyn like this.
Tags:

Share This Page

Loading...