Toggle2G on Nottach's p-ROM - AT&T Samsung Galaxy S 4 Android Development

_Dennis_’s guide to installing Toggle2G into Nottach’s p-ROM:
All credit goes to:
Nottach for the p-ROM: http://forum.xda-developers.com/showthread.php?t=2258904
TheMasterBarrobn for Toggle2G and the resigner application: http://forum.xda-developers.com/showthread.php?t=739530
Pre-Steps:
1) Download the p-Rom from Nottach’s post above
2) Download Toggle2G-v0.3.5.apk from TheMasterBarron’s post above
3) Download ResignUpdate-v3.0.1-Toggle2G-v0.3.5.zip from TheMasterBarron’s post above.
4) Extract the p-ROM to C:\Toggle2G\p-ROM
5) Extract TheMasterBarron’s zip to C:\Toggle2G\resigner
6) Put the apk into C:\Toggle2G\p-ROM\copy_to_sdcard\system\app\
7) Zip C:\Toggle2G\p-ROM\system name it system.zip
a. Make sure the structure is system.zip\system\
Steps:
1) Move system.zip to C:\Toggle2G\
2) Run ResignerUpdate.bat
3) Click the … next to Source ROM
4) Select C:\Toggle2G\system.zip
5) Select Resign
6) Get a sammich, this may take a while, lol
7) You can go ahead and delete C:\Toggle2G\p-ROM\copy_to_sdcard\system
8) Extract system.zip-Toggle2G-resigned.zip to C:\Toggle2G\p-ROM\copy_to_sdcard\
a. It should look like C:\Toggle2G\p-ROM\copy_to_sdcard\system\app
9) Delete the META-INF file
10) Now copy copy_to_sdcard folder to sdcard.
a. You can do this with adb really easy. Command is adb push C:\Toggle2G\p-ROM\copy_to_sdcard /sdcard/copy_to_sdcard
11) Now run run_after_copying_folder_to_sdcard - Copy.bat
12) Profit.
this resigns a bunch of files in /system/app so if you have mods (wallet mod etc) move any /system/app files to the copy_to_sdcard before zipping it up.

In case anyone was wondering. This allows your phone to automatically (after a time you can set, and only when no data is being activly used) switch from 'fast' (LTE/4G/3G your choice) network to 'slow' (3G or 2G, again your choice) when the screen turns off. This should save battery as 2G is less battery intensive then 3G and both are less then LTE.

Cant wait to try this...need the bootloader unlocked uggggg.....
Sent from my SAMSUNG-SGH-I337 using xda app-developers app

azz72 said:
Cant wait to try this...need the bootloader unlocked uggggg.....
Sent from my SAMSUNG-SGH-I337 using xda app-developers app
Click to expand...
Click to collapse
I did it with the bootloader still locked lol.
Side note. If you do this have a backup of your app data since you MAY need to wipe /data I did this when I already was wiping/data so I'm not sure.

I want to try it but looks a lil hard. Maybe I will try it next week when I get some time....
Sent from my SAMSUNG-SGH-I337 using xda app-developers app

azz72 said:
I want to try it but looks a lil hard. Maybe I will try it next week when I get some time....
Sent from my SAMSUNG-SGH-I337 using xda app-developers app
Click to expand...
Click to collapse
Lol. Cool. Its not to hard if you know your way around 7-zip (or any zip program) it's pretty much the same as any ROM just have to fool the resign program to believing its a normal ROM in .zip format then undoing all that fooling and using Nottach's method to insert a ROM on to our phone. If it was hard I'd never of figured it out lol. Nottach and TheMasterBaron are the ones who figured out thr hard parts and made them easy.

Related

Modifying GAPPS

