• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Aucun tag

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

bootable/newinstaller


Commit MetaInfo

Révision63c8e6b253776139812041811125ca81791cad75 (tree)
l'heure2019-12-27 16:23:24
AuteurChih-Wei Huang <cwhuang@linu...>
CommiterChih-Wei Huang

Message de Log

init: do not modify /default.prop

Modifying /default.prop doesn't work in Android 10.

Change Summary

Modification

--- a/initrd/init
+++ b/initrd/init
@@ -212,11 +212,8 @@ if [ 0$DEBUG -gt 1 ]; then
212212 echo -e "Type 'exit' to enter Android...\n"
213213
214214 debug_shell debug-late
215- SETUPWIZARD=${SETUPWIZARD:-0}
216215 fi
217216
218-[ "$SETUPWIZARD" = "0" ] && echo "ro.setupwizard.mode=DISABLED" >> default.prop
219-
220217 [ -n "$DEBUG" ] && SWITCH=${SWITCH:-chroot}
221218
222219 # We must disable mdev before switching to Android
--- a/initrd/scripts/4-dpi
+++ /dev/null
@@ -1,17 +0,0 @@
1-#
2-# By Chih-Wei Huang <cwhuang@linux.org.tw>
3-# Last updated 2012/02/08
4-#
5-# License: GNU Public License
6-# We explicitely grant the right to use the scripts
7-# with Android-x86 project.
8-#
9-
10-setup_dpi()
11-{
12- if [ -n "$DPI" ]; then
13- grep -v ro.sf.lcd_density default.prop > tmp.prop
14- echo ro.sf.lcd_density=$DPI >> tmp.prop
15- mv tmp.prop default.prop
16- fi
17-}