How do you run apps from script - G1 Q&A, Help & Troubleshooting

I have autostart from the market for running an autostart.sh script on boot but what I want is for that script to run a couple of apks (namely bloo).
How do I get it to do so?

Related

[Q]Comprehensive safe to remove list

I noticed there isn't really a thread with all the apps that are safe to remove in /system/app. I'm not talking about the name of the app (i.e. Media Hub) I'm talking about the APK name (i.e. MediaHub.apk). Also, tips on what happens when you remove certain things. For example you can remove the TouchWiz launcher but you need LPP or ADW in your system folder.
So anyone want to help compile this?
When i remove touchwiz the phone dosnt boot
No list for what is safe to remove, but 1,000's of posts from people who did and regret it.
natious said:
When i remove touchwiz the phone dosnt boot
Click to expand...
Click to collapse
I'm deodexed and I removed TouchWizLauncher30.apk just fine.
Steps I went through:
Boot into CWM
move Launcher Pro from /data/app to /system/app
reboot
if everything is fine at that point, boot back into CWM
shell in with adb
cd /system/app
rm TouchWizLauncher30.apk
reboot
Worked for me. If you are using Boushh's voodoo kernel and recovery you need to disable lagfix before you do it and enable it when you are done, I ran into issues with lagfix enabled.

cannot install apps

i have darktremor A2SD script everything was working fine...i have 48 apps on sd-ext and 634MB free on sd-ext...but now if i try to install anything my phone restarts or says cannot install due to an error...what should i do??? reinstall thhe script??
M1hai said:
i have darktremor A2SD script everything was working fine...i have 48 apps on sd-ext and 634MB free on sd-ext...but now if i try to install anything my phone restarts or says cannot install due to an error...what should i do??? reinstall thhe script??
Click to expand...
Click to collapse
run a2sdgui app if it show errors with 3 reasons then install the script again but do it manually
ectract the script and manually copy the files to their respective folders do not copy folders directly
M1hai said:
i have darktremor A2SD script everything was working fine...i have 48 apps on sd-ext and 634MB free on sd-ext...but now if i try to install anything my phone restarts or says cannot install due to an error...what should i do??? reinstall thhe script??
Click to expand...
Click to collapse
run a2sdgui app if it show errors with 3 reasons then install the script again but do it manually
ectract the script and manually copy the files to their respective folders do not copy folders directly
well after some workaround i installed ungaze script and is so much better than A2SD

[TOOL]Semi-auto bloatware remover for Xperia pro et al v0.1

I made a simple script for my own use that does pretty much the same job as Knight47's auto bloatware remover.
The main difference is that mine reads the list of removed apps from a separate text-file that can be adjusted to taste.
Root required!
How to use:
1. Backup your phone with nandroid!
2. Unzip zip-file to some folder
3. Connect USB cable to phone and make sure USB debugging is turned on
4. Run debloat.cmd
5. Reboot
6. Enjoy fat-free phone
It MIGHT be necessary to clean Dalvik-cache afterwards if the phone does not rebuild dalvik cache automagically ("updating android"-message during reboot)
I wrote this for Xperia Pro Mk16i ICS, which had some differences from the main APP-list:
SEMCFacebookProxy.apk --- appears to be more facebook stuff
livewaremanager.apk -- all in lower-case now
letsgolf_i.apk -- filename has changed
Also some files listed in the app collection did not exist here. ALL files from main Xperia arc app list are included anyways.
I'm removing:
Browser.apk
facebook.apk
Gmail.apk
GMS_Maps.apk
Maps.apk
Street.apk
YouTube.apk
These apps take double space after you install updates for them so it makes sense to remove them from system. If you already have updated them, there's no need to do anything, otherwise download them from play store.
With regards to stock browser, if you don't have chrome or similar, just comment it out.
..
Changes in v0.2:
Fixed script syntax
Delete .apk and .odex files
Added some files to kill-list:
weatherwidget
com.google.android.youtube-1
SemcCamera3D
SemcSnpVideoPlayer
Semcsdnla
Wait for keypress after finished + reboot into recovery to clean dalvik.
v0.21
Do not delete google maps and youtube app by default, change advisor text
nothing happened. i have rooted phone and busybox
my bloat.txt is something like this(only apps, no cements)
EventStream.apk
EventStreamPluginCallLog.apk
EventStreamPluginFacebook.apk
EventStreamPluginTelephony.apk
EventStreamPluginTwitter.apk
usb conection mode is mass storagemode
ics 4.0.4
seljachina said:
nothing happened. i have rooted phone and busybox
my bloat.txt is something like this(only apps, no cements)
EventStream.apk
EventStreamPluginCallLog.apk
EventStreamPluginFacebook.apk
EventStreamPluginTelephony.apk
EventStreamPluginTwitter.apk
usb conection mode is mass storagemode
ics 4.0.4
Click to expand...
Click to collapse
Are those files in /system/app ? You have ADB drivers installed?
What exactly happens when "nothing happens"? Can you start the script from cmd and tell me what it says?
yes those are apps from /system/app
here is a screenshot of cmd(cmd window is auto closed 1-2 seconds after i run debload.cmd)
on phone is displayed "shell has been granted superuser permission"
can i edit bload.txt in notepad or another text editor?
seljachina said:
yes those are apps from /system/app
here is a screenshot of cmd(cmd window is auto closed 1-2 seconds after i run debload.cmd)
on phone is displayed "shell has been granted superuser permission"
can i edit bload.txt in notepad or another text editor?
Click to expand...
Click to collapse
That's the whole idea, you can edit it. Did you? It looks like the bloat.txt is not in the right place or perhaps has empty lines or something..
command prompt stays open if you run cmd.exe from start menu. Or ctrl-right click on a folder and "open command window here"
yes i did
i notice the difference.. your adb.exe is about 2mb, my adb.exe is 150kb?! maybe that is problem, some drivers.. who knows. (when i try with my adb.exe, it just say "waiting for device").. i manually remove bloatware
I upgraded into omega rom recently that retains some of the cruft in stock rom. So I updated my debloater. Script has been revised to actually work , I must have attached a wrong version by mistake. It now also wipes out .odex files if present. Because of this, deleted filenames are without extension (.apk) in bloat.txt.
To make this really elegant, files should be actually un-installed as now there may be some libraries and data left behind. I'm not going to trace down package name for each and every sony bloatware today, though.
Finally, dalvik cache needs to be wiped to remove the orphaned odex cache files which take most of the space.
It is actually possible to reclaim a lot of space by using titanium backup to integrate some large apps into ROM. Preferably those which do not allow you to move them into sdcard and/or work badly if linked with link2sd. In my phone I have 130MB of free space in the system partition so Chrome alone gives a big chunk of free space for other apps.
After thinking this through, there is NO benefit into removing system apps if you're going to reinstall them from play store anyways. It's better to use titanium backup to integrate any updates into ROM which actually gives more room for apps. I removed google maps and youtube from being deleted by default. Some people may want to edit bloat.txt for facebook and gmail app as well.
Bash script port for linux users
This might not be useful for many people, but I use Linux and I converted this script to work with bash.
Download and run the script as su or sudo.

