[Tool] Modified Batch File For Perm-Temp-Root - HTC Sensation

Hi,
I take no credit for this work at all. See thread below for credits:-
Perma-Temp Root with *R/W* & Stable! By Eugene373
http://forum.xda-developers.com/showthread.php?t=1161283
I dont use Terminal Emulator and so have modified the batch file so as it does not install it. (See attached file). To use this modded batch file, simply replace the batch file from the download in the above thread and run as instructed.
Also, I have superuser elite and wanted to use the latest beta version. The lates beta version can be downloaded after finding it with a gogle search (if you have superuser elite and are entitled to it) and the SU file and superuser.apk files can also be replaced.
These will be updated when the Batch file is run again. If terminal emulator is already installed, it can be deleted and wont be installed again.
Cheers

I don't really see the point in this. You deleted one line from a script. This is just clutter. Honestly if other people don't know how to delete one line from a text file, they shouldn't be doing anything root-related in the first place.
Sent from my HTC Sensation 4G using XDA App

Thanks very much

tinker2000 said:
Hi,
I take no credit for this work at all. See thread below for credits:-
Perma-Temp Root with *R/W* & Stable! By Eugene373
http://forum.xda-developers.com/showthread.php?t=1161283
I dont use Terminal Emulator and so have modified the batch file so as it does not install it. (See attached file). To use this modded batch file, simply replace the batch file from the download in the above thread and run as instructed.
Also, I have superuser elite and wanted to use the latest beta version. The lates beta version can be downloaded after finding it with a gogle search (if you have superuser elite and are entitled to it) and the SU file and superuser.apk files can also be replaced.
These will be updated when the Batch file is run again. If terminal emulator is already installed, it can be deleted and wont be installed again.
Cheers
Click to expand...
Click to collapse
I agree that it is only a single line, but not everyone is as competent as you and I provided additional information about super user. I did this because I thought it may be of help to some people. If its clutter, I apologise...but it helped one person and so I'm happy

tinker2000 said:
I agree that it is only a single line, but not everyone is as competent as you and I provided additional information about super user. I did this because I thought it may be of help to some people. If its clutter, I apologise...but it helped one person and so I'm happy
Click to expand...
Click to collapse
Good for you then! That's the spirit, though perhaps not understood by some.

Well then how about a bat file howto guide? That would be pretty cool.
Sent from my HTC Sensation 4G using XDA App

A HOW TO guide would be outstanding, but would require more than you think. You have to consider WHERE people have stored files such as adb.exe.
Editing the BAT is simple enough...Just download it, right click, then choose edit. Remove what you need and then run. This assumes that you got the thing to work as it originally had been intended to though.
Matt

Related

HTC Footprints In Espresso

