Diagnosing Crashing Apps - Nexus 6P Q&A, Help & Troubleshooting

So I have an app that I use and quite often and it crashes for seemingly no reason quite often. I have contacted the dev on these apps and they claim it's always on my end and the app is coded properly.
In order to validate these claims I need to be able to see why they are crashing. Is there any app or tool I can use to get a quick read out as to why the app crashed?
Thanks.

PieOfJustice said:
So I have an app that I use and quite often and it crashes for seemingly no reason quite often. I have contacted the dev on these apps and they claim it's always on my end and the app is coded properly.
In order to validate these claims I need to be able to see why they are crashing. Is there any app or tool I can use to get a quick read out as to why the app crashed?
Thanks.
Click to expand...
Click to collapse
The app developer can tell you how to log a crash and submit it to them
Sent from my Nexus 6P using Tapatalk

clsA said:
The app developer can tell you how to log a crash and submit it to them
Sent from my Nexus 6P using Tapatalk
Click to expand...
Click to collapse
They won't. That's why I'm asking here.

@PieOfJustice
Well if the developer is not willing to help how do you plan on fixing it?
in your fastboot / adb folder
create a new txt and name it Runlogcat.bat
open the empty file and paste
Code:
ECHO @
adb logcat -d > logcat.txt
I also use another bat file called clearlogcat.bat so the log is not so long
create it the same way
Code:
ECHO @
adb logcat -c
the idea is to clear the log and then crash the app then take the log to see what the errors were
Sent from my Nexus 6P using Tapatalk

clsA said:
@PieOfJustice
Well if the developer is not willing to help how do you plan on fixing it?
in your fastboot / adb folder
create a new txt and name it Runlogcat.bat
open the empty file and paste
Code:
ECHO @
adb logcat -d > logcat.txt
I also use another bat file called clearlogcat.bat so the log is not so long
create it the same way
Code:
ECHO @
adb logcat -c
the idea is to clear the log and then crash the app then take the log to see what the errors were
Sent from my Nexus 6P using Tapatalk
Click to expand...
Click to collapse
Thanks. It's more so I can see if its truly on my end (system) or if its related to the app .

PieOfJustice said:
@PieOfJustice
Well if the developer is not willing to help how do you plan on fixing it?
in your fastboot / adb folder
create a new txt and name it Runlogcat.bat
open the empty file and paste
I also use another bat file called clearlogcat.bat so the log is not so long
create it the same way
Thanks. It's more so I can see if its truly on my end (system) or if its related to the app .
Click to expand...
Click to collapse
Just out of curiosity are you running a custom rom or stock? I had some apps crash when I was on Pure Nexus. When I changed roms the apps didn't crash anymore.

jhs39 said:
Just out of curiosity are you running a custom rom or stock? I had some apps crash when I was on Pure Nexus. When I changed roms the apps didn't crash anymore.
Click to expand...
Click to collapse
Tried both stock and custom. Same thing. I am back to using AOSiP.

Related

Moving a file with terminal emulator

