紧急求助,app无法启动的问题

痆古酊旳琲伤 2019-03-25 02:57:25
做在一台仪器上的APP,开关机是直接开关电源的。

定制的一个ROM,把APP作为唯一的launcher启动,已有root权限

利用root权限进行静默安装,代码如下
// 申请su权限
Process process = Runtime.getRuntime().exec("su");
dataOutputStream = new DataOutputStream(process.getOutputStream());
// 执行pm install命令
String command = "pm install -r -d " + apkPath + "\n";
dataOutputStream.write(command.getBytes(Charset.forName("utf-8")));
dataOutputStream.flush();
dataOutputStream.writeBytes("exit\n");
dataOutputStream.flush();
process.waitFor();

升级完成,因为需要在android.intent.action.BOOT_COMPLETED广播里面启动一些控制线程,所以直接关闭电源重启

然后上电启动,android开机动画放完之后APP不会启动,一直卡在最后一个动画上
...全文
617 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
痆古酊旳琲伤 2019-04-01
  • 打赏
  • 举报
回复
[ 1.195000] print_constraints: VDD33_UOTG: 3300 mV [ 1.200000] print_constraints: VDD10_USH: 1000 mV [ 1.200000] print_constraints: VDD18_HSIC: 1800 mV [ 1.200000] print_constraints: VDDIOPERI_28: 3300 mV [ 1.215000] print_constraints: DC33V_TP: 3300 mV [ 1.215000] print_constraints: VDD28_CAM: 1800 mV [ 1.215000] print_constraints: VDD28_AF: 2800 mV [ 1.215000] print_constraints: VDDA28_2M: 2800 mV [ 1.220000] print_constraints: VDD28_TF: 2800 mV [ 1.230000] print_constraints: VDD33_A31: 3300 mV [ 1.250000] print_constraints: VDD18_CAM: 1800 mV [ 1.255000] print_constraints: VDD18_A31: 1800 mV [ 1.255000] print_constraints: GPS_1V8: 1800 mV [ 1.255000] print_constraints: DVDD12: 1200 mV [ 1.260000] -s5m8767_pmic_probe() [ 1.260000] s5m87xx 1-0066: S5M87xx MFD probe done!!! [ 1.260000] s3c-i2c s3c2440-i2c.1: i2c-1: S3C I2C adapter [ 1.260000] s3c-i2c s3c2440-i2c.3: i2c-3: S3C I2C adapter [ 1.260000] s3c-i2c s3c2440-i2c.4: i2c-4: S3C I2C adapter [ 1.260000] s3c-i2c s3c2440-i2c.5: i2c-5: S3C I2C adapter [ 1.260000] s3c-i2c s3c2440-i2c.7: i2c-7: S3C I2C adapter [ 1.260000] Advanced Linux Sound Architecture Driver Version 1.0.24. [ 1.260000] Bluetooth: Core ver 2.16 [ 1.260000] NET: Registered protocol family 31 [ 1.260000] Bluetooth: HCI device and connection manager initialized [ 1.260000] Bluetooth: HCI socket layer initialized [ 1.260000] Bluetooth: L2CAP socket layer initialized [ 1.260000] Bluetooth: SCO socket layer initialized [ 1.260000] cfg80211: Calling CRDA to update world regulatory domain [ 1.260000] Switching to clocksource mct-frc [ 1.261037] Switched to NOHz mode on CPU #0 [ 1.261261] Switched to NOHz mode on CPU #3 [ 1.261267] Switched to NOHz mode on CPU #2 [ 1.261274] Switched to NOHz mode on CPU #1 [ 1.261816] NET: Registered protocol family 2 [ 1.261980] IP route cache hash table entries: 32768 (order: 5, 131072 bytes) [ 1.262576] TCP established hash table entries: 131072 (order: 8, 1048576 bytes) [ 1.264078] TCP bind hash table entries: 65536 (order: 7, 786432 bytes) [ 1.264882] TCP: Hash tables configured (established 131072 bind 65536) [ 1.264898] TCP reno registered [ 1.264913] UDP hash table entries: 512 (order: 2, 16384 bytes) [ 1.264951] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes) [ 1.265238] NET: Registered protocol family 1 [ 1.265376] Trying to unpack rootfs image as initramfs... [ 1.282446] Freeing initrd memory: 320K [ 1.282543] PMU: registered new PMU device of type 0 [ 1.282706] Exynos4 : ARM Clock down on idle mode is enabled [ 1.283551] regulator_consumer_probe: loading tc4-regulator-consumer [ 1.283571] Register vdd_consumer_early_suspend done [ 1.284190] Loaded driver for PL330 DMAC-0 s3c-pl330 [ 1.284206] DBUFF-64x8bytes Num_Chans-8 Num_Peri-1 Num_Events-32 [ 1.284503] Loaded driver for PL330 DMAC-1 s3c-pl330 [ 1.284518] DBUFF-32x4bytes Num_Chans-8 Num_Peri-32 Num_Events-32 [ 1.284617] Loaded driver for PL330 DMAC-2 s3c-pl330 [ 1.284632] DBUFF-32x4bytes Num_Chans-8 Num_Peri-32 Num_Events-32 [ 1.291074] highmem bounce pool size: 64 pages [ 1.291087] ********************************************** [ 1.291100] Carson aigs read server gpio con value start [ 1.291152] read GPK3CON_PA :0x1100000 [ 1.291163] read GPZCON_PA :0x0 [ 1.291172] read GPL0CON_PA :0x10000 [ 1.291182] read GPL0DAT_PA :0x0 [ 1.291191] read GPK3DAT_PA :0x40 [ 1.291200] read GPX2CON_PA :0x0 [ 1.291209] read GPX2DAT_PA :0xd [ 1.291217] ********************************************** [ 1.291422] ashmem: initialized [ 1.299899] fuse init (API version 7.16) [ 1.300240] msgmni has been set to 560 [ 1.300871] io scheduler noop registered [ 1.300885] io scheduler deadline registered [ 1.300942] io scheduler cfq registered (default) [ 1.301807] value1 = 0, value2 = 1, type = 0x1 [ 1.555048] (s3cfb_cfg_gpio, 96): BK_VDD_ON [ 1.660086] (s3cfb_cfg_gpio, 116): LCD_PWDN ON [ 1.667647] [ 1.667650] CPU type: [ 1.667661] Exynos 4412 [ 1.667673] value1 = 0, value2 = 1, type = 0x1 [ 1.677930] parent clock: 800000000, vclk: 62496000, vclk div: 13 [ 1.927607] (s3cfb_backlight_on, 359): LCD_PWM_ON [ 1.932619] (s3cfb_backlight_on, 428): VGA_EN_ON [ 1.932634] (s3cfb_backlight_on, 441): BK_VDD_ON [ 1.932653] s3cfb s3cfb.0: registered successfully [ 1.933323] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled [ 2.215259] s5pv210-uart.0: ttySAC0 at MMIO 0x13800000 (irq = 16) is a S3C6400/10 [ 2.295062] s5pv210-uart.1: ttySAC1 at MMIO 0x13810000 (irq = 20) is a S3C6400/10 [ 2.375060] s5pv210-uart.2: ttySAC2 at MMIO 0x13820000 (irq = 24) is a S3C6400/10 [ 3.498021] console [ttySAC2] enabled [ 3.580061] s5pv210-uart.3: ttySAC3 at MMIO 0x13830000 (irq = 28) is a S3C6400/10 [ 3.660986] ********************************************** [ 3.664993] Carson aigs read server gpio con value start [ 3.670328] read GPL0DAT_PA :0x10 [ 3.673586] read GPK3DAT_PA :0x0 [ 3.676810] read GPX2DAT_PA :0xd [ 3.680020] ********************************************** [ 3.685487] SI GPS Initialize [ 3.688706] max485_ctl Initialize [ 3.692003] Carson aigs read other gpio con value start [ 3.696955] read GPD0DAT_PA :0xe
痆古酊旳琲伤 2019-04-01
  • 打赏
  • 举报