I want to take an existing gapps and modify it with all of my favorite apps to make flashes between roms less painful. Been researching and saw you can use a zip program to easily achieve this. Question, is it that simple or is there more to know? Any advice be welcomed.
Sent from my PC36100 using Tapatalk 2
Yes it is almost that simple. Make sure you add the apks you want in the data/apps folder and have signature verification turned off. If you need to any further help just pm me.
Sent from my PC36100 using xda app-developers app
Yes, this would be very easy
You need: 7zip and the apks of all your favorite apps
1. Grab the zip for the gapps you're using
2. Open the zip using 7zip (DO NOT EXTRACT)
3. There should be a folder named "data". Open it and go into the "app" folder (final path should be gapps.zip/data/app)
4. Now go to where the apks of your favorite programs are and drag all of them into the open 7zip window. Say yes when the prompt comes up
5. Thats it. The flashable zip extracts EVERYTHING thats in the "data" folder so your apps will be included in that
For more info, and to learn how to creat your own flashable zip (its not very hard actually) go to the following thread:
Note however, that it would be easier to just make a whole different flashable zip that contains your favorite apps since gapps vary by rom and by android version
[TUTORIAL]Making FLASHABLE zips, Edify script, Zip signing, and Key creation
Sent from my PG06100
Thanks for the quick feedback guys, some great responses. Excited to have a reason to fire up my pc.
Sent from my PC36100 using Tapatalk 2
Some apk's need lib files added to the zip file. Titanium Backup is one, for example, that I add to all my ROMs before I flash them. Swiftkey is another.
Titanium Backup Pro will allow you to create a flashable zip of all of your installed user apps in a single click
I like to break stuff!
-EViL-KoNCEPTz- said:
Titanium Backup Pro will allow you to create a flashable zip of all of your installed user apps in a single click
I like to break stuff!
Click to expand...
Click to collapse
Can I know how it is done?
_______
Moto G 2014 XT1068 | CM13.0 Official Nightly
sura14 said:
Can I know how it is done?
_______
Moto G 2014 XT1068 | CM13.0 Official Nightly
Click to expand...
Click to collapse
sounds easy
cryptickid715 said:
sounds easy
Click to expand...
Click to collapse
What?

How does one go about getting a logcat? Kind of a noob question I know but I'm askin

"Zed?Zed's dead baby."
https://play.google.com/store/apps/details?id=org.jtb.alogcat
Or any similar apps.
Sent from my SGH-I747 using xda premium
S3freak said:
"Zed?Zed's dead baby."
Click to expand...
Click to collapse
Catlog on playstore works a lot faster for me. Your choice.
Sent from my SGH-I747 using xda app-developers app
Both of the above options works great. I recommend Catlog for beginners because it just prompts for root access and then displays your logs once granted. Then you are all set!
alogcat, on the other hand, does not prompt and has to be granted manually doing the following:
1. Install alogcat from the play store
2. Open root explorer and browse to your system root (not ur SD card, but actual system root.)
3.) go to /data/app and cut org.jtb.alogcat-1.apk
4.) go back to system root and now browse to: /system/app
5.) paste the file.
6.) set permissions to 0644 (-rw-r--r--)
7.) restart your phone.
Note: make sure you move or cut the file so that you don't have duplicate apps. If you do happen to copy, go back to /data/app after you have it copied and delete the original.
alogcat has to be a system app to function in 4.1.x and higher android systems. The above process converts it to a system app.
If you do choose alogcat and do not follow the above, you will not be able to see or save logs.
Sent from my SGH-I747 using xda app-developers app

Xperia Z Gallery and Movies apk