I really need some help with moving a file to system/app
Not good at this kind of stuff.
Its in the root of my SD card
Sent from my SGH-T959 using XDA App
Code:
su
mv /Removeable/MicroSD/file.whatever /system/app/
Easy peezy
sassafras
Hahah thanks. Another easy question, any way to turn wifi off when you put in sleep mode? Big battery saver. Thanks
Sent from my SGH-T959 using XDA App
gobluewolverines4 said:
Hahah thanks. Another easy question, any way to turn wifi off when you put in sleep mode? Big battery saver. Thanks
Sent from my SGH-T959 using XDA App
Click to expand...
Click to collapse
Go to settings -> wireless and networks -> wifi sleep policy
sassafras
Ok...noob here..what is the purpose of making at app a "system app"?
And then another question comes to mind; can you go back and make one of those system apps just a regular old app?
rpavich said:
Ok...noob here..what is the purpose of making at app a "system app"?
And then another question comes to mind; can you go back and make one of those system apps just a regular old app?
Click to expand...
Click to collapse
System apps are essentially going to be 'firmware' because unless you're rooted (which is not by design) they cannot be modified. If you make an app a system app, it theoretically can run better, though that is debatable, it will survive factory wipes and cannot be accidentally deleted. What you lose though is the ability to upgrade it in the market.
In all, it's not really necessary 90% of the time. The easiest way to make an app a system app, if you're interested, is to use Titanium Backup Pro. Not only will it copy the .apk over, but it will reassign the permissions of its /data folder as well.
sassafras
Thank you very much Sassafrass....that was informative.
sassafras_ said:
Code:
su
mv /Removeable/MicroSD/file.whatever /system/app/
Easy peezy
sassafras
Click to expand...
Click to collapse
Ive attempted this from the /sdcard/ and /Removable/MicroSD/
both attemps fail with a msg of "cross device link"
And suggestions???
Drukan said:
Ive attempted this from the /sdcard/ and /Removable/MicroSD/
both attemps fail with a msg of "cross device link"
And suggestions???
Click to expand...
Click to collapse
Cross device link occurs when you're attempting to move a file across storage devices due to the way mv works (it only rereferences the inode, not moving the actual data). Instead, use cp to copy it to the sd.
LightI3ulb said:
Cross device link occurs when you're attempting to move a file across storage devices due to the way mv works (it only rereferences the inode, not moving the actual data). Instead, use cp to copy it to the sd.
Click to expand...
Click to collapse
Exactly.
More specifically though, the mv binary included with android. The GNU mv tool included in any modern linux can tell if the data needs to be moved to different mounted devices and will do it if need be.
sassafras

Deactivate the screenshot button