回复
[ 0.000000] sclk_fimc: source is xusbxti (1), rate is 1500000 [ 0.000000] sclk_fimd: source is xusbxti (1), rate is 1500000 [ 0.000000] sclk_fimd: source is xusbxti (1), rate is 1500000 [ 0.000000] sclk_mfc: source is mout_mfc0 (0), rate is 200000000 [ 0.000000] sclk_g3d: source is mout_g3d0 (0), rate is 41666666 [ 0.000000] sclk_pwi: source is xusbxti (1), rate is 1500000 [ 0.000000] PERCPU: Embedded 7 pages/cpu @c1241000 s6752 r8192 d13728 u32768 [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 251650 [ 0.000000] Kernel command line: console=ttySAC2,115200 [ 0.000000] log_buf_len: 524288 [ 0.000000] early log buf free: 127727(97%) [ 0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes) [ 0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes) [ 0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes) [ 0.000000] Memory: 736MB 255MB = 991MB total [ 0.000000] Memory: 547936k/547936k available, 466848k reserved, 261120K highmem [ 0.000000] Virtual kernel memory layout: [ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB) [ 0.000000] fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB) [ 0.000000] DMA : 0xfea00000 - 0xffe00000 ( 20 MB) [ 0.000000] vmalloc : 0xee800000 - 0xf6000000 ( 120 MB) [ 0.000000] lowmem : 0xc0000000 - 0xee000000 ( 736 MB) [ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB) [ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB) [ 0.000000] .init : 0xc0008000 - 0xc003f000 ( 220 kB) [ 0.000000] .text : 0xc003f000 - 0xc08f9000 (8936 kB) [ 0.000000] .data : 0xc08fa000 - 0xc09a0230 ( 665 kB) [ 0.000000] .bss : 0xc09a0950 - 0xc09dd120 ( 242 kB) [ 0.000000] SLUB: Genslabs=13, HWalign=32, Order=0-3, MinObjects=0, CPUs=4, Nodes=1 [ 0.000000] Preemptible hierarchical RCU implementation. [ 0.000000] NR_IRQS:456 [ 0.000000] ********************************************** [ 0.000000] Carson aigs read server gpio con value start [ 0.000000] read GPK3CON_PA :0x1100000 [ 0.000000] read GPZCON_PA :0x0 [ 0.000000] read GPL0CON_PA :0x10000 [ 0.000000] read GPL0DAT_PA :0x10 [ 0.000000] read GPK3DAT_PA :0x40 [ 0.000000] read GPX2CON_PA :0x0 [ 0.000000] read GPX2DAT_PA :0xd [ 0.000000] read GPX0CON_PA :0x11000 [ 0.000000] read GPX0DAT_PA :0xd4 [ 0.000000] ********************************************** [ 0.000000] Calibrating delay loop... 1992.29 BogoMIPS (lpj=4980736) [ 0.045000] pid_max: default: 32768 minimum: 301 [ 0.045000] Mount-cache hash table entries: 512 [ 0.045000] Initializing cgroup subsys debug [ 0.045000] Initializing cgroup subsys cpuacct [ 0.045000] Initializing cgroup subsys freezer [ 0.045000] CPU: Testing write buffer coherency: ok [ 0.045000] **********panic_dump_test**************** [ 0.045000] There is no valid panic information in memory [ 0.045000] ************************** [ 0.045000] L310 cache controller enabled [ 0.045000] l2x0: 16 ways, CACHE_ID 0x4100c4c8, AUX_CTRL 0x7e470001, Cache size: 1048576 B [ 0.075000] CPU1: Booted secondary processor [ 0.095000] CPU2: Booted secondary processor [ 0.115000] CPU3: Booted secondary processor [ 0.115000] Brought up 4 CPUs [ 0.115000] SMP: Total of 4 processors activated (7969.17 BogoMIPS). [ 0.120000] print_constraints: dummy: [ 0.120000] NET: Registered protocol family 16 [ 0.120000] value1 = 0, value2 = 1, type = 0x1 [ 0.120000] value1 = 0, value2 = 1, type = 0x1 [ 1.125000] exynos4_pmu_init: PMU supports 4412(96) [ 1.125000] S3C Power Management, Copyright 2004 Simtec Electronics [ 1.125000] EXYNOS4: Initializing architecture [ 1.125000] panic_file create OK !! [ 1.130000] s3c-adc exynos4412-adc: attached adc driver [ 1.130000] samsung-pd samsung-pd.0: power domain registered [ 1.130000] samsung-pd samsung-pd.1: power domain registered [ 1.130000] samsung-pd samsung-pd.2: power domain registered [ 1.130000] samsung-pd samsung-pd.5: power domain registered [ 1.130000] samsung-pd samsung-pd.4: power domain registered [ 1.130000] samsung-pd samsung-pd.6: power domain registered [ 1.130000] samsung-pd samsung-pd.7: power domain registered [ 1.130000] s3c24xx-pwm s3c24xx-pwm.1: tin at 100000000, tdiv at 100000000, tin=divclk, base 8 [ 1.130000] s3c24xx-pwm s3c24xx-pwm.0: tin at 100000000, tdiv at 100000000, tin=divclk, base 0 [ 1.145000] bio: create slab <bio-0> at 0 [ 1.145000] SCSI subsystem initialized [ 1.145000] s3c64xx_spi_probe(969) [ 1.145000] s3c64xx-spi s3c64xx-spi.2: Board init must call s3c64xx_spi_set_info() [ 1.145000] s3c64xx-spi: probe of s3c64xx-spi.2 failed with error -22 [ 1.145000] usbcore: registered new interface driver usbfs [ 1.145000] usbcore: registered new interface driver hub [ 1.145000] usbcore: registered new device driver usb [ 1.150000] i2c-gpio i2c-gpio.0: using pins 42 (SDA) and 43 (SCL) [ 1.150000] +s5m8767_pmic_probe() [ 1.150000] print_constraints: vdd_mif range: 900 <--> 1100 mV at 1100 mV [ 1.150000] print_constraints: vdd_arm range: 850 <--> 1450 mV at 1200 mV [ 1.150000] print_constraints: vdd_int range: 875 <--> 1200 mV at 1000 mV [ 1.150000] print_constraints: vdd_g3d range: 750 <--> 1500 mV at 1100 mV [ 1.155000] print_constraints: vdd_m12 range: 750 <--> 1500 mV at 1200 mV [ 1.155000] print_constraints: vdd12_5m range: 750 <--> 1500 mV at 1200 mV [ 1.155000] print_constraints: vddf28_emmc range: 750 <--> 3000 mV at 2850 mV [ 1.170000] print_constraints: VDDQ_M12: 1500 mV [ 1.170000] print_constraints: VDD18_2M: 1800 mV [ 1.170000] print_constraints: VDD10_MIPI: 1000 mV [ 1.180000] print_constraints: VDD33_LCD: 3300 mV [ 1.185000] print_constraints: VDD18_MIPI: 1800 mV
痆古酊旳琲伤 2019-04-01
  • 打赏
  • 举报