I posted this because surprisingly I have not seen this post for our nexus 4. Thank this awesome guy from xda for creating this for all devices!!! Here's the link to his post and also here's some snapshots
http://forum.xda-developers.com/showthread.php?t=2143860
Oh if you didn't know you can pinch to zoom to do this awesome zoom effect. Try it out!! You have to flash through twrp or cwm. It will install the xperia launcher as well so if you want that aligned perfectly you have to edit your build prop. How to do that?
Easy!!
1st download es file explorer (its free)
2nd when you open es file explorer hit the menu key and tap settings
3rd scroll all the way down and click root settings and check all the boxes.
Now that you've done that, hit back until you get to a sign that pops up and says "press again to exit" then don't exit obviously.. You've just got full access to your files!! Meaning be careful which system files you touch! You only need to modify one. Trust me. It sounds hard but is a lot less complicated. Simply navigate to system/ then go all the way down to build.prop. simply tap on it and click es note editor. Then locate " ro.sf.lcd_density=320" then simply change the 320 to 340 and save. It will automatically create a back up build prop for you. Here's where you really need to watch out. Make sure after your done editing and saving your build.prop you TAP AND HOLD build.prop and scroll all the way down to properties and tap it. Then tap change and check all the boxes on the left and below write tap the top middle box. If your confused I posted a pic below... What your are doing here is setting permission to the file you just modified. Then now that you just set permission your good to reboot!!! After you reboot you just flash jb gapps and clear cache and dalvik cache. And your launcher is perfectly set. If you did not fix permissions the way the pic looks you won't boot up at all you'll only be able to fastboot. That's why I say its important to follow step by step. Also the reason I say flash gapps is because if you don't you won't be able to install certain apps in the play store (it'll say device not compatible). No more misaligned launcher!! If your don't like the launcher simply use titanium backup to remove it or search through file explorer. Bye all!!
Sent from my Nexus 4 using xda app-developers app
Cool.
[NEXUS⁴] [CARBON1.6] [MATR1X8] [TWRP]
If I remember from the Nexus 7 forums correctly, changing your build prop will cause future Android update to fail during installation. This looks awesome though.
It may cause problems with installation with modified changes
But that would just require you to go back to stock with our recovery tool. I never update my ROM straight through a custom rom. Or simply use your "back up build.prop" that I mentioned es explorer does automatically for you and rename that back up back to build.prop then delete modified build.prop. Of course always make sure you set your permissions even on the back up !
Sent from my Nexus 4 using xda app-developers app
dEris said:
Cool.
[NEXUS⁴] [CARBON1.6] [MATR1X8] [TWRP]
Click to expand...
Click to collapse
Thanks
Sent from my Nexus 4 using xda app-developers app

Odex ANY touchwiz ROM for the GN2 #moreperformance

