forked from dsixda/Android-Kitchen
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathadd_data_app
More file actions
executable file
·71 lines (58 loc) · 1.46 KB
/
add_data_app
File metadata and controls
executable file
·71 lines (58 loc) · 1.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
############################################################################
#
# Copyright (c) 2011 - dsixda ([email protected])
#
# Android Kitchen is 100% free. This script file is intended for personal
# and/or educational use only. It may not be duplicated for monetary
# benefit or any other purpose without the permission of the developer.
#
############################################################################
if [ "$1" == "" ]
then
clear
elif [ "$1" == "show_help" ]
then
clear
echo
echo "------------------------------------------------------------------"
echo
echo "Copying your apps to the /data/app folder (instead of /system/app)"
echo "allows you to update them from the Android Market or to uninstall"
echo "them easily from your device when you no longer want them."
echo
echo "------------------------------------------------------------------"
echo
fi
if [ "$1" != "dont_ask" ]
then
echo -n "Proceed with /data/app feature (y/n)? (default: y): "
read do_app
if [ "$do_app" == "n" ]
then
exit 0
fi
fi
echo
if [ -d WORKING_* ]
then
echo Working folder found
cd WORKING_*
else
echo Working folder not found, you will need to create one!
exit 0
fi
if [ -d data/app ]
then
echo /data/app already exists
else
echo Creating /data/app
mkdir -p data/app
fi
if [ ! -e data/app/placeholder ]
then
touch data/app/placeholder
fi
cd ..
scripts/add_data_app_to_update_script
echo
echo "Finished adding /data/app"