回复
read GPD0CON :0x1111 read GPD0DAT :0x0 Carson read the gpio. U-Boot 2010.03 (Jul 11 2017 - 03:25:51) for iTOP-4412 Android APLL = 1000MHz, MPLL = 800MHz ARM_CLOCK = 1000MHz PMIC: S5M8767(VER5.0) Board: iTOP-4412 DRAM: 1 GB MMC: max_emmc_clock:40 MHZ Set CLK to 400 KHz EMMC CLOCK OUTPUT:: 400KHz -[div:50] response timeout error : 00000104 cmd 8 response timeout error : 00000104 cmd 55 max_emmc_clock:40 MHZ Input CLK [ 50 MHz] is higher than limit [40 MHZ] Set CLK to 40000 KHz EMMC clock output: 40000 KHz max_emmc_clock:40 MHZ Input CLK [ 50 MHz] is higher than limit [40 MHZ] Set CLK to 40000 KHz EMMC clock output: 40000 KHz MMC0: 7456 MB SD sclk_mmc is 400K HZ raise: Signal # 8 caught raise: Signal # 8 caught MMC1: 0 MB 0 MB *** Warning - using default environment In: serial Out: serial Err: serial Carson initialize the ebi end. read GPD0CON :0x1111 read GPD0DAT :0x0 Carson read the gpio. eMMC OPEN Success.!! !!!Notice!!! !You must close eMMC boot Partition after all image writing! !eMMC boot partition has continuity at image writing time.! !So, Do not close boot partition, Before, all images is written.! MMC read: dev # 0, block # 48, count 16 ...16 blocks read: OK eMMC CLOSE Success.!! Checking Boot Mode ... EMMC4.41 SYSTEM ENTER NORMAL BOOT MODE Hit any key to stop autoboot: 0 reading kernel.. 1120, 12288 MMC read: dev # 0, block # 1120, count 12288 ...12288 blocks read: OK completed reading RFS.. 13408, 2048 MMC read: dev # 0, block # 13408, count 2048 ...2048 blocks read: OK completed Boot with zImage ## Loading init Ramdisk from Legacy Image at 40df0000 ... Image Name: ramdisk Image Type: ARM Linux RAMDisk Image (uncompressed) Data Size: 327861 Bytes = 320.2 kB Load Address: 40800000 Entry Point: 40800000 Starting kernel ... Uncompressing Linux... done, booting the kernel. [ 0.000000] Initializing cgroup subsys cpu [ 0.000000] Linux version 3.0.15 (root@ubuntu) (gcc version 4.4.1 (Sourcery G++ Lite 2009q3-67) ) #79 SMP PREEMPT Wed Aug 15 01:26:49 PDT 2018 [ 0.000000] CPU: ARMv7 Processor [413fc090] revision 0 (ARMv7), cr=10c5387d [ 0.000000] CPU: VIPT nonaliasing data cache, VIPT aliasing instruction cache [ 0.000000] Machine: SMDK4X12 [ 0.000000] NR_BANKS too low, ignoring high memory [ 0.000000] ************************** [ 0.000000] reserve_panic_dump_area!! [ 0.000000] ************************** [ 0.000000] Memory policy: ECC disabled, Data cache writealloc [ 0.000000] CPU EXYNOS4412 (id 0xe4412011) [ 0.000000] S3C24XX Clocks, Copyright 2004 Simtec Electronics [ 0.000000] s3c_register_clksrc: clock audiocdclk has no registers set [ 0.000000] audiocdclk: no parent clock specified [ 0.000000] s3c_register_clksrc: clock armclk has no registers set [ 0.000000] EXYNOS4: PLL settings, A=1000000000, M=800000000, E=96000000 V=350000000 [ 0.000000] EXYNOS4: ARMCLK=1000000000, DMC=400000000, ACLK200=24000000 [ 0.000000] ACLK160=160000000, ACLK133=133333333, ACLK100=100000000 [ 0.000000] EXYNOS4: ACLK400=24000000 ACLK266=800000000 [ 0.000000] uclk1: source is mout_mpll_user (6), rate is 100000000 [ 0.000000] uclk1: source is mout_mpll_user (6), rate is 100000000 [ 0.000000] uclk1: source is mout_mpll_user (6), rate is 100000000 [ 0.000000] uclk1: source is mout_mpll_user (6), rate is 100000000 [ 0.000000] sclk_csis: source is xusbxti (1), rate is 1500000 [ 0.000000] sclk_csis: source is xusbxti (1), rate is 1500000 [ 0.000000] sclk_cam0: source is xusbxti (1), rate is 1500000 [ 0.000000] sclk_cam1: source is xusbxti (1), rate is 1500000 [ 0.000000] sclk_fimc: source is xusbxti (1), rate is 1500000 [ 0.000000] sclk_fimc: source is xusbxti (1), rate is 1500000 [ 0.000000] sclk_fimc: source is xusbxti (1), rate is 1500000
jzp12 2019-03-29
  • 打赏
  • 举报
