[Q] Zombies - Gen8, Gen9, Gen10 Q&A, Help & Troubleshooting

Running the stock Android (fw. 2.4.80), I see hundreds of zombies:
Code:
$ adb shell
/ $ ps | grep Z
...
32260 root Z [sh]
32355 root Z [sh]
32449 root Z [sh]
32602 root Z [sh]
32698 root Z [sh]
/ $ ps | grep Z | wc -l
571
Is this normal?

Related

[script] Theme Loader - Theme installer for all devices

Use at your own risk! I am not responsible for any bricked devices. You have been warned.
I have only tested this on a droid 1 so if any brave soul uses it shoot me some feedback.
Theme Loader is a script that installs custom themes for any rooted device. I wrote it because I saw some terrible instructions on how to load themes for devices that didn't have a custom recovery yet. This script should work on any device and I hope it's useful for those who do not yet have a custom recovery or who just choose to use this.
Theme Loader Script:
----------------------
----------------------
(right click and save)
Install the script:
** note: must have busybox installed **
1. Download load_theme
2. Place load_theme on the root of your sdcard
3. Download a terminal emulator app from the market
4. Open terminal and type:
PHP:
su
** mount system read/write here (need command for specific device) **
cp -f /sdcard/load_theme /system/xbin
chmod 0755 /system/xbin/load_theme
Load a theme:
1. Place all the files you want to install in a directory called "new_theme"
** for a template of how it should look like download the zip below **
2. Place the directory new_theme on the root of your sdcard
3. In terminal or adb shell type:
PHP:
su
load_theme [options]
4. Watch as your new theme installs.
load_theme options:
PHP:
Usage: load_theme [-a|-b|-c|-f|-fs|-m|-l|-r|-z|-v|-h]
Options:
-a | --apps Installs themed apps
-b | --backup Backs up current system settings
-c | --complete Installs full theme
-f | --framework Installs framework
-fs | --fonts Installs fonts
-l | --logging Disable logging for this run
-m | --media Installs media files
-r | --restore Restores system backup
-z | --zipalign Zipaligns all apks
-v | --version Print version
-h | --help This help
Always specify options as separate words
e.g. -a -f instead of -af. Its required!
Examples:
This will install the full theme and turn off logging:
PHP:
su
load_theme -l -c
This will zipalign all your apps and backup your system:
PHP:
su
load_theme -z -b
Well, I followed the directions and had a successful backup. Worked perfectly. Excellent job!
Now I just need a theme. Has anyone seen any for the rooted droid 2?????
Droid 2
OS 2.2.20
Rooted following directions in XDA thread
rummy, is does this just copy a framework or copy all images from one into the other? (in other words, does this require a droid 2 specific theme?)
I got this when I tried to load a theme, the only file in the theme was /sdcard/new_theme/framework/framework-res.apk:
Code:
# load_theme -c
load_theme -c
Zipaligning all apks...
find: not found
No themed apps found. Skipping...
No custom fonts found. Skipping...
Media not found. Skipping...
wc: not found
find: not found
-gt: unexpected operatorNo framework found. Skipping...
------------------------------------
___
| |_ _ ._ _ _ | _ _. _| _ ._
| | |(/_| | |(/_ |_(_)(_|(_|(/_|
-JRummy16
------------------------------------
Changes were made to your system requiring a reboot.
Your device will reboot in 5 seconds...
KalenXI said:
I got this when I tried to load a theme, the only file in the theme was /sdcard/new_theme/framework/framework-res.apk:
Code:
# load_theme -c
load_theme -c
Zipaligning all apks...
find: not found
No themed apps found. Skipping...
No custom fonts found. Skipping...
Media not found. Skipping...
wc: not found
find: not found
-gt: unexpected operatorNo framework found. Skipping...
------------------------------------
___
| |_ _ ._ _ _ | _ _. _| _ ._
| | |(/_| | |(/_ |_(_)(_|(_|(/_|
-JRummy16
------------------------------------
Changes were made to your system requiring a reboot.
Your device will reboot in 5 seconds...
Click to expand...
Click to collapse
odd... Looks like you don't have busybox installed because those are all busybox commands that look to be missing. But.... I put a pre-req check in the script to check for busybox so that's weird. Do you have busybox installed?
JRummy, I am getting the same errors and as far as I know busy box is installed. (all the cp commands worked fine as did titanium backup
I was experimenting with bgill55's black ice. unzipped and put each of the components in the appropriate New_theme directory.
Thanks for your help.
marsha12151 said:
JRummy, I am getting the same errors and as far as I know busy box is installed. (all the cp commands worked fine as did titanium backup
I was experimenting with bgill55's black ice. unzipped and put each of the components in the appropriate New_theme directory.
Thanks for your help.
Click to expand...
Click to collapse
ok.. I know what's going on.. Since busybox isn't symlinked it won't work properly because I forget a couple variables in spots. I'll fix it and upload tomorrow.

About Google Maps 6.10.0 and extra memory consumption (dex files in app_ folder)

Hi,
I own a (quite old now) Google Nexus One and I recently upgraded from Google Maps v6.9.0 to Google Maps v6.10.0
And I was quite surprised to see my user memory decrease a lot while the install apk is quite the same between both versions.
My Nexus One is rooted and running stock Android 2.3.6 (GB, not ICS)
So I investigated and here is what I found about this new version of Google Maps.
First, you must know that the memory available to the user to install new applications is mounted by the android system as '/data'.
So I searched in '/data' and subfolders what may take more memory than before.
By running a 'du' command, I discovered that the following folder:
Code:
/data/data/com.google.android.apps.maps/app_
takes 11.9 Mo, which is a lot.
I decided to see what's inside.
Code:
# ls -l /data/data/com.google.android.apps.maps/app_ | busybox grep -i map
ls -l /data/data/com.google.android.apps.maps/app_ | busybox grep -i map
-rw-r--r-- app_4 app_4 5699944 2012-08-19 00:55 Maps.dex
-rw-r--r-- app_4 app_4 5699944 2012-08-19 00:37 com.google.android.apps.maps-1.dex
Code:
# ls -l /data/dalvik-cache/ | busybox grep -i map
ls -l /data/dalvik-cache/ | busybox grep -i map
-rw-r--r-- system app_90 743064 2012-07-13 01:11 [email protected]@[email protected]
[email protected]
-rw-r--r-- system app_4 5699944 2012-08-19 00:43 [email protected]@[email protected]
--> all those .dex files look similar
--> is it really required to have the 3 of them???
--> I try and delete the ones in /data/data/com.google.android.apps.maps/app_
Code:
# rm Maps.dex
rm Maps.dex
# rm com.google.android.apps.maps-1.dex
rm com.google.android.apps.maps-1.dex
--> then I reboot and I run again Google Maps
--> ... and I check the folder again
Code:
# ls -l /data/data/com.google.android.apps.maps/app_ | busybox grep -i map
ls -l /data/data/com.google.android.apps.maps/app_ | busybox grep -i map
-rw-r--r-- app_4 app_4 5699944 2012-08-19 16:29 Maps.dex
--> This file has then been created again by Google Maps when running it!!!
--> BUT at least the com.google.android.apps.maps-1.dex file has disappeared
--> I then try to delete the one in the Dalvik Cache and see if it gets created again as well
Code:
# cd /data/dalvik-cache/
cd /data/dalvik-cache/
# ls -l /data/dalvik-cache/ | busybox grep -i map
ls -l /data/dalvik-cache/ | busybox grep -i map
-rw-r--r-- system app_90 743064 2012-07-13 01:11 [email protected]@[email protected]
[email protected]
-rw-r--r-- system app_4 5699944 2012-08-19 00:43 [email protected]@[email protected]
# rm [email protected]@[email protected]
rm [email protected]@[email protected]
--> reboot
--> after reboot, the /data/dalvik-cache/[email protected]@[email protected] file gets created again
The CONCLUSION of all of this is that Google Maps maintains now mandatorily a copy of the Dalvik Cache .dex file inside the
/data/data/com.google.android.apps.maps/app_
folder!
5.4M wasted... (in my case)
Thanks Google!
spoutnik
So what does that mean.
In lest technical term.
To update or not update is the question???
Sent from my LG-P999 using xda premium
Hi,
As I explained in my conclusion, you'll lose an extra 5/6 Mo when installing this new Google Maps version.
It might be a concern to those not having much memory to install applications.
If you've got a lot of RAM to install applications, don't worry and install because new Google Maps features are great.
But if you're almost out of memory for applications (it was my case), avoid this new version.
Not much more to say.
spoutnik
KRAZYADROIDMASTER said:
So what does that mean.
In lest technical term.
To update or not update is the question???
Sent from my LG-P999 using xda premium
Click to expand...
Click to collapse

Script help

I'm trying to write a script to check the size of a directory on my sdcard. Playing around in terminal emulator I can't figure it out.
With this command.
du -h /storage/sdcard/backups
I get an error saying.
usage: du [-H | -L | -P] [-a | -d depth | -s] [-cgkmrx] [file ...
If I use -H
It gives me an output but it doesn't correlate with what's in the folder?
Am I doing something wrong?
Sent from my LG-D802 using Tapatalk
Still struggling here!
Sent from my LG-D802 using Tapatalk

[Q] Need urgent help with adb fastboot nandroid backup (paid assistance)

Hi,
I have idea like "backup all data (include apps, accounts, system settings) -> wipe all data -> upload backup -> start device", but backup upload on server by ftp/sftp.
After few times another script download necessary backup and upload on phone by adb/fastboot and start device.
Now i create backup by this script (sorry, i`m only learn)
Code:
adb wait-for-device
set dirname=%date:~0,2%%date:~3,2%%date:~8,2%%time:~0,2%%time:~3,2%
mkdir %dirname% > NULL
adb shell su -c "dd if=/$(ls -la /dev/block/platform/msm_sdcc.1/by-name | grep system | sed -r 's/.* .//') of=/sdcard/blkbackup.img"
adb pull /sdcard/blkbackup.img %dirname%\system.img
adb shell rm /sdcard/blkbackup.img
adb shell su -c "dd if=/$(ls -la /dev/block/platform/msm_sdcc.1/by-name | grep boot | sed -r 's/.* .//') of=/sdcard/blkbackup.img"
adb pull /sdcard/blkbackup.img %dirname%\boot.img
adb shell rm /sdcard/blkbackup.img
adb shell su -c "dd if=/$(ls -la /dev/block/platform/msm_sdcc.1/by-name | grep recovery | sed -r 's/.* .//') of=/sdcard/blkbackup.img"
adb pull /sdcard/blkbackup.img %dirname%\recovery.img
adb shell rm /sdcard/blkbackup.img
adb shell su -c "dd if=/$(ls -la /dev/block/platform/msm_sdcc.1/by-name | grep cache | sed -r 's/.* .//') of=/sdcard/blkbackup.img"
adb pull /sdcard/blkbackup.img %dirname%\cache.img
adb shell rm /sdcard/blkbackup.img
adb shell su -c "dd if=/$(ls -la /dev/block/platform/msm_sdcc.1/by-name | grep userdata | sed -r 's/.* .//') of=/sdcard/blkbackup.img"
adb pull /sdcard/blkbackup.img %dirname%\userdata.img
adb shell rm /sdcard/blkbackup.img
adb shell "pm list package -s" > %dirname%\system.apps.list
adb shell "pm list package -3" > %dirname%\3d-party.apps.list
i think what this logicaly work, but in realy - dont work and i cant upload backup in server.
can you explain me how i can create fully backup android device and restore it adter few days in device by shellscript.
In an ideal world I see it this way:
1) made a backup using http://forum.xda-developers.com/showthread.php?t=1620255
2) loading on server
3) another script download the desired backup and load it on your phone or PC
4) install
4.1) profit
PS Since I need it urgently enough and I tried huge amount of scripts and commands - asking for your help (in debt will not stay).
PPS ubuntu
Skype: a.roman2403

[TERMINAL] Android 5.0+ am force-stop error !

Hi everyone !
When i write "am force-stop packagename" on terminal it gives this error. PLEASE HELP ME !
Try this:
ps | grep com.ps | grep nextapp.fx | awk '{print $2}' | xargs killpackage.name | awk '{print $2}' | xargs kill

Categories

Resources