forked from ezio84/scripts
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcommand-list.txt
92 lines (64 loc) · 3.69 KB
/
command-list.txt
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
. scripts/build_rom.sh angler nosync noclean log on
. scripts/build_apk.sh angler nosync noclean log SystemUI
. scripts/build_apk.sh angler nosync noclean log Settings
. scripts/build_apk.sh angler nosync noclean log Gallery2
. scripts/build_apk.sh angler nosync noclean log OmniSwitch
. scripts/build_apk.sh angler nosync noclean log ThemeInterfacer
. scripts/build_kernel.sh angler log
linux kernel new tags: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git/
git push abc n2
adb root
adb remount
adb push Settings.apk /system/priv-app/Settings/Settings.apk
adb push SystemUI.apk /system/priv-app/SystemUI/SystemUI.apk
find strings in the rom source: grep -r "TEXTtoFIND"
find commit msg in the history: git log --grep="<part_of_commit_message>"
adb connect YourLocalIP:5555
ccache -C to reset ccache
git checkout --theirs (during a commit to get the file straight from the remote)
fetch only current branch from server: repo sync -c (or --current-branch)
force sync and don't care about repo errors: repo sync -f
to type a tilde ~: AltGR+ì (or Alt+126 on Win)
Shift + Alt Gr + è --for: {
Shift + Alt Gr + + --for: }
git push ssh://[email protected]:29418/android_external_DUtils/ HEAD:refs/for/n7x
git push ssh://[email protected]:29418/SubstratumResources/platform_frameworks_base HEAD:refs/for/n-mr1-oms7
git push ssh://[email protected]:29418/SlimRoms/frameworks_opt_slim HEAD:refs/for/ng7.1
to add a topic to the commit: HEAD:refs/for/lp5.1l%topic=XXXXXXX
git push ssh://[email protected]:29418/AOSPA/android_frameworks_base HEAD:refs/for/nougat-mr2
To install hooks (useful to automatically add a commit ID)
gitdir=$(git rev-parse --git-dir); scp -p -P 29418 [email protected]:hooks/commit-msg ${gitdir}/hooks/
git remote set-url github http://github.com/ezio84/... (to set a new url for the remote)
./fetch-merge-purenexus.sh
fake merge: git merge purenexus/n -s ours
Merge tip and tricks:
git merge <CURRENT_TAG> --edit -m "Merge <KERNEL_VERSION> into <BRANCH>
$(git log --oneline <PREV_TAG>..<CURRENT_TAG>)
Signed-off-by: Nathan Chancellor <[email protected]>"
Example: https://github.com/nathanchance/angler/commit/e6bcb5b9d46020b83623bde61e99415ff2a05e5c
git merge v3.10.74 --edit -m "Merge 3.10.74 into 7.1.2-base
$(git log --oneline v3.10.73..v3.10.74)
Signed-off-by: Nathan Chancellor <[email protected]>"
ADB LOGCAT commands
V Verbose (show all possibly useless logs, default level)
D Debug (show all reasonable debug logs)
I Info (show expected logs for regular usage)
W Warn (show possible issues that are not yet errors)
E Error (show issues that have caused errors)
F Fatal (show issues that are fatal to runtime and will often result in rebooting)
----------
LINUX:
CTRL-ESC - brings up a proces table where you can kill individual processes
CTRL-ALT-ESC - makes the cursur into a skill and cross bones where you can point at a rogue application and kill it
X can be killed with CTRL-ALT-BackSpace
If you hit Ctrl-Alt-F1 (or F2 through 6), you'll be dropped to a virtual console - to return kde: CTRL+ALT+F7.
opensuse shutdown from terminal: qdbus org.kde.ksmserver /KSMServer logout 0 2 2
0 1 2 for reboot
without su or sudo
kdesu APPNAME
e.g.: kdesu kwrite
otherwise open Su dolphin and open the file from it, it will be editable as root
Start kde:
First, try to run simply 'X' . If it doesn't run, it should be debugged separately (for this you'd better create a new thread and leave a link to it here).
Second, try 'init 5'. If everything was set up correctly, it will give you X login screen.
If it fails, run 'xinit' . You'll have X session with a terminal. Try 'startkde'.