回复
引用 2 楼 痆古酊旳琲伤 的回复:
[quote=引用 1 楼 韩曙亮 的回复:]
我没有做过 这方面 开发 , 提出 一些解决问题的 思路 , 仅供参考

1. ROM 在 不升级 Launcher 程序的时候是可用的吗 ?
2. Android 开机启动, 卡在 开机动画上不动 , 有一种原因 是 有 系统应用 与 配置文件 不匹配 , 没有通过校验 , 大概率上是 你升级安装的 Launcher 程序 ;
3. 在 ROM 定制的时候 , 对 Launcher 程序做过哪些配置 , 新升级的 Launcher 程序 是否 与 这些配置一致 , 版本号 等参数配置 ?


谢谢提供思路 目前能定位到的问题就是安装的APP不完整,成因不明
[/quote]

怎么证明:安装的APP不完整?
能提供系统开机所有log吗,根据log,大家分析分析看。
痆古酊旳琲伤 2019-03-29
  • 打赏
  • 举报
回复
引用 1 楼 韩曙亮 的回复:
我没有做过 这方面 开发 , 提出 一些解决问题的 思路 , 仅供参考 1. ROM 在 不升级 Launcher 程序的时候是可用的吗 ? 2. Android 开机启动, 卡在 开机动画上不动 , 有一种原因 是 有 系统应用 与 配置文件 不匹配 , 没有通过校验 , 大概率上是 你升级安装的 Launcher 程序 ; 3. 在 ROM 定制的时候 , 对 Launcher 程序做过哪些配置 , 新升级的 Launcher 程序 是否 与 这些配置一致 , 版本号 等参数配置 ?
谢谢提供思路 目前能定位到的问题就是安装的APP不完整,成因不明
韩曙亮 2019-03-28
  • 打赏
  • 举报