Hello dear Samsung Tab Lovers ;-)
I have a question for the touchwhiz firmware of the Samsung Galaxy Tab 10.1.
Can someone tell me how to deactivate the screenshot button in the task bar?
I just hate this button cause I always accidently press it.
Is there a way to get ride of it??
The same question
Thanks!
uninstall screencaptureservice.apk via root explorer (system/app) or titanium backup
Questions or Problems Should Not Be Posted in the Development Forum
Please Post in the Correct Forums and Read THIS
Moving to General
Can this be done using adb commands?
paradoxni said:
Can this be done using adb commands?
Click to expand...
Click to collapse
Just do it via root explorer. Its on sale for.99 cents today from amazon. Its a one day sale, so get in on it, its a must have app...
Sent from my Galaxy Tab!
task650 said:
uninstall screencaptureservice.apk via root explorer (system/app) or titanium backup
Click to expand...
Click to collapse
When we delete iit, will the menu icon slide over or will there be a gap?
Sent from my Galaxy Tab!
mroneeyedboh said:
When we delete iit, will the menu icon slide over or will there be a gap?
Sent from my Galaxy Tab!
Click to expand...
Click to collapse
The button will still be there, just won't take the screenshots
Sent from my GT-P7510 using xda premium
paradoxni said:
Can this be done using adb commands?
Click to expand...
Click to collapse
You can get titanium backup free in the market. It will allow you to uninstall screencapture. You need root for it as well as for root explorer.
Sent from my GT-P7510 using xda premium
Thanks for the suggestion and I can stop those stupid screen capture !
You don't need to uninstall it with Titanium Backup, just freeze it. I have no idea what mad scientist at Samsung thought there was the dying need to make screenshotting an ever-present feature button.
paradoxni said:
Can this be done using adb commands?
Click to expand...
Click to collapse
It can be done using adb.
I'm assuming that the system apps are located in /system/app/ like my phone (I don't have a tab yet, though hopefully I will soon).
If that is true then a
Code:
adb rm /system/app/screencaptureservice.apk
should remove it. I have an inkling that there might be some capital letters in there (Like I said, I dont have the tab so I cant check), if the above code gives you an error about the file not being found type
Code:
adb ls /system/app/
which will show you the list of all files in /system/app/ and change part of the first code to reflect any capital letters.
I would suggest not deleting the file but renaming it or moving it somewhere (so it can be restored afterwards. Both are done with the same command mv (short for move)
The following code would rename the file and add renamed to the beginning:
Code:
adb mv /system/app/screencaptureservice.apk /system/app/renamedscreencaptureservice.apk
Or alternatively:
Code:
adb shell
cd /system/app/
mv screencaptureservice.apk renamedscreencaptureservice.apk
Whether renaming/moving or deleting I suggest rebooting after completing the task.
This will be great for my not-so-tech parents Tab, they would be so confused by the false "screenshot" screen if they would be pressing this endlessly.
Worked great thanks, don't know why this button exists.
Overly complicated since there's a setting in (ICS) it to change it: Settings -> Display -> Quick launch.
Sent from my Nexus S using xda premium
On my ICS rom which is based on the stock touchwiz, in settings>display>quick launch. You should be able to change what the button does or to remove it completely. Hope this helps if you have the same options.
scoffyburito said:
Overly complicated since there's a setting in (ICS) it to change it: Settings -> Display -> Quick launch.
Sent from my Nexus S using xda premium
Click to expand...
Click to collapse
Turned out to be pretty simple. Thanks a bunch!

[Q]

Hi all!
Recently I flashed tytung rom:
[2.Jun.2012] NexusHD2-ICS-4.0.4-CM9-HWA V2.2 (Kernel: tytung_HWA_r3)
It's a good one, no random resets since flashing, it's quite stable.
2 issues i encountered:
1. no way to remove google search from main screen
2. FuelLog Pro v2.2.1 doesn't work, crush right away
Did anyone experience it and can help solving it up?
Thanks!
ehud83 said:
Hi all!
Recently I flashed tytung rom:
[2.Jun.2012] NexusHD2-ICS-4.0.4-CM9-HWA V2.2 (Kernel: tytung_HWA_r3)
It's a good one, no random resets since flashing, it's quite stable.
2 issues i encountered:
1. no way to remove google search from main screen
2. FuelLog Pro v2.2.1 doesn't work, crush right away
Did anyone experience it and can help solving it up?
Thanks!
Click to expand...
Click to collapse
The Google search bar can be removed in the Trebuchet settings (there's a flashable zip in the thread which enables them) and try moving that app to the internal storage (it's a weak suggestion but on occasion it works).
Thanks!
Number 1 solved.
Now I need help with number 2..
ehud83 said:
Thanks!
Number 1 solved.
Now I need help with number 2..
Click to expand...
Click to collapse
Try clearing the data for that app and then rebooting to recovery and under advanced menu option select "Fix Permissions" solves a lot of my force closes. Other than that you may need to post a logcat and/or traces.txt file
elesbb said:
Try clearing the data for that app and then rebooting to recovery and under advanced menu option select "Fix Permissions" solves a lot of my force closes. Other than that you may need to post a logcat and/or traces.txt file
Click to expand...
Click to collapse
I tried what you suggested - no success.
I'll appreciate if you tell me where can I find logcat and traces.txt
Thanks!
ehud83 said:
I tried what you suggested - no success.
I'll appreciate if you tell me where can I find logcat and traces.txt
Thanks!
Click to expand...
Click to collapse
Well logcat is an android debug tool found in ADB or a terminal emulator. Traces.txt is located
Code:
/data/anr/traces.txt
To make a logcat follow the steps below
Code:
1. Open ADB or a terminal emulator inside your phone.
PRESS ENTER after each command or after each segment of ' '
2. Type 'su'
3. followed by 'logcat -c'
4. Then go open your program that always force closes
5. Go back to your ADB or terminal emulator
6. Then type 'logcat -d > /mnt/sdcard/logcat.txt'
7. Then plug your phone into your computer and enable USB mass storage and find the file on your SD card labled "logcat.txt"
8. And post it for me to look at :)
That should help in the diagnoses
elesbb said:
Well logcat is an android debug tool found in ADB or a terminal emulator. Traces.txt is located
Code:
/data/anr/traces.txt
To make a logcat follow the steps below
Code:
1. Open ADB or a terminal emulator inside your phone.
PRESS ENTER after each command or after each segment of ' '
2. Type 'su'
3. followed by 'logcat -c'
4. Then go open your program that always force closes
5. Go back to your ADB or terminal emulator
6. Then type 'logcat -d > /mnt/sdcard/logcat.txt'
7. Then plug your phone into your computer and enable USB mass storage and find the file on your SD card labled "logcat.txt"
8. And post it for me to look at :)
That should help in the diagnoses
Click to expand...
Click to collapse
OK! I'll try to do it, but it would take a few days due to work and semester exams.
I'll post it as soon as possible.
Thank you!
ehud83 said:
OK! I'll try to do it, but it would take a few days due to work and semester exams.
I'll post it as soon as possible.
Thank you!
Click to expand...
Click to collapse
Yep not a problem! Traces.txt is auto generated by the program so thats just a matter of extracting and posting logcat is a little more complicated.
Here is logcat.txt file
Thanks a lot!
ehud83 said:
Here is logcat.txt file
Thanks a lot!
Click to expand...
Click to collapse
good job creating that logcat not much garbage was inlcuded thank you so much!!!
But after looking at it, its a developer error on terms of the person who created it, not your HD2 or anything on your part.
Code:
W/dalvikvm(12012): Verifier rejected class Lt7iscAj4/UDOaYxz;
and
Code:
W/dalvikvm(12012): threadid=1: thread exiting with uncaught exception (group=0x40a571f8)
E/AndroidRuntime(12012): FATAL EXCEPTION: main
E/AndroidRuntime(12012): java.lang.VerifyError: t7iscAj4/UDOaYxz
E/AndroidRuntime(12012): at ch.simonmorgenthaler.fuellog.FuelLog.onCreate(FuelLog.java:41)
E/AndroidRuntime(12012): at android.app.Activity.performCreate(Activity.java:4465)
E/AndroidRuntime(12012): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1049)
E/AndroidRuntime(12012): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2033)
E/AndroidRuntime(12012): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2104)
E/AndroidRuntime(12012): at android.app.ActivityThread.access$600(ActivityThread.java:132)
E/AndroidRuntime(12012): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1157)
E/AndroidRuntime(12012): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime(12012): at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime(12012): at android.app.ActivityThread.main(ActivityThread.java:4575)
E/AndroidRuntime(12012): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime(12012): at java.lang.reflect.Method.invoke(Method.java:511)
E/AndroidRuntime(12012): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:789)
E/AndroidRuntime(12012): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:556)
E/AndroidRuntime(12012): at dalvik.system.NativeStart.main(Native Method)
W/ActivityManager(10213): Force finishing activity ch.simonmorgenthaler.fuellog/.FuelLog
are all common errors developers get when something doesnt work. (Ive seen lots of these in my programs xD) It almost seems like its due to it being androd 4.0 from what i read in the logcat. email the developer and give them the logcat, and the traces.txt (if there was one) they should be able to fix it. Also firstly check for an updated version.
I tried to access traces file, but my Data directory is empty..
ehud83 said:
I tried to access traces file, but my Data directory is empty..
Click to expand...
Click to collapse
Are you using data2ext? Plus what file browser did you use?
Sent from my GT-I9100 using Tapatalk
elesbb said:
Are you using data2ext? Plus what file browser did you use?
Sent from my GT-I9100 using Tapatalk
Click to expand...
Click to collapse
I'm not using data2ext.
I'm using File Manager comes with rom
ehud83 said:
I'm not using data2ext.
I'm using File Manager comes with rom
Click to expand...
Click to collapse
And your entire data directory is empty? -scratches head- that's kind of impossible xP
Sent from my GT-I9100 using Tapatalk
elesbb said:
And your entire data directory is empty? -scratches head- that's kind of impossible xP
Sent from my GT-I9100 using Tapatalk
Click to expand...
Click to collapse
I know. I'll try to upload a screenshot, to prove it.. My \Data was always empty, don't know why.
By the why: I'm using HTC HD2, if it's help..
ehud83 said:
I know. I'll try to upload a screenshot, to prove it.. My \Data was always empty, don't know why.
By the why: I'm using HTC HD2, if it's help..
Click to expand...
Click to collapse
Try doing this
Open a terminal emulator
Enter following:
Again pressing enter after each line:
Su
Cd /data
Ls
Then make a screen shot of that. It might be the file browser you're using. Ls will let us know if your data directory is truly empty
Sent from my GT-I9100 using Tapatalk
elesbb said:
Try doing this
Open a terminal emulator
Enter following:
Again pressing enter after each line:
Su
Cd /data
Ls
Then make a screen shot of that. It might be the file browser you're using. Ls will let us know if your data directory is truly empty
Sent from my GT-I9100 using Tapatalk
Click to expand...
Click to collapse
Here you go
By picture I guess it's not..
ehud83 said:
Here you go
By picture I guess it's not..
Click to expand...
Click to collapse
yep its not empty, your file browser is just not working i guess. under settings, is there a "show hidden files" option? i use root browser and never had an issue, plus ive never used file manager so i know nothing about it. but you are correct it is not empty, also, if you look at that, you will see a "anr" in the list, that is where your traces.txt file will be
OK. I got access to \data\anr\traces.txt, but accidentally i deleted the file, but phone refuse to create it again!
Tried reboot, create it on my own (if so, it doesn't write anything in file), nothing works.
Any ideas?
Thanks!
ehud83 said:
OK. I got access to \data\anr\traces.txt, but accidentally i deleted the file, but phone refuse to create it again!
Tried reboot, create it on my own (if so, it doesn't write anything in file), nothing works.
Any ideas?
Thanks!
Click to expand...
Click to collapse
well the program that FCs all the time is the program that creates it. you just have to keep running that fuel log program a bunch of times to generate it.

[N5] [FKU and PAM apps] Default kernel and Per App Mode Swaps.

So, In an attempt to get the configuration talk out of @franciscofranco's kernel thread, I decided to open this "swap meet"
As you may know I've wrote a couple scripts to make it easier to pull a backup of the kernel settings available through the franco kernel updater app.
Preparing files for sharing
Kernel Settings
so, if you want to share your kernel settings, grab the backup-script.sh file from here, run it either through a file manager or a terminal emulator, then head over to /sdcard/settings_backup/ and grab the restore-script.sh file, rename it to <your_user_name-defaults.sh> and post a link to it here.
Per App Modes
If you want to share you Per-App Modes settings, you'll need to use either the franco kernel updater or his stand alone Per-App Modes app, either way, the process is the same, just the file paths are a little different.
FKU App
So, if you use the fku app, go into fku -> Per-App Modes -> Manage your modes and click the BACKUP MODES in the top right corner. This creates an xml file of all your per app settings (one file per mode). These files are stored in /sdcard/franco.kernel_updater/saved_per_app_modes
Create a zip file including the modes you want to share and post it here.
Stand Alone Per-App Modes App
The process for using the stand alone app is the same. Per-App Modes -> Manage, and click BACKUP MODES in the top right corner again, this creates another batch of .xml files... Only they're stored in /sdcard/per-app_modes/saved_per_app_modes/
Once again, Create a zip file of the modes you want to share and post here.
Using Shared Settings
Okay, so you've downloaded the scripts and zips that you want to try out... how do you use them..
Kernel Settings
The scripts are easy, just run them (as root) through a file manager or terminal emulator.. then use fku or an init.d system to set the changes on boot if you want.
Per App Modes
The process for using the downloaded zips is just the reverse of sharing them...
Unzip the file and place the .xml files in the appropriate folder (/sdcard/franco.kernel_updater/saved_per_app_modes if you use fku, or /sdcard/per-app_modes/saved_per_app_modes/ for the standalone Per-App Modes app)
Then go into into your app, back to the manage page, where we clicked the BACKUP MODES last visit, only this time, click the LOAD MODES button.
Now, if you had copied the .xml file to the right folders, you should see the new PAM modules loaded into the list.
I will try to keep my signature link up to date with posted settings, and try to keep an eye out for identical or substantially similar settings.
For those using mobile apps and can't see signatures, here is the link to the scripts.
the backup-script.sh file is in the scripts folder, kernel and pam settings are in the settings folder.
Custom Paths for Per-App Modes
One thing that the stand alone app brought that hasn't (officially?) been ported back to the fku app is custom paths...
Giving you the ability to use any tunable setting in your Per-App Modes. --now in fku
While you can add and edit these easily through the stand alone app (and one reason why I think you should get it) once you know how the files work, thy can also be used in the main fku app...
Because of this, I am somewhat hesitant to give out the directions without approval from franciscofranco... Per-App Modes is a paid app of his and I would hate to take revenue out of his pocket.
Okay, since @franciscofranco has given me permission to release this, here we are...
This Zip file contains all the (useful) per app mode custom paths... to use this DO NOT FLASH IT... this is just a simple zip, nothing else... just unzip it in the right location...
If you use the fku app, then you need to unzip it and move/copy the files from the zipped folder to the franco.kernel_updater/per-app_custom_paths folder.
If you use the standalone per app modes then follow the same directions as fku, but put the files in the per-app_modes/per-app_custom_paths folder
Cautions and Warnings
-Any and all zips you find in this thread should NOT be flashed via recovery, don't try, bad things may happen...
-Permission errors may occur when running scripts from this thread as root. I haven't been able to figure out why, but some roms seems to set various file permissions to 444 instead of the 664 that my script expects... if you do encounter this situation, let me know and I'll give you a quick fix for it (requires adding a line to the scripts)
I haven't added the fix to my backup-script yet because I'm curious what files they are.. I've encountered 2 files so far
- Upon further testing, we've learned that root browser (app) might not work to run these scripts... adb shell and terminal emulator are working properly though. (backup script needed a small tweak as well)
Kernel setting scripts
Nexus 5
STOCK Settings
r46
aow1980
April 17, 2014
The Gingerbread Man
April 13, 2014
Tzfardaya
April 13, 2014
Vomer
July 22, 2014
Per-App Modes
The Gingerbread Man
April 13, 2014
Francisco Franco
May 11, 2014 - Low Power
May 12, 2014 - Games, Low Power
Vomer
May 11, 2014 - Low Power
Subscribed
Sent from my Nexus 5 using XDA Premium 4 mobile app
Subscribed! This is gonna be good! I'll upload a few of my setups soon!
Interesting Kernel settings , will give it a try and test your script. Thanks for sharing. Good luck with your thread
Tapatalk Team SlimRoms
This would be the perfect place to share some custom paths too
Subscribed and I'll see about linking to this thread from my learner lounge
Sent from my Nexus 5 using Tapatalk
The Gingerbread Man said:
This would be the perfect place to share some custom paths too
Subscribed and I'll see about linking to this thread from my learner lounge
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
Yeah, I've got a zip of ALL the custom paths ready, just working on the write up for them...
and trying to solve a small moral dilemma with them...
This thread could also be used for all the supported fku devices if you were to split up the op into several device specific sections and ask about getting the thread moved to Android General forum. New posts can also be inserted on your behalf but you need to contact a moderator for both of these...
Sent from my Nexus 5 using Tapatalk
The Gingerbread Man said:
This thread could also be used for all the supported fku devices if you were to split up the op into several device specific sections and ask about getting the thread moved to Android General forum. New posts can also be inserted on your behalf but you need to contact a moderator for both of these...
Sent from my Nexus 5 using Tapatalk
Click to expand...
Click to collapse
I know, but I don't have the other devices to get the scripts set up for it.. and I'm more interested in working the nexus 5 right now..
I would have no problem if others wanted to use my scripts as a base for writing their own for swapping
Tzfardaya said:
Per-App Modes
The Gingerbread Man
April 13, 2014
Click to expand...
Click to collapse
FYI, getting a bad zip file here, but the tgbm.zip in your sig works just fine
(damn that was hard to write with auto correct on SwiftKey. Lol.)
Sent from my Nexus 5 using XDA Premium 4 mobile app
WettbackMartyr said:
FYI, getting a bad zip file here, but the tgbm.zip in your sig works just fine
(damn that was hard to write with auto correct on SwiftKey. Lol.)
Sent from my Nexus 5 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
heh, yeah, swiftkey autocorrection is a pain at times..
but I just downloaded through both the pc and nexus 5 and got clean downloads of that zip...
I'm not sure if the two gingerbread zip are different, but he just sent me the current batch today... (hence the date in the name) the others are from when I first worked on the scripts
Tzfardaya said:
heh, yeah, swiftkey autocorrection is a pain at times..
but I just downloaded through both the pc and nexus 5 and got clean downloads of that zip...
I'm not sure if the two gingerbread zip are different, but he just sent me the current batch today... (hence the date in the name) the others are from when I first worked on the scripts
Click to expand...
Click to collapse
Hmmmmmm :-/ I just can't get a good download on my Nexus 5. I'm not complaining tho, just trying to help for other people that may encounter the same. I got the scripts on my end one way or another.
Sent from my Nexus 5 using XDA Premium 4 mobile app
WettbackMartyr said:
Hmmmmmm :-/ I just can't get a good download on my Nexus 5. I'm not complaining tho, just trying to help for other people that may encounter the same. I got the scripts on my end one way or another.
Sent from my Nexus 5 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
Try this one https://docs.google.com/file/d/0B2ar5BB6clkDQ0JfMVQ3NGtucEU/edit?usp=docslist_api I probably won't keep it in my drive long but feel free to get it while its there
Sent from my Nexus 5 using Tapatalk
How do I run (as root) or file manager for script ?where do I put the script file for kernel settings? I open the .sh file and it open and I see just texted files
Sent from my Nexus 5 using xda app-developers app
Just tested The Gingerbreads configuration and I must say I definitely see an improvement from the settings I had previously set. Nice job.
The Nexus 5 advocate (Team Inferno)
Ramone360 said:
How do I run (as root) or file manager for script ?where do I put the script file for kernel settings?
Sent from my Nexus 5 using xda app-developers app
Click to expand...
Click to collapse
It doesn't matter where the scripts are ran from, you run them either by selecting them in the file browser or running the following commands in a terminal emulator.
Code:
su
Then
Code:
sh <script-name>
Just realize that running the script alone will not keep the settings across reboots...
You need some other way to persist the settings... Either using fku or an init.d system.
My recommendation is fku, use these scripts to set the values all at once, then use the fku set on boot toggles.
All a shell script is is a text file with a series of shell commands, it's only purpose is to run a series of commands in a row to prevent forgetting one or making typos... It's like the old dos/Windows batch commands...
Tzfardaya said:
It doesn't matter where the scripts are ran from, you run them either by selecting them in the file browser or running the following commands in a terminal emulator.
Code:
su
Then
Code:
sh
Just realize that running the script alone will not keep the settings across reboots...
You need some other way to persist the settings... Either using fku or an init.d system.
My recommendation is fku, use these scripts to set the values all at once, then use the fku set on boot toggles.
All a shell script is is a text file with a series of shell commands, it's only purpose is to run a series of commands in a row to prevent forgetting one or making typos... It's like the old dos/Windows batch commands...
Click to expand...
Click to collapse
Sorry I still don't get it. I'm too familiar with terminal emulater. l always use root explorer. I downloaded the file but now my question is how do I run as root.
Sent from my Nexus 5 using xda app-developers app
Sent from my Nexus 5 using xda app-developers app
To run the script from terminal emulator you'll need to first locate the file.. But you need to be root to launch an .sh file.
Type "su" without quotes and let SuperSU prompt you, make sure you grant it root access.
Navigate to the file by using the "cd" command without quotes.
If you're like me..and downloaded it from a browser or Tapatalk.. You'd type cd storage/sdcard0/Download
Then run "ls" without quotes to make sure the file is in there. Once it is make a note of the name.
Type su FILENAME.sh (replacing filename with the actual name of the file) and hit enter. Should have worked. It did for me. If done correctly you should see no confirmation or error message. In Linux no messages are a good thing.
PS : don't forget to grant root to terminal emulator if you haven't yet. Remember to use FKU or init.d to make settings stick after reboot.
Edited to include "su" command for those who don't know how to run terminal emulator as root.
The Nexus 5 advocate (Team Inferno)

[SCRIPT] Debloat HTC 10

Although HTC 10 comes with less bloat than most other phones, it still has apps preinstalled that some of us probably will never use.
Some of those apps may even run at boot and consume RAM and CPU. For this purpose I made a small script that will remove those apps instead of doing it manually via ADB Shell.
This script is for Mac/OS X/macOS. I think it can also run on Linux but I'm not sure because I don't use Linux much.
For Windows, it can easily be ported to command line. If someone is willing to do it, PM me the script and I will add it to the repo.
Apps that the script removes:
Boost+
Google+ Sense Add-on
Instagram (placeholder app)
LinkedIn Sense Add-on
HTC Mail
Facebook (placeholder app)
Messenger (placeholder app)
News Republic
TouchPal Keyboard (SEE NOTE!)
Twitter Sense Add-on
Voice Recorder
Zoe
HTC Help
IceView Case support
HTC Speak
Transfer my stuff
Google Hangouts
Google Play Music
Basically what the script does:
Mount /system as RW
Delete above apps .apk and containing folder
Reboot after done.
DISCLAIMER: Although I don't see what could possibly go wrong by flashing this script, be sure to back up your ROM before flashing as I don't take any responsibility caused by this script. I have tested it on my HTC 10 and I didn't have any issues.
IMPORTANT NOTE: If you plan to remove TouchPal keyboard, make sure that you have an alternative already installed before or you won't be able to type any text. In case you're reading this after you already screwed up, download your prefered keyboards .apk file and install it via ADB. The script will stop before removing the keyboard and ask if you are sure you want to remove it.
How to:
Enable USB debugging
Connect your phone
Execute "adb shell" and then "su" and grant superuser access to adb shell
(OS X) make script executable (chmod a+x)
Run script
I am open for suggestions and merge requests, happy debloating
The script can be found HERE.
Hoping someone works on the windows version cause i suppose totally run this.
Thanks for sharing
Sent from my HTC 10 using XDA-Developers mobile app
All this can be manually removed simply by hitting uninstall with root access right? Not knocking the script, just asking honestly.
Sent from my SM-G900V using Tapatalk
Just double checking, but I take it that root is required?
Milano_II said:
All this can be manually removed simply by hitting uninstall with root access right? Not knocking the script, just asking honestly.
Sent from my SM-G900V using Tapatalk
Click to expand...
Click to collapse
Ive tried some apps for removal of system apps but it didn't work. And since I play around with ROMs reinstalling and uninstalling app by app takes just to much time.
Milamber said:
Just double checking, but I take it that root is required?
Click to expand...
Click to collapse
Yes, you need root because you need to remove apps from the read-only /system partition.
Got it. Thanks for the reply. I haven't had an htc phone since gingerbread and I mostly had Samsungs on Verizon so I never bothered rooting. I didn't get my 10 yet but I hope to root right away and get rid of things I think are bloat. Probably gonna need this script I guess we'll see. Thanks again!
Sent from my SM-G900V using Tapatalk
very nice, quick and easy one step to uninstall the stuff that is safe to, thank you!
razrlover said:
Hoping someone works on the windows version cause i suppose totally run this.
Thanks for sharing
Click to expand...
Click to collapse
if you like i can take a crack at it, simple batch script should work almost out of the box as long as you have adb set up
ibrokemypie said:
if you like i can take a crack at it, simple batch script should work almost out of the box as long as you have adb set up
Click to expand...
Click to collapse
will you make it for windows please?
@gillim74 @razrlover @dj_chapz
I have made a working copy for windows and added it to a fork of the gitlab repo here: https://github.com/ibrokemypie/htc_10_pme_debloat/blob/master/htc10_bloat_remover.cmd
I will maintain this as long as @dj_chapz does and will pull in any changes he makes.
I usually make changes after a firmware update if I notice any new bloat, but there shouldnt be much changes.
Also, this list is by personal preference, because some apps that I choose to leave others may want to remove or vice versa, so everyone should take the script as a base and edit to their likeing.
ibrokemypie said:
@gillim74 @razrlover @dj_chapz
I have made a working copy for windows and added it to a fork of the gitlab repo here: https://github.com/ibrokemypie/htc_10_pme_debloat/blob/master/htc10_bloat_remover.cmd
I will maintain this as long as @dj_chapz does and will pull in any changes he makes.
Click to expand...
Click to collapse
After running this (windows), and going into Settings > Apps, I get a Loading screen that never ends. Same thing in Titanium backup when it tries to build a db of the installed apps.
typhoonikan said:
After running this (windows), and going into Settings > Apps, I get a Loading screen that never ends. Same thing in Titanium backup when it tries to build a db of the installed apps.
Click to expand...
Click to collapse
which update are you running? still marshmallow or have you gone to nougat? custom rom? and have you tried restarting and perhaps clearing cache/dalvik?
Device or resource busy
Read-only file system
Read-only file system
tried it but all the apps had the above thing ^
nougat,
oh it did work o.o saw the apps for a second, thank you! could i just add the sense apks into the script and remove it the same way?
Dare I ask... why not make a shell script you run from the phone? I'll give it a shot. I wrote one that creates directories so I can use FolderSync to restore settings from the cloud.
Sent from my HTC6545LVW using XDA Labs
SovPanda said:
Device or resource busy
Read-only file system
Read-only file system
tried it but all the apps had the above thing ^
nougat,
oh it did work o.o saw the apps for a second, thank you! could i just add the sense apks into the script and remove it the same way?
Click to expand...
Click to collapse
Hi, did you use the Windows version? Thanks
spacecowboy618 said:
Hi, did you use the Windows version? Thanks
Click to expand...
Click to collapse
windows 10 <--
used the one he has listed to download in the original OP and works

Categories

Resources