question to those with a little more knowledge than I.
Running Kings Espresso 1.3 with 160mb swap (this motha flies off teh chain..had to treat myself for a first degree burn on my thumb) on my MT3G and i was wanting to add HTC Footprints back into the build. He had it in V0.1 and then removed it. How would I put it back into the build using adb? would i have to include the odex file along with the apks for footprints and the footprints widget?
just looking to learn a little more
i would say...adb push it? lol but i never use it or need it so i wouldnt know...
the1gladiator said:
question to those with a little more knowledge than I.
Running Kings Espresso 1.3 with 160mb swap (this motha flies off teh chain..had to treat myself for a first degree burn on my thumb) on my MT3G and i was wanting to add HTC Footprints back into the build. He had it in V0.1 and then removed it. How would I put it back into the build using adb? would i have to include the odex file along with the apks for footprints and the footprints widget?
just looking to learn a little more
Click to expand...
Click to collapse
Maybe ask in the appropriate thread instead of starting a new development thread for a question about a rom.
bkmo said:
Maybe ask in the appropriate thread instead of starting a new development thread for a question about a rom.
Click to expand...
Click to collapse
if you can't answer the question how about just remaining quiet?
the1gladiator said:
if you can't answer the question how about just remaining quiet?
Click to expand...
Click to collapse
I see what you did thar.
the1gladiator said:
if you can't answer the question how about just remaining quiet?
Click to expand...
Click to collapse
I believe you can take the apk for v0.1 and copy it into your tools folder open either cmd if on windows or terminal if on linux and for windows type adb install filename.apk and for linux ./adb install filename.apk
ps: forgot remember to cd to your tools folder in your sdk also I haven't done mac because I haven't used adb and mac XD However I bleieve mac and linux commands for adb may be similar or the same 0o
xillius200 said:
I believe you can take the apk for v0.1 and copy it into your tools folder open either cmd if on windows or terminal if on linux and for windows type adb install filename.apk and for linux ./adb install filename.apk
ps: forgot remember to cd to your tools folder in your sdk also I haven't done mac because I haven't used adb and mac XD
Click to expand...
Click to collapse
i thank you my friend. i think that would be it...i did adb push and just pushed it there and OOPSIE, it went bye bye so i had to reflash mi rom.
let me ask this, so my syntax would be....
adb remount
adb install filename.apk
is that it or do i need to give it a destination?
i'm just now relearning some of this stuff...i'm an older school programmer so i'm just now familiarizing myself with linux and source codes / packages for this type of development
the1gladiator said:
i thank you my friend. i think that would be it...i did adb push and just pushed it there and OOPSIE, it went bye bye so i had to reflash mi rom.
let me ask this, so my syntax would be....
adb remount
adb install filename.apk
is that it or do i need to give it a destination?
i'm just now relearning some of this stuff...i'm an older school programmer so i'm just now familiarizing myself with linux and source codes / packages for this type of development
Click to expand...
Click to collapse
Nope just adb install filename.apk you shouldn't even need to adb remount as it does not mess with /system files also you don't need to give it a directory
XD don't worry I understand you lol Im still learning
xillius200 said:
Nope just adb install filename.apk you shouldn't even need to adb remount as it does not mess with /system files also you don't need to give it a directory
XD don't worry I understand you lol Im still learning
Click to expand...
Click to collapse
now that leads me to ask the age old question...can one use the Package Manager to do this as well? just curious, although i prefer adb just for sheer intellectual purposes
the1gladiator said:
now that leads me to ask the age old question...can one use the Package Manager to do this as well? just curious, although i prefer adb just for sheer intellectual purposes
Click to expand...
Click to collapse
Yep package manager should be ok never used it guessing it is a file manager for android lol also if you use file managers I suggest androzip people suggest others like astro manager but what they don't relise is that androzip supports .rar files etc. unlike others
ps: Don't tell me you are talking about synaptic package manager on ubuntu please no 0o lol if thats the case no but im guessing it isnt
xillius200 said:
Yep package manager should be ok never used it guessing it is a file manager for android lol also if you use file managers I suggest androzip people suggest others like astro manager but what they don't relise is that androzip supports .rar files etc. unlike others
ps: Don't tell me you are talking about synaptic package manager on ubuntu please no 0o lol if thats the case no but im guessing it isnt
Click to expand...
Click to collapse
Nah meant to say Package Installer native to android or Astro. Thanks for the heads up, was thinking too far ahead with the adb commands. Ripped them and looks like they are loaded and working...appreciate your input
the1gladiator said:
Nah meant to say Package Installer native to android or Astro. Thanks for the heads up, was thinking too far ahead with the adb commands. Ripped them and looks like they are loaded and working...appreciate your input
Click to expand...
Click to collapse
No Problem just glad I could help

Install Script

Does anyone know can point me to the right direction on creating an install script that can be flash from recovery to install apps? I've tried searching but can't find a solution. Someone suggested from previous threads about using adb to do it but I want to be able to just flash an update and have all the apps install on the phone, thanks in advance.
You can save all apks on your computer and make a .bat file to push. Discussed in this thread for the opposite purpose of rm. http://forum.xda-developers.com/showthread.php?t=663014
Another alternative is to just use Titanium backup, the paid version in Market even saves your market apps link to market.
danknee said:
You can save all apks on your computer and make a .bat file to push. Discussed in this thread for the opposite purpose of rm.
Another alternative is to just use Titanium backup, the paid version in Market even saves your market apps link to market.
Click to expand...
Click to collapse
I can do a batch file for it but there are times when I flash a ROM while away from my computer which I can't use batch file for.
As for the thread you mentioned I did read through all the posts on there and that is how I got my update.zip to remove all the stock apps before the first load after flashing a new ROM. But I also want to add apps that I've already downloaded and apps that I download that is not on the market on the phone.
I found a thread that I can just put the apks in either
Code:
/data/app
or
Code:
/system/sd/app
that it will automatically show up but it only show up for some not all the apps that I have.
Anyone??? What about the developers?
coderli said:
Does anyone know can point me to the right direction on creating an install script that can be flash from recovery to install apps? I've tried searching but can't find a solution. Someone suggested from previous threads about using adb to do it but I want to be able to just flash an update and have all the apps install on the phone, thanks in advance.
Click to expand...
Click to collapse
Download A2SD v2.5: http://www.darktremor.com/files/misc/a2sd-2.5-signed.zip
Then break it out (unzip it).
You should see an install.sh in the root of the zip. Grab that.
Also grab the /META-INF/com/google/android/update-script. That will show you how the install.sh is launched.
That should give you a starting point.