回复
我没有做过 这方面 开发 , 提出 一些解决问题的 思路 , 仅供参考

1. ROM 在 不升级 Launcher 程序的时候是可用的吗 ?
2. Android 开机启动, 卡在 开机动画上不动 , 有一种原因 是 有 系统应用 与 配置文件 不匹配 , 没有通过校验 , 大概率上是 你升级安装的 Launcher 程序 ;
3. 在 ROM 定制的时候 , 对 Launcher 程序做过哪些配置 , 新升级的 Launcher 程序 是否 与 这些配置一致 , 版本号 等参数配置 ?
原创声明:该设计项目版权为“大爱093”,已经申请了专利。设计资料仅供参考,不可以用于商业用途。 前言: 近来针对女性的侵害事件层出不穷,女性的自我防卫能力较弱,侵害时难以顺利逃脱,通常遭到严重侵害,同时,救助者也因无法确定受害人位置而难以提供及时的帮助。于是,设计出一款可以帮助女性防卫、求助的手环尤为必要。前言: 思路:本设计包含手环硬件和手机软件两部分,两者通过蓝牙通信。 便携式防狼器、智能手环主要功能: (1)当佩戴着遇到近身侵害时,可按下手环上的按钮启动爆闪灯,使犯罪分子短时间致盲,争取逃脱时间; (2)同时向手机发送指令,手机软件定位,将定位得到的经纬度、地理位置信息嵌入预置求救短信中,以设定频率不断发送到事先设定的紧急联系人手机上,同时短信报警,紧急联系人可根据位置信息,给予及时救助; (3)佩戴者可按下手环上的按钮,启动“防骚扰”功能,手机模拟来电,为佩戴者在尴尬的情况下找借口离开; (4)手环与手机超过一定范围时,手环震动、手机响起铃声发出警告,有效防止手环与手机丢失; (5)将侵害发生的地点上传到云平台,凭借大数据标记出侵害易发区,作规划安全路径、为警方破案提供证据。 iTA硬件电路与APP: 演示视频: https://v.youku.com/v_show/id_XODc3MzExMzk2.html 密码:GDUT https://v.youku.com/v_show/id_XODc3MzExMzk2.html

80,351

社区成员

发帖
与我相关
我的任务
社区描述
移动平台 Android
androidandroid-studioandroidx 技术论坛(原bbs)
社区管理员
  • Android
  • yechaoa
  • 失落夏天
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