boot

android 监听开机(关机)

旧街凉风 提交于 2021-02-13 14:05:21
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"></uses-permission> <receiver android:name=".BootReceiver"> <intent-filter> <action android:name="android.intent.action.BOOT_COMPLETED"/> <action android:name="android.intent.action.ACTION_SHUTDOWN"/> </intent-filter> </receiver> public class BootReceiver extends Receiver { public void onReceive(Context context, Intent intent) { if("android.intent.action.BOOT_COMPLETED".equals(intent.getAction()) { ... } } } 来源: oschina 链接: https://my.oschina.net/u/189801/blog/103144

No display with message:“Guest has not initialized the display (yet).” when I try to run Android on qemu

倖福魔咒の 提交于 2021-02-07 10:46:40
问题 I just try to run android on qemu. I work on an Ubuntu 16.04 with Intel(R) Core(TM) i7-4790 CPU. I sync and compile android-6.0.1_r1 into aosp_arm-eng . I sync and compile qemu 2.9.91 with arm platform. Then, I try to do my job by the following shell code: ANDROID_IMAGE_PATH=${ANDROID_PATH}/out/target/product/generic QEMU_ARCH="arm" QEMU_OPTS="-cpu cortex-a15 -machine type=virt" KERNEL_CMDLINE='console=ttyAMA0,38400 earlycon=pl011,0x09000000 debug nosmp drm.debug=0x0 rootwait androidboot

Android 10.0 Application startup on BOOT

被刻印的时光 ゝ 提交于 2020-12-08 02:07:22
问题 We have an android application which we intend to start/launch during phone boot. With some code tries in Android 10, we realized that the launching of app on boot, is not possible after Android 8.0. Previously in Android 6, it was possible. Even in physical device /phone / emulator Android 10 , we gave permission in AutoStart list our application. << Objective: Any way (workaround) to launch app on boot even on latest versions , i.e. Android 8 onwards ? >> Tries that we made in Android 10:

what is the best way to start a script in boot time on linux

独自空忆成欢 提交于 2020-08-24 03:25:21
问题 I want to start a script I have on when the system start and looking for the best way, my way is: vi /etc/systemd/system/myscript.service [Service] Type=simple ExecStart=/usr/bin/myscript CPUSchedulingPolicy=rr CPUSchedulingPrioty=27 [Install] WantedBy=multi-user.target graphical.target systemctl daemon-reload; systemctl enable myscript; systemctl start rmyscript it's working good but just wondered if there another and better way. 回答1: There are a couple of ways to achieve this, but you will

GNU GAS: Label is not relatively referenced

烈酒焚心 提交于 2020-06-09 04:32:30
问题 I am writing a little bootsector for learning purpose. Here is boot.S .code16 .text movw $0xB800, %ax /* 0xB000 is the text screen video memory */ movw %ax, %es /* set it as the %es segment */ movb label, %al movb %al, %es:0x0 /* screen[0] = 'A' */ movb $0x07, %es:0x1 /* white on black */ jmp . label: .byte 'A .=510 .byte 0x55 .byte 0xAA and here is the Makefile I use to compile it to a raw binary file hdd.img: boot.S as $< -o boot.o ld --oformat binary -Ttext 0x7c00 boot.o -o hdd.img I face

Why does the BIOS entry point start with a WBINVD instruction?

社会主义新天地 提交于 2020-05-25 06:26:47
问题 I'm investigating the BIOS code in my machine (x86_64 Linux, IvyBridge). I use the following procedure to dump the BIOS code: $ sudo cat /proc/iomem | grep ROM 000f0000-000fffff : System ROM $ sudo dd if=/dev/mem of=bios.dump bs=1M count=1 Then I use radare2 to read and disassemble the binary dump: $ r2 -b 16 bios.dump [0000:0000]> s 0xffff0 [f000:fff0]> pd 3 : f000:fff0 0f09 wbinvd `=< f000:fff2 e927f5 jmp 0xff51c f000:fff5 0000 add byte [bx + si], al I know x86 processor initialization

sudo chown -R _www / on mac [closed]

£可爱£侵袭症+ 提交于 2020-04-18 06:11:20
问题 Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed yesterday . help please I used this command sudo chown _WWW:_WWW / this command destroyed my MacBook. I can only open the mac on recovery mode. if I opened and reached the desktop i can't open anything. 来源: https://stackoverflow.com/questions/61258630/sudo-chown-r-www-on-mac

sudo chown -R _www / on mac [closed]

浪子不回头ぞ 提交于 2020-04-18 06:11:11
问题 Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed yesterday . help please I used this command sudo chown _WWW:_WWW / this command destroyed my MacBook. I can only open the mac on recovery mode. if I opened and reached the desktop i can't open anything. 来源: https://stackoverflow.com/questions/61258630/sudo-chown-r-www-on-mac