Batch APK install script (Via USB or ADBWIRELESS)

Extract to any folder and use
Read included README before use (For ADBWireless install method especially)
This is a bat file, can check to see if there is any virus etc.
Features-
INSTALL APK (Batch) USING USB
INSTALL APK (Batch) USING ADBWIRELESS (WIFI METHOD) *Root only*
Basic usage: Move all APKs to this folder, APK clearer also included after you use this bat to allow to reuse w/o manually deleting APKS or reinstall everything
Minor update: Edited a small error in bat file.
Hi, I test it, work well by usb! thx
jason2005 said:
Hi, I test it, work well by usb! thx
Click to expand...
Click to collapse
No problem mate, glad it's usable.
Sent from my ARHD powered, HTC Desire HD
lzhikai1994 said:
No problem mate, glad it's usable.
Click to expand...
Click to collapse
Works great, but one major problem: It doesn't work when there are spaces in the filenames.
I had to use bulk Rename Utility to remove spaces from the names of my apks and then it ran perfectly.
I you have to add quotation marks "" around the apk filenames in the batch script. Also, the adb in the zip is outdated.
EDIT: I fixed it, see attached file.
All credits to @lzhikai1994

[MOD] Email.apk With NO Security

Use this thread http://forum.xda-developers.com/showthread.php?t=1117452
and follow ftc_osiris's directions (thank him in post 5):
Run it the .bat file and type the following at the prompt when it says it can't find the email application:
SecEmail_J.apk
If necessary, the following is the name of the exchange apk (this shouldn't be required though)
SecExachange.apk
There is a thread on xda with the email policy patcher. That works for the s4
Sent from my SPH-L720 using xda premium
eclipxe said:
There is a thread on xda with the email policy patcher. That works for the s4
Sent from my SPH-L720 using xda premium
Click to expand...
Click to collapse
This?
http://forum.xda-developers.com/showthread.php?t=1117452
Are you looking for the aosp email.apk?
Sent from my SPH-L720 using xda premium
vrundmc said:
This?
http://forum.xda-developers.com/showthread.php?t=1117452
Click to expand...
Click to collapse
This one worked for me on the Touchwiz Email ON A DEODEXed Stock ROM. (I did not create the script, I just use it )
It did not work before the deodexed rom came out but that could have been a fluke (ie not sure).
Run it the .bat file and type the following at the prompt when it says it can't find the email application:
SecEmail_J.apk
If necessary, the following is the name of the exchange apk (this shouldn't be required though)
SecExchange.apk
Hope that helps you.
_______
Another note:
After you have performed this once successfully, copy the SecEmail_J.apk and SecExchange.apk from the /system/app folder on the phone to somewhere on your computer for future use.
When you go to flash a new rom, open the .zip file and drop the .apks into the /system/app folder inside the ROM that you want to install. You won't need to run the hack script or do anything special in recovery.
As long as Touchwiz is not updated, those .apk files will be usable in place of the script. (unless you get an uneditable ROM .zip).
If Touchwiz is updated in the future, the answer would be to repeat the hack process above and then get the new versions of the .apk files for future use.
As always, I hope this helps.
Let me know if anyone has difficulty.
ftc_osiris said:
This one worked for me on the Touchwiz Email ON A DEODEXed Stock ROM.
It did not work before the deodexed rom came out but that could have been a fluke (ie not sure).
Run it the .bat file and type the following at the prompt when it says it can't find the email application:
SecEmail_J.apk
If necessary, the following is the name of the exchange apk (this shouldn't be required though)
SecExachange.apk
Hope that helps you.
Click to expand...
Click to collapse
Nevermind...it worked! Thanks!!
vrundmc said:
Nevermind...it worked! Thanks!!
Click to expand...
Click to collapse
Glad it worked! I was going to post the actual files from my phone but they are over 8 MB and XDA has an 8MB limit.
Alright, I ADDED THE FILES FOR THE ORIGINAL STOCK ROM!!!!
I had to use 7zip to split the files.
Remove the .zip and the parenthetical at the beginning of the filenames, then highlight both and hit extract. (name them "Exchange_Bypass.7z.001" and "Exchange_Bypass.7z.002" )
ACTUALLY,
(remove_this_and_the_.zip)Exchange_Bypass.7z.001
and
(remove_this_and_the_.zip)Exchange_Bypass.7z.002
work just fine. In other words, leaving the leading parenthetical does not cause a problem.
A pain, I know. But all you have to do is take the extracted files and put them in the "/system/app" folder of the ROM you wish to flash.
Alternatively, if you want to install on your phone (not flash with a ROM), use a root file manager, overwrite the files already in /system/app on your phone, then set the permissions to "rw-r--r--" (I haven't tried this one to be honest, it might be better to use the hack to accomplish this.)
ftc_osiris said:
Glad it worked! I was going to post the actual files from my phone but they are over 8 MB and XDA has an 8MB limit.
Click to expand...
Click to collapse
Here is the second file
ftc_osiris said:
Here is the second file
Click to expand...
Click to collapse
I am unable to unzip the files when removing the two pieces you advise to delete. Would you mind putting the apk on Dropbox? Thank you!
I was able to re-root on MDL and install via the batch file.
Sent from my SPH-L720 using xda premium
BrandoKC said:
I am unable to unzip the files when removing the two pieces you advise to delete. Would you mind putting the apk on Dropbox? Thank you!
Click to expand...
Click to collapse
I just tested them. They worked for me so I am not sure what to do?
I updated the post above to give the exact names to use.
Exchange_Bypass.7z.001
Exchange_Bypass.7z.002
Actually, all you need to do is remove the .zip portion.
I used the zip on MDL today and had no problems.

(LG V20, T-Mobile) Change Emoji from stock when rooted

Thought i'd put this on it's own thread so it doesn't get lost in the sea of comments where i put it originally. Mods, if this belongs somewhere else please move.
For anyone wanting to change their emoji and not sure if you want to use that switcher app, its very simple. Install ES file explorer (i can't imagine most of you don't already have it) and go to system/fonts and locate "NoToColorEmojii.ttf" and rename it to your liking (i just renamed it with NoToColorEmojii_OLD.ttf). Then download a replacement TTF emoji file, i used this one :
http://www.mediafire.com/file/oe85f3h5mj0731k/NotoColorEmoji.ttf
NEW WORKING LINK POSTED
download it and put it in the same folder the old one is in, reboot your phone, and viola, you're good to go.
Hope this helps!
YES! Thank You for doing this.
---------- Post added at 16:16 ---------- Previous post was at 16:16 ----------
thatisandwas said:
Thought i'd put this on it's own thread so it doesn't get lost in the sea of comments where i put it originally. Mods, if this belongs somewhere else please move.
For anyone wanting to change their emoji and not sure if you want to use that switcher app, its very simple. Install ES file explorer (i can't imagine most of you don't already have it) and go to system/fonts and locate "NoToColorEmojii.ttf" and rename it to your liking (i just renamed it with NoToColorEmojii_OLD.ttf). Then download a replacement TTF emoji file, i used this one :
https://drive.google.com/file/d/0B3n...ew?usp=sharing
download it and put it in the same folder the old one is in, reboot your phone, and viola, you're good to go.
Hope this helps!
Click to expand...
Click to collapse
File no longer exists...
Give me a sec I'll get a new link up
Kief_haring said:
YES! Thank You for doing this.
---------- Post added at 16:16 ---------- Previous post was at 16:16 ----------
File no longer exists...
Click to expand...
Click to collapse
Can you try that again? I think its just that it looks that way cause you can't preview this file. there should still be a DL button.
thatisandwas said:
Can you try that again? I think its just that it looks that way cause you can't preview this file. there should still be a DL button.
Click to expand...
Click to collapse
Same thing. Google is saying the file isn't there...
Kief_haring said:
Same thing. Google is saying the file isn't there...
Click to expand...
Click to collapse
Not sure why my google drive links keep dying! Posted up with a new host, should be good to go. Sorry about that!
Much better! Thank you!
Sent from my LG-H918 using Tapatalk
thatisandwas said:
Not sure why my google drive links keep dying! Posted up with a new host, should be good to go. Sorry about that!
Click to expand...
Click to collapse
No worries, Thanks for even posting/hosting!
Can we have a screenshot for these emojis? Which ones are they even? These are the ones I'm using currently, which are the new Samsung emojis.
Anyone have the Samsung emojis?
Sent from my LG-H918 using Tapatalk
Do we need to be rooted??
Deeemm79 said:
Do we need to be rooted??
Click to expand...
Click to collapse
Can't edit system files otherwise.
Sent from my LG-H918 using XDA-Developers mobile app
bigmase23 said:
Anyone have the Samsung emojis?
Sent from my LG-H918 using Tapatalk
Click to expand...
Click to collapse
Here ya go [emoji6] ..
https://www.dropbox.com/s/pk62q5f7nqxjvdg/NotoColorEmoji.ttf?dl=0
Also here's the iPhone emojis if anyone wants them..
https://www.dropbox.com/s/ctkugoahd75m31u/NotoColorEmoji.ttf?dl=0
Sent from a ridiculously modified ColecoVision
Im rooted and still cant edit system files. I re-ran the recowvery script, and when i got to TWRP, I swiped to allow changes to the system partition. Then flashed no-verity-opt-encrypt.zip then flashed SuperSu.
I am certain about root priviliges. SuperSU prompts me when root is required, and I am using a custom rom.
I used a script in the app RomManager to mount system RW to no avail.
I am using ES File Manager. I dont understand this, so any help is appreciated. Thanks
sduffy89 said:
Im rooted and still cant edit system files. I re-ran the recowvery script, and when i got to TWRP, I swiped to allow changes to the system partition. Then flashed no-verity-opt-encrypt.zip then flashed SuperSu.
I am certain about root priviliges. SuperSU prompts me when root is required, and I am using a custom rom.
I used a script in the app RomManager to mount system RW to no avail.
I am using ES File Manager. I dont understand this, so any help is appreciated. Thanks
Click to expand...
Click to collapse
I'm not a noob by any stretch but I'm feeling like one again with this LG stuff so just to clarify this is basically just a guess, but if you're positive you have root access then it sounds like the problem could be with the file explorer you're using. I don't use es file explorer myself so if it is the problem I couldn't tell you why, but I use solid explorer and I haven't had any issues with modifying system files. Anyway just thought I'd throw it out there in case you haven't already tried with a different file explorer. Hope it helps
Sent from a ridiculously modified ColecoVision
jeep447 said:
I'm not a noob by any stretch but I'm feeling like one again with this LG stuff so just to clarify this is basically just a guess, but if you're positive you have root access then it sounds like the problem could be with the file explorer you're using. I don't use es file explorer myself so if it is the problem I couldn't tell you why, but I use solid explorer and I haven't had any issues with modifying system files. Anyway just thought I'd throw it out there in case you haven't already tried with a different file explorer. Hope it helps
Sent from a ridiculously modified ColecoVision
Click to expand...
Click to collapse
That's good advice. My first thought exactly. I think the real problem was i had assumed the rom came with Busybox already installed. I installed Busybox when scripts for read/write access wouldnt run in apps that required it. Now things work perfectly.
sduffy89 said:
That's good advice. My first thought exactly. I think the real problem was i had assumed the rom came with Busybox already installed. I installed Busybox when scripts for read/write access wouldnt run in apps that required it. Now things work perfectly.
Click to expand...
Click to collapse
It's funny because I had a similar problem when I first installed Adaway because it would download the updated host but it kept failing to install, and then it finally dawned on me when I was doing something else that required busybox that it wasn't already installed because for some reason I also had just assumed it was. Anyway I'm glad to hear you got it figured out ?
Sent from a ridiculously modified ColecoVision
jeep447 said:
It's funny because I had a similar problem when I first installed Adaway because it would download the updated host but it kept failing to install, and then it finally dawned on me when I was doing something else that required busybox that it wasn't already installed because for some reason I also had just assumed it was. Anyway I'm glad to hear you got it figured out ?
Sent from a ridiculously modified ColecoVision
Click to expand...
Click to collapse
Okay. I can change the file of the original .tff to *_OLD.tff but cant copy and paste the new one to the /system/fonts directory because its a "read only directory". Yet ES File Explorer says Readable and Writable.
Any ideas i can try?
sduffy89 said:
Okay. I can change the file of the original .tff to *_OLD.tff but cant copy and paste the new one to the /system/fonts directory because its a "read only directory". Yet ES File Explorer says Readable and Writable.
Any ideas i can try?
Click to expand...
Click to collapse
Try solid explorer.. that's what I use..
So i tried this deal and even after renaming and replacing i get no emogi anymore. Check picture attached. And renaming back old to normal did not help either. I did a factory reset and emoji still missing. Can some help. Thanks

Categories

Resources