“ADMIRAL WILL YOU PLEASE COLOR CODE THAT WALL OF TEXT?” – why yes I will.
GREEN = Informational stuff about what we are doing.
BLUE = Instructions for process
RED = IMPORTANCE, PLEASE DO NOT DISREGARD
BLACK = not too important
PINK = very manly
####################################################################
DISCLAIMER – THIS WILL IMPROVE PERORMANCE (again…lolllll) AND FURTHER AND FARTHER OPTIMIZE YOUR DEVICE, SAVE STORAGE SPACE ON YOUR INTERNAL SD, AND PUT YOUR /SYSTEM/FRAMEWORK DIRECTORY AND ALL CONTENTS ON THE MOST POTENT ANABOLIC STERIODS KNOWN TO MAN. I AM NOT RESPONSIBLE IF/WHEN YOU FINISH READING THIS THREAD YOUR DEVICE RUNS OFF WITH YOUR GIRLFRIEND/WIFE/FAMILY/JOB BECAUSE IT IS NOW MORE “MANLEY” THAN YOU (see wut I did there…manley..rofl…).
####################################################################
Ok on to the serious part….
First, why odex? And what does it mean?
1.Odexing has the following benefits: Saves space in your /data directory, speeds up boot times SLIGHTLY, boosts loading of apps (in this case the apps that compose your framework), zip aligns framework and corresponding .odex files, reduced CPU cycles by optimizing framework.
2.So what is an “odex” file? Android applications similar to zip files. APK stands for “android package” and all of them contain java code, which is the second language in android aside from Linux. This code speaks to the device to execute operations that in turn speak to other system files, then ultimately the kernel, hardware, etc etc etc… we’ll not get into that. Java code is packed into a file within the APK called a “classes.dex” file and this file is parsed (copied) by the dalvik JVM and a cache of the processed classes.dex file is stored in the device’s /data/dalvik-cache directory.
An odex file is basically an already processed version of the classes.dex file that is “execution ready” for Dalvik. When xxxx application is “odexed”, the classes.dex is removed from the APK entirely and the information is converted to an odex file, and stored aside its owner APK (or in this case framework file). So rather than have two copies of the same file, and in different locations, you have one copy of that file, in the same location of the APK, all ready to go, and therefore making it more optimized for access by you – the user.
The benefits of doing this are tremendous! I have been doing this to all of my ROMs since I can remember. This process is detailed, but simple, just read carefully. I outlined the directions as simple and clear as I possibly could
On to the fun part>>>>>
FIRST, BEFORE YOU CONTINUE, BEAR IN MIND I DO NOT CURRENTLY HAVE A SCRIPT MADE TO UNDO THIS MOD, ONCE IT IS DONE, IT IS DONE! IT IS SAFE, HOWEVER, JUST FOLLOW DIRECTIONS CAREFULLY!
ALSO, MAKE SURE YOU ALREADY HAVE YOUR FAVORITE THEME INSTALLED! I WILL NOT BE RESPONSIBLE IF YOU APPLY THIS MOD THEN TRY TO FLASH XXXXX THEME AND GET CAUGHT IN A BOOT LOOP BECAUSE YOU COULDN’T DECIDE IF YOU WANTED GREEN OR BLUE BATTERY ICONS THEN CHANGED YOUR MIND ABOUT IT AFTER DOING THIS…..just don’t waste your time posting in this thread if you do that. But if you MUST bother such a story, here is your answer to the problem… “flash your ROM again, no need to wipe data, your device will boot now”############
Instructions:
1.Download Terminal emulator and FX file explorer and FX root add on from market.
2.Download the zip file at the end of this post named “odex.zip” to your device.
3.Open FX file explorer, find the odex.zip file, long press on it and select “open with” then select “Archive Extractor” then hit “extract here”
4.After it is done, you will then find a folder named “odex” in the same location of the downloaded “zip” version. Llong press on that folder and select copy
5.Navigate to the home screen of the FX file app, and select the red system logo (this is the one that allows you to explore as root.
6.Navigate to /data/local/tmp, when you get to tmp, select the icon at the top right corner of the app that says “clipboard” and paste the folder into /data/local/tmp
You should now have a folder there named “odex”
7.Long press on the folder, select “permissions” and check ALL of the 3 boxes for Read, Write, and Exec(ute)… if you have done this successfully the bottom left of that little popup window for setting permissions should say 0777, hit “ok” to commit the changes.
8.Now go into the odex folder, and inside of it repeat step 7 for ALL 5 files. They should all have FULL permissions.
9.After that is done, hit back until you are at the root directory, seeing “System (Root)” at the top of the FX file window with the red box with a # symbol inside of it. You’ll notice as well, the top right corner there is a yellow lock icon, inside a green box. We need that to be red, with an “unlocked” lock icon. Select it, and disregard built in FX file warning about how the world is going to end etc etc etc if you don’t know what you are doing – you know what you are doing, so no worries. If it is already red and “unlocked” then awesome, skip to step 10.
10.Scroll down a bit, and you will see “system” folder, this is your system directory. Go in there, and again make sure we are “red” and “unlocked” in the top right corner. You are a savage animal at this point, on a mission. Your device needs optimizing, disregard doomsday warnings about the T1000 enslaving the human race and how your brother will likely turn into a cylon if you unlock your /system directory (or make it read/writable… which is all this is doing)
NOW! The really fun part. You got your favorite theme? Sweet. Got your odex files all cocked and ready to rock? Check. Got your kids addicted to Teletubbies in case you mess up your ***t and you need like an hour to fix it?!?! Kidding… that won’t happen…
FIRST BEFORE YOU CONTINUE!!!!! PUT YOUR DEVICE INTO AIRPLANE MODE!!!!!!! You do not want to get a phone call or something while this script is executing. Interruptions will be rude and unkind… Please follow this instruction, please. For the love of the last terrible terminator movie.
11.Open terminal emulator, and type the following commands WITHOUT the quotes, hitting enter after each line:
“su” (if it asks for super user permission, grant it, obviously, if it doesn’t ask, you have already granted it)
“/data/local/tmp/odex/odex”
About 8.7 seconds later, it should be done, and you will see a little message saying “reboot to recovery and wipe cache and dalvik cache one more time” at the very end.
12.Hold power button, select “reboot options” then “recovery” hit ok, boom. If you don’t have that neat little modification to your android.policy.jar file, then power off, and boot into recovery by holding the volume up, home, and power button. In that order, until you see something on your screen. If you are NOT RUNNING EXT2… meaning you are not running Malicious ROM and/or you have not used my ext2 modificaitons…. Then simply type “reboot recovery” in terminal emulator, hit enter, and skip all the previous crap in “12”… “but then y u no say that first admiral?” … “Don’t question me son, it is for the good of the nation and humanity, and noobs who would read “oh ok reboot recovery BOOM” then they corrupt a file somewhere because of an unclean shutdown and are back at step -1 of this entire instruction which is restoring their backup… if they were pansy enough to make a backup. The admiral is manley, he has no use for backups. But he also knows what to do in case he needs one and doesn’t have one, cadet.”
ALSO IMPORTANT!!!!! Before you wipe dalvik cache again from recovery… if you are running my ext2 modification for /system /data/ and /cache…. MAKE SURE YOU VERIFY “THE BOX” is checked in twrp settings… you know which one I am talking about at this point. lol. It is the “format with yadda yadda rm command”
Wipe dalvik cache from recovery once more, then reboot the device.
DONE! Your ROM is now odexed!
-Admiral
http://db.tt/na11Ma9L
Another may mod. I'm not the only one who enjoys odexed. I was actually going to make the next release odexed... or was at least tossing the idea around in my head
Sent from my SGH-T889 using xda app-developers app
kintwofan said:
Another may mod. I'm not the only one who enjoys odexed. I was actually going to make the next release odexed... or was at least tossing the idea around in my head
Sent from my SGH-T889 using xda app-developers app
Click to expand...
Click to collapse
Well now you can.
I'm a firm believer in odexing. Most efficient way to run. I'm all about efficiency
Sent from my SM-N900T
Is tweaked odexed?
Sent from my SGH-T889 using xda premium
Tweaked is not odexed by default. You can find out if the ROM you are running is odexed or not by going to /system/framework with a file explorer. If you see a bunch of files in there with ".odex" tags on the tail end of them, then it is odexed.
If they are not there, then it is not odexed.
Sent from my SM-N900T
AngryDinosaur said:
Is tweaked odexed?
Sent from my SGH-T889 using xda premium
Click to expand...
Click to collapse
Non if the custom ROMs are odexed. It's more of a stock thing
Sent from my SGH-T889 using xda app-developers app
Alright
Sent from my SGH-T889 using xda premium
I keep getting this
Sent from my SGH-T889 using xda premium
Can we Odex our roms with XPosed framework mod installed? Or can we only Odex the apps and not system? Thanks a bunch for sharing.
Noellenchris
noellenchris said:
Can we Odex our roms with XPosed framework mod installed? Or can we only Odex the apps and not system? Thanks a bunch for sharing.
Noellenchris
Click to expand...
Click to collapse
you can odex any framework with this...
Not sure what you mean by the second part of your question, though. This is odexing your framework... which is found in /system ...?
ezsoulja said:
I keep getting this
Sent from my SGH-T889 using xda premium
Click to expand...
Click to collapse
For some reason it is thinking you are trying to execute a folder? And not a file?
Not cutting or flaming you in any way, but this is a user error. You typed the command properly, and everything looks like it SHOULD have executed. Go back to the step where you are moving the odex folder to the /data/local/tmp directory, make sure you did everything correctly, and retry.
Admiral Sir Manley Power said:
you can odex any framework with this...
Not sure what you mean by the second part of your question, though. This is odexing your framework... which is found in /system ...?
For some reason it is thinking you are trying to execute a folder? And not a file?
Not cutting or flaming you in any way, but this is a user error. You typed the command properly, and everything looks like it SHOULD have executed. Go back to the step where you are moving the odex folder to the /data/local/tmp directory, make sure you did everything correctly, and retry.
Click to expand...
Click to collapse
i made sure of it, i extracted the folder to the tmp folder and changed the odex folder 1 and 2 to 777 and all the files inside the 2nd odex folder and had both the root of the system and folder unlocked with the red icon. im not sure what could else be missing. im on tweaked 2.4.1 btw
ezsoulja said:
i made sure of it, i extracted the folder to the tmp folder and changed the odex folder 1 and 2 to 777 and all the files inside the 2nd odex folder and had both the root of the system and folder unlocked with the red icon. im not sure what could else be missing. im on tweaked 2.4.1 btw
Click to expand...
Click to collapse
Why do you have two odex folders?
Sent from my SGH-T889 using Tapatalk 2
Admiral Sir Manley Power said:
you can odex any framework with this...
Not sure what you mean by the second part of your question, though. This is odexing your framework... which is found in /system ...?.
Click to expand...
Click to collapse
With XPosed installed it can modify the framework, I'm afraid if I odex the framework, the xposed add on will crash my system. There is also an application on XDA called "Odex Me" which only Odex's the Applications and not the framework, that's what I was talking about in my second part of the question. I suppose I can do a backup and give it a go and see what xposed does.
Also Xposed also does other system mods other than framework. So it may only disable the framework modding portions after I odex the framewok.
Noellenchris
Admiral Sir Manley Power said:
Why do you have two odex folders?
Sent from my SGH-T889 using Tapatalk 2
Click to expand...
Click to collapse
For some reason when I extracted it, that's the way it came.. So it's basically just like the line says /data/local/tmp/odex/odex
EDIT: just removed one of the odex folders from within the odex folder and transfered the files to the first folder and everything worked from that point on..
Sent from my SGH-T889 using xda premium
noellenchris said:
With XPosed installed it can modify the framework, I'm afraid if I odex the framework, the xposed add on will crash my system. There is also an application on XDA called "Odex Me" which only Odex's the Applications and not the framework, that's what I was talking about in my second part of the question. I suppose I can do a backup and give it a go and see what xposed does.
Also Xposed also does other system mods other than framework. So it may only disable the framework modding portions after I odex the framewok.
Noellenchris
Click to expand...
Click to collapse
You'll be fine.
Go ahead and do it. Just make a backup of your /system if you wanna be safe, that's what they are there for
The DL link isn't working
Edit: Got it downloaded and working thanks for the odex man.
P.S What can be modified without messing up the odex for example will xposed framework modules cause the rom and odex to have complications. Thanks in advance
Sent from my SGH-T889 using xda premium
gonnapushthru06 said:
The DL link isn't working
Edit: Got it downloaded and working thanks for the odex man.
P.S What can be modified without messing up the odex for example will xposed framework modules cause the rom and odex to have complications. Thanks in advance
Sent from my SGH-T889 using xda premium
Click to expand...
Click to collapse
It may or may not. Honestly, either way it will require a little bit of work on your part after you flash it (assuming it actually boots, but it should...)
Just, best thing to do, like I said in the OP... Is flash your themes first, then odex. It will save you from the extra headaches and work trying to do the process in reverse.
Admiral Sir Manley Power said:
You'll be fine.
Go ahead and do it. Just make a backup of your /system if you wanna be safe, that's what they are there for
Click to expand...
Click to collapse
I've odex'd and it seems fine with xposed, after reading info on xposed they say it works on deox and odex roms, and it's running smooth. For some reason the screen appears brighter and sharper, probably some mod is not working but either way it is smooth and placebo maybe but looks great. Thanks again. I've done this in the past, but never to the system, just apps.
Noellenchris

Command line interface twrp

Hey guys got a question.... I was on the cyanogenmod thread and I someone posted a possible workaround for the freezing at the boot screen on 4.3 roms... I was told to delete the bootanimation.zip from system/media/ but I can't find it in there... There isn't even a media folder in system from what I see. (keep in mind I'm using the file manager inside of TWRP to try to locate it) I was wondering what the command is to delete the file using the terminal emulator or whatever selection I need to use to delete the zip.
The problem with it locking on the bootsplash seems to be that it couldn't get passed the bootanimation.zip file.
It looks like the method of using ODIN to flash a rooted stock rom manages to erase the bootanimation.zip, where as TWRP was leaving it there. If you get stuck there, go into recovery and fire up a command line interface (TWRP has one) and rm the bootanimation.zip file. I'll look back a few posts to find the path and post it here. Other than that make sure you are flashing the latest gapps and wipe your data and you should be good to go. Some folks have gotten away with a dirty flash but you'll have to uninstall/reinstall a bunch of apps.
Click to expand...
Click to collapse
Sent from my SGH-T999 using XDA Premium 4 mobile app
RedJack117 said:
Hey guys got a question.... I was on the cyanogenmod thread and I someone posted a possible workaround for the freezing at the boot screen on 4.3 roms... I was told to delete the bootanimation.zip from system/media/ but I can't find it in there... There isn't even a media folder in system from what I see. (keep in mind I'm using the file manager inside of TWRP to try to locate it) I was wondering what the command is to delete the file using the terminal emulator or whatever selection I need to use to delete the zip.
Sent from my SGH-T999 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
rm /file/location/here.zip
And if you can't see something in recovery like that, make sure the partition is mounted.
Sent from my SGH-T999L using Tapatalk 4

Categories

Resources