Integrate Updated System Apps

Hi there i have 4.0.2 rooted working right now but i like to integrate the updates of system apps to have some space. I have been doing it with all my phones and all android versions with rooted and r/w system parts file managers by copy&paste and giving right permissions (644) but i understand that something changed in nougat the way system apps are handled. when i push an apk as a system app and reboot, app disappears even if i gave right permissions. Some apps have libs and odex files also. For example Google Play Store app appears as /system/priv-app/Phonesky/Phonesky.apk but updated version is in data/app/com.android.vending-1 which contains lib and oat folders and base.apk. i used to copy just the apk file in exchange of phonesky.apk and chmod 644 reboot and go! that doesn't work anymore. i tried several apps like link2sd and system file mover, they won't work too. thanks for any help.
I figured how, and want to reply my own question
tried open gapps aroma installer and selected the ones that i want to remain and gapps did the rest. now my device has no updated system google apps. instead all gapps are under system.
AFAIK Titanium Backup has an option to intergrate system apps updates to /system

How remove the Blotwares STEP by STEP

With the intention of helping all those who have difficulties in removing blotwares even with programs like TITANIUM and others..
Here is a small step by step that I did to remove the blotwares..
STEP - 1
You install the app available in the playstore, called System app remover Https://play.google.com/store/apps/details?id=com.jumobile.manager.systemapp&hl=en_US
1.1)
You need to install the app available in the playstore, called Termux Https://play.google.com/store/apps/details?id=com.termux&hl=en_US
1.2)
grants root access to the 2 apps.
STEP - 2
Perform apk removal With the Termux application open,
you enter as root
-> su (enter as root)
You should now allow to modify the directory system
-> mount -o remount, rw -t rfs /dev/stl5 /system
Now you need to get into the "System app remover" application and pick up the APP directory you want to remove.
-> rm -r [DIRECTORY]
Now you need to return the directory system to read only, 'ro', to prevent malicious activities
-> mount -o remount, ro -t rfs /dev/stl5 /system
Restart your phone and you can see that the app is no longer on your device.
NOTE: If you can not go back to read only, after the system reboot you will be able to.
My mobile got much faster and with no crashes after deleting these apps ...
I had difficulty removing blotwares from a rom I downloaded that is available on this link for ZUK Z2 PRO
https://forum.xda-developers.com/zuk-z2-pro/development/miui-8-version-zuk-z2-pro-t3563578
ALERT: As all androis have the same command system, should work for any device, but be careful not to remove applications essential for system operation. It can cause an infinite loop in system reboot.
If you have a rooted phone, you can just download "ES Datei Explorer", grant root access and remove the folders in /system/app , /system/priv-app , /system/preload of the apps you don´t want. After reboot, you´ll just have to remove the icons from your homescreen.
Make a backup by moving the folders somewhere else. You´ll never know when you need one of these "unnecessery" apps.
Tuerkay said:
If you have a rooted phone, you can just download "ES Datei Explorer", grant root access and remove the folders in /system/app , /system/priv-app , /system/preload of the apps you don´t want. After reboot, you´ll just have to remove the icons from your homescreen.
Make a backup by moving the folders somewhere else. You´ll never know when you need one of these "unnecessery" apps.
Click to expand...
Click to collapse
Well thought, I'm accustomed to using linux, commands are the same, so it was something that I created in a "homemade" way and decided to share. This app actually displays the root directory, so, it's very good and less difficult, but the app remover can be useful for help you to know what file you need remove..
Thanks for adding the information ..
This is the link what app he's talking about
https://play.google.com/store/apps/details?id=com.estrongs.android.pop
Grants root access and go to directory for remove the file you want.
can anything be done without rooting?
akyiboy007 said:
can anything be done without rooting?
Click to expand...
Click to collapse
This procedure can not do without root, but, have one way you can do without root, i never tested.
This is the link, for Android 4.4, i don't know if works for 5.0 , 6.0 or 7.0, take a look...
https://www.xda-developers.com/how-to-remove-bloatware-from-your-android-device-xda-tv/

Categories

Resources